I try to connect my PC with my laptop through a USB cable that uses the Prolific PL2301 Chip and followed the instructions of the USB Host-to-Host Networking Guide (www.linux-usb.org/usbnet):

# modprobe usbnet
# ifconfig usb0 192.168.0.1 up (PC)
# ifconfig usb0 192.168.0.2 up (Laptop)
# ping 192.168.0.2

After some time, ping stops receiving packages, but does not output any error message. Restarting ping does not help. In order to reestablish the connection, I have to do the following on both computers:

# ifconfig usb0 down
# modprobe -r usbnet
# modprobe usbnet
# ifconfig usb0 192.168.0.1 up (PC)
# ifconfig usb0 192.168.0.2 up (Laptop)

Both Computers have an OHCI host adapter and a linux kernel version 2.4.20 installed. But after I connected each end of the cable with a friend's laptop that uses usb-uhci, the connection did not work, either.

With the networking tool 'netcat', I found out that the error only occurs when I try to send big files (>300kb). Small text messages went through without a problem.
After defining "DEBUG" and "VERBOSE" in drivers/usb/usbnet.c the kernel reports the following in the event of the error:

Jan 18 20:42:24 erde kernel: usb0: < rx, len 16450, type 0x8
Jan 18 20:42:24 erde kernel: usb0: > tx, len 66, type 0x8
Jan 18 20:42:24 erde kernel: usb0: < rx, len 66, type 0x8
Jan 18 20:42:24 erde kernel: usb0: > tx, len 66, type 0x8
Jan 18 20:42:25 erde kernel: usb0: < rx, len 66, type 0x8
Jan 18 20:42:25 erde kernel: usb0: > tx, len 66, type 0x8
Jan 18 20:42:25 erde kernel: usb0: > tx, len 66, type 0x8
Jan 18 20:42:25 erde kernel: usb0: < rx, len 16450, type 0x8
Jan 18 20:42:25 erde kernel: usb0: > tx, len 66, type 0x8
Jan 18 20:42:27 erde last message repeated 2 times
Jan 18 20:42:34 erde kernel: NETDEV WATCHDOG: usb0: transmit timed out
Jan 18 20:42:34 erde kernel: usbnet.c: usb0 tx: err -104
Jan 18 20:42:40 erde kernel: usb0: > tx, len 66, type 0x8
Jan 18 20:42:49 erde kernel: NETDEV WATCHDOG: usb0: transmit timed out
Jan 18 20:42:49 erde kernel: usbnet.c: usb0 tx: err -104
Jan 18 20:42:49 erde kernel: usb0: > tx, len 66, type 0x8
Jan 18 20:42:59 erde kernel: NETDEV WATCHDOG: usb0: transmit timed out
Jan 18 20:42:59 erde kernel: usbnet.c: usb0 tx: err -104

I have also tried an old 2.4.0 kernel with the "plusb" module and got the same error. Win32 drivers work correctly, however, such that a hardware error is unlikely.

As the sources of the "plusb" module told me to raise the MTU for the transfer of large files, I tried a MTU of 16436. After that, larger files really went through, but nevertheless the transfer stops after a while - only later.

With debug messages turned on, the connection seems to stop a little earlier and if "REALLY_QUEUE" is defined in the sources, it is even worse.

Googling through the web and through the newsgroups archive did not help. I have just found out that prolific chip support is bad because the reset function does not work correctly. Maybe this is the reason for the error?

This is my computers' environment:

PC (192.168.0.1)
================

# cat /proc/interrupts
CPU0
0: 357579 XT-PIC timer
1: 17441 XT-PIC keyboard
2: 0 XT-PIC cascade
3: 0 XT-PIC ehci-hcd
5: 668 XT-PIC usb-ohci, eth0, SiS SI7012
8: 1 XT-PIC rtc
9: 145 XT-PIC usb-ohci
11: 0 XT-PIC usb-ohci
14: 129857 XT-PIC ide0
15: 5 XT-PIC ide1
NMI: 0
ERR: 0

# cat /proc/bus/usb/drivers
usbdevfs
hub
hid
usbnet

# cat /proc/bus/usb/devices
T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 6
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.04
S: Manufacturer=Linux 2.4.20-udf ehci-hcd
S: Product=PCI device 1039:7002 (Silicon Integrated Systems [SiS])
S: SerialNumber=00:03.3
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB OHCI Root Hub
S: SerialNumber=d4812000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=067b ProdID=0000 Rev= 0.00
S: Manufacturer=Prolific Technology Inc.
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbnet
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=1ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB OHCI Root Hub
S: SerialNumber=d4810000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 93/900 us (10%), #Int= 1, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB OHCI Root Hub
S: SerialNumber=d480e000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
B: Alloc= 93/900 us (10%), #Int= 1, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB OHCI Root Hub
S: SerialNumber=d480e000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=045e ProdID=0023 Rev= 1.21
S: Manufacturer=Microsoft
S: Product=Microsoft Trackball OpticalR
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=hid
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=10ms

# ifconfig usb0
usb0 Link encap:Ethernet HWaddr 52:9A:12:D4:E8:78
inet addr:192.168.0.1 Bcast:192.168.0.255 Maske:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:16436 Metric:1
RX packets:43 errors:0 dropped:0 overruns:0 frame:0
TX packets:45 errors:12 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:125874 (122.9 Kb) TX bytes:3730 (3.6 Kb)

Laptop (192.168.0.2)
====================

# cat /proc/interrupts
CPU0
0: 6097 XT-PIC timer
1: 65 XT-PIC keyboard
2: 0 XT-PIC cascade
11: 10 XT-PIC usb-ohci
12: 0 XT-PIC PS/2 Mouse
14: 1542 XT-PIC ide0
15: 4 XT-PIC ide1
NMI: 0
ERR: 0

# cat /proc/bus/usb/drivers
usbdevfs
hub
hid
usbnet

# cat /proc/bus/usb/devices
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB OHCI Root Hub
S: SerialNumber=c520e000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=067b ProdID=0000 Rev= 0.00
S: Manufacturer=Prolific Technology Inc.
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbnet
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=1ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms

# ifconfig usb0
usb0 Link encap:Ethernet HWaddr 2A:A2:73:E7:4B:56
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100


Thanks in advance,

Martin




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to