C # serialport and hyperterminal

I use C # and Serialport and com0com (virtual serial ports) My problem is that my C # application cannot retrieve data from the hyperterminal, the DataRecived event does not fire, and if I call manualy readExisting, I get nothing To test this problem, you can create a basic C # application similar to this one that has the same problem http://balau82.wordpress.com/2009/04/18/simplest-serial-port-terminal-in-csharp/ if you run 2 instances of this application this is normal, but if you run one instance and a hyperterminal, the data is sent lyayutsya with C # on the HyperTerminal, but not hyper back.

+4
source share
1 answer

It is too simple, guaranteed not to work. You will need to set the communication properties in SerialPort to match them using HyperTerminal. Baudrate, DataBits, Parity and StopBits at a minimum. And HyperTerminal will not send anything if it does not detect the device online. You must set the RtsEnable and DtrEnable properties to true.

+5
source

All Articles