Hello, I have a problem to detect the right ttyUSBx device, if I connect more than one of the same type of USB to Serial adapters. One is a FT232BM (serial uart), the other one a FT245BM (parallel fifo). Both have the same Vendor (0403) and ProdId (6001) and will be used via the ftdi_sio module. They differ in their Producer, Manufactor and SerialNumber information.
Our compay is using the FT245BM chip to connect our serial dataflow analyser to a PC via USB. Before starting the analyser, we must transfer 'it's' firmware to it through the right ttyUSBx. To detect the ttyUSBx behind our analyser, I must realize which ttyUSBx is joined to it. A 'cat /proc/bus/usb/devices' shows this: T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0403 ProdID=6001 Rev= 4.00 S: Manufacturer=FTDI S: Product=USB <-> Serial C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 90mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio 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=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0403 ProdID=6001 Rev= 4.00 S: Manufacturer=IFTOOLS S: Product=US232B S: SerialNumber=0016e10a C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 44mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms A 'cat /proc/tty/driver/usbserial' give me this: usbserinfo:1.0 driver:v2.0 0: module:ftdi_sio name:"FTDI USB Serial Device" vendor:0403 product:6001 num_ports:1 port:1 path:usb-0000:00:04.2-1 1: module:ftdi_sio name:"FTDI USB Serial Device" vendor:0403 product:6001 num_ports:1 port:1 path:usb-0000:00:04.2-2 Here I can see the connected device number 0: or 1: (first column), but because there exists no informations like producer, manufactor or serialnumber, I couldn't use it to distinguish between both. Also '/proc/tty/driver/usbserial' only can read by root and my application runs with normal user rights. I have read the usbdoc and some other usb manuals but found nothing to solve the problem. Is there any libusb call, with it I can detect the joined ttyUSBx. Or some ioctl command to read the producer and/or manufactor of the USB device behind it. BTW: I'm using debian with a 2.6.13.4 kernel. Many thanks in advance Joachim IFTOOLS GbR http://www.iftools.com ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users