|
If you are using JBuilder, a project definition will be in your
SerialEcho root folder. You will need to change the project properties
output files location and required libraries location to match your
system paths. See the JBuilder tutorial
for details.
SerialEcho.java contains the method
public void initializeSerialPort()
which contains these lines:
commPortId = CommPortIdentifier.getPortIdentifier("com1");
The string "com1" identifies one of two onboard JStamp/JStik/SaJe
UARTs, the other is "com2". The SaJe/SBX2 combination
also has "com3" externally on the SBX2 board. Change this
string to match the com port you wish to use.
and a bit later:
serialPort.setSerialPortParams(115200,
javax.comm.SerialPort.DATABITS_8,
javax.comm.SerialPort.STOPBITS_1,
javax.comm.SerialPort.PARITY_NONE);
Here the baud rate is 115200, you can change it to any of the javaxcomm
baud rates (see the javaxcomm javadocs for a list).
Now rebuild the project to generate a class file with your chose
com port ID and baud rate in it.
|