Hey folks;
I've been having some 'interesting' issues with a device that I've
happened upon recently. It's an Entrega U1-S9, which is a Serial (DB9
Male) adapter of sorts; I recently aquired it since my Vaio PCG-R505EL
doesn't have any serial port built onto the actual unit itself. I've
spent many days trying to solve this issue myself to no avail, so I
figured I'd turn to the list for some help. I've included some rather
verbose logs and descriptions below, but if those aren't enough, just let
me know and I'll do my best to provide what you're looking for.
The bottom line is that the device simply doesn't seem to be
sending and/or receiving data properly, as after extensive tests, I'm
unable to get a single bit of data in, or out. (Occasionally I'll get a
single byte of garbage, but that's all).
The device has been tested as working on another (Win*) box
without any problems. There's a LED on the front of the device which
remains red when active, but flashes green when there's serial activity.
Basically, I'm operating on kernel 2.5.42 (the reason being that a
lot of hardware in this Vaio requires the newer drivers present in 2.5.x
and not in the 2.4.x series. I realize this may be a problem unto itself,
but I had similar problems with this device on a 2.4.x testbed) When I
plug in the device for the first time, I get the infamous "host
controller halted. very bad" message. The device then seems to operate
in a 'half-working' state whereby the LED will flash a dull green whenever
there's data going out (from the computer), but won't flash anything when
there's data coming in. Regardless of the LED flashing, no data seems to
make it in or out.
I've enabled CONFIG_USB_SERIAL_DEBUG and have come up with some
interesting errors in various logs at this stage:
Oct 16 01:54:08 sol kernel: drivers/usb/host/uhci-hcd.c: 1800: host
controller halted. very bad
Oct 16 02:07:54 sol kernel: [ce4980c0] link (0e498062) element (0e4991e0)
Oct 16 02:07:54 sol kernel: 0: [ce4991e0] link (0e499210) e0 Stalled
CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=4, PID=2d(SETUP)
(buf=0250c800)
Oct 16 02:07:54 sol kernel: 1: [ce499210] link (0e499240) e3 SPD Active
Length=0 MaxLen=0 DT1 EndPt=0 Dev=4, PID=e1(OUT) (buf=0250c760)
Oct 16 02:07:54 sol kernel: 2: [ce499240] link (00000001) e3 IOC Active
Length=0 MaxLen=7ff DT1 EndPt=0 Dev=4, PID=69(IN) (buf=00000000)
Oct 16 02:07:54 sol kernel:
Oct 16 02:07:54 sol kernel: drivers/usb/serial/usb-serial.c:
ezusb_set_reset- 1 failed
Oct 16 02:07:54 sol kernel: [ce4980f0] link (0e498062) element (0e4991e0)
As a point of interest, the device seems to be assigned
/dev/usb/tts/0 and /dev/usb/tts/1 when it's first plugged in. Then, when
I remove it and plug it in again, the LED stays a solid red, and doesn't
flash green at all regardless of data flowing in or out of the device.
The driver then assigns it /dev/usb/tts/2 and /dev/usb/tts/3, which would
hint at the fact that something's not being released when it's unplugged:
Oct 16 01:54:08 sol kernel: drivers/usb/serial/usb-serial.c: USB Serial
support registered for Xircom / Entregra PGS - (prerenumeration)
Oct 16 01:54:08 sol kernel: drivers/usb/serial/usb-serial.c: Xircom /
Entregra PGS - (prerenumeration) converter detected
Oct 16 01:54:08 sol kernel: drivers/usb/core/usb.c: registered new driver
keyspan_pda
Oct 16 01:54:08 sol kernel: drivers/usb/serial/keyspan_pda.c: USB Keyspan
PDA Converter driver v1.1
Oct 16 01:54:08 sol /etc/hotplug/usb.agent: Setup keyspan_pda for USB
product 1645/8093/204
Oct 16 01:54:08 sol kernel: drivers/usb/core/usb.c: USB disconnect on
device 2
Oct 16 01:54:08 sol kernel: drivers/usb/serial/usb-serial.c: Xircom /
Entregra PGS - (prerenumeration) converter now disconnected from ttyUSB0
Oct 16 01:54:08 sol kernel: drivers/usb/serial/usb-serial.c: device
disconnected
Oct 16 01:54:08 sol /sbin/hotplug: arguments (usb) env (PWD=/etc/hotplug
ACTION=remove DEBUG=yes OLDPWD=/ DEVPATH=root/pci0/00:1d.0/usb1/1-1
SHLVL=1 HOME=/ PATH=/bin:/sbin:/usr/sbin:/usr/bin _=/usr/bin/env)
Oct 16 01:54:08 sol /sbin/hotplug: arguments (usb) env (PWD=/etc/hotplug
DEVICE=/proc/bus/usb/001/002 ACTION=remove DEBUG=yes OLDPWD=/
TYPE=255/255/255 DEVPATH=root/pci0/00:1d.0/usb1/1-1/1-1:0 SHLVL=1 HOME=/
PATH=/bin:/sbin:/usr/sbin:/usr/bin PRODUCT=1645/8093/204 _=/usr/bin/env)
Oct 16 01:54:08 sol /sbin/hotplug: invoke /etc/hotplug/usb.agent ()
Oct 16 01:54:08 sol /sbin/hotplug: invoke /etc/hotplug/usb.agent ()
Oct 16 01:54:08 sol /etc/hotplug/usb.agent: Bad USB agent invocation
Oct 16 01:54:10 sol kernel: drivers/usb/core/hub.c: new USB device
00:1d.0-1, assigned address 3
Oct 16 01:54:10 sol kernel: Product: ACME USB serial widget
Oct 16 01:54:10 sol kernel: Manufacturer: ACME usb widgets
Oct 16 01:54:10 sol kernel: SerialNumber: 47
Oct 16 01:54:10 sol kernel: drivers/usb/serial/usb-serial.c: Keyspan PDA
converter detected
Oct 16 01:54:10 sol kernel: drivers/usb/serial/usb-serial.c: Keyspan PDA
converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
Oct 16 01:54:10 sol kernel: drivers/usb/serial/usb-serial.c: Keyspan PDA
converter detected
Oct 16 01:54:10 sol kernel: drivers/usb/serial/usb-serial.c: Keyspan PDA
converter now attached to ttyUSB1 (or usb/tts/1 for devfs)
Oct 16 01:54:10 sol /sbin/hotplug: arguments (usb) env (PWD=/etc/hotplug
DEVICE=/proc/bus/usb/001/003 ACTION=add DEBUG=yes OLDPWD=/
TYPE=255/255/255 DEVPATH=root/pci0/00:1d.0/usb1/1-1/1-1:0 SHLVL=1 HOME=/
PATH=/bin:/sbin:/usr/sbin:/usr/bin PRODUCT=6cd/104/ab89 _=/usr/bin/env)
Oct 16 01:54:10 sol /sbin/hotplug: invoke /etc/hotplug/usb.agent ()
Oct 16 01:54:10 sol /sbin/hotplug: arguments (usb) env (PWD=/etc/hotplug
ACTION=add DEBUG=yes OLDPWD=/ DEVPATH=root/pci0/00:1d.0/usb1/1-1 SHLVL=1
HOME=/ PATH=/bin:/sbin:/usr/sbin:/usr/bin _=/usr/bin/env)
Oct 16 01:54:10 sol /sbin/hotplug: invoke /etc/hotplug/usb.agent ()
Oct 16 01:54:10 sol /etc/hotplug/usb.agent: Bad USB agent invocation
Oct 16 01:54:13 sol /etc/hotplug/usb.agent: Setup keyspan_pda for USB
product 6cd/104/ab89
Oct 16 01:54:13 sol /etc/hotplug/usb.agent: Setup keyspan_pda for USB
product 6cd/104/ab89
I've installed the latest hotplug and spent many hours configuring
and tweaking that, so somehow I doubt it's that. (Bypassing hotplug and
inserting all the modules by hand has the same effect, also)
Transmitting on the device brings this in the dmesg:
drivers/usb/serial/keyspan_pda.c: keyspan_pda_write(1)
drivers/usb/serial/usb-serial.c: serial_ioctl - port 2, cmd 0x5415
drivers/usb/serial/usb-serial.c: serial_chars_in_buffer = port 2
drivers/usb/serial/usb-serial.c: serial_chars_in_buffer = port 2
drivers/usb/serial/usb-serial.c: serial_chars_in_buffer = port 2
drivers/usb/serial/usb-serial.c: serial_write - port 2, 1 byte(s)
So, I'm at a loss as to what might be wrong here. I've also
included the output from 'lspci -v', which may be useful. Again, if I'm
missing anything, let me know, and I'll go fetch the information for you
:)
-- lspci -v: (Relevant USB controller portions only)
00:1d.0 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #1) (rev 02)
(prog-if 0
0 [UHCI])
Subsystem: Sony Corporation: Unknown device 8100
Flags: bus master, medium devsel, latency 0, IRQ 9
I/O ports at 1800 [size=32]
00:1d.1 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #2) (rev 02)
(prog-if 0
0 [UHCI])
Subsystem: Sony Corporation: Unknown device 8100
Flags: bus master, medium devsel, latency 0, IRQ 9
I/O ports at 1820 [size=32]
00:1d.2 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #3) (rev 02)
(prog-if 0
0 [UHCI])
Subsystem: Sony Corporation: Unknown device 8100
Flags: bus master, medium devsel, latency 0, IRQ 9
I/O ports at 1840 [size=32]
And as a closing note, the USB controller seems to work great with
other devices. I've got two Logitech 'Wingman' USB joysticks, and a Kodak
DC-260 Digital Camera, and all three devices work nicely. Anyway,
hopefully I didn't spam the list too badly, thanks in advance ;)
-- Randy Sommerfeld
-=-=[ http://cyan.weyland-yutani.net ]=-==-=[ [EMAIL PROTECTED] ]=-=-
"The world before the fall, Delightful is the light of dawn,
Noble is the heart of man."
(id: 1024D/2F4BF9DF) (fp: A006 D695 ABE8 E1B1 A1C4 0874 3252 8857 2F4B F9DF)
-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users