Modify the DCB boost :: asio :: serial_port structure
I would like to disable RTSControl using a function boost::asio::serial_port::set_option
. and also be able to raise or lower the line DTR
?
boost::asio::serial_port_base::baud_rate baud_option(115200);
serialPort.set_option(baud_option);
The standard options work fine, but I cannot figure out how to change
DCB
, or how to control the RS232 signal lines.
0
basilema
a source
to share
1 answer
Serial port options settable (highlighted by me):
In the table below, X denotes the port serial number, a denotes a value from X, ec denotes a value of type error_code, and s denotes a storage type value (where storage is a Windows DCB and termios on POSIX platforms), and u denotes an Identifier.
0
a source to share