Hello.
I have an Archer C7 v5 with OpenWrt 21.02.1
I am using USB port to expand storage space.
Would it be possible to use a USB HUB to connect the pen drive and an old USB printer?
Thanks
Hello.
I have an Archer C7 v5 with OpenWrt 21.02.1
I am using USB port to expand storage space.
Would it be possible to use a USB HUB to connect the pen drive and an old USB printer?
Thanks
Yes it would.
I will test then
I installed the packages and enabled p910nd - Printer server, in windows I added the ip/port, but I can't print.
Any tips?
root@OpenWrt:~# opkg install kmod-usb-printer
Installing kmod-usb-printer (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ath79/generic /packages/kmod-usb-printer_5.4.154-1_mips_24kc.ipk
Configuring kmod-usb-printer.
root@OpenWrt:~# opkg install p910nd
Installing p910nd (0.97-9) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mips_24kc/pa ckages/p910nd_0.97-9_mips_24kc.ipk
Configuring p910nd.
root@OpenWrt:~# opkg install luci-app-p910nd
Installing luci-app-p910nd (git-20.108.38431-8f34e10) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mips_24kc/lu ci/luci-app-p910nd_git-20.108.38431-8f34e10_all.ipk
Installing luci-compat (git-22.046.85744-f08a0f6) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mips_24kc/lu ci/luci-compat_git-22.046.85744-f08a0f6_all.ipk
Configuring luci-compat.
Configuring luci-app-p910nd.
uci: Entry not found
uci: Entry not found
root@OpenWrt:~# ls /dev/usb/lp*
/dev/usb/lp0
[ 868.317510] usb 1-1.4: new high-speed USB device number 5 using ehci-platform
[ 868.556869] usblp 1-1.4:1.0: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3D17
Not found, and now?
Hi!
I have printer HP LJ P1005, he is already connected on my router with OpenWRT, and worked with comand: "cat /usr/lib/sihpP1005.dl > /dev/usb/lp0". p910nd started up too. With next reboot or power off/on i must again type comand: "cat /usr/lib/sihpP1005.dl > /dev/usb/lp0" from ssh console.
Question!
How to make up add AUTORUN SCRIPT for this... and there place SCRIPT file?
P. S. I see more scripts, but i not understand how it works...
Please, help me...
https://forum.archive.openwrt.org/viewtopic.php?id=38325
I'm not sure, but I think I have to send the firmware(?), every time the printer turns on
I wasn't finding the file to download, the links are broken, but I found it here:
http://oleg.wl500g.info/hplj/?C=N;O=D
It's working now
Probably embedded in the driver package, and with some luck, extractable.
Going a little further.
Every time the printer is on and I restart the router the below command will be executed and the printer works, but if I restart the printer I have to send the command again via putty.
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
cat /usr/lib/sihpP1005.dl > /dev/usb/lp0
exit 0
I read about hotplug but I'm not sure how to do the script
In the /etc/hotplug.d/usbmisc folder I have the 20-p910nd file
If I add the command in that file will it work when I restart the printer?
Change from this:
#!/bin/sh
case "$ACTION" in
add)
[ -n "${DEVNAME}" ] && [ "${DEVNAME##usb/lp*}" = "" ] && {
chmod 660 /dev/"$DEVNAME"
chgrp lp /dev/"$DEVNAME"
}
;;
remove)
# device is gone
;;
esac
To this:
#!/bin/sh
case "$ACTION" in
add)
[ -n "${DEVNAME}" ] && [ "${DEVNAME##usb/lp*}" = "" ] && {
chmod 660 /dev/"$DEVNAME"
chgrp lp /dev/"$DEVNAME"
cat /usr/lib/sihpP1005.dl > /dev/usb/lp0
}
;;
remove)
# device is gone
;;
esac
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.