Serial agents can be configured and run from a command-line, GUI, or applet tag. Refer to Starting the Agent for a description of the different features and functions that each provides.
Depending on how you choose to start the agent, you must set the following minimum set of parameters from the command line, GUI Parameter pane, or applet tag:
Specifies the type of agent. The type of agent that you use determines how the agent communicates with the JavaTest harness and the protocol that is used. A serial agent waits for the JavaTest harness to initiate the connection via an RS-232 serial connection or a connection added through the JavaTest API that models the serial system.
To specify a serial agent, use the appropriate setting or option from the following table:
Interface | Option or Setting |
---|---|
default | active |
command line | -serial |
applet tag |
<param name=mode value=serial>
|
GUI Parameter Pane |
![]() |
Specifies the com port that the serial agent uses to listen for the JavaTest harness. The JavaTest harness and agent must use the same port. If the ports are not the same, the JavaTest harness cannot communicate with the agent.
To specify a port, use the appropriate setting or option from the following table:
Interface | Option or Setting |
---|---|
command line |
-serialPort port-number
|
applet tag |
<param name=serialPort value=port-number>
|
GUI Parameter Pane |
![]() |
Next:
Specifying Additional Options - additional parameters to display help or configure other agent properties.