pixhawk/mavconn — Issue #9:  mavconn-bridge-serial: write() hangs on Mac OSX + ArduinoMEGA
Author: ArenaSource
Created: 2012-02-09 12:56:24+00:00
State: open

I had to set CLOCAL in c_cflag to get it working. I didn't test it in other platforms

--- a/src/comm/mavconn-bridge-serial.cc
+++ b/src/comm/mavconn-bridge-serial.cc
@@ -302,6 +302,7 @@ bool setup_port(int fd, int baud, int data_bits, int stop_bits, bool parity, boo
//
config.c_cflag &= ~(CSIZE | PARENB);
config.c_cflag |= CS8;
+ config.c_cflag |= CLOCAL;
//
// One input byte is enough to return from read()
// Inter-character timer off