in reply to Using Device::SerialPort

You can use GNU screen https://embeddedfreak.wordpress.com/2008/08/12/using-gnu-screen-to-debug-your-serial-port/ or minicom http://www.shirwahersi.com/content/how-use-minicom-linux-serial-port-comunication to check the serial port parameters.