Page 1 of 1

Problem turning on USB printer plugged to router [solved]

Posted: Wed Sep 24, 2014 3:06 am
by olmor
Hi!

I have router TP-LINK TL-MR3420 v2.
I installed Gargoyle 1.6.2 and USB printer plugin on it to use my
HP LaserJet CP 1025 printer.
After I disabled HP Smart Install feature, I was able to print
on my printer from Windows 7 network clients.
But there is an inconvenience:
when I plug printer already turned on to router - printer is detected by USB plugin and all i working fine,
but when I plug printer turned off to router and then turn it on (or turn it off, then turn on when already plugged) - printer is not detected by USB plugin until I restart router,
It seems that hotplug script works only with turned on printer and does not detect when printer is turning on.

Can someone help me? Thank you.

Re: turn on USB printer connected to the router

Posted: Wed Sep 24, 2014 3:56 am
by olmor
Now all scripts are standard.

When printer is turning on, it makes self calibration. It takes about 30 sec, maybe this is somehow related to the problem.

P.S.
HP LaserJet PRO CP 1025 does not need firmware upload as some other HP printers.

Re: turn on USB printer connected to the router

Posted: Wed Sep 24, 2014 2:13 pm
by olmor
Output from dmesg when printer is turning on

Code: Select all

[78921.080000] usb 1-1: new high-speed USB device number 21 using ehci-platform
[78921.530000] hub 1-0:1.0: unable to enumerate USB device on port 1

Re: Problem when turn on USB printer connected to the router

Posted: Thu Sep 25, 2014 6:22 am
by olmor
Is it possible to catch such event ("unable to enumerate") in scripts
and reboot router automatically to workaround the problem?

I tried to do this in "usb" and "usb-printer" scripts in /etc/hotplug.d/,
but it seems that they even does not fired in this case.

Re: Problem when turn on USB printer connected to the router

Posted: Fri Sep 26, 2014 3:06 am
by olmor
After firmware change to OpenWrt Barrier Breaker 14.07-rc3, USB printer detection is working fine in all cases. The problem is solved.

The only thing I have to workaround is 'p910nd start' issue, as described in
https://dev.openwrt.org/ticket/14909

I hope the next version of Gargoyle based on Barrier Breaker will fix this problem too.

Regards, Oleg