LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2015, 04:06 AM   #1
akhilbaai
LQ Newbie
 
Registered: Aug 2015
Posts: 20

Rep: Reputation: Disabled
is device-uri of printer mapping to device file


Hi,

I've seen a term "device-uri" in cups. For my connected printer, device file is located at /dev/usb/lp0 but device-uri is usb://OKI%20DATA%20CORP/ML186 who creates device-uri?
if I want to configure printer using API's , how can I know which is the correct device-uri ? where does in configuration I mention, which printer device fie to use ?
 
Old 11-20-2015, 01:04 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,677

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
cups uses libusb which allows it to communicate with USB devices without the need for kernel mode drivers. In the past one had to blacklist the usblp module or it would conflict with libusb. So cups creates the device URI usb://OKI20DATA%20CORP/ML186.
 
  


Reply

Tags
api, cups, printer, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Finding the path to the Device URI rubyyarn Linux - Hardware 10 01-21-2014 10:41 AM
How to find the /dev/Device mapping for NFS file system in RHEL srithi Linux - Newbie 2 06-20-2010 08:27 AM
mapping usb device to device file scerenon Linux - Hardware 12 07-20-2006 04:13 PM
lpadmin/lpdd device uri not working tomolesonjr Linux - Networking 0 04-07-2006 06:59 PM
Trying to setup printer, what is Device and device URI ? M$ISBS Linux - Hardware 1 07-20-2005 11:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration