2.5.0
(Original release date 2013-04-27)
Fixes
- Fixed bug with garbage reading on Linux, MacOSX, Solaris, cause of incorrect using of
VMIN
andVTIME
. Nowread
methods works correctly and are blocking like in Windows - Fixed error with garbage reading in Windows using this library after another application used serial port. To prevent this effect
COMMTIMEOUTS
structure zeroing added tosetParams()
method - The port handle now stored in variable of type
long
instead ofint
, to prevent potential problems with type conversions on Win64 - Fixed MacOS X 10.8 bug with native lib loading (*.dylib -> *.jnilib)
- Fixed Linux error with exclusive access to serial port (
TIOCEXCL
).TIOCNXCL
added toclosePort()
method for clearing exclusive access - Fixed Windows native lib port name concatenation error
- Fixed native lib extraction path if user home is read only, in this situation lib will be extracted to tmp folder
- Null port name fix. If try to invoke method
openPort()
forSerialPort(null)
object, exceptionTYPE_NULL_NOT_PERMITTED
will be thrown - Enabled
TIOCEXCL
support in Solaris
Enhancements
- Added ARM Soft & Hard float support (Tested of Raspberry Pi with Oracle JDK 6, 7, 8)
- Added
ttyACM
,ttyAMA
, rfcomm to Linux RegExp andtty.usbmodem
to MacOS X RegExp - Added precompiled RegExp's for Linux, Solaris, MacOS X for more faster port listing
- Added private common for Linux, Solaris, MacOS X method
getUnixBasedPortNames()
for listing serial ports - Rewrote comparator for sorting port names. Now it's a common comparator for Windows, Linux, Solaris and MacOS X
- Added some syntax sugar to
SerialPortList
class, for changing search path, RegExp and comparator - Added timeouts for read operations and
SerialPortTimeoutException
class for catching timeout exceptions - Added
JSSC_NO_TIOCEXCL
JVM property for disable using of exclusive access to serial port - Added termios(_nix) and DCB(Windows) structure checking on port opening, it helps separate real serial devices from others
- Added
ERR_
constants intoSerialNativeInterface
- Added new exception
TYPE_INCORRECT_SERIAL_PORT
- Added new exception
TYPE_PERMISSION_DENIED
. It can be very useful for _nix based system if user have no permissions for using serial device