Java Communications API PocketPC/WinCE Driver: Changes
Version 0.8 pre 1
- If an error occurs enumerating the ports then print the error on
System.out instead of a native MessageBox
Version 0.7 (13 February 2003)
- Enabled workaround of the JNI bug in Suns pjava 1.1b1 VM.
- This should be enabled automatically if needed, however you can
overrdide detection by setting the property "serial.port.sunjnifix" to
"true" or "false".
- Currently this is enabled for MIPS and ARM processors only.
Version 0.6 (30 Janurary 2003)
Version 0.5 (10 Janurary 2003)
- Implemented ability to override comm port detection (
-Dserial.ports=COMnn:,COMnn:)
- Implemented ability to change flowcontrol, see:
- Implemented UART status methods, see:
setDTR(boolean)
setRTS(boolean)
isCD
isCTS
isDSR
isRI
- Implemented
sendBreak(int) method
- Implemented event notifications, see:
addEventListener(SerialPortEventListener)
notifyOnXXX(boolean)
removeEventListener()
- Implemented Comm time-outs
- Implemented the
xxxReceiveTimeout methods
- The
xxxReceiveThreshold methods have not been
implemented yet.
- Efficient implementation of write(byte[]) and write(byte[], int,
int)
- added native method to write a byte array without calling write
for each byte
- Better feedback to java level if an error occurs
- in previous versions the error was signalled with a message box
from native level and a generic IOException may have been thrown
- Fixed bug in native implementation of
read(byte[])
- we now check the number of bytes read > 0 before copying the
data into the jbytearray (prevents the ArrayIndexOutOfBoundsException
when the port is closed)
- General code cleanup
- remove old code & debug statements
- remove native methods for reading/writing singular bytes (reduce
clutter)
- remove redundant code - should increase read efficiency
version 0.4 (16 Dec 2001)
- Automatic enumeration of comm ports.
- Ability to change port properties - baud, parity, stop bits and
data bits
- Default port settings now match those of the Java Communications
spec
- 9600 baud, 8 data bits, 1 stop bit, no parity
- Include commapi and javax.comm.properties in the build
- Fixed bad JNI coding (caused hang when used with Insignia Solutions Jeode EVM)
version 0.3 (28 June 2001)
- implemented the available() function to return the number of bytes
that can be read without blocking.
version 0.2 (27 March 2001)
- No longer any hardcoded limitations on the number of ports you can
open.
- Improved I/O efficiency -
- Can now read into a byte array.
- Writes are still handled on a per byte basis.
version 0.1 (13 March 2001)
- First Release
- Basic I/O functionality -synchronous byte reads/writes via
Input/OutputStreams.
- Receive Framing is not implemented
- Direct access to port status (CTS RTS etc...) is not
implemented
- Port settings are fixed at: 4800 baud, 8 data bits, 1 stop bit, N
no parity (Will add the functionality to change this later)