TR-RT LED lighting controllers - User Manual
11
Command configuration
The TR-RT can be configured through the Ethernet connection using UDP
or TCP/IP. You can download sample C++ code from
to allow configuration.
11.1
Ethernet configuration
(TR-RT220, TR-RT420)
For TCP, commands from a host should be sent to destination port 30313
with replies sent to destination 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.
A TCP/IP connection times out and closes if it is idle for more than 10
seconds. The host must send regular ’keep alive’ commands (for example
VR
) to keep the link open.
A carriage return (ASCII 13) character should be sent to terminate the
command line, in case multiple packets get joined together.
11.2
RS232 configuration
(TR-RT260, TR-RT460)
When using RS232 the COM port should be set to 115200baud, 8 data
bits, no parity, 1 stop bit, no handshaking.
A carriage return (ASCII 13) character should be sent to terminate the
command line.
11.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.
We recommend that the host waits for the > symbol before sending the
next command. UDP communications are not guaranteed to arrive, so the
host software must be able to 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 (
;
).The TR-RT sends any replies to the commands
followed by a
>
character to show that the command line has completed.
All commands comprise a code of two letters followed by any optional
parameters. All 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
—
30
—