| Author |
Message |
DanielV
Joined: 03 Mar 2011 Posts: 17 Location: Czech Republic
|
Posted: Sun 06 Mar 2011, 18:55 Post subject:
Tried this |
|
I have added this command to the post-boot (if you thought to add there ("at the start")). I don´t know exactly where, therefore I did it two times. See attachment for script and appropriate log. Again prints only second printer when attemped to print on first one. Nothing new.
If I can answer your question - I have erased post-boot script and connected only first printer. Log in the attachment.
| Description |
|

Download |
| Filename |
Log_only 1st printer without script.zip |
| Filesize |
87.36 KB |
| Downloaded |
119 Time(s) |
| Description |
|

Download |
| Filename |
Log_2.zip |
| Filesize |
87.98 KB |
| Downloaded |
112 Time(s) |
| Description |
|
| Filesize |
20.24 KB |
| Viewed |
328 Time(s) |

|
| Description |
|

Download |
| Filename |
Log_1.zip |
| Filesize |
87.91 KB |
| Downloaded |
116 Time(s) |
| Description |
|
| Filesize |
20.15 KB |
| Viewed |
314 Time(s) |

|
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7756 Location: Stratford, Ontario
|
Posted: Sun 06 Mar 2011, 19:35 Post subject:
|
|
Your original post has this code:
| Code: | p910nd -f /usb/dev/lp0 0
p910nd -f /usb/dev/lp1 1 |
But we have been using:
| Code: | p910nd -f /dev/usb/lp0 0
p910nd -f /dev/usb/lp1 1 |
Which of these is valid?
A useful command is
This will show what servers are running.
Change the first line of the script from
to
Type each of the commands in the script individually. After the line
type
This value should be either a zero or a one.
|
|
Back to top
|
|
 |
DanielV
Joined: 03 Mar 2011 Posts: 17 Location: Czech Republic
|
Posted: Mon 07 Mar 2011, 16:30 Post subject:
Tried all |
|
Valid code was
[code] p910nd -f /dev/usb/lp0 0
[code] p910nd -f /dev/usb/lp1 1
It was my mistake. I wrote this from my memory(head). /usb/dev even doesn´t exist in my system.
But this code now also doesn´t work!
Only thing that works now is to run these code when router and printers are on:
[/code] p910nd -f /dev/usb/lp1 1
Then servers running, see attachment (Servers running_no script).
I tried everything you suggested, #!/bin/sh or #!/bin/bash results in the same - prints only second printer when attempting the first one.
When this script is running, command ps | grep p910 resulting in, see attachment, maybe this will be important for you (When script is running).
I couldn´t display the value $D, blank line in Putty, blank in System Command field in router web interface.
Thanks
| Description |
|
| Filesize |
20.4 KB |
| Viewed |
329 Time(s) |

|
| Description |
|

Download |
| Filename |
When script is running.PNG |
| Filesize |
79.17 KB |
| Downloaded |
189 Time(s) |
| Description |
|
| Filesize |
16.75 KB |
| Viewed |
335 Time(s) |

|
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7756 Location: Stratford, Ontario
|
Posted: Mon 07 Mar 2011, 17:03 Post subject:
|
|
The "ps" command shows that both servers are running. However, if the router is servicing one of the printers on its own, I don't know how to turn that off.
|
|
Back to top
|
|
 |
DanielV
Joined: 03 Mar 2011 Posts: 17 Location: Czech Republic
|
Posted: Tue 08 Mar 2011, 03:19 Post subject:
Never mind |
|
I want to say that you did great work. Thanks again.
I will solve this probably by flashing with OpenWRT firmware.
|
|
Back to top
|
|
 |
DanielV
Joined: 03 Mar 2011 Posts: 17 Location: Czech Republic
|
Posted: Sat 26 Mar 2011, 17:16 Post subject:
|
|
I have solved the problem with two printers but not via software way. Simply I changed Asus WL 500G Premium with Asus WL 500G and all is done. This router is equipped with parallel port too. And this unit services both LPT and USB printers at the same time perfectly.
Anyway, why p910nd works fine with WL 500G but with WL 500G P not? Maybe here is the solution... I think a lot of people want to solve sharing two printers at the same time with WL 500G P.
Last edited by DanielV on Sun 27 Mar 2011, 06:55; edited 1 time in total
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7756 Location: Stratford, Ontario
|
Posted: Sat 26 Mar 2011, 17:40 Post subject:
|
|
Glad to hear you got it working.
So how are the printers installed on your client machines? Is the parallel printer always on port 9100 and the USB printer on 9101?
|
|
Back to top
|
|
 |
DanielV
Joined: 03 Mar 2011 Posts: 17 Location: Czech Republic
|
Posted: Sun 27 Mar 2011, 06:49 Post subject:
|
|
Thanks again for your interest!
No, the USB printer is always on 9100 and the parallel printer is on port 9101. This is recommended:
e.g. here (in czech): http://netcode.cz/articles/router-asus-print-server.aspx or e.g. here (in english): http://wl500g.info/showthread.php?t=771
I followed that and works fine.
I am still afraid of flashing with OpenWRT, cause I am still green in Linux. Therefore I looked for this router (WL 500G) and I am glad that works. For sure, Asus WL 500G has 1x parallel and 1x USB 1.1 ports.
I will post here logs, commands again, if needed.
Thank you very much
|
|
Back to top
|
|
 |
DanielV
Joined: 03 Mar 2011 Posts: 17 Location: Czech Republic
|
Posted: Thu 31 Mar 2011, 16:14 Post subject:
Log_WL 500G |
|
In the attachment is Log file from Asus WL 500G. It works fine with two printers, no matter in which order they are turned on, etc.
Maybe you have an idea what to do with WL 500G Premium to get it working ...
| Description |
|

Download |
| Filename |
WL 500G_System log.zip |
| Filesize |
95.79 KB |
| Downloaded |
96 Time(s) |
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7756 Location: Stratford, Ontario
|
Posted: Thu 31 Mar 2011, 18:25 Post subject:
|
|
Here is one more script to try. Change the PID's to match your two printers.
| Description |
|

Download |
| Filename |
p910nd-start.tar.gz |
| Filesize |
311 Bytes |
| Downloaded |
134 Time(s) |
|
|
Back to top
|
|
 |
DanielV
Joined: 03 Mar 2011 Posts: 17 Location: Czech Republic
|
Posted: Fri 01 Apr 2011, 17:13 Post subject:
Log |
|
Using this script again prints only the second printer on port 9101. There is log file from WL 500G premium in the attachment.
| Description |
|

Download |
| Filename |
WL 500G Premium_System Log.zip |
| Filesize |
93.4 KB |
| Downloaded |
94 Time(s) |
|
|
Back to top
|
|
 |
DanielV
Joined: 03 Mar 2011 Posts: 17 Location: Czech Republic
|
Posted: Sat 02 Apr 2011, 02:42 Post subject:
I have an idea |
|
Is it possible to run only one instance of p910nd and the other printer run on LPR? Cause it is hard to run automatically two instances of p910nd this could work. Can you write this script?
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7756 Location: Stratford, Ontario
|
Posted: Sat 02 Apr 2011, 08:46 Post subject:
|
|
That script works correctly for me on an actual Puppy machine. But I have no idea what's happening inside your router. And it's impossible for me to tell by looking at the logs. I don't suppose that you want to send me the router?
|
|
Back to top
|
|
 |
DanielV
Joined: 03 Mar 2011 Posts: 17 Location: Czech Republic
|
Posted: Sat 02 Apr 2011, 09:20 Post subject:
Why not? |
|
Cause I am very wondering why this cann´t working, I would like to send you this router, of course!
But I live in Czech Republic, you probably in Canada. That´s the problem
|
|
Back to top
|
|
 |
|