Might be related: on latest armbian, I'm
encountering two issues:
Contents of /dev/serial/by-id and /dev/serial/by-path are not the same: some connected devices are missing from by-id, making it complicated to identify which /dev/ttyACMx is which.
orangepi@mypc:~$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 007: ID 1a86:55d4 QinHeng Electronics USB Single Serial
Bus 003 Device 006: ID 1a86:55d4 QinHeng Electronics USB Single Serial
Bus 003 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 014: ID 1a86:55d4 QinHeng Electronics USB Single Serial
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
orangepi@mypc:~$ usbreset
Usage:
usbreset PPPP:VVVV - reset by product and vendor id
usbreset BBB/DDD - reset by bus and device number
usbreset "Product" - reset by product name
Devices:
Number 002/014 ID 1a86:55d4 USB Single Serial
Number 003/007 ID 1a86:55d4 USB Single Serial
Number 003/006 ID 1a86:55d4 USB Single Serial
Number 003/002 ID 1a40:0101 USB 2.0 Hub
orangepi@mypc:~$ tree /dev/serial/
/dev/serial/
├── by-id
│ └── usb-1a86_USB_Single_Serial_535A000001-if00 -> ../../ttyACM3
└── by-path
├── platform-fe3a0000.usb-usb-0:1:1.0 -> ../../ttyACM3
├── platform-xhci-hcd.4.auto-usb-0:1.3:1.0 -> ../../ttyACM0
└── platform-xhci-hcd.4.auto-usb-0:1.4:1.0 -> ../../ttyACM1
3 directories, 4 files
Armbian 24.5.1 bookworm
2. Simultaneously, I am encountering problems when usb-serial converter will freeze and won't respond unless I manually perform usbreset command.
udev rules (60-serial.rules) were certainly updated since armbian release ~1 year ago.
However, this might be simply related to some changes in our connected hardware. Since we added USB hub and have newer revision of these usb-serial converters, I cannot say for certain this is an OS problem.