Boost logo

Boost Users :

Subject: [Boost-users] [asio] serial_port::async_read_some() with native COM ports on WIN32
From: Running Razor (runningrazor_at_[hidden])
Date: 2011-09-11 21:14:20


I use serial_port::async_read_some() to read data from serial interface
on windows. Using virtual com ports (FTDI, SiLabs) everything wents as
expected.

But on native COM ports the completion handler is not called until the
buffer (passed to async_read_some) is completely filled.

I use "plain" communication without hardware handshake:

...

typedef serial_port_base  ser;

mDevice.set_option( ser::baud_rate     ( baud ) );

mDevice.set_option( ser::flow_control  ( ser::flow_control::none ) );

mDevice.set_option( ser::parity        ( ser::parity::none ) );

mDevice.set_option( ser::stop_bits     ( ser::stop_bits::one ) );

mDevice.set_option( ser::character_size( 8 ) );

...

Do I miss something or is this a bug?

tested on boost_1_38_0 and boost_1_46_1
                                               


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