LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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

Reply
 
Search this Thread
Old 12-14-2006, 12:09 AM   #1
helpmeforlinux
LQ Newbie
 
Registered: Aug 2006
Posts: 11

Rep: Reputation: 0
Talking 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.
 
Old 12-19-2006, 06:43 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,653

Rep: Reputation: Disabled
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.
 
Old 12-27-2006, 02:46 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,853

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.
 
Old 01-02-2007, 01:15 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,653

Rep: Reputation: Disabled
Here is the AT-command set:

http://www.inetdaemon.com/tutorials/..._commands.html
 
  


Reply


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
Serial/Parallel/Game Port Interfacing sparkyssb Programming 8 06-29-2006 01:41 PM
serial and parallel port with DMESG command froglinux Linux - Hardware 1 06-16-2006 08:51 PM
Parallel Port Device Driver rajtendulkar Linux - Hardware 4 03-16-2006 11:34 PM
linux device driver & parallel port albatros Linux - General 1 01-08-2003 04:25 PM
serial/parallel port marco_aq Linux - Networking 1 10-12-2001 02:44 PM


All times are GMT -5. The time now is 01:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration