FTDI Device Not Working Ubuntu 14.04.2 LTS

Asked by tomdean on 2015-06-24

My SDR-IQ has an FTDI chip and worked before a dist-upgrade.

Now, I can not access the device with the C application, which worked before.

I can access the device with VirtualBox and XP.

> lsusb
Bus 002 Device 004: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth
Bus 002 Device 008: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 002 Device 006: ID 045e:0768 Microsoft Corp. Sidewinder X4
Bus 002 Device 005: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
Bus 002 Device 003: ID 050d:0237 Belkin Components F5U237 USB 2.0 7-Port Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 2109:0810
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 002: ID 2109:3431
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I disconnected and reconnected the device.

> tail /var/log/syslog
Jun 24 10:53:22 P9X79 kernel: [ 215.206479] usb 2-1.2.7: USB disconnect, device number 7
Jun 24 10:53:22 P9X79 kernel: [ 215.206701] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
Jun 24 10:53:22 P9X79 kernel: [ 215.206722] ftdi_sio 2-1.2.7:1.0: device disconnected

Jun 24 10:53:25 P9X79 kernel: [ 218.217501] usb 2-1.2.7: new full-speed USB device number 8 using ehci-pci
Jun 24 10:53:25 P9X79 kernel: [ 218.313692] usb 2-1.2.7: New USB device found, idVendor=0403, idProduct=6001
Jun 24 10:53:25 P9X79 kernel: [ 218.313697] usb 2-1.2.7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jun 24 10:53:25 P9X79 kernel: [ 218.313700] usb 2-1.2.7: Product: SDR-IQ
Jun 24 10:53:25 P9X79 kernel: [ 218.313703] usb 2-1.2.7: Manufacturer: FTDI
Jun 24 10:53:25 P9X79 kernel: [ 218.315201] ftdi_sio 2-1.2.7:1.0: FTDI USB Serial Device converter detected
Jun 24 10:53:25 P9X79 kernel: [ 218.315232] usb 2-1.2.7: Detected FT232RL
Jun 24 10:53:25 P9X79 kernel: [ 218.315234] usb 2-1.2.7: Number of endpoints 2
Jun 24 10:53:25 P9X79 kernel: [ 218.315237] usb 2-1.2.7: Endpoint 1 MaxPacketSize 64
Jun 24 10:53:25 P9X79 kernel: [ 218.315239] usb 2-1.2.7: Endpoint 2 MaxPacketSize 64
Jun 24 10:53:25 P9X79 kernel: [ 218.315242] usb 2-1.2.7: Setting MaxPacketSize 64
Jun 24 10:53:25 P9X79 kernel: [ 218.315603] usb 2-1.2.7: FTDI USB Serial Device converter now attached to ttyUSB0
Jun 24 10:53:25 P9X79 mtp-probe: checking bus 2, device 8: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.7"
Jun 24 10:53:25 P9X79 mtp-probe: bus: 2, device: 8 was not an MTP device

dmesg | > tail

[ 218.217501] usb 2-1.2.7: new full-speed USB device number 8 using ehci-pci
[ 218.313692] usb 2-1.2.7: New USB device found, idVendor=0403, idProduct=6001
[ 218.313697] usb 2-1.2.7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 218.313700] usb 2-1.2.7: Product: SDR-IQ
[ 218.313703] usb 2-1.2.7: Manufacturer: FTDI
[ 218.315201] ftdi_sio 2-1.2.7:1.0: FTDI USB Serial Device converter detected
[ 218.315232] usb 2-1.2.7: Detected FT232RL
[ 218.315234] usb 2-1.2.7: Number of endpoints 2
[ 218.315237] usb 2-1.2.7: Endpoint 1 MaxPacketSize 64
[ 218.315239] usb 2-1.2.7: Endpoint 2 MaxPacketSize 64
[ 218.315242] usb 2-1.2.7: Setting MaxPacketSize 64
[ 218.315603] usb 2-1.2.7: FTDI USB Serial Device converter now attached to ttyUSB0

I have removed brltty.

Tom Dean

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2015-06-24
Last reply:
2015-06-25
tomdean (tomdean) said : #1

On 06/24/15 11:07, tomdean wrote:

If I start gtkterm, select ttyUSB0 as the port, then, the C application
works.

The C application sends a 4 byte message to the device and reads the
response. When gtkterm is running, the response read is correct and 11
bytes long. When gtkterm is not running the application hangs on the
first read.

Tom Dean

tomdean (tomdean) said : #2

On 06/24/15 12:01, tomdean wrote:

stty -F /dev/ttyUSB0
5:0:8bd:0:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0

fixes the problem.

Is this a change in defaults for ttyUSB0 within the same release of Ubuntu?

Tom Dean

tomdean (tomdean) said : #3

On 06/24/15 12:36, tomdean wrote:

The culprit is Canonical mode. In some recent change to Ubuntu 14.04,
this was changed. I do not have the exact date, but, is is within the
past few months.

Cost: 4 hours troubleshooting!

Tom Dean

I suggest you report a bug

Can you help with this problem?

Provide an answer of your own, or ask tomdean for more information if necessary.

To post a message you must log in.