jcurl / RJCP.DLL.SerialPortStream

SerialPortStream is an independent implementation of System.IO.Ports.SerialPort and SerialStream for better reliability and maintainability. Default branch is 2.x and now has support for Mono with help of a C library.
Microsoft Public License
624 stars 197 forks source link

How to check if there is no incomming data from external device #72

Closed cvq closed 5 years ago

cvq commented 5 years ago

Hi Everyone, Thank you Jcurl for your software. I want to check if there is no incomming data from external device connected to my PC via Serial port. (for example, when the external device is turn off). Please help. Thank you.

jcurl commented 5 years ago

It depends on the wires you have. Modems used extra signals, which if wired, can help you. Particularly the RI (Ring Indicator), or the CD (Carrier Detect). Additionally, if you have flow control, you can use the RTS/CTS or DTR/DTS signals to know if the remote device can receive data.

cvq commented 5 years ago

Thank you Jcurl.