LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How can I detect the Serial Port Device ? (https://www.linuxquestions.org/questions/linux-hardware-18/how-can-i-detect-the-serial-port-device-507287/)

lovelylinux 12-04-2006 12:44 AM

How can I detect the Serial Port Device ?
 
Hi to all,

I want to get the Product ID, Vendor ID and Manufacturer of the Serial Port Device attached.

I want to get all the information regarding to serial port without using the proc file.

How can I get all the Information ?

Please give the Details.

Any good suggestion is appreciated.

Thanks.

Simon Bridge 12-04-2006 01:15 AM

um plug it in and reboot, see if it is detected (dmesg).

Some reading:
http://tldp.org/HOWTO/Serial-HOWTO.html

AFAIK: there is no way in general. I had this up a while ago when I wanted to find out about an ISA modem. What exactly are you trying to acheive?

lovelylinux 12-04-2006 04:04 AM

Thanks Simon for reply

Actually my task is to detect any Serial Device and get the Vendor ID , Product ID and Manufacturer Name and update my running application.

Please Give me other Details.

Thanks.

michaelk 12-04-2006 07:34 AM

Are you refering to devices connected to the serial port or the serial port itself?

In general there isn't a standard protocol for finding information or communicating to a serial device similar to USB devices.

Most MODEMS are AT command compatable and so can be easily identified. I know that serial mice can be probed too but don't know what information can be determined.

Simon Bridge 12-06-2006 08:20 PM

Quote:

Originally Posted by lovelylinux
Actually my task is [snip]

"Your task"?? What exactly is this for?


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