This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Serial can't find my devices
#21
(2022-09-14, 11:59 AM)mgrouch Wrote: @b135802

Does

sudo usb-devices

show your device?

Yes, @mgrouch, it does! The third device on the listing below. Why is is that Serial and lsusb can't find it, then?!?


Code:
pi@openplotter:~ $ sudo usb-devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=05.15
S:  Manufacturer=Linux 5.15.61-v8+ xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:01:00.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 4
D:  Ver= 2.10 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=2109 ProdID=3431 Rev=04.21
S:  Product=USB2.0 Hub
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=02 Prnt=02 Port=02 Cnt=01 Dev#= 13 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=067b ProdID=2303 Rev=04.00
S:  Manufacturer=Prolific Technology Inc. 
S:  Product=USB-Serial Controller D
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#=0x0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=pl2303

T:  Bus=01 Lev=02 Prnt=02 Port=03 Cnt=02 Dev#=  4 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=32 #Cfgs=  1
P:  Vendor=046d ProdID=c52b Rev=24.01
S:  Manufacturer=Logitech
S:  Product=USB Receiver
C:  #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=98mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbhid
I:  If#=0x1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid
I:  If#=0x2 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 4
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev=05.15
S:  Manufacturer=Linux 5.15.61-v8+ xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:01:00.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=5000 MxCh= 0
D:  Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  1
P:  Vendor=0781 ProdID=5583 Rev=01.00
S:  Manufacturer= USB
S:  Product= SanDisk 3.2Gen1
S:  SerialNumber=010178f106be067b6087affe08b37c40e6ffb179031ca2d89dc8b549d45e914d0f3400000000000000000000a8ecaef6ff8a0b0083558107b7aa526a
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=896mA
I:  If#=0x0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
Reply
#22
@b135802

The way lsusb is written it may or may not show all devices.
So if you are looking for all USB devices do not use lsusb.
Download BBN Marine OS for raspberry pi 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply
#23
(2022-09-14, 01:44 PM)mgrouch Wrote: @b135802

The way lsusb is written it may or may not show all devices.
So if you are looking for all USB devices do not use lsusb.

Ok, thanks @mgrouch. @Sailoog - does this give clues to why Serial isn't discovering my devices?
Reply
#24
Ops, we forgot the basic rule, "when everything fails check the permissions" Smile

Probably the sudo command will make the difference. Try with "sudo lsusb".
Reply
#25
(2022-09-14, 07:49 PM)Sailoog Wrote: Ops, we forgot the basic rule, "when everything fails check the permissions" Smile

Probably the sudo command will make the difference. Try with "sudo lsusb".

Blush  Sorry, I should have thought about that myself.


Code:
pi@openplotter:~ $ sudo lsusb
Bus 002 Device 002: ID 0781:5583 SanDisk Corp. Ultra Fit
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 013: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port / Mobile Action MA-8910P
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

There is the Usb-gps - device 013. Is that the problem - Serial doesn't have the right permissions? Why not, and how do one correct it?
Reply
#26
you should check if the user pi is in the dialout group:

Code:
groups pi

If dialout is not in the list run this:


Code:
sudo adduser pi dialout
Reply
#27
(2022-09-15, 10:48 AM)Sailoog Wrote: you should check if the user pi is in the dialout group:

Code:
groups pi

Pi is in the dialout group already 


Code:
pi@openplotter:~ $ groups pi

pi : pi adm dialout cdrom sudo audio video plugdev games users input render netdev spi i2c gpio lpadmin
Reply
#28
(2022-09-15, 11:08 AM)b135802 Wrote:
(2022-09-15, 10:48 AM)Sailoog Wrote: you should check if the user pi is in the dialout group:

Code:
groups pi

Pi is in the dialout group already 


Code:
pi@openplotter:~ $ groups pi

pi : pi adm dialout cdrom sudo audio video plugdev games users input render netdev spi i2c gpio lpadmin

two more things to try:

Shutdown pypilot and try lsusb as user pi

Add pi user to tty group

There is this bug report

https://github.com/raspberrypi/linux/issues/3779

What do you have in udev?


Code:
ls -l /etc/udev/rules.d/

And another bug report against debian package

https://bugs.debian.org/cgi-bin/bugrepor...ug=1009654
Download BBN Marine OS for raspberry pi 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply
#29
Pypilot isn't installed. This is OP 3.0, 64 bit, and I just saw now that pypilot is in beta (wasn't aware).

No luck despite adding pi to tty group.

pi@openplotter:~ $ ls -l /etc/udev/rules.d/
total 72
-rw-r--r-- 1 root root 63312 Sep 11 16:33 70-snap.core.rules
-rw-r--r-- 1 root root 1151 Sep 11 16:35 70-snap.nextcloud-desktop-client.rules
-rw-r--r-- 1 root root 1883 Feb 23 2022 99-com.rules
Reply
#30
unplug your USB-GPS temporarily from USB and do

lsusb

as pi user
Download BBN Marine OS for raspberry pi 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)