Cable USB - RS232 sur DEBIAN Jessie

Bonjour,
J’essaye de configurer un Debian Jessie pour supporter plusieurs câbles adaptateurs RS-232 (et RS-422) sur un PC serveur.
J’arrive à trouver les périphériques mais ils prennent tous la place du TTYS0 et ne se répartissent pas sur les TTYS0, TTYS1, TTYS2 comme j’aurais aimé.
Pour info, il y a dans le système un port natif RS-232, j’ai un câble adaptateur USB-RS232 et un autre câble adaptateur USB-RS422.

Je suis en Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux

Quelques infos sans câble adaptateur installé /

setserial -g /dev/ttyS[0123]  
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3

ls -l /dev/ttyUSB*
ls: cannot access /dev/ttyUSB*: No such file or directory

root@debian:~# lsusb
Bus 008 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:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0000:0000
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 046d:c31c Logitech, Inc. Keyboard K120 for Business
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Et ensuite lorsque je mets mon câble USB-RS422

root@debian:~# setserial -g /dev/ttyS[0123]
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3

root@debian:~# lsusb
Bus 008 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:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0000:0000
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 046d:c31c Logitech, Inc. Keyboard K120 for Business
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

root@debian:~# lsmod | grep ft
ftdi_sio               50387  0
usbserial              36293  1 ftdi_sio
usbcore               195468  7 uhci_hcd,usbserial,ehci_hcd,ehci_pci,usbhid,ftdi_sio

root@debian:~# dmesg | grep 754.
[  754.456016] usb 2-1: new full-speed USB device number 3 using uhci_hcd
[  754.659032] usb 2-1: New USB device found, idVendor=0403, idProduct=6001
[  754.659036] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  754.659039] usb 2-1: Product: FT232R USB UART
[  754.659041] usb 2-1: Manufacturer: FTDI
[  754.659044] usb 2-1: SerialNumber: AI02FZR3
[  754.667062] ftdi_sio 2-1:1.0: FTDI USB Serial Device converter detected
[  754.667105] usb 2-1: Detected FT232RL
[  754.667108] usb 2-1: Number of endpoints 2
[  754.667111] usb 2-1: Endpoint 1 MaxPacketSize 64
[  754.667113] usb 2-1: Endpoint 2 MaxPacketSize 64
[  754.667116] usb 2-1: Setting MaxPacketSize 64
[  754.669087] usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0

Voilà ce que je peux en dire …

D’avance merci à ceux qui meuvent m’aider.

La dernière fois que j’ai essayé, ils se mettaient sur ttyUSB[0-9].

Oui, c’est ce qui est censé se passer et c’est bien ce qu’on voit dans le dernier message du noyau :
[ 754.669087] usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0

Je viens de désinstaller brltty qui semblais s’imposer et rejetter les ttyUSBx des autres adapteurs. Comme je n’ai pas de lecteur pour le code Braille (et que je ne suis pas malvoyant) ça semble mieux aller comme ça.

root@debian:~# setserial -g /dev/ttyUSB[0123]
/dev/ttyUSB0, UART: unknown, Port: 0x0000, IRQ: 0, Flags: low_latency
/dev/ttyUSB1, UART: 16654, Port: 0x0000, IRQ: 0

ça semble bon maintenant…

root@debian:~# dmesg | grep ttyUSB
[  621.672140] usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB0
[  626.316203] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[  937.703268] usb 2-1: pl2303 converter now attached to ttyUSB0
[ 1254.736349] usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB1
[ 1256.315411] ftdi_sio ttyUSB1: FTDI USB Serial Device converter now disconnected from ttyUSB1
[ 1478.480258] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[ 1489.419088] usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 1511.426133] usb 2-2: pl2303 converter now attached to ttyUSB1

Je vous dis quoi dès que j’aurais fait des essais de com.

Voici ce qui se passait avec brltty installé.

[ 1254.736349] usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB1
[ 1256.313301] usb 2-2: usbfs: interface 0 claimed by ftdi_sio while 'brltty' sets config #1
[ 1256.315411] ftdi_sio ttyUSB1: FTDI USB Serial Device converter now disconnected from ttyUSB1
[ 1256.315424] ftdi_sio 2-2:1.0: device disconnected

Hé hé, j’ai un collègue qui parle comme ça.

Mes essais sont tous concluants … tout fonctionne correctement.
Merci à tous pour votre aide.