You are not logged in.

#1 2012-11-17 13:35:28

pinprick
Member
Registered: 2012-07-28
Posts: 17

Printer connected to router via USB

Hello, is there a way to configure cups to work with this setup ? I have followed these steps https://wiki.archlinux.org/index.php/Brother_DCP-7065DN but for the DCP-7060D. I have the cups daemon working as it should in systemd, the http configuration page is live and I am using a TL-WR1043ND router. They have a windows and mac program that allows one to connect to the printer wirelessly, named TP-LINK USB Printer Controller.

Thanks.

Offline

#2 2012-11-17 14:52:09

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: Printer connected to router via USB

I would sugest you to install Gargoyle alternative firmware on router.
You will gain plenty of useful features with usb print server support among them.
You just need to enable printer support on router and add new lpd printer in CUPS web ui on router's ip address. Before doing this
make sure printer actually works when connected directly to PC. This worked perfectly with my old HP printer and Gargoyle running Buffalo router.

Last edited by Šaran (2012-11-17 15:03:50)

Offline

#3 2012-11-17 17:54:28

pinprick
Member
Registered: 2012-07-28
Posts: 17

Re: Printer connected to router via USB

Thanks for the swift reply. I just installed gargoyle, but it does not detect the usb device, in the gui it says "No USB disks connected.".

Offline

#4 2012-11-17 18:13:05

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: Printer connected to router via USB

Are you sure you are looking under System>USB Printer?
I get similar message on System>USB Storage

You have installed 1.5.8, right?

Offline

#5 2012-11-17 18:27:23

pinprick
Member
Registered: 2012-07-28
Posts: 17

Re: Printer connected to router via USB

Nop, I installed the 1.4.7. I was following a tutorial http://wiki.openwrt.org/doc/howto/p910nd.server . There is just USB storage in this version (in the gui).

Offline

#6 2012-11-17 18:52:39

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: Printer connected to router via USB

You should install 1.5.8, apparently there is no printer support in 1.4.7.
Latest version might be called 'experimental', but it's more stable and much faster than 'stable'.

Offline

#7 2012-11-17 18:53:37

pinprick
Member
Registered: 2012-07-28
Posts: 17

Re: Printer connected to router via USB

Ah didn't know about that one thanks.

Offline

#8 2012-11-17 19:48:22

pinprick
Member
Registered: 2012-07-28
Posts: 17

Re: Printer connected to router via USB

Well, I installed the latest experimental version 1.5.8 and still it does not work :S. It says "No USB printers are currently attached to the router.". Maybe I have to ssh into the router and tweak some settings. Thanks.

Offline

#9 2012-11-17 20:05:08

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: Printer connected to router via USB

You could ssh and check lsusb and dmesg. It worked automagically for me.
Maybe rebooting router with printer pluged in will help. Does it recognise usb sticks?

Offline

#10 2012-11-17 20:30:02

pinprick
Member
Registered: 2012-07-28
Posts: 17

Re: Printer connected to router via USB

root@Gargoyle:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04f9:0249 Brother Industries, Ltd

root@Gargoyle:~#
dmesg | grep usb
[   15.640000] usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0249
[  545.620000] usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0249
[ 1268.300000] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0249
...

I did a netstat -an and I found these listening ports: 111(RPC), 53(dns), 22(ssh), 443(https). Shouldn't there be a port for incoming print requests ?

Last edited by pinprick (2012-11-17 20:30:56)

Offline

#11 2012-11-17 20:49:01

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: Printer connected to router via USB

I guess 9100 is opened only if router know there is printer pluged in.
But I have no idea why doesn't it get recognised.

There might be something wrong with Brother printers and OpenWrt/Gargoyle.
http://www.gargoyle-router.com/phpbb/vi … f=6&t=2263

Other than this, I'm pretty much out of any ideas. You should post to Gargoyle forums.

Offline

#12 2012-11-17 22:10:10

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Printer connected to router via USB

Some things to try, do you have avahi installed?  Even so, I have had problems with recent updates to Arch breaking dnssd.  I have input the following URI for my wireless brother printer in CUPS for it to work: lpd://192.168.0.10/BINARY_P1

To use a URI such as the above, you need to know the IP Address of the Brother printer.  You should be able to get this from the router web configuration setup url (access your router from a web browser using it's IP Address, i.e. http://192.168.0.1 ).

Offline

#13 2012-11-18 13:02:10

pinprick
Member
Registered: 2012-07-28
Posts: 17

Re: Printer connected to router via USB

I followed a guide on Openwrt. The p910nd server is working as it should and is mapped to the open port 9100 for lan. i have added the printer with the following settings in cups (client side):
Description:    DCP7060d
Location:    home
Driver:    Brother DCP7060D for CUPS (grayscale, 2-sided printing)
Connection:    socket://192.168.1.1:9100
Defaults:    job-sheets=none, none media=iso_a4_210x297mm sides=two-sided-long-edge

It says that it is connected to the printer,

processing since
Sun Nov 18 13:00:54 2012
"Connected to printer."

But it does not print. sad

Offline

#14 2012-11-18 17:58:47

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Printer connected to router via USB

Try using a variation of the URI I posted above (corrected for your printer's IP Address): lpd://192.168.1.1/BINARY_P1 instead of socket://192.168.1.1:9100 .  You can change the URI in CUPS by selecting the printer and modifying it.

Offline

#15 2012-11-19 19:57:34

pinprick
Member
Registered: 2012-07-28
Posts: 17

Re: Printer connected to router via USB

Client:
I installed the cups wrapper and lpr drivers from brother ( I had to start cups 1st with systemd otherwise it would give an error when running the brother's script ). After that I configured the printer:

Description:    DCP7060D
Location:   
Driver:    Brother DCP7060D for CUPS (grayscale, 2-sided printing)
Connection:    socket://192.168.1.1:9100
Defaults:    job-sheets=none, none media=iso_a4_210x297mm sides=two-sided-long-edge

Server (Router):
Hehe, I had to revert back to gargoyle 1.4.7 which is running backfire 10.03.1 .
Installed usb driver for printer and p910nd, configured p910nd file and opened port 9100. And it worked!!! I did the same with 1.5.8 but it just said in cups connected and it did not print (Maybe it is some gargoyle script that messed up things as they added support for printers in versions 1.5.* )

http://wiki.openwrt.org/doc/howto/p910nd.server
https://wiki.archlinux.org/index.php/Brother_DCP-7065DN

Thanks for your help smile

Last edited by pinprick (2012-11-19 19:58:38)

Offline

Board footer

Powered by FluxBB