Releases: java-native/jssc
Releases · java-native/jssc
0.9.0
(Original release date 2011-12-21)
Features
- Added Solaris support (x86, x86-64)
- Added Mac OS X support 10.5 and higher (x86, x86-64, PPC, PPC64)
- Fixed some bugs in Linux native part
- Changed
openPort()
methodopenPort()
if port busySerialPortException
with type:TYPE_PORT_BUSY
will be thrown,
and if port not foundSerialPortException
with type:TYPE_PORT_NOT_FOUND
will be thrown.
Caveats
TIOCEXCL
directive in *nix native library can detect if port is busy but disabled in Solaris as it causes issues.- Solaris and Mac OS X versions of this library do not support following events:
ERR
,TXEMPTY
,BREAK
- Solaris version does not support non-standard baudrates
- Mac OS X version does not support parity:
MARK
,SPACE
Previous Releases
0.8.0 - Google Code release 2011-11-28
- Implemented events
BREAK
andERR
(RXFLAG
not supported in Linux) - Added method
sendBreak(int duration)
- send Break signal for setted time - Fixed bugs in Linux events listener
- Fixed bug with long port closing operation in Linux
0.8.0-RC4 - Google Code release 2011-11-21
- Fixed a bug in
getPortNames()
method under Linux. - Not implemented yet:
- Events:
BREAK
,ERR
andRXFLAG
- Events:
0.8.0-RC3 - Google Code release 2011-09-09
- Implemented
purgePort()
- Fixed some Linux and Windows lib bugs.
- New function
getInputBufferBytesCount()
- get count of bytes in input buffer (if error has occurred -1 will be returned) - New function
getOutputBufferBytesCount()
- get count of bytes in output buffer (if error has occurred -1 will be returned) - New function
setFlowControlMode()
available:FLOWCONTROL_NONE
FLOWCONTROL_RTSCTS_IN
FLOWCONTROL_RTSCTS_OUT
FLOWCONTROL_XONXOFF_IN
FLOWCONTROL_XONXOFF_OUT
- getFlowControlMode() - getting setted flow control mode
- New functions for more usability (syntactic sugar):
writeByte()
- write single bytewriteString()
- write stringwriteInt()
- write int value (for example0xFF
)writeIntArray
- write int array (for examplenew int[] { 0xFF, 0x00, 0xFF }
)readString(int byteCount)
- read stringreadHexString(int byteCount)
- read Hex string with a space separator (for exampleFF 00 FF
)readHexString(int byteCount, String separator)
- read Hex string with setted separator (for example if separator :FF:00:FF
)readHexStringArray(int byteCount)
- read Hex string array (for example {FF, 00, FF})readIntArray(int byteCount)
- read int array (values in int array are in range from 0 to 255 for example if byte == -1 value in this array it will be 255)- The following methods read all bytes in input buffer, if buffer is empty methods will return
null
readBytes()
readString()
readHexString()
readHexString()
readHexStringArray()
readIntArray()
- Not implemented yet:
- Events:
BREAK
,ERR
andRXFLAG
- Events:
0.8.0-RC2 - Google Code release 2011-07-14
- Implemented
getPortNames()
- Implemented: Parity:
MARK
andSPACE
- Fixed some Linux lib bugs.
- Not implemented yet:
purgePort()
- Events:
BREAK
,ERR
andRXFLAG
0.8.0-RC1 - Google Code release 2011-07-11
- Not implemented yet:
getPortNames()
- Parity:
MARK
andSPACE
purgePort()
- Events:
BREAK
,ERR
andRXFLAG