CAPS Universe documentation
1.0.4
All you need to know to be successful
|
In order to select a corresponding driver to a printer device, some USB related entries are required:
Mandatory keys are:
Key | Description |
---|---|
vid | The Vendor ID, a unique numerical value |
pid | The Product ID, a unique numerical value |
Each vendor of USB devices has a unique ID. The same is valid for their products. When your printer device is attached to the system, you can use tools like lsusb
to retrieve these numerical values:
root@host:~ lsusb [...] Bus 001 Device 005: ID 04f9:209b Brother Industries, Ltd [...]
In this case the 04f9 is the Vendor ID and the 209b is the Product ID.
lsusb
command are meant in hexadecimal. For the INI file these values must lead by an 0x to mark them as hexadecimal.Optional keys are:
Key | Description |
---|---|
1284DeviceID | Some kind of string to identify the device. |
The 1284DeviceID key isn't yet used to identify the printer device. But it is a good idea to store if for the future. You can use the capsprninfo tool to retrieve this string from your printer.
root@host:~ capsprninfo id /dev/usb/lp0 MFG:Brother;CMD:PT-CBP;MDL:QL-800;CLS:PRINTER;CID:Brother LabelPrinter TypeE1;
An example of the [id] section:
[id] vid=0x04f9 pid=0x209b 1284DeviceID=MFG:Brother;CMD:PT-CBP;MDL:QL-800;CLS:PRINTER;CID:Brother LabelPrinter TypeE1;