View topic - ethernet printer setup
ethernet printer setup
7 posts
• Page 1 of 1
ethernet printer setup
Hello,
Is anybody using a networked (tcp/ip addressable) HP LaserJet with QNX?
I'm trying to connect my QNX workstation to a networked printer. It's working, but not properly (so far).
The printer is a HP LaserJet Professional P1606dn. It's named tcpip_printer and I've added entries to /etc/hosts and /etc/printcap.
Command "lpr -Ptcpip_printer printer_test.txt" queues up the test file and, after several minutes, prints it out. The test file is a single line of plain text, i.e. "this is a test". Two pages are printed for this:
### page 1 ###
this is a test
@84 cfA000qnx2
### page 2 ###
Hqnx2
Proot
Jprinter_test.txt
Cqnx2
Lroot
fdfA000qnx2
UdfA000qnx2
Nprinter_test.txt
### end of printout ###
File /etc/printcap is:
/etc/hosts maps the printer ( "tcpip_printer" ) to its IP address.
tcpip_printer: \
:rm=tcpip_printer:rp=/pcl:sd=/var/spool/output/lpd/tcpip_printer:
I've never before configured a printer for QNX, much less a directly addressable ethernet printer.
Any tips or suggestestions would be aprpeciated.
Thank you.
David
Is anybody using a networked (tcp/ip addressable) HP LaserJet with QNX?
I'm trying to connect my QNX workstation to a networked printer. It's working, but not properly (so far).
The printer is a HP LaserJet Professional P1606dn. It's named tcpip_printer and I've added entries to /etc/hosts and /etc/printcap.
Command "lpr -Ptcpip_printer printer_test.txt" queues up the test file and, after several minutes, prints it out. The test file is a single line of plain text, i.e. "this is a test". Two pages are printed for this:
### page 1 ###
this is a test
@84 cfA000qnx2
### page 2 ###
Hqnx2
Proot
Jprinter_test.txt
Cqnx2
Lroot
fdfA000qnx2
UdfA000qnx2
Nprinter_test.txt
### end of printout ###
File /etc/printcap is:
/etc/hosts maps the printer ( "tcpip_printer" ) to its IP address.
tcpip_printer: \
:rm=tcpip_printer:rp=/pcl:sd=/var/spool/output/lpd/tcpip_printer:
I've never before configured a printer for QNX, much less a directly addressable ethernet printer.
Any tips or suggestestions would be aprpeciated.
Thank you.
David
- relson
- Active Member
- Posts: 10
- Joined: Fri Nov 02, 2012 5:35 pm
Re: ethernet printer setup
I haven't done this with an HP, but I have with a Kyocera. From your message it looks like the data is getting to the printer ok, which is usually the hardest part. I suspect that you are not using the right filter on the text. Most likely you want the PCL output filter.
I'm not where I can look things up so this is a little sketchy. If you can't figure it out, reply and I'll look up the details.
I'm not where I can look things up so this is a little sketchy. If you can't figure it out, reply and I'll look up the details.
- maschoen
- QNX Master
- Posts: 2306
- Joined: Wed Jun 25, 2003 5:18 pm
Re: ethernet printer setup
I strongly suspect that my /etc/printcap entry is incorrect, most likely the "rp=/pcl" specification.
If you could post the Kyocera lines from /etc/printcap, that would be very helpful.
Thank you.
If you could post the Kyocera lines from /etc/printcap, that would be very helpful.
Thank you.
- relson
- Active Member
- Posts: 10
- Joined: Fri Nov 02, 2012 5:35 pm
Re: ethernet printer setup
rlpt1|Kyocera Network: \
:lp=: \
:rm=kyocera: \
:rp=/pcl: \
:sd=/var/spool/output/lpt1: \
:lf=/var/spool/lpd-errs: \
:mx#0: \
:sh:
:lp=: \
:rm=kyocera: \
:rp=/pcl: \
:sd=/var/spool/output/lpt1: \
:lf=/var/spool/lpd-errs: \
:mx#0: \
:sh:
- maschoen
- QNX Master
- Posts: 2306
- Joined: Wed Jun 25, 2003 5:18 pm
Re: ethernet printer setup
Thank you for your printcap file. I've modified mine a bit, but printing is still not working as desired.
Being new to QNX and printer setup, I suspect I'm missing something simple. Unfortunately I don't know what that might be.
Using a "lpr -Ptcpip_printer ..." command creates files in /usr/spool/output/lpd/tcpip_printer. After a few minutes the files might be printed, though usually the files just sit in the spool directory.
I've documented below the contents of my /etc/printcap file and various results from running "lprc". Being new to QNX printing I don't know if these outputs are correct or not.
Suggestions are requested!
Regards,
David
-----------------------------------
/etc/printcap is
tcpip_printer: \
:direct: \
:rp=/pcl: \
:sd=/usr/spool/output/lpd/tcpip_printer: \
:ifhp=model=laserjet4: \
:filter=/usr/local/libexec/ifhp: \
:sh:
I'm using command "lpr -Ptcpip_printer printer_test.txt" to test printing.
"lprc status" shows
tcpip_printer:
queuing is disabled
printing is enabled
2 entries in spool area
sending to tcpip_printer
but the printer isn't printint anything.
Using "lprc enable all" changes the output of "lprc status" but printing isn't happening.
As an experiment, I tried "lprc restart all", which displayed:
tcpip_printer:
no daemon to abort
tcpip_printer:
printing enabled
daemon started
The "no daemon to abort" line is suspicious, so I ran "lprc restart all" again. It displayed the same output as before:n
tcpip_printer:
no daemon to abort
tcpip_printer:
printing enabled
daemon started
Directory /usr/spool/output/lpd/tcpip_printer/ has the following files:
drwxrwxr-x 2 root root 2048 Mar 06 11:17 .
drwxrwxr-x 3 root root 2048 Mar 06 10:28 ..
-rw-rw---x 1 root root 4 Mar 06 11:17 .seq
-rw-rw---- 1 bin root 84 Mar 06 11:14 cfA006qnx2
-rw-rw---- 1 bin root 84 Mar 06 11:17 cfA007qnx2
-rw-rw---- 1 root root 15 Mar 06 11:14 dfA006qnx2
-rw-rw---- 1 root root 15 Mar 06 11:17 dfA007qnx2
-rw-r-xr-- 1 root root 11 Mar 06 11:20 lock
-rw-rw-r-- 1 root root 25 Mar 01 12:45 status
Being new to QNX and printer setup, I suspect I'm missing something simple. Unfortunately I don't know what that might be.
Using a "lpr -Ptcpip_printer ..." command creates files in /usr/spool/output/lpd/tcpip_printer. After a few minutes the files might be printed, though usually the files just sit in the spool directory.
I've documented below the contents of my /etc/printcap file and various results from running "lprc". Being new to QNX printing I don't know if these outputs are correct or not.
Suggestions are requested!
Regards,
David
-----------------------------------
/etc/printcap is
tcpip_printer: \
:direct: \
:rp=/pcl: \
:sd=/usr/spool/output/lpd/tcpip_printer: \
:ifhp=model=laserjet4: \
:filter=/usr/local/libexec/ifhp: \
:sh:
I'm using command "lpr -Ptcpip_printer printer_test.txt" to test printing.
"lprc status" shows
tcpip_printer:
queuing is disabled
printing is enabled
2 entries in spool area
sending to tcpip_printer
but the printer isn't printint anything.
Using "lprc enable all" changes the output of "lprc status" but printing isn't happening.
As an experiment, I tried "lprc restart all", which displayed:
tcpip_printer:
no daemon to abort
tcpip_printer:
printing enabled
daemon started
The "no daemon to abort" line is suspicious, so I ran "lprc restart all" again. It displayed the same output as before:n
tcpip_printer:
no daemon to abort
tcpip_printer:
printing enabled
daemon started
Directory /usr/spool/output/lpd/tcpip_printer/ has the following files:
drwxrwxr-x 2 root root 2048 Mar 06 11:17 .
drwxrwxr-x 3 root root 2048 Mar 06 10:28 ..
-rw-rw---x 1 root root 4 Mar 06 11:17 .seq
-rw-rw---- 1 bin root 84 Mar 06 11:14 cfA006qnx2
-rw-rw---- 1 bin root 84 Mar 06 11:17 cfA007qnx2
-rw-rw---- 1 root root 15 Mar 06 11:14 dfA006qnx2
-rw-rw---- 1 root root 15 Mar 06 11:17 dfA007qnx2
-rw-r-xr-- 1 root root 11 Mar 06 11:20 lock
-rw-rw-r-- 1 root root 25 Mar 01 12:45 status
- relson
- Active Member
- Posts: 10
- Joined: Fri Nov 02, 2012 5:35 pm
Re: ethernet printer setup
Still not working as desired, sigh. Being new to QNX and printer setup, I suspect I'm missing something simple. Unfortunately I don't know what that might be.
Below is what I'm seeing.
Suggestions are requested!
Regards,
David
/etc/printcap is
tcpip_printer: \
:direct: \
:rp=/pcl: \
:sd=/usr/spool/output/lpd/tcpip_printer: \
:ifhp=model=laserjet4: \
:filter=/usr/local/libexec/ifhp: \
:sh:
I'm using command "lpr -Ptcpip_printer printer_test.txt" to test printing.
"lprc status" shows
tcpip_printer:
queuing is disabled
printing is enabled
2 entries in spool area
sending to tcpip_printer
but the printer isn't printint anything.
Using "lprc enable all" changes the output of "lprc status" but printing isn't happening.
As an experiment, I tried "lprc restart all", which displayed:
tcpip_printer:
no daemon to abort
tcpip_printer:
printing enabled
daemon started
The "no daemon to abort" line is suspicious, so I ran "lprc restart all" again. It displayed the same output as before:n
tcpip_printer:
no daemon to abort
tcpip_printer:
printing enabled
daemon started
Directory /usr/spool/output/lpd/tcpip_printer/ has the following files:
drwxrwxr-x 2 root root 2048 Mar 06 11:17 .
drwxrwxr-x 3 root root 2048 Mar 06 10:28 ..
-rw-rw---x 1 root root 4 Mar 06 11:17 .seq
-rw-rw---- 1 bin root 84 Mar 06 11:14 cfA006qnx2
-rw-rw---- 1 bin root 84 Mar 06 11:17 cfA007qnx2
-rw-rw---- 1 root root 15 Mar 06 11:14 dfA006qnx2
-rw-rw---- 1 root root 15 Mar 06 11:17 dfA007qnx2
-rw-r-xr-- 1 root root 11 Mar 06 11:20 lock
-rw-rw-r-- 1 root root 25 Mar 01 12:45 status
Below is what I'm seeing.
Suggestions are requested!
Regards,
David
/etc/printcap is
tcpip_printer: \
:direct: \
:rp=/pcl: \
:sd=/usr/spool/output/lpd/tcpip_printer: \
:ifhp=model=laserjet4: \
:filter=/usr/local/libexec/ifhp: \
:sh:
I'm using command "lpr -Ptcpip_printer printer_test.txt" to test printing.
"lprc status" shows
tcpip_printer:
queuing is disabled
printing is enabled
2 entries in spool area
sending to tcpip_printer
but the printer isn't printint anything.
Using "lprc enable all" changes the output of "lprc status" but printing isn't happening.
As an experiment, I tried "lprc restart all", which displayed:
tcpip_printer:
no daemon to abort
tcpip_printer:
printing enabled
daemon started
The "no daemon to abort" line is suspicious, so I ran "lprc restart all" again. It displayed the same output as before:n
tcpip_printer:
no daemon to abort
tcpip_printer:
printing enabled
daemon started
Directory /usr/spool/output/lpd/tcpip_printer/ has the following files:
drwxrwxr-x 2 root root 2048 Mar 06 11:17 .
drwxrwxr-x 3 root root 2048 Mar 06 10:28 ..
-rw-rw---x 1 root root 4 Mar 06 11:17 .seq
-rw-rw---- 1 bin root 84 Mar 06 11:14 cfA006qnx2
-rw-rw---- 1 bin root 84 Mar 06 11:17 cfA007qnx2
-rw-rw---- 1 root root 15 Mar 06 11:14 dfA006qnx2
-rw-rw---- 1 root root 15 Mar 06 11:17 dfA007qnx2
-rw-r-xr-- 1 root root 11 Mar 06 11:20 lock
-rw-rw-r-- 1 root root 25 Mar 01 12:45 status
- relson
- Active Member
- Posts: 10
- Joined: Fri Nov 02, 2012 5:35 pm
Re: ethernet printer setup
I don't see anything obviously wrong. I'll mention one thing I've had to deal with.
Before printing I have to start the print daemon lpd:
# lpd
If I power down at this point, I can no longer start lpd. The solution is to first run chkfsys and fix the file system.
There is always a file /usr/spool/output/lpd.lock which left busy.
Before printing I have to start the print daemon lpd:
# lpd
If I power down at this point, I can no longer start lpd. The solution is to first run chkfsys and fix the file system.
There is always a file /usr/spool/output/lpd.lock which left busy.
- maschoen
- QNX Master
- Posts: 2306
- Joined: Wed Jun 25, 2003 5:18 pm
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 1 guest
