View previous topic :: View next topic |
Author |
Message |
DancesWithWords Guru
Joined: 29 Jun 2002 Posts: 347 Location: ottawa, canada
|
Posted: Sat Mar 03, 2018 5:59 pm Post subject: [SOLVED] ttyACM0 & Arduino & Arduino Create |
|
|
Why do I have to do: chmod 666 /dev/ttyACM0 in order for me to get access to my Arduino everytime I plug it in to USB?
I found this:
SUBSYSTEMS="usb", ATTRS{product}== "Arduino Uno", GROUP="users", MODE="0666"
SUBSYSTEMS="usb", ATTRS{product}== "FT232R USB UART", GROUP="users", MODE="0666"
Which I put in: /etc/udev/rules.d/50-embedded_devices.rules
But that had no effect.
So how do I fix it so I so I don't have to chmod 666 /dev/ttyACM0 everytime I plug in the Arduino board to USB?
=====
DWW
Last edited by DancesWithWords on Sat Mar 03, 2018 9:17 pm; edited 1 time in total |
|
Back to top |
|
|
DancesWithWords Guru
Joined: 29 Jun 2002 Posts: 347 Location: ottawa, canada
|
Posted: Sat Mar 03, 2018 9:16 pm Post subject: [SOLVED] Re: ttyACM0 & Arduino & Arduino Create |
|
|
DancesWithWords wrote: | Why do I have to do: chmod 666 /dev/ttyACM0 in order for me to get access to my Arduino everytime I plug it in to USB?
I found this:
SUBSYSTEMS="usb", ATTRS{product}== "Arduino Uno", GROUP="users", MODE="0666"
SUBSYSTEMS="usb", ATTRS{product}== "FT232R USB UART", GROUP="users", MODE="0666"
Which I put in: /etc/udev/rules.d/50-embedded_devices.rules
But that had no effect.
So how do I fix it so I so I don't have to chmod 666 /dev/ttyACM0 everytime I plug in the Arduino board to USB?
=====
DWW |
Solved this by doing...
udevadm info -a -p $(udevadm info -q path -n /dev/ttyACM0)
And changing the above to:
SUBSYSTEMS=="usb", ATTRS{manufacturer}=="Arduino (www.arduino.cc)", ATTRS{idProduct}=="0043", ATTRS{idVendor}=="2341", GROUP="users", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{product}== "FT232R USB UART", GROUP="users", MODE="0666" |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23071
|
Posted: Sat Mar 03, 2018 11:30 pm Post subject: Re: [SOLVED] Re: ttyACM0 & Arduino & Arduino Create |
|
|
DancesWithWords wrote: | udevadm info -a -p $(udevadm info -q path -n /dev/ttyACM0) | This could be simplified. info -q path prints out a valid argument for info -p, but you could instead use just udevadm info -a -n /dev/ttyACM0 to get the same result. |
|
Back to top |
|
|
DancesWithWords Guru
Joined: 29 Jun 2002 Posts: 347 Location: ottawa, canada
|
Posted: Sun Mar 04, 2018 12:10 am Post subject: Re: [SOLVED] Re: ttyACM0 & Arduino & Arduino Create |
|
|
Hu wrote: | DancesWithWords wrote: | udevadm info -a -p $(udevadm info -q path -n /dev/ttyACM0) | This could be simplified. info -q path prints out a valid argument for info -p, but you could instead use just udevadm info -a -n /dev/ttyACM0 to get the same result. |
Thanks for this addition, hopefully it will help someone else.
====
DWW |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|