Configuration Commands; Ethernet Communication; Command Structure - GARDASOFT VTR1 User Manual

Strobe light
Table of Contents

Advertisement

16
10

Configuration Commands

The VTR1 can be configured via the Ethernet connection using UDP or TCP/IP. A configuration
program, with source code, is available for download from www.gardasoft.com.
10.1

Ethernet Communication

For TCP/IP, commands from a host are sent to destination port 30313 with replies received from
port 30312. For UDP, commands from a host should be sent from source port 30312 to
destination port 30313. Replies are sent from source port 30313 to destination port 30312.
10.2
RS232 Communication
When using RS232 the COM port should be set to 115200baud, 8 data bits, no parity and 1 stop
bit with no hardware or software handshaking.
10.3

Command Structure

Communication consists of commands sent by the host (controlling PC). All output generated by
the command is returned in reply UDP or TCP/IP packets. The last character sent is ">" ("greater
than" symbol). Once this is received, the host knows that the command has been completed.
It is recommended that the host waits for the ">" symbol before sending the next command. UDP
communications are not guaranteed to arrive, so the host software should cope with lost
messages.
Using the GT command, a host can request that a message is sent to it whenever an error occurs.
Several commands can be put into one command line by separating them by a semi-colon (";").
A carriage return character should be sent to terminate the command line. The VTR1 will send
any replies to the commands and then send a '>' character to indicate that the command line has
been completed.
Commands comprise a code of two letters followed by the parameters (if any) needed for the
command. Spaces in the commands are ignored.
Numeric parameters are separated by a comma (","). For a parameter which is a time period the
default units are milliseconds. "s", "ms" or "us" can be added to the end of the number to
indicate seconds, milliseconds or microseconds. For example:
Parameter
0.1
200us
0.1s
Note that parameters are in "USA/UK" format so that a half is written "0.5" not "0,5"
Meaning
0.1 milliseconds
200 microseconds
0.1 seconds

Advertisement

Table of Contents
loading

Table of Contents