views:

220

answers:

1

I'd like to disable RTSControl using boost::asio::serial_port set_option function. and also be able to raise or lower the DTR line?

boost::asio::serial_port_base::baud_rate baud_option(115200); serialPort.set_option(baud_option);

the standard options work great, but I can't figure out how to change the dcb structure, or how to control the rs232 signal lines.

A: 

Settable serial port option requirements (emphasis mine):

In the table below, X denotes a serial port option class, a denotes a value of X, ec denotes a value of type error_code, and s denotes a value of implementation-defined type storage (where storage is the type DCB on Windows and termios on POSIX platforms), and u denotes an identifier.

Don