try {
sp.openPort();
sp.setParams(baud, dataBits, stopBits, parity);
sp.purgePort(SerialPort.PURGE_RXCLEAR);
sp.purgePort(SerialPort.PURGE_TXCLEAR);
buffer = sp.readBytes(byteCount, timeout);
log.info("Byte Count: " + byteCount);
log.info("Value: " + new String(buffer));
} catch (SerialPortTimeoutException e) {
throw e;
} catch (SerialPortException e) {