Classes
AsyncSerial.cpp File Reference

Class found to work with asyncronous Serial communications () More...

#include <pressure_cells/AsyncSerial.h>
#include <string>
#include <algorithm>
#include <iostream>
#include <boost/bind.hpp>
Include dependency graph for AsyncSerial.cpp:

Go to the source code of this file.

Classes

class  AsyncSerialImpl
 

Detailed Description

Class found to work with asyncronous Serial communications ()

Author
Terraneo Federico Distributed under the Boost Software License, Version 1.0. Created on September 7, 2009, 10:46 AM

v1.02: Fixed a bug in BufferedAsyncSerial: Using the default constructor the callback was not set up and reading didn't work.

v1.01: Fixed a bug that did not allow to reopen a closed serial port.

v1.00: First release.

IMPORTANT: On Mac OS X boost asio's serial ports have bugs, and the usual implementation of this class does not work. So a workaround class was written temporarily, until asio (hopefully) will fix Mac compatibility for serial ports.

Please note that unlike said in the documentation on OS X until asio will be fixed serial port writes are not asynchronous, but at least asynchronous read works. In addition the serial port open ignores the following options: parity, character size, flow, stop bits, and defaults to 8N1 format. I know it is bad but at least it's better than nothing.

Definition in file AsyncSerial.cpp.



pressure_cells
Author(s): Emilio Estrelinha
autogenerated on Mon Mar 2 2015 01:32:47