Ubuntu 12.04 and FDTI USB chips.

A place to discuss software and code that isn't automotive related. Free and open source preferred but not compulsory.
User avatar
Spudmn
LQFP112 - Up with the play
Posts: 232
Joined: Thu Feb 10, 2011 12:27 am
Location: Auckland, NZ

Ubuntu 12.04 and FDTI USB chips.

Post by Spudmn »

I have just upgraded to 12.04 (I use Lubuntu) and there is something wrong with the FDTI USB driver. It looks like it is detected OK but I can’t get any incoming data.
I will keep you posted if I work out how to fix it.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Ubuntu 12.04 and FDTI USB chips.

Post by Fred »

Spudmn wrote:I have just downgraded to 12.04 (I use Lubuntu) and there is something wrong with the FDTI USB driver.
Fixed! :-)
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Peter
LQFP144 - On Top Of The Game
Posts: 268
Joined: Tue Dec 27, 2011 5:37 am

Re: Ubuntu 12.04 and FDTI USB chips.

Post by Peter »

Mine still seems to be happy.
:-p
User avatar
Spudmn
LQFP112 - Up with the play
Posts: 232
Joined: Thu Feb 10, 2011 12:27 am
Location: Auckland, NZ

Re: Ubuntu 12.04 and FDTI USB chips.

Post by Spudmn »

Hmmmm. Thanks Peter.

I know the hardware still works because I can get a serial stream from windows PC. My other Linux box doesn't work either and it is on 11.10.
Something weird going on here.
Compassion
QFP80 - Contributor
Posts: 32
Joined: Sun Jan 15, 2012 1:40 am
Location: Sunny Colorado

Re: Ubuntu 12.04 and FDTI USB chips.

Post by Compassion »

What type of incoming data are you not getting? Is this with screen/minicom, or some of the other FreeEMS tools? Can you also provide the USB ID (vendor/device ID?) as well. It is in a ####:#### format, or described as such with various utilities.
User avatar
Spudmn
LQFP112 - Up with the play
Posts: 232
Joined: Thu Feb 10, 2011 12:27 am
Location: Auckland, NZ

Re: Ubuntu 12.04 and FDTI USB chips.

Post by Spudmn »

What type of incoming data are you not getting?
Nothing. I have scoped the Micro Tx and there is data there but nothing is getting through the USB Chip.

Can you also provide the USB ID (vendor/device ID?) as well. It is in a ####:#### format, or described as such with various utilities.

Code: Select all

$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 
Bus 004 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 001 Device 002: ID 0c45:62c0 Microdia Sonix USB 2.0 Camera 
Bus 002 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC 




$dmesg
[19005.892112] usb 2-1: new full-speed USB device number 2 using uhci_hcd 
[19006.181468] usbcore: registered new interface driver usbserial 
[19006.181573] USB Serial support registered for generic 
[19006.181716] usbcore: registered new interface driver usbserial_generic 
[19006.181728] usbserial: USB Serial Driver core 
[19006.201678] USB Serial support registered for FTDI USB Serial Device 
[19006.201965] ftdi_sio 2-1:1.0: FTDI USB Serial Device converter detected 
[19006.202102] usb 2-1: Detected FT232RL 
[19006.202112] usb 2-1: Number of endpoints 2 
[19006.202120] usb 2-1: Endpoint 1 MaxPacketSize 64 
[19006.202128] usb 2-1: Endpoint 2 MaxPacketSize 64 
[19006.202136] usb 2-1: Setting MaxPacketSize 64 
[19006.205502] usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0 
[19006.205633] usbcore: registered new interface driver ftdi_sio 
[19006.205649] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
I have the USB LEDs hooked up and the LED is not flashing.

I can send characters from a GTKTerm and they are appearing on the Micro's Rx. and the bit width is correct. The Rx LED is flashing when I do this. But there is never any Tx LED flashing.

The Puma USB mod shows that 2 and 9 and 3 and 11 are connected together but my board is not hooked up like this. Has anybody made this mod?
Image
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Ubuntu 12.04 and FDTI USB chips.

Post by Fred »

Sounds like either:

USB chip is dead

or

Link to USB chip is dead

or

Driver issue?

Though I doubt the last one.

The mod is not required, btw.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Spudmn
LQFP112 - Up with the play
Posts: 232
Joined: Thu Feb 10, 2011 12:27 am
Location: Auckland, NZ

Re: Ubuntu 12.04 and FDTI USB chips.

Post by Spudmn »

Fred wrote:
Driver issue?

Though I doubt the last one.
It most likely some sort of Linux driver issue. The hardware works fine on Windows. It only started to give me problems after I upgraded to 12.04.
User avatar
Dan
LQFP144 - On Top Of The Game
Posts: 1204
Joined: Tue Mar 02, 2010 2:33 pm
Location: Australia

Re: Ubuntu 12.04 and FDTI USB chips.

Post by Dan »

Altium FTW! :-)
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Ubuntu 12.04 and FDTI USB chips.

Post by Fred »

Aaron, but you said it was not working fine on older versions of Linux too? Or did I get lost somewhere? Are you sure you don't have some insidious packages attacking the device looking for other things as I have had a few times? Preston and I had some horrible experiences with different things.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Post Reply