Java COMM API Support on the PocketPC
CEJavaComm
The only 3rd party COMM API for StrongARM I had working was the CEJavaComm API written by James Nord (Version 0.5-pre2) and provided on his web site www.teilo.net - it is also provided for MIPS, SH3 and SH4. The install instructions are here and are pretty straight forwards.
There are a few things to bear in mind about using the api:
Not all of the methods to configure the com port are fully implemented, the default setting for the com port are:
9600 Bps Baud rate
8 Data bits
No Parity
1 Stop bit
No flow control
Luckily the application I was using it for (iButton) required these settings so there was no need to change/set them, but I'm not sure what results you'd get if you tired to change them. When I e-mailed James Nord he was very helpful, and if you have an problems/questions I'm sure he'd be happy to help.
The two .jar files provided, and the directory containing the .properties file have to be added to your classpath.
For Sun Personal Java you can use a registry editor (such as the PHM Registry Editor available here) and edit the key HKEY_CLASSES_ROOT\Java Class File\Shell\Open\Command\Default
and add
-classpath "\classes;\comm.jar;\CESerial.jar"
(assuming the .jars are in the root directory and .properties file is in \classes)
after the exectuable.
For CrEme the same classpath parameter can be added to the arguments.
CrEme 3.2
Nsicom CrEme version 3.2 comes with a fully implemented java comm api, though you have to make sure the javaxcomm.zip file is included in the classpath for it to work.