Wow, okay. So here's what I've figured out:

You have to specify the serial_port_base::flow_control option in order for the DTR and RTS to be set. If you don't, the code never gets executed. This whole time I thought that if I did not specify the flow_control option that these things would be set to their defaults. However, this does not seem to be the case. Rather dangerous!

Am I mistaken, or does this need to be addressed?

---------
Robert Dailey


On Fri, Aug 28, 2009 at 10:14 AM, Robert Dailey <rcdailey@gmail.com> wrote:
Actually, after looking deep into the serial_port implementation, I see that DTR_CONTROL_ENABLE is set on the port in:

serial_port_base::flow_control::store()

Is it disabled at any point?

---------
Robert Dailey



On Fri, Aug 28, 2009 at 9:55 AM, Robert Dailey <rcdailey@gmail.com> wrote:
Hello,

I'm rewriting a C# program in C++. This C# program previously was communicating with a device via serial port. One thing in particular it was doing was setting the DTR flag to enabled. The MSDN article on this option is here:


I do not see an option in the Boost.Asio documentation that is identical to this C# option. Can anyone comment on this? How can I enable DTR through Boost Asio's serial_port?

---------
Robert Dailey