Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CUPS USB device URI
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Vieri
Guru
Guru


Joined: 18 Dec 2005
Posts: 390

PostPosted: Thu Mar 20, 2014 10:18 am    Post subject: CUPS USB device URI Reply with quote

Hi,

I'm trying to figure out the format of a CUPS USB device URI.

If I setup a printer via CUPS web admin then I can see it usually creates a URI like so:

Code:
usb://HP/LaserJet%20Professional%20P1606dn?serial=000000000QA7618NPR1a


I also noticed that the serial value can be found with this method:

Code:

c_usb_serial=$( lsusb -d "${prn_vendor}:${prn_product}" -v | grep iSerial )
c_usb_serial=${c_usb_serial##* }


where
prn_vendor=0x03f0
prn_product=0x0a2a

First of all, will the vendor and product IDs (0x03f0:0x0a2a) always be the same for a given brand and model (I guess so)?

I'd also like to know if there's any other way of specifying a USB device URI instead of passing it the ?serial= parameter.
Is there anything else I could use?
I also tried to setup the URI usb://HP/LaserJet%20Professional%20P1606dn since the client will only be using 1 printer but it doesn't seem to work (no printing).

I'd also like to know why the serial number given by lsusb differs from the one on the product label.

Thanks,

Vieri
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum