[Success] ASUS RT-N16 + p910nd USB Printing

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2, 3, 4  Next
Author Message
Mookatroid
DD-WRT User


Joined: 29 Mar 2009
Posts: 157
Location: Peterborough, ON

PostPosted: Mon Dec 21, 2009 0:53    Post subject: [Success] ASUS RT-N16 + p910nd USB Printing Reply with quote
OK then ... here's the scoop.

I am trying to relocate my shared USB printer from a Linksys WRT600N v1.1 unit to an ASUS RT-N16 unit.

DD-WRT's in the scenario = ASUS RT-N16 13450 Eko Big / WRT600N v1.1 12058 BS Mini-USB
USB Printer in play is an Epson Stylus Photo R300

USB printing has always installed and ran fine on the WRT600N units, but I have ran into a hitch on the ASUS RT-N16 setup.

The setup flow on the ASUS RT-N16 has been ...
- enable/clear JFFS - worked fine - ~25MB of JFFS space automatically assigned
- reboot router
- enable all USB services except storage - again no problem
- reboot router
- ipkg update - check
- ipkg install p910nd - check
- all required /jffs folders present - check
- modified /jffs/etc/init.d/p910nd to reflect /jffs/etc... versus /etc... - check

But .. no luck on printing

So ... troubleshooting flow ...
- netstat -an
... LISTEN on port 9100 - check
- ps
... p9100d -b -f /dev/usb/lp0 0
... process running - check (tried removing -b option too)
- dmesg | grep usb
... usblp0: USB Bidirectional printer dev 2 if alt 0 proto 2 vid 0x04B8 pid 0x0803
... USB printer detected - check

Now - where I am stuck ...
- ls -la /dev/usb
... nadda ... nothing ... zip ... empty ... no lp0 or lp1, etc etc

The WRT600N p910nd config works great and shows a device mount at /dev/usb/lp0
The RT-N16 p910nd config seems very very close, but is missing a device mount at /dev/usb/
Me thinks that it's kind'a hard to print when one is missing an lp0/lp1 in the equation.

Other than obvious kernel differences, what am I missing ?

Any constructive feedback & suggestions would be appreciated.

*** EDIT: I have tried using both USB ports as well .. but not luck

Regards,

Mookatroid


Last edited by Mookatroid on Sun Dec 27, 2009 19:04; edited 1 time in total
Sponsor
Mookatroid
DD-WRT User


Joined: 29 Mar 2009
Posts: 157
Location: Peterborough, ON

PostPosted: Mon Dec 21, 2009 5:46    Post subject: Reply with quote
Quick follow up ... research and development conitnues.

Tried p910nd v0.93-1 manual installation + this thread ...

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=44646&postdays=0&postorder=asc&start=0

No luck yet. Any guru's out there with revelations ?
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Mon Dec 21, 2009 6:04    Post subject: Reply with quote
You have to create the node, look at fraters optware the right way thread....toward the last pages I believe. But I thought Eko fixed this.
_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Mon Dec 21, 2009 6:11    Post subject: Reply with quote
dpks wrote:
Thanks for the quick reply. As a quick hack to get printing working, I added the following two commands to Administration|Commands|Startup in the Web GUI:

Code:
/bin/mkdir -m 755 -p /dev/usb
/bin/mknod -m 660 /dev/usb/lp0 c 180 0


Printing works great for me now!

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Mon Dec 21, 2009 6:14    Post subject: Reply with quote
I compiled mknod for another guy, you can find it here if you want it.
_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
Mookatroid
DD-WRT User


Joined: 29 Mar 2009
Posts: 157
Location: Peterborough, ON

PostPosted: Mon Dec 21, 2009 16:08    Post subject: Reply with quote
Thanks for bringing extra info into the mix autobot.

The /dev/usb folder does exist but the lp0 node does not.

I hope to find time later today to try this fix and will keep you posted.

Is this something we should open a Ticket for ?
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Mon Dec 21, 2009 17:33    Post subject: Reply with quote
Yes, make a ticket....

It's not the only /dev entry that's missing.....

Eko needs to implement udev which is the kernel 2.6 way of handling devices in userspace.

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)


Last edited by frater on Mon Dec 21, 2009 18:30; edited 1 time in total
Mookatroid
DD-WRT User


Joined: 29 Mar 2009
Posts: 157
Location: Peterborough, ON

PostPosted: Mon Dec 21, 2009 17:59    Post subject: Reply with quote
Ticket created.

http://svn.dd-wrt.com:8000/dd-wrt/ticket/1320

I hope was specific enough without going overboard.

Again, I will attempt the workaround in the mean time.
Mookatroid
DD-WRT User


Joined: 29 Mar 2009
Posts: 157
Location: Peterborough, ON

PostPosted: Sun Dec 27, 2009 18:27    Post subject: Reply with quote
SUCCESS !!!

Thanks for all the feedback and autobot's suggestion involving MKNOD.

In the K26 13450 BIG build, MKNOD is already present in /bin so compiling was not required.

Either way, the workaround works and all my printing is 100% operational on my RT-N16.

In a nutshell, to setup USB Printing on the ASUS RT-N16 running K26 firmware (13450 big minimum) ...

- add to Administration|Commands|Startup = /bin/mknod -m 660 /dev/usb/lp0 c 180 0
- enable/clean JFFS
- reboot router
- enable all USB services except storage
- reboot router
- ipkg update
- ipkg install p910nd
- modify contents of /jffs/etc/init.d/p910nd to reflect /jffs/etc... versus /etc...
- add to Administration|Commands|Startup = /jffs/etc/init.d/p910nd start
- reboot router
- setup your computer to print to the IP address of your router via TCP/IP port 9100

Success.

So until the missing /dev/usb/lp0 node appears in a newer K26 build, this is the USB printing soltuion.

Hope this helps others as well.

Mookatroid
stevocz
DD-WRT User


Joined: 22 Oct 2009
Posts: 70
Location: Slovakia

PostPosted: Sun Dec 27, 2009 22:20    Post subject: Reply with quote
works but print only 5cm Very Happy and on next paper print next 5cm :-(

HP photosmart 7150

_________________
RT-N16 back to asus firmware - dd-wrt is very unstable for this router with atheros clients
Mookatroid
DD-WRT User


Joined: 29 Mar 2009
Posts: 157
Location: Peterborough, ON

PostPosted: Mon Dec 28, 2009 1:06    Post subject: Reply with quote
stevocz wrote:
works but print only 5cm Very Happy and on next paper print next 5cm :-(

HP photosmart 7150


Weird

I am running RT-N16 13450 BIG Eko versus your 13491 build. So you never know.

I also removed the -b option from the p910nd config file ... /jffs/etc/default/p910nd

You might give that a whirl too.
stevocz
DD-WRT User


Joined: 22 Oct 2009
Posts: 70
Location: Slovakia

PostPosted: Mon Dec 28, 2009 10:37    Post subject: Reply with quote
i try 13450, print from wifi and lan, remove -b,

but only 5cm

_________________
RT-N16 back to asus firmware - dd-wrt is very unstable for this router with atheros clients
Mookatroid
DD-WRT User


Joined: 29 Mar 2009
Posts: 157
Location: Peterborough, ON

PostPosted: Mon Dec 28, 2009 17:39    Post subject: Reply with quote
Although I did not need to, I have also read that some users need to turn off "Enable advanced printing features" on the "Advanced" tab of the printer properties ... assuming you are using Windows.
stevocz
DD-WRT User


Joined: 22 Oct 2009
Posts: 70
Location: Slovakia

PostPosted: Mon Dec 28, 2009 20:02    Post subject: Reply with quote
i try it but still only 5cm Sad
_________________
RT-N16 back to asus firmware - dd-wrt is very unstable for this router with atheros clients
Mookatroid
DD-WRT User


Joined: 29 Mar 2009
Posts: 157
Location: Peterborough, ON

PostPosted: Sat Jan 02, 2010 16:35    Post subject: Reply with quote
Compatibility issue between p910nd and HP PS 7150 ??

Have you tried different versions of the HP printer driver (if available) ?

http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00270694&lc=en&cc=us&dlc=&product=75939&printable=no

You may also be able to install a completely different printer driver. i.e. an HP Laserjet 4050dtn will print fine when used with a driver for an HP Laserjet III.

What O/S are you running ?
Goto page 1, 2, 3, 4  Next Display posts from previous:    Page 1 of 4
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum