public void setBaud(int baud) throws ChannelException {
        try {
            port.setSerialPortParams(
                baud, 
                SerialPort.DATABITS_8, 
                SerialPort.STOPBITS_1, 
                SerialPort.PARITY_NONE);
        }
        catch (Exception ex) {
            throw new ChannelException(ex);
        }
    }