Serial port bug?

alexis jeandet alexis.jeandet at member.fsf.org
Tue Apr 28 08:45:26 UTC 2015


Hi,

I found a weird behavior, I don't know if it is a bug. On my codes I
usually look into "/dev/serial/by-id/" to list available serial ports. I
discovered that when I use two FT2232(USB to dual serial port) I only
see the last connected chip not both. If look into
"/dev/serial/by-path/" I see all of them and also into
"/sys/bus/usb-serial/devices/".

Example:

[jeandet at machin opt]$ ls -al /sys/bus/usb-serial/devices/
total 0
drwxr-xr-x 2 root root 0 28 avril 10:40 .
drwxr-xr-x 4 root root 0 28 avril 10:40 ..
lrwxrwxrwx 1 root root 0 28 avril 10:35 ttyUSB0
-> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.2/1-2.2:1.0/ttyUSB0
lrwxrwxrwx 1 root root 0 28 avril 10:35 ttyUSB1
-> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.2/1-2.2:1.1/ttyUSB1
lrwxrwxrwx 1 root root 0 28 avril 10:35 ttyUSB2
-> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/ttyUSB2
lrwxrwxrwx 1 root root 0 28 avril 10:35 ttyUSB3
-> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.1/ttyUSB3
[jeandet at machin opt]$ ls -al /dev/serial/by-id/
total 0
drwxr-xr-x 2 root root 80 28 avril 10:32 .
drwxr-xr-x 4 root root 80 28 avril 10:32 ..
lrwxrwxrwx 1 root root 13 28 avril 10:32
usb-FTDI_Dual_RS232-HS-if00-port0 -> ../../ttyUSB2
lrwxrwxrwx 1 root root 13 28 avril 10:32
usb-FTDI_Dual_RS232-HS-if01-port0 -> ../../ttyUSB3
[jeandet at machin opt]$ ls -al /dev/serial/by-path/
total 0
drwxr-xr-x 2 root root 120 28 avril 10:32 .
drwxr-xr-x 4 root root  80 28 avril 10:32 ..
lrwxrwxrwx 1 root root  13 28 avril 10:32
pci-0000:00:14.0-usb-0:1:1.0-port0 -> ../../ttyUSB2
lrwxrwxrwx 1 root root  13 28 avril 10:32
pci-0000:00:14.0-usb-0:1:1.1-port0 -> ../../ttyUSB3
lrwxrwxrwx 1 root root  13 28 avril 10:32
pci-0000:00:14.0-usb-0:2.2:1.0-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root  13 28 avril 10:32
pci-0000:00:14.0-usb-0:2.2:1.1-port0 -> ../../ttyUSB1


Should I consider that as a bug? If yes where should I report this
issue? Which package might be the cause, the kernel, udev?

Best regards,
Alexis.





More information about the users mailing list