org.jSyncManager.Tools

Class CommAPITester


public final class CommAPITester
extends java.lang.Object

An executable class for testing the Java Comm API. This class can be run to ensure that the Java Comm API is correctly installed on a users system. This information may prove valuable when a user asks for Comm API related tech support.

Field Summary

static int[]
G1
An array containing the Gray Code Gn for n=1.
static String
LOG_FILE_NAME
The name of the log file to write throwable information to.
static int
LOOPBACK_ITERATIONS
The number of times to run the local loopback tests.

Method Summary

static void
main(args[] )
Runs the console version of the Comm API Port Tests.

Field Details

G1

public static final int[] G1
An array containing the Gray Code Gn for n=1.

LOG_FILE_NAME

public static String LOG_FILE_NAME
The name of the log file to write throwable information to.

LOOPBACK_ITERATIONS

public static int LOOPBACK_ITERATIONS
The number of times to run the local loopback tests.

Method Details

main

public static final void main(args[] )
Runs the console version of the Comm API Port Tests. This executable method supports the following exit codes:
  • 0 - Tests completed successfully.
  • 1 - Java Comm API classes could not be found.
  • 2 - No serial ports detected.
  • 3 - User-specified serial port not found.
  • 4 - Error initializing the specified serial port.
  • 5 - One or more local loopback tests have failed.
  • 6 - Handheld failed to synchronize.
  • 99 - A user input error has occurred.
Parameters: