[Ftdi-usb-sio-devel] How to make a module ftdi_sio run two devices on different VID and PID
Brought to you by:
bryder
From: Pawel K. <pkr...@sl...> - 2006-12-11 13:38:02
|
Hi, would you like to be so kind and give some advice for my problem. I have a device (passport reader which contains of 2 device in there OCR optical reader and RFID chip reader). I'd like to map both devices (one USB cable connector) to my linux system. Both of them run on "ftdi_sio" kernel module, but there is the problem. I have to install the module like this: # modprobe ftdi_sio there is no mapping for any ttyUSB* if I run: # modprobe ftdi_sio vendor=0x1781 product=0x09af there is OK, a have a mapping to serial port /dev/ttyUSB0 of one of the device (OCR part) but I am unable to map the second (RFID part) to /dev/ttyUSB1. Of course, if I install the module: # modprobe ftdi_sio vendor=0x0403 product=0xdd20 I have RFID device mapped to the /dev/ttyUSB0 My question is if there is any method to run both devices by the module "ftdi_sio". I tried to change a name of that module to for example "ftdi_abc" and run: # modprobe ftdi_sio vendor=0x1781 product=0x09af # modprobe ftdi_abc vendor=0x0403 product=0xdd20 and it seems to be OK, but for me it's very odd way. Here is the "devices" file from "proc" for my Device: T: Bus=01 Lev=02 Prnt=09 Port=00 Cnt=01 Dev#= 11 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=1781 ProdID=09af Rev= 6.00 S: Manufacturer=FTDI S: Product=FT232R USB UART C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=serial E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms T: Bus=01 Lev=02 Prnt=09 Port=01 Cnt=02 Dev#= 12 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0403 ProdID=dd20 Rev= 4.00 S: Manufacturer=ACG Austria S: Product=USB Converter C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms Regards, Pawel Krystek |