Can`t access my printer with p910nd no response

Hi,

I`ve got no response from my printer.
This is my setup: Windows10 OS; Ubuntu LTE OS and Debian OS wiht OpenWrt

root@OpenWrt:/etc/config# opkg list-installed | grep usb
kmod-usb-core - 5.15.137-1
kmod-usb-dwc3 - 5.15.137-1
kmod-usb-dwc3-qcom - 5.15.137-1
kmod-usb-ehci - 5.15.137-1
kmod-usb-printer - 5.15.137-1
kmod-usb-storage - 5.15.137-1
kmod-usb-uhci - 5.15.137-1
kmod-usb-xhci-hcd - 5.15.137-1
kmod-usb2 - 5.15.137-1
kmod-usb3 - 5.15.137-1
libusb-1.0-0 - 1.0.26-3
usbutils - 014-1
root@OpenWrt:/etc/config# nano firewall
config rule
        option src 'lan'
        option proto 'tcp'
        option dest_port '9100'
        option target 'ACCEPT'
        option name 'Brother-Printer'
root@OpenWrt:/etc/config# ls /dev/usb/lp*
/dev/usb/lp0
root@OpenWrt:/etc/config# 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 bidirectional '1'

root@OpenWrt:/etc/config# lsusb
Bus 003 Device 005: ID 04f9:00a2 Brother HL-L2375DW series
Bus 002 Device 001: ID 1d6b:0003 Linux 5.15.137 xhci-hcd xHCI Host Controller
Bus 004 Device 001: ID 1d6b:0003 Linux 5.15.137 xhci-hcd xHCI Host Controller
Bus 001 Device 001: ID 1d6b:0002 Linux 5.15.137 xhci-hcd xHCI Host Controller
Bus 003 Device 001: ID 1d6b:0002 Linux 5.15.137 xhci-hcd xHCI Host Controller
root@OpenWrt:/etc/config# lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/0p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 5, If 0, Class=, Driver=usblp, 480M
    |__ Port 1: Dev 5, If 1, Class=, Driver=, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
root@OpenWrt:/etc/config# lsusb -v
Bus 003 Device 005: ID 04f9:00a2 Brother HL-L2375DW series
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x04f9
  idProduct          0x00a2
  bcdDevice            1.00
  iManufacturer           1 Brother
  iProduct                2 HL-L2375DW series
  iSerial                 3 Exxxxxxxxxxxxx7
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0065
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         7
      bInterfaceSubClass      1
      bInterfaceProtocol      2
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass         7
      bInterfaceSubClass      1
      bInterfaceProtocol      4
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255
      bInterfaceSubClass    255
      bInterfaceProtocol    255
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass         7
      bInterfaceSubClass      1
      bInterfaceProtocol      4
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

root@OpenWrt:/etc/config# dmesg | grep usb
[ 0.058046] usbcore: registered new interface driver usbfs
[ 0.058133] usbcore: registered new interface driver hub
[ 0.058200] usbcore: registered new device driver usb
[ 0.230619] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[ 4.030760] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 4.102262] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 4.401040] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[13.497489] usbcore: registered new interface driver usb-storage
[13.505367] usblp 3-1:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04F9 pid 0x00A2
[13.505601] usbcore: registered new interface driver usblp
[13.988472] usb 3-1: USB disconnect, device number 2
[13.988896] usblp0: removed
[60.720944] usb 3-1: new high-speed USB device number 3 using xhci-hcd
[60.905611] usblp 3-1:1.0: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04F9 pid 0x00A2
[1177.273480] usb 3-1: USB disconnect, device number 3
[1177.273863] usblp0: removed
[11431.428506] usb 3-1: new high-speed USB device number 4 using xhci-hcd
[11431.611836] usblp 3-1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04F9 pid 0x00A2
[15092.577605] usb 3-1: USB disconnect, device number 4
[15092.578002] usblp0: removed
[59655.192296] usb 3-1: new high-speed USB device number 5 using xhci-hcd
[59655.375472] usblp 3-1:1.0: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x04F9 pid 0x00A2
[66925.452492] usb 3-1: USB disconnect, device number 5
[66925.452872] usblp0: removed

Thank you for help
Wolle

Based on your dmesg, this is wrong.

Hi frollic,
What can i do?

Thank`s
Wolle

what's the actual device name under /dev ?

I use p910nd with success to drive my old HP printer.

My config rule in firewall is as follows:

config rule
   option src 'lan'
   list proto 'tcp'
   option dest_port '9100'
   option family 'ipv4'
   option target 'ACCEPT'
   option name 'Allow PRINTER'

But I've almost the same dmesg:

30.303816] usblp 1-1:1.1: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x03F0 pid 0x9311
[   30.312886] usbcore: registered new interface driver usblp
[122542.239607] usb 1-1: USB disconnect, device number 2
[122542.244233] usblp0: removed

What do you mean with "no response"?

Hi WildCarrot,

"no response" means , can`t install the printer from Windows.

Thank`s
Wolle

install how ?

seen https://openwrt.org/docs/guide-user/services/print_server/p910nd.server#windows_clients ?

Did you follow what @frollic is pointing out? I did and it worked with Win 10 as well...
Did you try "my" config rule? I don't know if it matters, but I think it is worth trying...

Hi frollic,

Windows clients
Windows 7

    Click on the Start button and select Devices and Printers.
    Click on “Add a printer.”

Windows do not find any printer, but if i take the Windows usb direkt (without OpenWrt) then I`ve got the printer.

Thank`s
Wolle

and it won't, that's normal, AFAIK.

Hi frollic,

/dev/usb/lp0

Why it`s wrong?
What must i change?

Thank`s
Wolle

then it's correct.

Everything is correct. You could try my hotplug script improvements.

But one question remains: whether or not you must load a printer blob (driver) from openwrt to /dev/usb/lp0. I suspect that you need to load a blob. In which case, enjoy my hotplug script - but you must provide the correct blob.

This is what other platforms do to 'ready' the printer for usage.

Having inspected the driver, it's difficult to say but looks like you have a 'driverless' printer?

Try netcat (nc) to see whether you can connect to the shared port 9100.

Hi systemcrash,
I`ll try your script, my answer later.

Thank`s
Wolle

Hi systemcrash,

root@OpenWrt:~# nc -z -v 192.168.200.8 9100
192.168.200.8 [192.168.200.8] 9100 open

It's working, thank you very match.

Wolle

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.