Class found to work with asyncronous Serial communications (). More...
#include <pressure_cells/AsyncSerial.h>
#include <string>
#include <algorithm>
#include <iostream>
#include <boost/bind.hpp>
Go to the source code of this file.
Classes | |
class | AsyncSerialImpl |
Class found to work with asyncronous Serial communications ().
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.