[Ftdi-usb-sio-devel] Linux support for FT232RL not production ready
Brought to you by:
bryder
From: Roger S. <ro...@tp...> - 2009-12-13 05:56:04
|
Hi Not sure if Bill Ryder or Greg Kroah-Hartman or some of the other names fromm google searches can help. As is Linux specific but the only support thus far is http://www.ftdichip.com/FTSupport.htm#DriverSupport Which hasn't helped yet. So Any other help greatly appreciated. I have a problem using Linux with the device from http://www.dontronics-shop.com/super4-usb-relay-module.html Linux support for the Super4 USB Relay Module .. using FT232RL would it be considered production ready? The Super4 USB Relay Module does work to a point on "puppy" linux & a few others . I want to use this device on Ubuntu910. I want to be able to powercycle a broadband USB modem from the CLI . BUT Both devices want to use ttyUSB0. If ttyUSB0 is NOT free (in use) the USBmodem will select ttyUSB1. But USB0 becomes free (or considered to be free at some level ) when it shouln't & will select ttyUSB0. Most Linux installation it kind of works. RH5, RH4, FC11,Debian Lenny (even puppy linux has this same problem) At least All 4 relays can be set & unset from the CLI (command line interface). The problem is :: on plugging in the USB cable an entry in /dev appears. (/dev/ttyUSB0) The entry thereafter disappears when the device is accessed or set or unset. #lrelayset -l the above command lists the number of devices with the SerialNumbers. After issuing the command the (/dev/ttyUSB0) disappears. So subsequent USB devices want to use the same (/dev/ttyUSB0) device, causing conflicts it seems. Perhaps that is normal, BUT this seems bizzare to me! The Setup on linux is simple : Any modern Linux distro with 2 supplementary files /usr/bin/lrelayset -l /usr/lib/libftd2xx.so linked to libftd2xx.so.0.4.13 (http://emx.net.au/page426.htm) On installations that don't work. IE where the "lrelayset -l" doesn't work, the similiarities are very similiar to a working?? system. Below are listing from "lsusb -v" on two systems. firstly kernel messages to "/var/log/messages" compared. Fc11 has 5 uniq lines & ubuntu910 has 4. 10 lines are common to both. So ubuntu must be close to working ???? COMMON ::::::::::: ftdi_sio 3-2:1.0: FTDI USB Serial Device converter detected ftdi_sio 3-2:1.0: FTDI USB Serial Device converter detected usb 3-2: configuration #1 chosen from 1 choice usb 3-2: configuration #1 chosen from 1 choice usb 3-2: Detected FT232RL usb 3-2: Detected FT232RL usb 3-2: FTDI USB Serial Device converter now attached to ttyUSB0 usb 3-2: FTDI USB Serial Device converter now attached to ttyUSB0 usb 3-2: new full speed USB device using uhci_hcd and address 3 usb 3-2: new full speed USB device using uhci_hcd and address 3 Fedora Core 11 :::::::::::: usb 3-2: New USB device found, idVendor=0403, idProduct=6001 usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 3-2: Product: TCTEC USB RELAY usb 3-2: SerialNumber: FTSIL4VG usb 3-2: Manufacturer: TCTEC Ubuntu 910 :::::::::::: usb 3-2: Number of endpoints 2 usb 3-2: Setting MaxPacketSize 64 usb 3-2: Endpoint 1 MaxPacketSize 64 usb 3-2: Endpoint 2 MaxPacketSize 64 ######################################################################### ########################################################################## likewise >From the "lsusb -v listings from both machines the listing is almost identical except for the following 3 lines :::::::::::::::::::::::::::::::::::::::::::::::::: Bus 003 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT Bus 003 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC 232 USB-Serial (UART) IC :::::::::::::::::::::::::::::::::::::::::::::::::::::: ##################################################################################### Fedora Core 11 ::::::::::::: [root@stc ~]# lsusb -v -d 0403:6001 Bus 003 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0403 Future Technology Devices International, Ltd idProduct 0x6001 FT232 USB-Serial (UART) IC bcdDevice 6.00 iManufacturer 1 TCTEC iProduct 2 TCTEC USB RELAY iSerial 3 FTSIL4VG bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 320mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 2 TCTEC USB RELAY Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Device Status: 0x0000 (Bus Powered) [root@stc ~]# Ubuntu 910:::::::::::::: root@ubuntu-laptop:~# lsusb -v -d 0403:6001 Bus 003 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT 232 USB-Serial (UART) IC Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0403 Future Technology Devices International, Ltd idProduct 0x6001 FT232 USB-Serial (UART) IC bcdDevice 6.00 iManufacturer 1 TCTEC iProduct 2 TCTEC USB RELAY iSerial 3 FTSIL4VG bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 320mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 2 TCTEC USB RELAY Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Device Status: 0x0000 (Bus Powered) root@ubuntu-laptop:~# Also ######################################################################### The kernel version for lrelayset :2.6.16. this may/may not be significant when run on different kernels ?? root@roger-laptop:~# file /usr/bin/lrelayset /usr/bin/lrelayset: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped root@roger-laptop:~# ########################################################################## |