Identical printers, sub backend

Fernando fmaresca at gmail.com
Fri Dec 21 02:41:03 PST 2007


> Fernando wrote:
> > Hello.
> > I'm running Debian unstable's cups server v1.3.4. My problem is that I can't find a way to set up cups so it can differentiate two (or more) identical usb printers.
> > I've read somewhere that is possible to specify the printer serial number in the printer's URI in the form:
> >   DeviceURI usb://MANUF/Model?serial=55443355
> > but this didn't work at all.
> > I've also tryed to specify the device in the form:
> >  DeviceURI usb:/dev/usb/lp0
> > and this didn't work either.
> >
> > The output of backend usb is:
> > direct usb://Xerox/Phaser%203124 "Xerox Phaser 3124" "Xerox Phaser 3124 USB #1" "MFG:Xerox;CMD:GDI;MDL:Phaser 3124;CLS:PRINTER;STATUS:BUSY;@"
> > direct usb://Xerox/Phaser%203124 "Xerox Phaser 3124" "Xerox Phaser 3124 USB #2" "MFG:Xerox;CMD:GDI;MDL:Phaser 3124;CLS:PRINTER;STATUS:BUSY;@"
> >
> > Although this seems to differentiate these two printers (USB #1 and #2) the URI showed is the same. So my question is, what's the way to indicate CUPS which printer has to be used?
>
> CUPS depends on a serial number coming from the printer - this
> particular model does not appear to report its serial number in the
> 1284 device information, so we can't differentiate between them.
What you mean with "1284 device information"? Can you explain, please?
The printer serial number is reported by usb backend in the box:
cat /proc/bus/usb/devices
...
T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1
P:  Vendor=0924 ProdID=3ce9 Rev= 1.00
S:  Manufacturer=Xerox Corporation
S:  Product=Xerox Phaser 3124
S:  SerialNumber=CAU467739.......
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
...
>From where CUPS obtains the printer manufacturer and model, but not the SN?

Also, I've looked through several boxes with CUPS and different printers here, form Epson Cxx (seven printers) to HP laserjets (two printers), and never ever CUPS reports the serial number attached to manufacturer and model, but the usb subsystem of the box does.
So this is standard CUPS behaviour or I'm with very bad luck about printers here.

Thanks a lot,
Fernando




>
> Unfortunately, you can't even depend on the device filenames since
> they are assigned dynamically.
>
> --
> ______________________________________________________________________
> Michael Sweet, Easy Software Products           mike at easysw dot com





More information about the cups mailing list