Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(solved) PuTTy and /dev/ttyACM0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Spanik
l33t
l33t


Joined: 12 Dec 2003
Posts: 608
Location: Belgium

PostPosted: Mon Jun 07, 2021 1:51 pm    Post subject: (solved) PuTTy and /dev/ttyACM0 Reply with quote

I added the needed things to have serial-USB on the laptop. The idea is to be able to use a USB GPS receiver, Arduino and a dual USB-to-serial in order to check on device communications.

I tried first with the GPS receiver as this spews data as soon as you connect it so it should be easy to see something happening. When I connect it I se this is dmesg:
Code:
[13492.642472] usb 3-2: new full-speed USB device number 3 using xhci_hcd
[13492.769314] usb 3-2: New USB device found, idVendor=1546, idProduct=01a7, bcdDevice= 1.00
[13492.769320] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[13492.769323] usb 3-2: Product: u-blox 7 - GPS/GNSS Receiver
[13492.769325] usb 3-2: Manufacturer: u-blox AG - www.u-blox.com
[13492.770410] cdc_acm 3-2:1.0: ttyACM0: USB ACM device


So I take this as the device is recognised, and it is assigned /dev/ttyACM0.

I I now start Putty, then select serial and type /dev/ttyACM0 and set the bitrate etc then I starts but I get
Code:
Unable to open connection to /dev/ttyACM0
Unable to open serial port


I have the same when I try to start it in a terminal with "putty /dev/ttyACM0 -serial -sercfg 9600,8,n,1,N".

My user is part of groups usb and dialout so that should work.
_________________
Expert in non-working solutions


Last edited by Spanik on Mon Jun 07, 2021 8:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
Spanik
l33t
l33t


Joined: 12 Dec 2003
Posts: 608
Location: Belgium

PostPosted: Mon Jun 07, 2021 3:20 pm    Post subject: Reply with quote

I looked at /dev/ttyACM0 and it looks as if this file is owned by group "uucp". Should I make my user member of that group?
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48648
Location: 56N 3W

PostPosted: Mon Jun 07, 2021 3:45 pm    Post subject: Reply with quote

Spanik,

Testing that theory is harmless. Your user will need to log out and back in again to get the new group permissions.
Four a quick test, add rw- permissions for world. That will not persist over reboots but no logout/login is required.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Spanik
l33t
l33t


Joined: 12 Dec 2003
Posts: 608
Location: Belgium

PostPosted: Mon Jun 07, 2021 8:05 pm    Post subject: Reply with quote

In the mean time I also found on a forum that distros based on ubuntu use "dialout" and those based on arch use "uucp".

I tried it and indeed, this works. Now the mystery is why does the Gentoo Arduino Wiki states that you need to be of group "dialout" to use /dev/ttyACM0 when this is not correct? https://wiki.gentoo.org/wiki/Arduino#Grant_access_to_non-root_users

This is a handbook install so I don't understand if/why/when this group has changed.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48648
Location: 56N 3W

PostPosted: Mon Jun 07, 2021 11:04 pm    Post subject: Reply with quote

Spanik,

Gentoo is based on ${UPSTREAM}, not any other distro.

The question about the wiki accuracy belongs on the wiki pages Discussion page. The wiki will email contributors to the page.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Spanik
l33t
l33t


Joined: 12 Dec 2003
Posts: 608
Location: Belgium

PostPosted: Tue Jun 08, 2021 6:05 am    Post subject: Reply with quote

NeddySeagoon wrote:
Spanik,

Gentoo is based on ${UPSTREAM}, not any other distro.


I just meant with that that the correct group being "uucp" is certainly possible.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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