Closed GoogleCodeExporter closed 8 years ago
Can you please attach your code example. It can be only if you don't use
setParams() method because then port opens by some another program it get the
last settings of serial port setted by previous application, that's why you
should use setParams() method.
Original comment by scream3r.org@gmail.com
on 5 Nov 2012 at 12:55
Hello, this part of code initializes the port:
try {
serialPort.openPort();//Open serial port
serialPort.setParams(SerialPort.BAUDRATE_38400,
SerialPort.DATABITS_8,
SerialPort.STOPBITS_1,
SerialPort.PARITY_NONE);
jLabelPortLog.setText("¡Puerto abierto!");
serialPort.writeBytes("q".getBytes());
buffer = serialPort.readBytes(13);
}
catch (SerialPortException ex) {
System.out.println(ex);
}
Original comment by Nelson.L...@gmail.com
on 5 Nov 2012 at 1:00
Fixed in 2.1.0
Original comment by scream3r.org@gmail.com
on 16 Apr 2013 at 7:55
Original issue reported on code.google.com by
Nelson.L...@gmail.com
on 4 Nov 2012 at 12:58