Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
12-14-2006, 12:09 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2006
Posts: 11
Rep:
|
Parallel Port & Serial Port device identification
How to identify the device attached on parallel port as well as serial port. Like mouse, modem. or printer.
I m doing c programming and with help of it i found the ports but which device is attached that cound't found.
So how to identity this through c program.
Any good suggestion, idea, or c program is appreciated.
|
|
|
|
12-19-2006, 06:43 AM
|
#2
|
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 12.3_64-KDE, Ubuntu 12.04, Fedora 17, Mint 14, Chakra
Posts: 3,517
Rep: 
|
Sorry, I'm way out of my depth here. You might try to look up the Knoppix docu (Knoppix is renowned for its hardware detection) or Linux from Scratch: http://www.tldp.org/LDP/lfs/LFS-BOOK...-NOCHUNKS.html which has to implement it too and will probably explain how it is done...
Last edited by JZL240I-U; 12-19-2006 at 06:44 AM.
|
|
|
|
12-27-2006, 02:46 PM
|
#3
|
|
Moderator
Registered: Aug 2002
Posts: 10,699
|
There is no set standard for probing serial port devices. Serial modems use the AT command set and so you can query the device for the model and manufacture. Here is the protocol for a standad MS mouse.
http://users.tkk.fi/~then/mytexts/mouse.html
Parallel Printers use IEEE 1284 standard and it should provide details on the protocol.
Last edited by michaelk; 12-27-2006 at 02:54 PM.
|
|
|
|
01-02-2007, 01:15 AM
|
#4
|
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 12.3_64-KDE, Ubuntu 12.04, Fedora 17, Mint 14, Chakra
Posts: 3,517
Rep: 
|
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:33 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|