Problem turning on USB printer plugged to router [solved]

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
olmor
Posts: 7
Joined: Wed Nov 13, 2013 3:58 am

Problem turning on USB printer plugged to router [solved]

Post 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.
Last edited by olmor on Fri Sep 26, 2014 3:08 am, edited 2 times in total.

olmor
Posts: 7
Joined: Wed Nov 13, 2013 3:58 am

Re: turn on USB printer connected to the router

Post 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.

olmor
Posts: 7
Joined: Wed Nov 13, 2013 3:58 am

Re: turn on USB printer connected to the router

Post 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

olmor
Posts: 7
Joined: Wed Nov 13, 2013 3:58 am

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

Post 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.

olmor
Posts: 7
Joined: Wed Nov 13, 2013 3:58 am

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

Post 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

Post Reply