try {
ctrlCon = (SerialPort)commPort;
ctrlCon.setSerialPortParams
(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1,
SerialPort.PARITY_NONE);
ctrlCon.enableReceiveTimeout(1000);
} catch (UnsupportedCommOperationException e) {
// This is really fatal: configured port does not support
// configured mode.
log.config("Port " + portIdentifier.getName()
+ " cannot be configured: " + e.getMessage());