Reputation: 11
I want to send pulse to my electronic board with RS232 line Can I use RTS pin ?(after that my board get pulse and start to sending data to PC ) how can I active this pin in C# ?
Upvotes: 0
Views: 3506
Reputation: 1122
try:
port.RtsEnable = true;
Thread.Sleep(1000); // ~1000 ms pulse width
port.RtsEnable = false;
Be aware that the behavior of the RTS pin can be unexpected before opening the port (from my experience it's depending on your hardware, FTDI chips goes on/off several times on initializing).
Suggesting to use some real RS232 relay (which is very cheap) - for full and stable control over the voltage and the state.
Upvotes: 2