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.