How are RTSEnable
and DtrEnable
used? I am finding that some balances can communicate with my app but others can't even though the settings match. (baud rate, parity, data bits, stop bits and handshake)
The serial port settings are saved in the configurations file and the idea is to support different combinations of the possible settings, if needed. Normally, our devices are programmed to have handshake = NONE
, but in case some odd device can't have handshake=NONE
, should I insert a condition such as:
if (serialport.Handshake != NONE) {
serialport.RTSEnable = true;
serialport.DtrEnable = true;
}
Or rather, will other handshakes (other than NONE
) work without RTSEnable
and DtrEnable
being set to true
?
Best Answer
Whether or not hardware handshaking is required is based solely on the serial device you're attaching to. You would have to read the OEM specs for the device and see if the device needs handshaking and if it needs any special handling of RTS or DTR.