Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] DTR serial port option?
From: Robert Dailey (rcdailey_at_[hidden])
Date: 2009-08-28 11:33:43


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_at_[hidden]> 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_at_[hidden]> 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:
>>
>>
>> http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.dtrenable.aspx
>>
>> <http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.dtrenable.aspx>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
>>
>
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net