}
result.setSerialPortParams( baudrate, databits, stopbits, parity );
result.setFlowControlMode( flowControl );
result.enableReceiveTimeout( 100 );
result.enableReceiveThreshold( 0 );
result.notifyOnDataAvailable( true );
result.addEventListener( new SerialPortEventListener()
{
@Override