dany
dany

Reputation: 11

how can I active RTS(RS232) pin in C#

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

Answers (1)

idanp
idanp

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

Related Questions