|
Boost Users : |
Subject: [Boost-users] [Asio] serial port example doesn't work on Mac: Operation not supported, bad file descriptor
From: philipp_muenzel_at_[hidden]
Date: 2009-11-22 11:55:25
Hello,
I'm trying to communicate with the serial port using the example code "minicom" that was posted here: http://lists.boost.org/boost-users/att-41140/minicom.cpp
On Linux, the example works flawlessly and lets me communicate with both "native" serial port hardware and USB-to-serial converted hardware with FTDI chips, which can be adressed via /dev/ttyUSB.
On a Power Mac with OS Tiger, using boost 1.40 and the gcc 4.0 compiler, everytime I start the example I get the following errors:
$ ./minicom.app/Contents/MacOS/minicom 57600 /dev/cu.usbserial-4B11
Error: Operation not supported
Press Enter to exit
Error: Bad file descriptor
Press Enter to exit
However, I can talk to the serial-via-usb hardware using some native socket functions, so the file descriptor itself can't be the problem.
How can I get the minicom example to work on Mac also?
Regards,
Philipp
___________________________________________________________
Preisknaller: WEB.DE DSL Flatrate für nur 16,99 Euro/mtl.!
http://produkte.web.de/go/02/
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