Linux app to test a serial port