WRT160NL Print Server How-TO

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3  Next
Author Message
antidelldude
DD-WRT User


Joined: 25 Mar 2010
Posts: 65

PostPosted: Sun Apr 04, 2010 15:07    Post subject: Reply with quote
All I had to do was plug in my Belkin unpowered usb hub, followed the directions below, and I got both working.

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=69265
Sponsor
eastside
DD-WRT Novice


Joined: 07 Apr 2010
Posts: 4

PostPosted: Wed Apr 07, 2010 16:02    Post subject: error installing p910nd_093-1_atheros.ipk Reply with quote
I get the following error installing...

root@Poaltje:/jffs# ipkg install p910nd_0.93-1_atheros.ipk
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
You probably want to run `ipkg update'
/bin/ipkg: line 1184: sort: not found
Unpacking p910nd...Done.
Configuring p910nd...Done.

Anybody knows how to solve this? Something with an ipkg update ???
antidelldude
DD-WRT User


Joined: 25 Mar 2010
Posts: 65

PostPosted: Wed Apr 07, 2010 16:54    Post subject: Reply with quote
Ignore the errors and continue with the guide.
eastside
DD-WRT Novice


Joined: 07 Apr 2010
Posts: 4

PostPosted: Wed Apr 07, 2010 18:05    Post subject: Reply with quote
I can not get a piece of paper out of my printer... I went over the tutorial twice but no succes.
I have a HP laserjet 1020, and Win7 running on my laptop. Is there a way I can test the communication between router and printer? I have all the settings in the firmware set as default, exept the settings mentioned in the steps in the opening post.
Adding the printer on 192.168.0.1 port 9100 was no problem, but it just doesn't work. Do I need a specific printer driver? When I connect directly to USB on my laptop there is no problem printing...
antidelldude
DD-WRT User


Joined: 25 Mar 2010
Posts: 65

PostPosted: Wed Apr 07, 2010 18:28    Post subject: Reply with quote
Wow that is a popular series of printer... Read this entire thread, someone has already posted an issue with that series and what you need to do to fix it.
eastside
DD-WRT Novice


Joined: 07 Apr 2010
Posts: 4

PostPosted: Wed Apr 07, 2010 19:51    Post subject: Reply with quote
My printer (Hp1020) is working, but I have to manually execute the
cat /jffs/sihp1020.dl > /dev/usb/lp0
every time.

At startup the following script runs:
Code:
/jffs/usr/sbin/p910nd -b -f /dev/usb/lp0 0
/bin/mkdir -m 755 -p /dev/usb
/bin/mknod -m 660 /dev/usb/lp0 c 180 0
/jffs/watchprinter


with the watchprinter file looking like this:
Code:
#!/bin/sh
# Printer monitoring script

while sleep 60
do
isdaemon=`ps | grep -v grep | grep -c p9100`
if [ $isdaemon == 0 ]; then
# No daemon running
# Start daemon if printer is attached
if [ -e /dev/usb/lp0 ]; then
/opt/bin/p910nd -b -f /dev/usb/lp0 0
sleep 1
cat /jffs/sihp1020.dl > /dev/usb/lp0
fi
else
if [ ! -e /dev/usb/lp0 ]; then
# No Printer attached but daemon running
# Kill daemon
process=`pidof p9100d`
kill $process
fi
fi
done


It looks like the watchprinter script is not executed given this error:
sh: eval: line 4: /jffs/watchprinter: not found

What am I doing wrong?
Kartun
DD-WRT Novice


Joined: 06 May 2010
Posts: 2

PostPosted: Thu May 06, 2010 21:21    Post subject: ML-1915 Reply with quote
Successfully shared Samsung ML-1915, without any problems. Big thanks for this clear tutorial and your research time !
AlxMAX
DD-WRT Novice


Joined: 25 Mar 2010
Posts: 18
Location: Bucharest

PostPosted: Sat May 22, 2010 17:25    Post subject: HP LJ1018... Reply with quote
Eventually, I have managed to install the DD-WRT firmware and to install the Printer Sharing. For the moment, I have been able to create the node in the /dev file system, to load the firmware, to start the daemon and to print a test page from 2 computers. Now I have to automate the task and to make the router autodetect the printer.
AlxMAX
DD-WRT Novice


Joined: 25 Mar 2010
Posts: 18
Location: Bucharest

PostPosted: Sun May 23, 2010 5:54    Post subject: Problem sending the firmware... Reply with quote
I am back with some problems. The printer only works one in a while. The main problem is sending the sihp1018.dl file to the printer. I get many times this message:
Code:
root@DD-WRT:/dev/usb# cat /jffs/share/p910nd/sihp1018.dl > /dev/usb/lp0
cat: write error: Input/output error

In dmesg I get these lines:
Code:
<4>usblp0: nonzero read bulk status received: -71
<4>usblp0: nonzero write bulk status received: -71
<3>usblp0: error -71 reading printer status

I don't think there is a cable problem because the printer works normally with a PC.
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Wed Jun 16, 2010 21:55    Post subject: Reply with quote
in next release (or build) nothing needs to be done anymore here, the p910nd daemon is included and will start if printer support is enabled. i just tested this with my HP printer.

the p910nd daemon will be available in most usb supporting devices (not just wrt160nl).

_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
AlxMAX
DD-WRT Novice


Joined: 25 Mar 2010
Posts: 18
Location: Bucharest

PostPosted: Tue Jun 22, 2010 15:18    Post subject: Reply with quote
Thanks. I would like to know few things:

  1. Could you, please, tell me if your printer works with a volatile firmware like HP LJ1018 does?
  2. Could you give me any clue about the kernel version of the future release?
  3. Is it possible to flash directly the final dd-wrt firmware image (not the transitory one) with U-Boot via the TFTP protocol? I would like the short answer.
  4. How can I make the LEDs show correctly the wireless status? Now, the wireless blue LED is flashing continuously and the one above the central button is always amber.
dadudts
DD-WRT Novice


Joined: 25 Aug 2010
Posts: 1

PostPosted: Wed Aug 25, 2010 14:51    Post subject: Reply with quote
TenaciousR wrote:
I thought I had it working, but I only had it working on the PC (WIN XP) connected with a netwrok cable to the router. On my Laptop (WIN 7) I can only print the first half of the first page and than the printer stops and the query gives an error. There is nothing I can doe then besides totally remove the printer... Does someone have a solutions for this (and for my question about scannng??)

Any progress? I got exactly the same problem on my Win7 notebook...

edit:I also noticed that the spool service in Windows crashes when this happens (it's working at 100% all the time)
nordberg
DD-WRT Novice


Joined: 26 Dec 2008
Posts: 11

PostPosted: Tue Sep 21, 2010 6:18    Post subject: new firmwares Reply with quote
so new firmware contains the printer detection. Awesome!!

But how does one copy volatile firmware to a printer such as HP Laserjet 1018 or 1020.

I have the firmware file saved as /jffs/sihp1018.dl

Whenever the printer goes off it requires a firmware reload. I can manually copy it using the command cat /jffs/sihp1020.dl > /dev/usb/lp0, but i still do not understand how to do this automatically on connect and disconnect, or power on and off, using this newer firmware with USB printing already installed.
nordberg
DD-WRT Novice


Joined: 26 Dec 2008
Posts: 11

PostPosted: Wed Sep 22, 2010 4:47    Post subject: Re: new firmwares Reply with quote
nordberg wrote:
so new firmware contains the printer detection. Awesome!!

But how does one copy volatile firmware to a printer such as HP Laserjet 1018 or 1020.

I have the firmware file saved as /jffs/sihp1018.dl

Whenever the printer goes off it requires a firmware reload. I can manually copy it using the command cat /jffs/sihp1020.dl > /dev/usb/lp0, but i still do not understand how to do this automatically on connect and disconnect, or power on and off, using this newer firmware with USB printing already installed.


I meant

cat /jffs/sihp1018.dl > /dev/usb/lp0
not
cat /jffs/sihp1020.dl > /dev/usb/lp0

got everything working on this router... except the copying of the firmware file to the printer.
AlxMAX
DD-WRT Novice


Joined: 25 Mar 2010
Posts: 18
Location: Bucharest

PostPosted: Thu Sep 23, 2010 14:07    Post subject: Reply with quote
nordberg: Is the command cat /jffs/sihp1018.dl > /dev/usb/lp0 always working for you? What firmware version and revision do you have?
Goto page Previous  1, 2, 3  Next Display posts from previous:    Page 2 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum