Unable to open USB device

Michael Sweet mike at easysw.com
Fri Apr 18 00:18:36 PDT 2008


Justin Huang wrote:
>>> How does Linux or CUPS do for mapping the form "usb:/MFG/MDL" to the physical device file "/dev/usb/lpN"?
>> We open every USB printer and get the 1284 device ID, which gives us
>> the make and model.
>>
> 
> Could you show me how to get the 1284 device ID? Are there any system calls or utilities?

The CUPS source code (backend/usb-unix.c) shows exactly how we do it.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com




More information about the cups mailing list