I'm talking to a virtual serial port (an FTDI chip) using Boost's asio::serial_port library. I'd like to use hardware flow control (i.e. RTS/CTS), but I can't seem to find much documentation on how to use it with Boost. The code I've got is:
serialPort.set_option(boost::asio::serial_port::
flow_control(boost::asio::serial_port::flow_control::hardware));
With this line in place, the program will not run. It says:
libc++abi.dylib: terminate called throwing an exception
Abort trap: 6
If I change the ...flow_control::hardware
to ...flow_control::software
or ...flow_control::none
, the serial port works fine (but without hardware flow control, obviously). I've spent a good bit of time looking for any documentation on this, but haven't found any. Does anyone know how to use flow control with Boost, or know where this is documented? I'm using Boost from Fink on Mac OS 10.8.2. Thanks!