VUART Commands#
Simplicity Commander supports reading and sending data over Virtual UART (VUART) over IP using the vuart connect
command. When the command is executed, a TCP socket is opened and connected to the hostname/IP address of the adapter, using port 4900. The command will then allow for sending and receiving data over the VUART line until termination by either pressing CTRL+C, or by meeting one of the conditions described below.
VUART Communications Until Timeout#
If the --timeout
option is used, the command will terminate if no data is received from the target within the specified time (in seconds).
Command Line Syntax
$ commander vuart connect <IP or hostname> [--timeout <timeout in s>]
Command Line Input Example
$ commander vuart connect 10.0.0.1 --timeout 5
This command line connects to the target device via VUART and will terminate if no data is received in 5 seconds.
Command Line Output Example
Attempting to connect to IP 10.0.0.1 at port 4900...
Connection established!
<data written by the target application>
Timeout: No data received for 5 seconds.
DONE
VUART Communications Until a Marker is Found#
If the --endmarker
option is used, the command will terminate after finding the specified string in the incoming VUART data stream.
Command Line Syntax
$ commander vuart connect <IP or hostname> [--endmarker <string>]
Command Line Input Example
$ commander vuart connect 10.0.0.1 --endmarker STOP
This command line connects to the target at IP 10.0.0.1 via VUART and terminates if the string 'STOP' is found in the data coming from the target.
Command Line Output Example
Attempting to connect to IP 10.0.0.1 at port 4900...
Connection established!
<data written by the target application>
Process complete STOP
End marker 'STOP' found.
DONE