LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Parallel Port & Serial Port device identification (http://www.linuxquestions.org/questions/linux-hardware-18/parallel-port-and-serial-port-device-identification-510262/)

helpmeforlinux 12-14-2006 12:09 AM

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.

JZL240I-U 12-19-2006 06:43 AM

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...

michaelk 12-27-2006 02:46 PM

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.

JZL240I-U 01-02-2007 01:15 AM

Here is the AT-command set:

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


All times are GMT -5. The time now is 08:03 PM.