[cups.development] How to get printer manufacturer detail attached with LPT port?
Michael Sweet
msweet at apple.com
Wed May 9 16:59:15 PDT 2012
Gurneet,
On May 7, 2012, at 11:33 PM, Gurmeet Singh <gurmeet.janjua at yahoo.in> wrote:
> Hi,
>
> I am developing driver for 24-pin DMP.
> I want to get printer manufacturer detail attached with LPT port.
> I have googled but not found any method to get it.
>
> when i open http://localhost:631/admin/, It is showing name of printer like "ABC PQRXXXTT LPT #1 (ABC PQRXXXTT)".
> How i can get the same detail in rastertoepson filter.
> Is there any cups or other api to do this?
> what kind to method or api is doing same in http://localhost:631/admin/ ?
You *should* be able to query the 1284 Device ID string using the cupsSideChannelDoRequest API. See the CUPS documentation on how to use that:
http://www.cups.org/documentation.php/api-filter.html
However, many operating systems' parallel port drivers have bugs with this so it is better to provide a PPD file matched to the device ID so that you can look it up in the PPD instead of querying the device at print time.
__________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups-devel
mailing list