P910nd: multiple printers

Are there any users out there who utilize more than 1 printer via p910nd?

And if there are, could you share a snippet of your dmesg kernel logs showing the usb ports being set up?

I'm attempting a JS port of p910nd luci. If anyone has the ability to test the GUI portion and report any weirdness to me, that'd would be helpful :slight_smile:

Look ( i test at this time with 2 * printers & USB-HUB ) :
*
https://www.minihere.com/how-to-install-p910nd-printer-server-on-openwrt-firmware.html

do you have dmesg kernel log output for that?

When i connect the USB-HUB with Epson Printer XP-205 & KONICA Magicolor 1690MF i have this:


[ 5158.219381] usblp 1-1.2:1.1: usblp0: USB Bidirectional printer dev 33 if 1 alt 0 proto 2 vid 0x04B8 pid 0x0896
[ 5158.325744] usb 1-1.3: new full-speed USB device number 34 using xhci-mtk
[ 5158.383287] hotplug(usb/20-saned): Granting g+w to '/sys/bus/usb/drivers/usblp/bind' for group 'scanner'
[ 5158.458248] hub 1-1.3:1.0: USB hub found
[ 5158.462382] hub 1-1.3:1.0: 4 ports detected
[ 5158.565701] usb 1-1.4: new full-speed USB device number 35 using xhci-mtk
[ 5158.698305] hub 1-1.4:1.0: USB hub found
[ 5158.702489] hub 1-1.4:1.0: 4 ports detected
[ 5159.005622] usb 1-1.1: new full-speed USB device number 36 using xhci-mtk
[ 5159.161264] usb 1-1.1: not running at top speed; connect to a high speed hub
[ 5159.234866] usblp 1-1.1:1.1: usblp1: USB Bidirectional printer dev 36 if 1 alt 0 proto 2 vid 0x132B pid 0x2089
[ 5159.254860] usblp 1-1.1:1.2: usblp2: USB Bidirectional printer dev 36 if 2 alt 0 proto 2 vid 0x132B pid 0x2089
[ 5159.399079] hotplug(usb/20-saned): Granting g+w to '/sys/bus/usb/drivers/usblp/bind' for group 'scanner'
[ 5159.509012] hotplug(usb/20-saned): Granting g+w to '/sys/bus/usb/drivers/usblp/bind' for group 'scanner'

OK - thanks. I figured this is what it would look like, but just wanted confirmation from others in the wild.

Looks like one of the devices have a scanner built in, right?

Yes each printer is with scanner & i have sane xinetd installed

interesting - does that output via TCP or to something locally on the FS?

Also, do you load any special firmwares for the printers on connect, or just plug and print?

Test without special firmware with my Brother HL-3040CN using USB port

Could you please post a copy of the following from your openwrt device with multiple printers connected?

cat /sys/kernel/debug/usb/devices

I don't have multiple, and I wonder whether my theory of whether it is possible to build the usblp 1-1.1:1.2: format from /sys/kernel/debug/usb/devices holds true.

I only have a single printer and I get e.g.

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 33 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=03f0 ProdID=4117 Rev= 1.00
S:  Manufacturer=Hewlett-Packard
S:  Product=HP LaserJet 1018
S:  SerialNumber=KP24ZJ1
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 98mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

at this time i have 2 printers: with a Hub USB 2.0 ALCOR

lsusb
*
Bus 001 Device 067: ID 05e3:0606 ALCOR USB Hub 2.0
Bus 002 Device 001: ID 1d6b:0003 Linux 5.10.87 xhci-hcd xHCI Host Controller
Bus 001 Device 069: ID 04b8:0896 EPSON EPSON XP-205 207 Series
Bus 001 Device 068: ID 04e8:328b Samsung Electronics Co., Ltd. ML-1630 Series
Bus 001 Device 066: ID 05e3:0606 ALCOR USB Hub 2.0
Bus 001 Device 065: ID 05e3:0606 ALCOR USB Hub 2.0
Bus 001 Device 001: ID 1d6b:0002 Linux 5.10.87 xhci-hcd xHCI Host Controller
*
cat /sys/kernel/debug/usb/devices
*
...
...
T: Bus=01 Lev=02 Prnt=65 Port=00 Cnt=01 Dev#= 69 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=04b8 ProdID=0896 Rev= 1.00
S: Manufacturer=EPSON
S: Product=EPSON XP-205 207 Series
S: SerialNumber=514A464B3436333818
...
...
T: Bus=01 Lev=03 Prnt=66 Port=00 Cnt=01 Dev#= 68 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=04e8 ProdID=328b Rev= 1.00
S: Manufacturer=Samsung Electronics Co., Ltd.
S: Product=ML-1630 Series
S: SerialNumber=4589BFFSC00894Z.
...
...

1 Like

Please note that the hub must deliver sufficient power. At home it has an external power supply of 5V / 2A

1 Like