[Boost-bugs] [Boost C++ Libraries] #12295: Boost Asio Serial Port does not work with Exar (Baudrate zero)

Subject: [Boost-bugs] [Boost C++ Libraries] #12295: Boost Asio Serial Port does not work with Exar (Baudrate zero)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-06-22 18:47:15


#12295: Boost Asio Serial Port does not work with Exar (Baudrate zero)
-------------------------------------------------+-------------------------
 Reporter: Andreas Schmitz | Owner:
  <andreas.schmitz13@…> | chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: serial port exar windows baudrate |
  zero |
-------------------------------------------------+-------------------------
 Calling boost::asio::serial_port.open("COM4") returns a error under
 windows.
 We use a Exar XR22804 using the latest official drivers for Windows. The
 problem is located in boost::asio::win_iocp_serial_port_service where the
 windows driver returns dcb.Baudrate=0.
 After that it tries to set new settings with SetCommState and it fails if
 dcb.Baudrate is 0. A solution would be to preset the baudrate if 0 or even
 better to read a user parameter with the wanted baudrate as it is done in
 some other frameworks.

 Someone else has sent the same bug to the people of the qt-framework, and
 they solved it:
 https://bugreports.qt.io/browse/QTBUG-46993

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12295>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC