TCP/IP enabled printer?

Hello,

I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with voyager to
the IP address of the printer. My system is neutrino 6.3 SP1.

I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says “Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr is what
I need?

Maybe somebody can tell me the steps I have to follow to be able to print or
a good reference in the documentation…

Thanks

David Porta <DavidPorta@nospam.es> wrote:

Hello,

I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with voyager to
the IP address of the printer. My system is neutrino 6.3 SP1.

I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says “Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr is what
I need?

Maybe somebody can tell me the steps I have to follow to be able to print or
a good reference in the documentation…

You’ve already found the best description in the docs. If you have any
suggestions for improving it, please post them.

If lpd refuses to start, it might think there’s already an instance of
it running. Sometimes lpd dies and leaves its lock file around. If you’re
sure that lpd isn’t running (e.g. pidin | grep lpd shows nothing), remove
/usr/spool/output/lpd.lock, and then try starting lpd again.

I see that the entry for lpd in the Utilities Reference mentions removing
the lock file, but the Printing chapter in the Neutrino User’s Guide
doesn’t. I’ll create a doc PR.


Steve Reid stever@qnx.com
Technical Editor
QNX Software Systems

Steve Reid <stever@stevernto.ott.qnx.com> wrote:

David Porta <> DavidPorta@nospam.es> > wrote:
Hello,

I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with voyager to
the IP address of the printer. My system is neutrino 6.3 SP1.

I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says “Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr is what
I need?

Maybe somebody can tell me the steps I have to follow to be able to print or
a good reference in the documentation…

You’ve already found the best description in the docs. If you have any
suggestions for improving it, please post them.

If lpd refuses to start, it might think there’s already an instance of
it running. Sometimes lpd dies and leaves its lock file around. If you’re
sure that lpd isn’t running (e.g. pidin | grep lpd shows nothing), remove
/usr/spool/output/lpd.lock, and then try starting lpd again.

I see that the entry for lpd in the Utilities Reference mentions removing
the lock file, but the Printing chapter in the Neutrino User’s Guide
doesn’t. I’ll create a doc PR.

Also set up and run syslogd and check the logs for hints.

-seanb

Thanks!
also I had to create that folder “/usr/spool/output” witch was not in my
system. It is mentioned in the Utilities Reference…

“Steve Reid” <stever@stevernto.ott.qnx.com> escribió en el mensaje
news:engs4p$n1r$1@inn.qnx.com

David Porta <> DavidPorta@nospam.es> > wrote:
Hello,

I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with voyager
to
the IP address of the printer. My system is neutrino 6.3 SP1.

I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says
“Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr is
what
I need?

Maybe somebody can tell me the steps I have to follow to be able to print
or
a good reference in the documentation…

You’ve already found the best description in the docs. If you have any
suggestions for improving it, please post them.

If lpd refuses to start, it might think there’s already an instance of
it running. Sometimes lpd dies and leaves its lock file around. If you’re
sure that lpd isn’t running (e.g. pidin | grep lpd shows nothing), remove
/usr/spool/output/lpd.lock, and then try starting lpd again.

I see that the entry for lpd in the Utilities Reference mentions removing
the lock file, but the Printing chapter in the Neutrino User’s Guide
doesn’t. I’ll create a doc PR.


Steve Reid > stever@qnx.com
Technical Editor
QNX Software Systems

David Porta wrote:

Thanks!
also I had to create that folder “/usr/spool/output” witch was not in my
system. It is mentioned in the Utilities Reference…

“Steve Reid” <> stever@stevernto.ott.qnx.com> > escribió en el mensaje
news:engs4p$n1r$> 1@inn.qnx.com> …

David Porta <> DavidPorta@nospam.es> > wrote:

If lpd refuses to start, it might think there’s already an instance of
it running. Sometimes lpd dies and leaves its lock file around. If you’re
sure that lpd isn’t running (e.g. pidin | grep lpd shows nothing), remove
/usr/spool/output/lpd.lock, and then try starting lpd again.

That was our experience for years with QNX. About once every
two days, lpd would die for no visible reason, even if no printing was
being done, leaving its lock file behind. That really should
be fixed. Using a lock file is so Berkeley UNIX circa 1985.

QNX prints fine to TCP/IP enabled PostScript printers, including
from Photon, but getting it work the first time and keeping it running
is a pain.

John Nagle

“John Nagle” <nagle@downside.com> escribió en el mensaje
news:enjdgv$f88$1@inn.qnx.com

David Porta wrote:
Thanks!
also I had to create that folder “/usr/spool/output” witch was not in my
system. It is mentioned in the Utilities Reference…

“Steve Reid” <> stever@stevernto.ott.qnx.com> > escribió en el mensaje
news:engs4p$n1r$> 1@inn.qnx.com> …

David Porta <> DavidPorta@nospam.es> > wrote:

If lpd refuses to start, it might think there’s already an instance of
it running. Sometimes lpd dies and leaves its lock file around. If you’re
sure that lpd isn’t running (e.g. pidin | grep lpd shows nothing), remove
/usr/spool/output/lpd.lock, and then try starting lpd again.

That was our experience for years with QNX. About once every
two days, lpd would die for no visible reason, even if no printing was
being done, leaving its lock file behind. That really should
be fixed. Using a lock file is so Berkeley UNIX circa 1985.

QNX prints fine to TCP/IP enabled PostScript printers, including
from Photon, but getting it work the first time and keeping it running
is a pain.

John Nagle

Yes, I agree. I still cannot print a line…

lpd is running fine with this printcap:
/etc/printcap

printer1|HP Deskjet 6980:
:rm=printer1:
:rp=print:
:mx#0:
:sh

of course printer1 is present in the /etc/hosts file…

then I do:
lprc enable all
lprc start all
we can see:
printer1:
printing enabled
daemon started
I try to print:
lpr -Pprinter1 print.pcl
see the status: lpr status
printer1:
queuing is enabled
printing is enabled
2 enties in spool area
waiting for printer1 top come up

no action!!!

I can print without problems from my windows machine…after a 5 minuts
setup…
Of course I’m not expert at all in printer processes. Do I need to become
one?

What’s missing in my configuration?

Thanks

Please, make sure your host name is resolved i.e. defined in /etc/hosts.

Regards,
Maurizio Rossi

“David Porta” <DavidPorta@NoSpam.es> ha scritto nel messaggio
news:enl4k4$jn6$1@inn.qnx.com

“John Nagle” <> nagle@downside.com> > escribió en el mensaje
news:enjdgv$f88$> 1@inn.qnx.com> …
David Porta wrote:
Thanks!
also I had to create that folder “/usr/spool/output” witch was not in my
system. It is mentioned in the Utilities Reference…

“Steve Reid” <> stever@stevernto.ott.qnx.com> > escribió en el mensaje
news:engs4p$n1r$> 1@inn.qnx.com> …

David Porta <> DavidPorta@nospam.es> > wrote:

If lpd refuses to start, it might think there’s already an instance of
it running. Sometimes lpd dies and leaves its lock file around. If
you’re
sure that lpd isn’t running (e.g. pidin | grep lpd shows nothing),
remove
/usr/spool/output/lpd.lock, and then try starting lpd again.

That was our experience for years with QNX. About once every
two days, lpd would die for no visible reason, even if no printing was
being done, leaving its lock file behind. That really should
be fixed. Using a lock file is so Berkeley UNIX circa 1985.

QNX prints fine to TCP/IP enabled PostScript printers, including
from Photon, but getting it work the first time and keeping it running
is a pain.

John Nagle

Yes, I agree. I still cannot print a line…

lpd is running fine with this printcap:
/etc/printcap

printer1|HP Deskjet 6980:
:rm=printer1:
:rp=print:
:mx#0:
:sh

of course printer1 is present in the /etc/hosts file…

then I do:
lprc enable all
lprc start all
we can see:
printer1:
printing enabled
daemon started
I try to print:
lpr -Pprinter1 print.pcl
see the status: lpr status
printer1:
queuing is enabled
printing is enabled
2 enties in spool area
waiting for printer1 top come up

no action!!!

I can print without problems from my windows machine…after a 5 minuts
setup…
Of course I’m not expert at all in printer processes. Do I need to become
one?

What’s missing in my configuration?

Thanks

Thanks,

I’ve checked both the printer and the host are in /etc/hosts.
Pinging was also ok for both.

Regards,

David

“Maurizio Rossi” <mrossi@system-group.it> escribió en el mensaje
news:enlq9p$4cd$1@inn.qnx.com

Please, make sure your host name is resolved i.e. defined in /etc/hosts.

Regards,
Maurizio Rossi

“David Porta” <> DavidPorta@NoSpam.es> > ha scritto nel messaggio
news:enl4k4$jn6$> 1@inn.qnx.com> …

“John Nagle” <> nagle@downside.com> > escribió en el mensaje
news:enjdgv$f88$> 1@inn.qnx.com> …
David Porta wrote:
Thanks!
also I had to create that folder “/usr/spool/output” witch was not in
my system. It is mentioned in the Utilities Reference…

“Steve Reid” <> stever@stevernto.ott.qnx.com> > escribió en el mensaje
news:engs4p$n1r$> 1@inn.qnx.com> …

David Porta <> DavidPorta@nospam.es> > wrote:

If lpd refuses to start, it might think there’s already an instance of
it running. Sometimes lpd dies and leaves its lock file around. If
you’re
sure that lpd isn’t running (e.g. pidin | grep lpd shows nothing),
remove
/usr/spool/output/lpd.lock, and then try starting lpd again.

That was our experience for years with QNX. About once every
two days, lpd would die for no visible reason, even if no printing was
being done, leaving its lock file behind. That really should
be fixed. Using a lock file is so Berkeley UNIX circa 1985.

QNX prints fine to TCP/IP enabled PostScript printers, including
from Photon, but getting it work the first time and keeping it running
is a pain.

John Nagle

Yes, I agree. I still cannot print a line…

lpd is running fine with this printcap:
/etc/printcap

printer1|HP Deskjet 6980:
:rm=printer1:
:rp=print:
:mx#0:
:sh

of course printer1 is present in the /etc/hosts file…

then I do:
lprc enable all
lprc start all
we can see:
printer1:
printing enabled
daemon started
I try to print:
lpr -Pprinter1 print.pcl
see the status: lpr status
printer1:
queuing is enabled
printing is enabled
2 enties in spool area
waiting for printer1 top come up

no action!!!

I can print without problems from my windows machine…after a 5 minuts
setup…
Of course I’m not expert at all in printer processes. Do I need to become
one?

What’s missing in my configuration?

Thanks
\

I also need to install an HP6980 printer. Until now all my efforts have been
useless. It’s not possible that the installation of a standard device becomes a so
difficult and frustrating task.
Please, can somebody put a list of items to install a printer HP6980 in a just
installed Neutrino system?

I am requesting a list for clumsy people (like myself), not for experts.

Ask me if you need more details.

Thanks a lot


Steve Reid wrote:

David Porta <> DavidPorta@nospam.es> > wrote:
Hello,

I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with voyager to
the IP address of the printer. My system is neutrino 6.3 SP1.

I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says “Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr is what
I need?

Maybe somebody can tell me the steps I have to follow to be able to print or
a good reference in the documentation…

You’ve already found the best description in the docs. If you have any
suggestions for improving it, please post them.

If lpd refuses to start, it might think there’s already an instance of
it running. Sometimes lpd dies and leaves its lock file around. If you’re
sure that lpd isn’t running (e.g. pidin | grep lpd shows nothing), remove
/usr/spool/output/lpd.lock, and then try starting lpd again.

I see that the entry for lpd in the Utilities Reference mentions removing
the lock file, but the Printing chapter in the Neutrino User’s Guide
doesn’t. I’ll create a doc PR.


Steve Reid > stever@qnx.com
Technical Editor
QNX Software Systems

I’d like to see that kind of information too! I finally gave up, after many attempts, and wrote a trivial filter that sends files directly to our networked printers.

Murf

Alfred Carr wrote:

I also need to install an HP6980 printer. Until now all my efforts have been
useless. It’s not possible that the installation of a standard device becomes a so
difficult and frustrating task.
Please, can somebody put a list of items to install a printer HP6980 in a just
installed Neutrino system?

I am requesting a list for clumsy people (like myself), not for experts.

Ask me if you need more details.

Thanks a lot


Steve Reid wrote:

David Porta <> DavidPorta@nospam.es> > wrote:
Hello,
I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with voyager to
the IP address of the printer. My system is neutrino 6.3 SP1.
I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says “Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr is what
I need?
Maybe somebody can tell me the steps I have to follow to be able to print or
a good reference in the documentation…
You’ve already found the best description in the docs. If you have any
suggestions for improving it, please post them.

If lpd refuses to start, it might think there’s already an instance of
it running. Sometimes lpd dies and leaves its lock file around. If you’re
sure that lpd isn’t running (e.g. pidin | grep lpd shows nothing), remove
/usr/spool/output/lpd.lock, and then try starting lpd again.

I see that the entry for lpd in the Utilities Reference mentions removing
the lock file, but the Printing chapter in the Neutrino User’s Guide
doesn’t. I’ll create a doc PR.


Steve Reid > stever@qnx.com
Technical Editor
QNX Software Systems

Should you post your trivial filter, or any indication to help me wrote my own filter?
Thanks

“John A. Murphy” wrote:

I’d like to see that kind of information too! I finally gave up, after many attempts, and wrote a trivial filter that sends files directly to our networked printers.

Murf

Alfred Carr wrote:
I also need to install an HP6980 printer. Until now all my efforts have been
useless. It’s not possible that the installation of a standard device becomes a so
difficult and frustrating task.
Please, can somebody put a list of items to install a printer HP6980 in a just
installed Neutrino system?

I am requesting a list for clumsy people (like myself), not for experts.

Ask me if you need more details.

Thanks a lot


Steve Reid wrote:

David Porta <> DavidPorta@nospam.es> > wrote:
Hello,
I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with voyager to
the IP address of the printer. My system is neutrino 6.3 SP1.
I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says “Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr is what
I need?
Maybe somebody can tell me the steps I have to follow to be able to print or
a good reference in the documentation…
You’ve already found the best description in the docs. If you have any
suggestions for improving it, please post them.

If lpd refuses to start, it might think there’s already an instance of
it running. Sometimes lpd dies and leaves its lock file around. If you’re
sure that lpd isn’t running (e.g. pidin | grep lpd shows nothing), remove
/usr/spool/output/lpd.lock, and then try starting lpd again.

I see that the entry for lpd in the Utilities Reference mentions removing
the lock file, but the Printing chapter in the Neutrino User’s Guide
doesn’t. I’ll create a doc PR.


Steve Reid > stever@qnx.com
Technical Editor
QNX Software Systems

The breakthrough for me was discovering that many printers support port 9100; you can open a TCP connection to port 9100 on the printer and just send it data. I haven’t bothered to check into what happens if several people try to do this at the same time, but I’ve never had any problems. My “filter” is just a few lines of C that open a connection and copy stdin to it. Way too primitive for many applications, but it works for me…

Murf

Alfred Carr wrote:

Should you post your trivial filter, or any indication to help me wrote my own filter?
Thanks

“John A. Murphy” wrote:

I’d like to see that kind of information too! I finally gave up, after many attempts, and wrote a trivial filter that sends files directly to our networked printers.

Murf

Alfred Carr wrote:
I also need to install an HP6980 printer. Until now all my efforts have been
useless. It’s not possible that the installation of a standard device becomes a so
difficult and frustrating task.
Please, can somebody put a list of items to install a printer HP6980 in a just
installed Neutrino system?

I am requesting a list for clumsy people (like myself), not for experts.

Ask me if you need more details.

Thanks a lot


Steve Reid wrote:

David Porta <> DavidPorta@nospam.es> > wrote:
Hello,
I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with voyager to
the IP address of the printer. My system is neutrino 6.3 SP1.
I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says “Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr is what
I need?
Maybe somebody can tell me the steps I have to follow to be able to print or
a good reference in the documentation…
You’ve already found the best description in the docs. If you have any
suggestions for improving it, please post them.

If lpd refuses to start, it might think there’s already an instance of
it running. Sometimes lpd dies and leaves its lock file around. If you’re
sure that lpd isn’t running (e.g. pidin | grep lpd shows nothing), remove
/usr/spool/output/lpd.lock, and then try starting lpd again.

I see that the entry for lpd in the Utilities Reference mentions removing
the lock file, but the Printing chapter in the Neutrino User’s Guide
doesn’t. I’ll create a doc PR.


Steve Reid > stever@qnx.com
Technical Editor
QNX Software Systems

Thanks, this primitive methos almost works!
If no more help from QNX I’ll use it.

Somebody from QSSL can guide me to configure the Neutrino drivers?

“John A. Murphy” wrote:

The breakthrough for me was discovering that many printers support port 9100; you can open a TCP connection to port 9100 on the printer and just send it data. I haven’t bothered to check into what happens if several people try to do this at the same time, but I’ve never had any problems. My “filter” is just a few lines of C that open a connection and copy stdin to it. Way too primitive for many applications, but it works for me…

Murf

Alfred Carr wrote:
Should you post your trivial filter, or any indication to help me wrote my own filter?
Thanks

“John A. Murphy” wrote:

I’d like to see that kind of information too! I finally gave up, after many attempts, and wrote a trivial filter that sends files directly to our networked printers.

Murf

Alfred Carr wrote:
I also need to install an HP6980 printer. Until now all my efforts have been
useless. It’s not possible that the installation of a standard device becomes a so
difficult and frustrating task.
Please, can somebody put a list of items to install a printer HP6980 in a just
installed Neutrino system?

I am requesting a list for clumsy people (like myself), not for experts.

Ask me if you need more details.

Thanks a lot


Steve Reid wrote:

David Porta <> DavidPorta@nospam.es> > wrote:
Hello,
I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with voyager to
the IP address of the printer. My system is neutrino 6.3 SP1.
I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says “Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr is what
I need?
Maybe somebody can tell me the steps I have to follow to be able to print or
a good reference in the documentation…
You’ve already found the best description in the docs. If you have any
suggestions for improving it, please post them.

If lpd refuses to start, it might think there’s already an instance of
it running. Sometimes lpd dies and leaves its lock file around. If you’re
sure that lpd isn’t running (e.g. pidin | grep lpd shows nothing), remove
/usr/spool/output/lpd.lock, and then try starting lpd again.

I see that the entry for lpd in the Utilities Reference mentions removing
the lock file, but the Printing chapter in the Neutrino User’s Guide
doesn’t. I’ll create a doc PR.


Steve Reid > stever@qnx.com
Technical Editor
QNX Software Systems

Hello,

First, I want to thanks for all the answers…

I still cannot print. This is a short description of what I am trying to do.
Maybe someone can take a look:

The Printer is called Impresora and is in the same network of my Qnx
Neutrino machine (called nodo1).
Impresora is a HP Deskjet 6980 and I would like to use it as network
printer.

I can ping with no problems from nodo1 to Impresora. Also I can connect with
voyager to it.
Another test (thanks John A. Murphy) is to “print something” using telnet:
telnet Impresora -9100 and write something…OK

my configuration:
/etc/hosts (with nodo1 and Impresora)
/etc/printcap
Impresora:
:rp:Impresora:sd=/usr/spool/output/lpd/Impresora (the
folder exists)

After
#lpd
#lprc enable all
#lprc start all
#lpr -PImpresora file.txt

I cannot print…
#lprc status
queuing is enabled
printing is enabled
1 entry in spool area
waiting to Impresora to come up

Something wrong??

Thanks,

David



“David Porta” <DavidPorta@NoSpam.es> escribió en el mensaje
news:engnlf$kja$1@inn.qnx.com

Hello,

I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with voyager
to the IP address of the printer. My system is neutrino 6.3 SP1.

I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says “Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr is
what I need?

Maybe somebody can tell me the steps I have to follow to be able to print
or a good reference in the documentation…

Thanks

lpr uses TCP port 515. Make sure the printer is listening on that port.

My printcap line is something like this:
friendlyname:
:rm=serverip:lp=:rp=queuename:mx#0

According to this HP support document (
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpj02836
) a queuename of “auto” will auto-switch between text and RAW. In your
case, since you want to connect directly to the printer, you would
probably set rm= the IP or hostname of the printer.


Ryan J. Allen
ryallen@qnx.com


David Porta wrote:

Hello,

First, I want to thanks for all the answers…

I still cannot print. This is a short description of what I am trying to do.
Maybe someone can take a look:

The Printer is called Impresora and is in the same network of my Qnx
Neutrino machine (called nodo1).
Impresora is a HP Deskjet 6980 and I would like to use it as network
printer.

I can ping with no problems from nodo1 to Impresora. Also I can connect with
voyager to it.
Another test (thanks John A. Murphy) is to “print something” using telnet:
telnet Impresora -9100 and write something…OK

my configuration:
/etc/hosts (with nodo1 and Impresora)
/etc/printcap
Impresora:
:rp:Impresora:sd=/usr/spool/output/lpd/Impresora (the
folder exists)

After
#lpd
#lprc enable all
#lprc start all
#lpr -PImpresora file.txt

I cannot print…
#lprc status
queuing is enabled
printing is enabled
1 entry in spool area
waiting to Impresora to come up

Something wrong??

Thanks,

David



“David Porta” <> DavidPorta@NoSpam.es> > escribió en el mensaje
news:engnlf$kja$> 1@inn.qnx.com> …
Hello,

I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with voyager
to the IP address of the printer. My system is neutrino 6.3 SP1.

I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says “Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr is
what I need?

Maybe somebody can tell me the steps I have to follow to be able to print
or a good reference in the documentation…

Thanks
\

According to HP support document the printer is listening only in ports 9100, 9101
& 9102.
I’ve not found how to change this in the printer configuration…

Is there a chance to change the port lpr uses?
By the way, is lpr or lpd who communicate with the printer. I suspect it’s lpd.
I’ve tried execute “lpd 9100”, but with no success.

Alfred

“Ryan J. Allen” wrote:

lpr uses TCP port 515. Make sure the printer is listening on that port.

My printcap line is something like this:
friendlyname:
:rm=serverip:lp=:rp=queuename:mx#0

According to this HP support document (
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpj02836
) a queuename of “auto” will auto-switch between text and RAW. In your
case, since you want to connect directly to the printer, you would
probably set rm= the IP or hostname of the printer.


Ryan J. Allen
ryallen@qnx.com

David Porta wrote:
Hello,

First, I want to thanks for all the answers…

I still cannot print. This is a short description of what I am trying to do.
Maybe someone can take a look:

The Printer is called Impresora and is in the same network of my Qnx
Neutrino machine (called nodo1).
Impresora is a HP Deskjet 6980 and I would like to use it as network
printer.

I can ping with no problems from nodo1 to Impresora. Also I can connect with
voyager to it.
Another test (thanks John A. Murphy) is to “print something” using telnet:
telnet Impresora -9100 and write something…OK

my configuration:
/etc/hosts (with nodo1 and Impresora)
/etc/printcap
Impresora:
:rp:Impresora:sd=/usr/spool/output/lpd/Impresora (the
folder exists)

After
#lpd
#lprc enable all
#lprc start all
#lpr -PImpresora file.txt

I cannot print…
#lprc status
queuing is enabled
printing is enabled
1 entry in spool area
waiting to Impresora to come up

Something wrong??

Thanks,

David



“David Porta” <> DavidPorta@NoSpam.es> > escribió en el mensaje
news:engnlf$kja$> 1@inn.qnx.com> …
Hello,

I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with voyager
to the IP address of the printer. My system is neutrino 6.3 SP1.

I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says “Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr is
what I need?

Maybe somebody can tell me the steps I have to follow to be able to print
or a good reference in the documentation…

Thanks
\

It does not accept a port number from command line, however,
looks like it use the “printer/tcp” services. So I suppose
you can modify your /etc/services, changte that “printer …”
line from port 515 to 9100.

-xtang

Joan Baucells <j.baucells@nospam.es> wrote:

According to HP support document the printer is listening only in ports 9100, 9101
& 9102.
I’ve not found how to change this in the printer configuration…

Is there a chance to change the port lpr uses?
By the way, is lpr or lpd who communicate with the printer. I suspect it’s lpd.
I’ve tried execute “lpd 9100”, but with no success.

Alfred

“Ryan J. Allen” wrote:

lpr uses TCP port 515. Make sure the printer is listening on that port.

My printcap line is something like this:
friendlyname:
:rm=serverip:lp=:rp=queuename:mx#0

According to this HP support document (
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpj02836
) a queuename of “auto” will auto-switch between text and RAW. In your
case, since you want to connect directly to the printer, you would
probably set rm= the IP or hostname of the printer.


Ryan J. Allen
ryallen@qnx.com

David Porta wrote:
Hello,

First, I want to thanks for all the answers…

I still cannot print. This is a short description of what I am trying to do.
Maybe someone can take a look:

The Printer is called Impresora and is in the same network of my Qnx
Neutrino machine (called nodo1).
Impresora is a HP Deskjet 6980 and I would like to use it as network
printer.

I can ping with no problems from nodo1 to Impresora. Also I can connect with
voyager to it.
Another test (thanks John A. Murphy) is to “print something” using telnet:
telnet Impresora -9100 and write something…OK

my configuration:
/etc/hosts (with nodo1 and Impresora)
/etc/printcap
Impresora:
:rp:Impresora:sd=/usr/spool/output/lpd/Impresora (the
folder exists)

After
#lpd
#lprc enable all
#lprc start all
#lpr -PImpresora file.txt

I cannot print…
#lprc status
queuing is enabled
printing is enabled
1 entry in spool area
waiting to Impresora to come up

Something wrong??

Thanks,

David



“David Porta” <> DavidPorta@NoSpam.es> > escribi? en el mensaje
news:engnlf$kja$> 1@inn.qnx.com> …
Hello,

I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with voyager
to the IP address of the printer. My system is neutrino 6.3 SP1.

I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says “Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr is
what I need?

Maybe somebody can tell me the steps I have to follow to be able to print
or a good reference in the documentation…

Thanks

\

yes, I’ve used the sniffer and we see that lpd try to connect using port 515
:frowning:
Changing port number in this /etc/services we reach some kind of
comunication with port 9100. But only extrange charaters are printed…I try
to investigate a little bit more…

First step is donne. Thanks xtang

David


<xtang@qnx.com> escribió en el mensaje news:eo6jku$d7m$1@inn.qnx.com

It does not accept a port number from command line, however,
looks like it use the “printer/tcp” services. So I suppose
you can modify your /etc/services, changte that “printer …”
line from port 515 to 9100.

-xtang

Joan Baucells <> j.baucells@nospam.es> > wrote:
According to HP support document the printer is listening only in ports
9100, 9101
& 9102.
I’ve not found how to change this in the printer configuration…

Is there a chance to change the port lpr uses?
By the way, is lpr or lpd who communicate with the printer. I suspect
it’s lpd.
I’ve tried execute “lpd 9100”, but with no success.

Alfred

“Ryan J. Allen” wrote:

lpr uses TCP port 515. Make sure the printer is listening on that port.

My printcap line is something like this:
friendlyname:
:rm=serverip:lp=:rp=queuename:mx#0

According to this HP support document (
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpj02836
) a queuename of “auto” will auto-switch between text and RAW. In your
case, since you want to connect directly to the printer, you would
probably set rm= the IP or hostname of the printer.


Ryan J. Allen
ryallen@qnx.com

David Porta wrote:
Hello,

First, I want to thanks for all the answers…

I still cannot print. This is a short description of what I am trying
to do.
Maybe someone can take a look:

The Printer is called Impresora and is in the same network of my Qnx
Neutrino machine (called nodo1).
Impresora is a HP Deskjet 6980 and I would like to use it as network
printer.

I can ping with no problems from nodo1 to Impresora. Also I can
connect with
voyager to it.
Another test (thanks John A. Murphy) is to “print something” using
telnet:
telnet Impresora -9100 and write something…OK

my configuration:
/etc/hosts (with nodo1 and Impresora)
/etc/printcap
Impresora:
:rp:Impresora:sd=/usr/spool/output/lpd/Impresora
(the
folder exists)

After
#lpd
#lprc enable all
#lprc start all
#lpr -PImpresora file.txt

I cannot print…
#lprc status
queuing is enabled
printing is enabled
1 entry in spool area
waiting to Impresora to come up

Something wrong??

Thanks,

David



“David Porta” <> DavidPorta@NoSpam.es> > escribi? en el mensaje
news:engnlf$kja$> 1@inn.qnx.com> …
Hello,

I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with
voyager
to the IP address of the printer. My system is neutrino 6.3 SP1.

I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says
“Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr
is
what I need?

Maybe somebody can tell me the steps I have to follow to be able to
print
or a good reference in the documentation…

Thanks

\

Is it possible to get lpd source code?


“David Porta” <DavidPorta@NoSpam.es> escribió en el mensaje
news:eo7uep$b9v$1@inn.qnx.com

yes, I’ve used the sniffer and we see that lpd try to connect using port
515 > :frowning:
Changing port number in this /etc/services we reach some kind of
comunication with port 9100. But only extrange charaters are printed…I
try to investigate a little bit more…

First step is donne. Thanks xtang

David


xtang@qnx.com> > escribió en el mensaje news:eo6jku$d7m$> 1@inn.qnx.com> …
It does not accept a port number from command line, however,
looks like it use the “printer/tcp” services. So I suppose
you can modify your /etc/services, changte that “printer …”
line from port 515 to 9100.

-xtang

Joan Baucells <> j.baucells@nospam.es> > wrote:
According to HP support document the printer is listening only in ports
9100, 9101
& 9102.
I’ve not found how to change this in the printer configuration…

Is there a chance to change the port lpr uses?
By the way, is lpr or lpd who communicate with the printer. I suspect
it’s lpd.
I’ve tried execute “lpd 9100”, but with no success.

Alfred

“Ryan J. Allen” wrote:

lpr uses TCP port 515. Make sure the printer is listening on that
port.

My printcap line is something like this:
friendlyname:
:rm=serverip:lp=:rp=queuename:mx#0

According to this HP support document (
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpj02836
) a queuename of “auto” will auto-switch between text and RAW. In your
case, since you want to connect directly to the printer, you would
probably set rm= the IP or hostname of the printer.


Ryan J. Allen
ryallen@qnx.com

David Porta wrote:
Hello,

First, I want to thanks for all the answers…

I still cannot print. This is a short description of what I am trying
to do.
Maybe someone can take a look:

The Printer is called Impresora and is in the same network of my Qnx
Neutrino machine (called nodo1).
Impresora is a HP Deskjet 6980 and I would like to use it as network
printer.

I can ping with no problems from nodo1 to Impresora. Also I can
connect with
voyager to it.
Another test (thanks John A. Murphy) is to “print something” using
telnet:
telnet Impresora -9100 and write something…OK

my configuration:
/etc/hosts (with nodo1 and Impresora)
/etc/printcap
Impresora:
:rp:Impresora:sd=/usr/spool/output/lpd/Impresora (the
folder exists)

After
#lpd
#lprc enable all
#lprc start all
#lpr -PImpresora file.txt

I cannot print…
#lprc status
queuing is enabled
printing is enabled
1 entry in spool area
waiting to Impresora to come up

Something wrong??

Thanks,

David



“David Porta” <> DavidPorta@NoSpam.es> > escribi? en el mensaje
news:engnlf$kja$> 1@inn.qnx.com> …
Hello,

I just want to print a snapshot over a TCP/IP printer, say HP
Deskjet
6980…At this point the only thing I can do is to connect with
voyager
to the IP address of the printer. My system is neutrino 6.3 SP1.

I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says
“Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr
is
what I need?

Maybe somebody can tell me the steps I have to follow to be able to
print
or a good reference in the documentation…

Thanks



\

Is the service listening on port 9100 lpd compatible? If it uses a
different protocol to submit/manage printjobs then lpd won’t work.


Ryan J. Allen
ryallen@qnx.com


David Porta wrote:

yes, I’ve used the sniffer and we see that lpd try to connect using port 515
:frowning:
Changing port number in this /etc/services we reach some kind of
comunication with port 9100. But only extrange charaters are printed…I try
to investigate a little bit more…

First step is donne. Thanks xtang

David


xtang@qnx.com> > escribió en el mensaje news:eo6jku$d7m$> 1@inn.qnx.com> …
It does not accept a port number from command line, however,
looks like it use the “printer/tcp” services. So I suppose
you can modify your /etc/services, changte that “printer …”
line from port 515 to 9100.

-xtang

Joan Baucells <> j.baucells@nospam.es> > wrote:
According to HP support document the printer is listening only in ports
9100, 9101
& 9102.
I’ve not found how to change this in the printer configuration…

Is there a chance to change the port lpr uses?
By the way, is lpr or lpd who communicate with the printer. I suspect
it’s lpd.
I’ve tried execute “lpd 9100”, but with no success.

Alfred

“Ryan J. Allen” wrote:

lpr uses TCP port 515. Make sure the printer is listening on that port.

My printcap line is something like this:
friendlyname:
:rm=serverip:lp=:rp=queuename:mx#0

According to this HP support document (
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpj02836
) a queuename of “auto” will auto-switch between text and RAW. In your
case, since you want to connect directly to the printer, you would
probably set rm= the IP or hostname of the printer.


Ryan J. Allen
ryallen@qnx.com

David Porta wrote:
Hello,

First, I want to thanks for all the answers…

I still cannot print. This is a short description of what I am trying
to do.
Maybe someone can take a look:

The Printer is called Impresora and is in the same network of my Qnx
Neutrino machine (called nodo1).
Impresora is a HP Deskjet 6980 and I would like to use it as network
printer.

I can ping with no problems from nodo1 to Impresora. Also I can
connect with
voyager to it.
Another test (thanks John A. Murphy) is to “print something” using
telnet:
telnet Impresora -9100 and write something…OK

my configuration:
/etc/hosts (with nodo1 and Impresora)
/etc/printcap
Impresora:
:rp:Impresora:sd=/usr/spool/output/lpd/Impresora
(the
folder exists)

After
#lpd
#lprc enable all
#lprc start all
#lpr -PImpresora file.txt

I cannot print…
#lprc status
queuing is enabled
printing is enabled
1 entry in spool area
waiting to Impresora to come up

Something wrong??

Thanks,

David



“David Porta” <> DavidPorta@NoSpam.es> > escribi? en el mensaje
news:engnlf$kja$> 1@inn.qnx.com> …
Hello,

I just want to print a snapshot over a TCP/IP printer, say HP Deskjet
6980…At this point the only thing I can do is to connect with
voyager
to the IP address of the printer. My system is neutrino 6.3 SP1.

I’ve read in the documentation the chapter "Remote printing to a
TCP/IP-enabled printer using lpr but when I try to print, lpr says
“Please
start lpd” and when I start lpd, it stops…I don’t even know if lpr
is
what I need?

Maybe somebody can tell me the steps I have to follow to be able to
print
or a good reference in the documentation…

Thanks

\