LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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:03 AM   #1
akhilbaai
LQ Newbie
 
Registered: Aug 2015
Posts: 20

Rep: Reputation: Disabled
how cups identifies locally connected usb printers


Hi,

I would like to use cups APIs for setting up printing system in an embedded target.
I don't want the entire cups features but basic installation and dot-matrix graphics printing is required.

When I connect a usb printer to my Ubuntu pc,
I can see the connected printed listed in cups web interface..

I'm interested in knowing what happens under the hood from connecting usb printer and cups identifying it.. what are the required cups APIs that can perform the same ?
 
Old 11-20-2015, 01:46 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I'm gonna venture a calculated guess that the Common Unix Printing System polls the system using dmesg, or dbus?

https://www.openprinting.org/downloa...onnections.pdf
says this:
The backends do not only send data to the appropriate devices. They are also called when CUPS
is started. They autodetect which printer models are connected to which ports.

But it doesn't say how auto-detect is accomplished. And only mentions parallel ports and bi-directional
communications.

Another decent reference is https://wiki.gentoo.org/wiki/Printin...nter_.28USB.29 which only says
USB support enabled as some printer drivers require the usblp kernel module.

and mentions dbus on that page as an option for "emerge" (their package manager)

So, I conclude dmesg and/or dbus.

Kernel module stuff all gets 'trapped' by dmesg.

I hope that's helpful.

See also the API references at http://cups.org/documentation.php/doc-2.1/api-cups.html

Last edited by Habitual; 11-20-2015 at 01:51 PM.
 
  


Reply

Tags
api, cups, printer, usb



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] CUPS and multiple USB printers _jeremy Linux - Software 3 08-04-2011 05:44 PM
[cups] "no printers found" - printer isn't recognized by CUPS over network Majin_Buu Linux - Server 3 06-18-2009 10:25 AM
"Printer not connected.." with CUPS 1.2.10 and Brother MFC-215C USB mattp52 Linux - Hardware 1 09-18-2007 03:39 AM
Printing locally from Terminal while connected remotely ospreyeagle Linux - General 1 01-28-2006 09:16 AM
Hotplugging USB, CUPS, and printers jrdioko Linux - Newbie 3 08-13-2005 10:57 PM

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

All times are GMT -5. The time now is 10:38 PM.

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