![]() |
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. |
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...
|
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. |
|
| All times are GMT -5. The time now is 04:19 PM. |