Log in

Bekijk de volledige versie : USB Hub and printer does not work



Tamadite
01-10-2008, 21:35
Asus: WL-500gP (v1)
Ver: Oleg 1.9.2.7-10

On the 2 in-built ports of the WL-500gp I have connected a pen drive used as boot and an USB Hub. On the USB hub I have an extra hard drive and a printer.

When I boot the router with the USB Hub and the printer connected to it, the printer gets detected as follows:


Jan 1 01:00:03 kernel: printer.c: Disabling reads from problem bidirectional printer on usblp0
Jan 1 01:00:03 kernel: printer.c: usblp0: USB Unidirectional printer dev 5 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0604
Jan 1 01:00:03 kernel: printer.c: usblp0 Device ID string [174]='MFG:HEWLETT-PACKARD;MDL:DESKJET 840C;CMD:MLC,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hew lett-Packard DeskJet 840C;SERN:ABCDABCDABCD;VSTATUS:$HB0$FC0,ff,DN,IDLE ,CUT;VP:0800,FL,B0;'
Jan 1 01:00:03 kernel: printer.c: v0.13: USB Printer Device Class driver
Oct 1 20:46:17 kernel: printer.c: usblp0 Device ID string [174/max 1552]='MFG:HEWLETT-PACKARD;MDL:DESKJET 840C;CMD:MLC,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hew lett-Packard DeskJet 840C;SERN:ABCDABCDABCD;VSTATUS:$HB0$FC0,ff,DN,IDLE ,CUT;VP:0800,FL,B0;'
Oct 1 20:46:17 kernel: printer.c: Parsing USBLPID...
Oct 1 20:48:49 kernel: printer.c: usblp0 Device ID string [174/max 1552]='MFG:HEWLETT-PACKARD;MDL:DESKJET 840C;CMD:MLC,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hew lett-Packard DeskJet 840C;SERN:ABCDABCDABCD;VSTATUS:$HB0$FC0,ff,DN,IDLE ,CUT;VP:0800,FL,B0;'
Oct 1 20:48:49 kernel: printer.c: Parsing USBLPID...
Oct 1 20:50:09 kernel: printer.c: usblp0: removed

If I try to print from here (RAW) then nothing happens. The log shows:



Oct 1 21:15:42 p9100d[101]: Connection from 192.168.1.167 port 1598 accepted
Oct 1 21:15:42 p9100d[101]: /dev/usb/lp0: No such file or directory
Oct 1 21:15:42 p9100d[101]: Finished job: 4244 bytes received


If I try with LPR then I get error message on my laptop while sending the job to the printer.

If I connect the printer directly to the router (without rebooting) I have no problem printing. if I connect the printer back to the USB hub then it does not work; lp0 under /dev/usb/ dissapears.

Process


p9100d -f /dev/usb/lp0 0


Is listed at any time.

Any idea?

dyonisos
01-10-2008, 23:02
try using a 1.0 USB Hub or alternatively do a rmmod ehci-hcd when using 2.0 USB Hub. Cheers.

Tamadite
02-10-2008, 17:06
Problem fixed by "rmmod ehci-hcd". Thanx!

al37919
03-10-2008, 06:11
Problem fixed by "rmmod ehci-hcd". Thanx!
Don't forget that now your hdd and pen drive also work as USB1 devices.

Tamadite
03-10-2008, 08:31
Don't forget that now your hdd and pen drive also work as USB1 devices.

My God! What a drop!!!


hdparm -tT /dev/scsi/host0/bus0/target0/lun0/disc gives

with ehci-hcd (USB2.0)


Timing cached reads: 96 MB in 2.00 seconds = 48.00 MB/sec
Timing buffered disk reads: 18 MB in 3.14 seconds = 5.73 MB/sec

without ehci-hcd (USB1.1)


Timing cached reads: 96 MB in 1.99 seconds = 48.00 MB/sec
Timing buffered disk reads: 4 MB in 5.55 seconds = 738.02 kB/sec

al37919
03-10-2008, 10:24
In principle you may try different usb2 hub. At least in my case HPDJ6122 works flawless through dlink DUB-H7. However, I know that PL2303 based usb->com converter works only directly from router.

You may also try to connect printer directly, and both drives through the hub. If this will work it would be the easiest solution.

darius
03-10-2008, 12:37
In principle you may try different usb2 hub. At least in my case HPDJ6122 works flawless through dlink DUB-H7. However, I know that PL2303 based usb->com converter works only directly from router.

You may also try to connect printer directly, and both drives through the hub. If this will work it would be the easiest solution.

Hi,

please tell me, if my PL2303 based usb->com converter really works.
And how to test gprs modem connected via Prolific anyway ?

Darius

dmesg
______
....
usb.c: USB device 4 (vend/prod 0x67b/0x2303) is not claimed by any active driver.
...

usb.c: kusbd: /sbin/hotplug add 4
usb.c: registered new driver serial
usbserial.c: USB Serial support registered for Generic
usbserial.c: Generic converter detected
usbserial.c: Buffer size for bulk_in is 64 modem reports 64
usbserial.c: Buffer size for bulk_out is 64 modem reports 64
usbserial.c: Generic converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
usb.c: serial driver claimed interface 81476280
usbserial.c: USB Serial Driver core v1.4

Tamadite
03-10-2008, 13:32
It seems it is possible to unbind a specific USB port from ehci-hcd to avoid this sort of conflicts. What I'm trying to find out is how to do this with our Asus.

Tamadite
03-10-2008, 16:54
I do not know how this happened but after installing usbutils I got the printer (USB1.1 connected to a USB2.0 hub) to work. Now everything works with ehci-hcd. What I do not remember seeing before is the last line when executing lsmod.


[XXXX]$ lsmod
Module Size Used by Tainted: P
ipt_psd 42968 1
ipt_recent 11640 9
printer 12900 0
ip_nat_ftp 3912 0 (unused)
ip_conntrack_ftp 5216 1
ipt_NETMAP 960 2
ip_nat_starcraft 2208 0 (unused)
wl 892280 0 (unused)
et 31288 0 (unused)
usb-storage 63928 10
sd_mod 13276 20
scsi_mod 70200 3 [usb-storage sd_mod]
usb-uhci 28580 0 (unused)
ehci-hcd 23804 0 (unused)
usbcore 78496 1 [printer usb-storage usb-uhci ehci-hcd]


Pen Drive (boot)

[XXXXX]$ hdparm -tT /dev/scsi/host0/bus0/target0/lun0/disc

/dev/scsi/host0/bus0/target0/lun0/disc:
Timing cached reads: 96 MB in 2.01 seconds = 47.76 MB/sec
Timing buffered disk reads: 16 MB in 3.17 seconds = 5.05 MB/sec


Hard drive in USB2.0 Hub

[XXXX]$ hdparm -tT /dev/scsi/host1/bus0/target0/lun0/disc

/dev/scsi/host1/bus0/target0/lun0/disc:
Timing cached reads: 98 MB in 2.02 seconds = 48.51 MB/sec
Timing buffered disk reads: 26 MB in 3.17 seconds = 8.20 MB/sec

Tamadite
25-10-2008, 23:36
At the end this became very unstable so I put my pen drive and hard drive in the USB hub and the printer in the second USB port on the router. I have rebooted it a couple of times and it boots from the pen drive without problems.