Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Using enum-par to get printer model name: (5 Items)
   
Using enum-par to get printer model name  
Hi,

I see from this link http://www.qnx.com/developers/docs/6.4.0/neutrino/utilities/p/phs-to-pcl.html that we can extract 
printer model using enum-par - "Get the PNP model information from your printer by using the enum-par".

If I run enum-par I end up with some number but I don't get the printer model!

Any thoughts on how to get the model of the connected printer. 
For example: If "HP 2000 Series" is connected, I'm expecting to get the printer name somehow so that I can verify if it 
is supported in the list displayed by "phs-to-pcl -m list_supported file.phs > /dev/null"
Re: Using enum-par to get printer model name  
Adding more input, when I connect the printer to the system through USB and give enum-par the following i displayed:

F1646679

How to decipher printer model name from this?
RE: Using enum-par to get printer model name  
Note that enum-par is for printers connected via the parallel port. Use
the "usb" command for usb printers. 

-----Original Message-----
From: Lakshminarayanan R [mailto:community-noreply@qnx.com] 
Sent: Friday, November 13, 2009 3:31 AM
To: momentics-community
Subject: Re: Using enum-par to get printer model name

Adding more input, when I connect the printer to the system through USB
and give enum-par the following i displayed:

F1646679

How to decipher printer model name from this?



_______________________________________________

QNX Momentics Community Support
http://community.qnx.com/sf/go/post41891
RE: Using enum-par to get printer model name  
Okay. But if I give the USB command I get many things displayed including the printer model name.

The problem is I want to obtain the model name from the application. So I'm required to parse the USB command. This is 
tedious.

Is there a way to get the printer model name alone for a printer connected to the USB port?

________________________________________
From: Max Feil [community-noreply@qnx.com]
Sent: Friday, November 13, 2009 6:49 PM
To: momentics-community
Subject: RE: Using enum-par to get printer model name

Note that enum-par is for printers connected via the parallel port. Use
the "usb" command for usb printers.

-----Original Message-----
From: Lakshminarayanan R [mailto:community-noreply@qnx.com]
Sent: Friday, November 13, 2009 3:31 AM
To: momentics-community
Subject: Re: Using enum-par to get printer model name

Adding more input, when I connect the printer to the system through USB
and give enum-par the following i displayed:

F1646679

How to decipher printer model name from this?



_______________________________________________

QNX Momentics Community Support
http://community.qnx.com/sf/go/post41891




_______________________________________________

QNX Momentics Community Support
http://community.qnx.com/sf/go/post41903
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------
RE: Using enum-par to get printer model name  
Spooler does it programmatically. Shouldn't be too hard to figure out
from the spooler source code on Foundry27 (graphics project, under
services/spooler). 

-----Original Message-----
From: Lakshminarayanan R [mailto:community-noreply@qnx.com] 
Sent: Friday, November 13, 2009 10:03 AM
To: momentics-community
Subject: RE: Using enum-par to get printer model name

Okay. But if I give the USB command I get many things displayed
including the printer model name.

The problem is I want to obtain the model name from the application. So
I'm required to parse the USB command. This is tedious.

Is there a way to get the printer model name alone for a printer
connected to the USB port?

________________________________________
From: Max Feil [community-noreply@qnx.com]
Sent: Friday, November 13, 2009 6:49 PM
To: momentics-community
Subject: RE: Using enum-par to get printer model name

Note that enum-par is for printers connected via the parallel port. Use
the "usb" command for usb printers.

-----Original Message-----
From: Lakshminarayanan R [mailto:community-noreply@qnx.com]
Sent: Friday, November 13, 2009 3:31 AM
To: momentics-community
Subject: Re: Using enum-par to get printer model name

Adding more input, when I connect the printer to the system through USB
and give enum-par the following i displayed:

F1646679

How to decipher printer model name from this?



_______________________________________________

QNX Momentics Community Support
http://community.qnx.com/sf/go/post41891




_______________________________________________

QNX Momentics Community Support
http://community.qnx.com/sf/go/post41903
DISCLAIMER:
------------------------------------------------------------------------
-----------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily
reflect the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and / or publication of 
this message without the prior written consent of the author of this
e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

------------------------------------------------------------------------
-----------------------------------------------



_______________________________________________

QNX Momentics Community Support
http://community.qnx.com/sf/go/post41915