Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] ttyACM0 & Arduino & Arduino Create
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
DancesWithWords
Guru
Guru


Joined: 29 Jun 2002
Posts: 341
Location: ottawa, canada

PostPosted: Sat Mar 03, 2018 5:59 pm    Post subject: [SOLVED] ttyACM0 & Arduino & Arduino Create Reply with quote

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
View user's profile Send private message
DancesWithWords
Guru
Guru


Joined: 29 Jun 2002
Posts: 341
Location: ottawa, canada

PostPosted: Sat Mar 03, 2018 9:16 pm    Post subject: [SOLVED] Re: ttyACM0 & Arduino & Arduino Create Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13498

PostPosted: Sat Mar 03, 2018 11:30 pm    Post subject: Re: [SOLVED] Re: ttyACM0 & Arduino & Arduino Create Reply with quote

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
View user's profile Send private message
DancesWithWords
Guru
Guru


Joined: 29 Jun 2002
Posts: 341
Location: ottawa, canada

PostPosted: Sun Mar 04, 2018 12:10 am    Post subject: Re: [SOLVED] Re: ttyACM0 & Arduino & Arduino Create Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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