Problem printing - P910ND

Hello. Trying to print on a Xerox Phaser 3040 but no sucess.

Installed kmod-usb-printer, and p910nd. Printer ir recognized.

Dmesg

usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x0924 pid 0x3CF9

ls -la /dev/usb/

crw-rw---- 1 root lp 180, 0 Feb 26 21:23 lp0

cat /etc/config/p910nd

config p910nd
option device '/dev/usb/lp0'
option port '0'
option runas_root '0'
option mdns '0'
option mdns_ty 'My Printer Manufacturer/Model'
option mdns_note 'Basement'
option enabled '1'
option bind '192.168.15.252'
option bidirectional '1'

cat /etc/config/firewall

config rule
option dest_port '9100'
option src 'lan'
option name 'Printer'
option target 'ACCEPT'
list proto 'tcp'

netstat -tulpn | grep LISTEN

tcp 6 0 0.0.0.0:9100 0.0.0.0:* LISTEN 1563/p9100d
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1065/uhttpd
tcp 0 0 192.168.15.252:53 0.0.0.0:* LISTEN 881/dnsmasq
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 881/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 914/dropbear
tcp 0 0 :::80 :::* LISTEN 1065/uhttpd
tcp 0 0 fe80::ec08:6bff:fe9f:5392:53 :::* LISTEN 881/dnsmasq
tcp 0 0 fe80::ee08:6bff:fe9f:5392:53 :::* LISTEN 881/dnsmasq
tcp 0 0 fe80::ee08:6bff:fe9f:5390:53 :::* LISTEN 881/dnsmasq
tcp 0 0 fe80::ee08:6bff:fe9f:5391:53 :::* LISTEN 881/dnsmasq
tcp 0 0 fe80::ee08:6bff:fe9f:5393:53 :::* LISTEN 881/dnsmasq
tcp 0 0 fe80::ee08:6bff:fe9f:5393:53 :::* LISTEN 881/dnsmasq
tcp 0 0 ::1:53 :::* LISTEN 881/dnsmasq
tcp 0 0 :::22 :::* LISTEN 914/dropbear

I had tried bidirecional 0 and 1. None worked.
Should'n netstat listen on LAN IP (192.168.15.252)? Or could it be 0.0.0.0 since it's passed directly to USB?

I don't know what to try.

keep it simple for now:

config p910nd
        option device        /dev/usb/lp0
        option port          0
        option bidirectional 1
        option enabled       1

Why? Am I missing part of the story here?
OpenWrt defaults to accepting incoming connections from LAN, you shouldn't need a firewall rules for p910nd to work.

1 Like

Thank's. I will try and let you know. This one was generated by Luci.

I didn't got it, but decided to follow this guide, since i got no sucess. https://openwrt.org/docs/guide-user/services/print_server/p910nd.server

I changed the /etc/config/p910nd and did a reboot.
After reboot, turned on printer and it printed 2 Windows test page. I don't understand this after a reboot. If i send a job i still got error. Tried to reboot the router but got no print anymore.
Tried removing the firewall rule, turned service off and makes no difference.

Still no solution but i found something interesting. I will try later.