Monday, September 28, 2009

Writing to / Reading from a Serial Port on Linux

echo -n "?" > /dev/ttyUSB0

 tail -f /dev/ttyUSB0

The beauty of this is that this can happen while something else is connected to the port which makes the tail command great for debugging.