Com port don't work in java
<p>Does't work with java... don't sent message to my microchip. please help </p>

<pre><code> public static void main(String[] args) {

        SerialPort serialPort = new SerialPort("COM1");
        try {

            serialPort.openPort();
            serialPort.setParams(9600, 8, 1, 0);
            serialPort.setParams(SerialPort.BAUDRATE_9600, 
                                 SerialPort.DATABITS_8,
                                 SerialPort.STOPBITS_1,
                                 SerialPort.PARITY_NONE);

            serialPort.writeBytes("$KE");



            byte[] buffer = serialPort.readBytes(10);
            //Закрываем порт
            serialPort.closePort();
        }
        catch (SerialPortException ex) {
            System.out.println(ex);
        }
    }
}
</code></pre>

<p>byte[] Write <code>"[@B********"</code> Star is a random number. </p>

<p>should be #ERR ore #OK  - message</p>
