LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-22-2011, 05:45 AM   #1
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 343

Rep: Reputation: 2
USB<=>serial (TI USB 3410) detection problems


Hello,

I'm attempting to connect an evaluation board that uses
USB<=>serial adapter (TI USB 3410) to program its internals.
The board is located few meters from the LINUX server.
At first I used 32 ft USB extension cable with repeater
and additional 3m cable after the repeater to connect to the
USB port on the EVB. Afer plugging the other end into the USB
port of the LINUX server (in fact, after multiple pluggings
and unpluggings) and running "dmesg > file" I've got
the following:

see attached dmesg_usbserial_TUSB3410_errors.log

The last lines:

Code:
usb 2-4: new high speed USB device using ehci_hcd and address 49
usb 2-4: configuration #1 chosen from 1 choice
hub 2-4:1.0: USB hub found
hub 2-4:1.0: 4 ports detected
usb 2-4.4: new full speed USB device using ehci_hcd and address 50
usb 2-4.4: configuration #1 chosen from 1 choice
ti_usb_3410_5052 2-4.4:1.0: TI USB 3410 1 port adapter converter detected
usb 2-4.4: ti_download_firmware - error downloading firmware, -71
ti_usb_3410_5052: probe of 2-4.4:1.0 failed with error -5
usb 2-4: clear tt 4 (1321) error -71
usb 2-4: USB disconnect, address 49
usb 2-4.4: USB disconnect, address 50
usb 2-4: new high speed USB device using ehci_hcd and address 51
usb 2-4: device descriptor read/all, error -71
ehci_hcd 0000:00:1d.7: port 4 reset error -110
hub 2-0:1.0: hub_port_status failed (err = -32)
hub 2-0:1.0: Cannot enable port 4.  Maybe the USB cable is bad?
usb 2-4: new high speed USB device using ehci_hcd and address 53
usb 2-4: configuration #1 chosen from 1 choice
hub 2-4:1.0: USB hub found
hub 2-4:1.0: 4 ports detected
usb 2-4.4: new full speed USB device using ehci_hcd and address 54
usb 2-4.4: configuration #1 chosen from 1 choice
ti_usb_3410_5052 2-4.4:1.0: TI USB 3410 1 port adapter converter detected
usb 2-4.4: ti_download_firmware - error downloading firmware, -71
ti_usb_3410_5052: probe of 2-4.4:1.0 failed with error -5
usb 2-4: clear tt 4 (1361) error -71
hub 2-4:1.0: hub_port_status failed (err = -71)
usb 2-4: USB disconnect, address 53
usb 2-4.4: USB disconnect, address 54
usb 2-4: new high speed USB device using ehci_hcd and address 55
usb 2-4: configuration #1 chosen from 1 choice
hub 2-4:1.0: USB hub found
hub 2-4:1.0: 4 ports detected
hub 2-4:1.0: hub_port_status failed (err = -71)
hub 2-4:1.0: hub_port_status failed (err = -71)
hub 2-4:1.0: hub_port_status failed (err = -71)
hub 2-4:1.0: hub_port_status failed (err = -71)
usb 2-4: USB disconnect, address 55
usb 2-4: new high speed USB device using ehci_hcd and address 56
usb 2-4: configuration #1 chosen from 1 choice
hub 2-4:1.0: USB hub found
hub 2-4:1.0: 4 ports detected
usb 2-4.4: new full speed USB device using ehci_hcd and address 57
usb 2-4: clear tt 4 (8390) error -71
usb 2-4.4: string descriptor 0 read error: -71
usb 2-4: clear tt 4 (8390) error -71
usb 2-4: clear tt 4 (8390) error -71
usb 2-4.4: string descriptor 0 read error: -71
usb 2-4: clear tt 4 (8390) error -71
usb 2-4: clear tt 4 (8390) error -71
usb 2-4.4: string descriptor 0 read error: -71
usb 2-4: clear tt 4 (8390) error -71
usb 2-4.4: configuration #1 chosen from 1 choice
usb 2-4.4: can't set config #1, error -71
usb 2-4: clear tt 4 (0390) error -71
hub 2-4:1.0: hub_port_status failed (err = -71)
usb 2-4: USB disconnect, address 56
usb 2-4.4: USB disconnect, address 57
usb 2-4: new high speed USB device using ehci_hcd and address 58
usb 2-4: device not accepting address 58, error -71
usb 2-4: new high speed USB device using ehci_hcd and address 59
usb 2-4: device not accepting address 59, error -71
usb 2-4: new high speed USB device using ehci_hcd and address 60
usb 2-4: device not accepting address 60, error -71
usb 2-4: new high speed USB device using ehci_hcd and address 61
usb 2-4: device descriptor read/8, error -71
usb 2-4: device descriptor read/8, error -71
usb 7-2: new full speed USB device using uhci_hcd and address 4
usb 7-2: configuration #1 chosen from 1 choice
ti_usb_3410_5052 7-2:1.0: TI USB 3410 1 port adapter converter detected
usb 7-2: reset full speed USB device using uhci_hcd and address 4
usb 7-2: device firmware changed
ti_usb_3410_5052: probe of 7-2:1.0 failed with error -5
usb 7-2: USB disconnect, address 4
usb 7-2: new full speed USB device using uhci_hcd and address 5
usb 7-2: configuration #1 chosen from 2 choices
ti_usb_3410_5052 7-2:1.0: TI USB 3410 1 port adapter converter detected
ti_usb_3410_5052: probe of 7-2:1.0 failed with error -5
usb 2-4: new high speed USB device using ehci_hcd and address 49
usb 2-4: configuration #1 chosen from 1 choice
hub 2-4:1.0: USB hub found
hub 2-4:1.0: 4 ports detected
usb 2-4.4: new full speed USB device using ehci_hcd and address 50
usb 2-4.4: configuration #1 chosen from 1 choice
ti_usb_3410_5052 2-4.4:1.0: TI USB 3410 1 port adapter converter detected
usb 2-4.4: ti_download_firmware - error downloading firmware, -71
ti_usb_3410_5052: probe of 2-4.4:1.0 failed with error -5
usb 2-4: clear tt 4 (1321) error -71
usb 2-4: USB disconnect, address 49
usb 2-4.4: USB disconnect, address 50
usb 2-4: new high speed USB device using ehci_hcd and address 51
usb 2-4: device descriptor read/all, error -71
ehci_hcd 0000:00:1d.7: port 4 reset error -110
hub 2-0:1.0: hub_port_status failed (err = -32)
hub 2-0:1.0: Cannot enable port 4.  Maybe the USB cable is bad?
usb 2-4: new high speed USB device using ehci_hcd and address 53
usb 2-4: configuration #1 chosen from 1 choice
hub 2-4:1.0: USB hub found
hub 2-4:1.0: 4 ports detected
usb 2-4.4: new full speed USB device using ehci_hcd and address 54
usb 2-4.4: configuration #1 chosen from 1 choice
ti_usb_3410_5052 2-4.4:1.0: TI USB 3410 1 port adapter converter detected
usb 2-4.4: ti_download_firmware - error downloading firmware, -71
ti_usb_3410_5052: probe of 2-4.4:1.0 failed with error -5
usb 2-4: clear tt 4 (1361) error -71
hub 2-4:1.0: hub_port_status failed (err = -71)
usb 2-4: USB disconnect, address 53
usb 2-4.4: USB disconnect, address 54
usb 2-4: new high speed USB device using ehci_hcd and address 55
usb 2-4: configuration #1 chosen from 1 choice
hub 2-4:1.0: USB hub found
hub 2-4:1.0: 4 ports detected
hub 2-4:1.0: hub_port_status failed (err = -71)
hub 2-4:1.0: hub_port_status failed (err = -71)
hub 2-4:1.0: hub_port_status failed (err = -71)
hub 2-4:1.0: hub_port_status failed (err = -71)
usb 2-4: USB disconnect, address 55
usb 2-4: new high speed USB device using ehci_hcd and address 56
usb 2-4: configuration #1 chosen from 1 choice
hub 2-4:1.0: USB hub found
hub 2-4:1.0: 4 ports detected
usb 2-4.4: new full speed USB device using ehci_hcd and address 57
usb 2-4: clear tt 4 (8390) error -71
usb 2-4.4: string descriptor 0 read error: -71
usb 2-4: clear tt 4 (8390) error -71
usb 2-4: clear tt 4 (8390) error -71
usb 2-4.4: string descriptor 0 read error: -71
usb 2-4: clear tt 4 (8390) error -71
usb 2-4: clear tt 4 (8390) error -71
usb 2-4.4: string descriptor 0 read error: -71
usb 2-4: clear tt 4 (8390) error -71
usb 2-4.4: configuration #1 chosen from 1 choice
usb 2-4.4: can't set config #1, error -71
usb 2-4: clear tt 4 (0390) error -71
hub 2-4:1.0: hub_port_status failed (err = -71)
usb 2-4: USB disconnect, address 56
usb 2-4.4: USB disconnect, address 57
usb 2-4: new high speed USB device using ehci_hcd and address 58
usb 2-4: device not accepting address 58, error -71
usb 2-4: new high speed USB device using ehci_hcd and address 59
usb 2-4: device not accepting address 59, error -71
usb 2-4: new high speed USB device using ehci_hcd and address 60
usb 2-4: device not accepting address 60, error -71
usb 2-4: new high speed USB device using ehci_hcd and address 61
usb 2-4: device descriptor read/8, error -71
usb 2-4: device descriptor read/8, error -71
usb 7-2: new full speed USB device using uhci_hcd and address 4
usb 7-2: configuration #1 chosen from 1 choice
ti_usb_3410_5052 7-2:1.0: TI USB 3410 1 port adapter converter detected
usb 7-2: reset full speed USB device using uhci_hcd and address 4
usb 7-2: device firmware changed
ti_usb_3410_5052: probe of 7-2:1.0 failed with error -5
usb 7-2: USB disconnect, address 4
usb 7-2: new full speed USB device using uhci_hcd and address 5
usb 7-2: configuration #1 chosen from 2 choices
ti_usb_3410_5052 7-2:1.0: TI USB 3410 1 port adapter converter detected
ti_usb_3410_5052: probe of 7-2:1.0 failed with error -5
The lines like:

hub 2-0:1.0: Cannot enable port 4. Maybe the USB cable is bad?

caused me to think that maybe it's the issue of a too long cable
causing some termination problems (made in china). So I moved
the EVB closer so that I could replace the 3m cable (after the
32 ft with repeater) with 0.5m cable. But I've got
similar errors. Then, just to exclude the possibility
of the long cable with the repeater causing the problems
I moved to board to totally unpractical place less that 3m
from the server and connected the 3m cable without repeater -
same errors. One of them is about failure to download firmware
which puzzles me.

Can anyone look at the errors and tell me if I'm missing something?
Where the firmware file should be taken from and where should it
be placed? The system I'm running is:

Code:
[root@as-10 firmware]# uname -a
Linux as-10.site.local 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@as-10 board_usbserial]# ls -l /lib/firmware
total 0

Thahks in advance for any ideas,
kaza.
Attached Files
File Type: log dmesg_usbserial_TUSB3410_errors.log (120.4 KB, 12 views)
 
Old 08-29-2011, 12:50 AM   #2
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 343

Original Poster
Rep: Reputation: 2
Hello again,

some more info:

In my attempts to experiment with various connection configurations
I attempted to check if the 32ft cable with a repeater can work under
Windows: I connected one end of that cable to a laptop when a FLASH
memory stick is connected to the repeater side. The Windows (7) detected
the device and I could read and write files to it, so it seems, it's not
impossible for a cable that long to transfer data reliably. OTOH,
connecting the same 32ft cable to the LINUX server USB port results
in many errors in the "dmesg", sometimes the "TI USB 3410" is detected
but soon disconnected and sometimes it's not detected at all. Browsing
through various files of the USB drivers C sources, it seems that error "-71"
is "protocol error". I also attempted to test a stand-alone "USB to serial"
dongle (keyspan): when I connect it directly to the USB port of the LINUX server,
the green LED on it starts flashing with a period of about 2 seconds, which,
according to the manual is "OK" condition and also, I can "cat file > /dev/ttyUSB0"
without any problem. But, if I connect the same dongle through the 32ft cable,
the green LED starts flashing erratically (sometimes slow, sometimes fast, seems like
at random) which, according to the manual, is an indication of a problem and also,
an attempt to do "cat file > /dev/ttyUSB0" results in error "no such device" despite the
fact that "ls -l /dev" lists "ttyUSB0".

Can it be that the hardware implementation of the laptop USB port is different from
LINUX server USB port, resulting in the same cable working under Windows but not
under LINUX?

Can it be that the Windows USB driver reduces the speed when it senses problems
at higher connection speed while the LINUX USB driver attempts to connect only
at full speed?

Is there any way to manually reduce the speed at which LINUX USB driver (or
ti_usb_3410_5052 driver) attempts to connect?

Thanks in advance for any ideas,
kaza.
 
Old 08-29-2011, 12:03 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
In the USB 2.0 spec, the maximum cable length is 5m
I don't understand "Repeaters" !

Your TI USB 3410 device needs firmware to work. The file is called ti_3410.fw
and on my ububtu 10.04 distro this is in /lib/firmware

I suggest you try to get it working with a short USB cable, then try "Repeaters".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
one GSM/GPRS/3G usb stick modem creates 3 usb serial devices radu.pop Linux - General 2 07-16-2010 01:32 AM
Detection problems when hot plugging USB devices katesfb Linux - Newbie 5 12-11-2008 01:40 PM
pilot-link not working with USB Serial-USB Converter with m105 calmofthestorm Linux - Laptop and Netbook 0 09-03-2005 02:03 PM
Nokia DKU-5 cable based on TI USB 3410 titus78 Linux - Hardware 0 04-21-2005 05:39 AM
usb digital camera detection problems on Fedora Core 2 smekes Linux - Hardware 1 12-12-2004 10:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration