×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

/dev/ttyUSB0 and /dev/tyUSB1 are not longer detected by indi

  • Posts: 80
  • Thank you received: 2
Instead of those, indi only shows _one_ Serial Device (/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0) which is mapped to /dev/ttyUSB1 ...

I always have to enter /dev/ttyUSB0 on my Focuser connection Tab an connect both manually ...

I'm using Stellarmate on RP4 with latest installed apt-get stable packages ...

Any suggestions?
2 years 10 months ago #72193

Please Log in or Create an account to join the conversation.

Can you check what in /dev/serial/by-id ? is it only one device? it could be due to two identical devices. What does lsusb show? and how about ls -l /dev/ttyUSB* ?
2 years 10 months ago #72194

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 2
The funny thing is, that i have the same behaviour on 3 different RP4:

stellarmate@stellarmate:/dev/serial/by-id $ ls -lsa
total 0
0 drwxr-xr-x 2 root root 60 Jun  2 10:05 .
0 drwxr-xr-x 4 root root 80 Jun  2 10:05 ..
0 lrwxrwxrwx 1 root root 13 Jun  2 10:05 usb-1a86_USB2.0-Serial-if00-port0 -> ../../ttyUSB1
stellarmate@stellarmate:/dev/serial/by-id $
stellarmate@stellarmate:/dev/serial/by-id $ lsusb
Bus 002 Device 002: ID 03c3:260e
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 004: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 007: ID 03c3:120c
Bus 001 Device 005: ID 03c3:1f01
Bus 001 Device 003: ID 04b4:6572 Cypress Semiconductor Corp.
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
stellarmate@stellarmate:/dev/serial/by-id $ ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 Jun 10 11:42 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Jun 10 12:53 /dev/ttyUSB1
stellarmate@stellarmate:/dev/serial/by-id $

EDIT:
the by-path contains both:
stellarmate@stellarmate:/dev/serial/by-path $ ls -lsa
total 0
0 drwxr-xr-x 2 root root 80 Jun  2 10:05 .
0 drwxr-xr-x 4 root root 80 Jun  2 10:05 ..
0 lrwxrwxrwx 1 root root 13 Jun  2 10:05 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-port0 -> ../../ttyUSB0
0 lrwxrwxrwx 1 root root 13 Jun  2 10:05 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0-port0 -> ../../ttyUSB1


So it seems that the by-id is not generated correctly?
Last edit: 2 years 10 months ago by Philip Mair.
2 years 10 months ago #72196

Please Log in or Create an account to join the conversation.

Ok I think Linux kernel does not create symlinks for identical devices... I think INDI should fall back to using ttyUSBX in case such a discrepancy exists... working on it.
The following user(s) said Thank You: Philip Mair
2 years 10 months ago #72197

Please Log in or Create an account to join the conversation.

Ok please re-compile from GIT and check if that solves the issue. Basically, not it falls back to ttyUSBX ports if it detects a discrepancy.
2 years 10 months ago #72208

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 2
So looks pretty good!

Thanks Jasem!
2 years 10 months ago #72239

Please Log in or Create an account to join the conversation.

Time to create page: 0.445 seconds