C# Hardware Flow Control (COM)

kingy0489
kingy0489 used Ask the Experts™
on
Hello,

I need to connect to a serial port with hardware flow control enabled. My hardware manufacturer has recommended I use Hardware Flow Control.

While, in my mother tongue of C I would know how to do this, I was hoping C# has made things little more friendly.

If anyone could help, all my manufacturer has told me is Hardware flow control, so I am assuming RTS


if (comPort.IsOpen)
    comPort.Close();
comPort.BaudRate = 115200;
comPort.DataBits = 8;
comPort.StopBits = (StopBits) 1;
comPort.Parity = Parity.None;
comPort.PortName = "COM4";
comPort.ReceivedBytesThreshold = 4;
comPort.Open();

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
The SerialPort class has a Handshake property - try setting it to Handshake.RequestToSend?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial