Hi, your subject line and message body do not match: what is it you want to identify, the port to which something is attached, or that something itself? in any way, it will need some cooperation from the attached device. Here are the two basic ways to get information: 1. through the control lines Some devices, when powered and enabled, pull one or several control lines (see SerialPort properties CDHolding, CtsHolding, DsrHolding) 2. by actually communicating send commands to the device and look for the responses, if they fit your expectations chances are the expected device is on the port you are talking to. If you want to find the port, you probably need to loop over all available ports (see SerialPort.GetPortNames() :)
Luc Pattyn [Forum Guidelines] [My Articles]
Sorry for any delays in replying, I currently don't always get e-mail notifications.