Is there a method I could use on how to detect if a serial port is connected to the other serial port? Because I would like to trap if a device using serial connection is connected or not.

The SerialPort.isCD() is working but I don't know exactly if this is the appropriate method to use in trapping if a device is connected.

Thanks for any help.