Using serial number based device URI for USB printing

Sebastian James seb at hypercubesystems.co.uk
Tue Jun 28 02:57:29 PDT 2005


Hello List,

I'm trying to create a printer queue using the usb://MFG/MDL?serial=xxx device URI, but I'm having trouble.

I don't seem to be able to work out what to put on my lpadmin command line to create the queue.

I tried:

lpadmin -p hp9300_bysn -E -v usb://hp%20deskjet%209300?serial=MY34E330YK8D -m HP-DeskJet_9300-hpijs.ppd

with no success - my reading of the code seems to imply that this should be the right line, based on the following info gleaned from the printer:

MFG:hp;MDL:hp deskjet 9300;CMD:MLC,PCL,PML,DESKJET,DW-PCL,DYN;CLS:PRINTER;DES:hp deskjet 9300;P:0800,FL,B0;SN:MY34E330YK8D;S:0380008084000040002c1100012c2080005;

I've taken the description following DES: and the serial number following SN: and stripped the ';' delim character, to build the URI, then replaced the spaces with %20 to get:

usb://hp%20deskjet%209300?serial=MY34E330YK8D

I tried a few other things, such as escaping the space chars instead of using %20 and using mfg/mdl instead of dsc to create a line like:

usb://hp/hp\ deskjet\ 9300?serial=MY34E330YK8D

But in each case i get an error such as: "Unable to open USB device "usb://hp%20deskjet%209300?serial=MY34E330YK8D": No such device"

Can anyone tell me what I'm missing?

Seb




More information about the cups mailing list