RC1xx LED Lighting Controllers - User Manual
—
30
—
10.3 Ethernet commands (RC120)
You can configure the RC120 through the Ethernet connection using UDP
or TCP/IP. You can download GardasoftMaint from www.gardasoft.com/
Downloads, which allows you to send commands to configure your RC120.
10.3.1 Ethernet communication
Command lines can be sent from a client using TCP or UDP packets. They
should be sent to destination port 30313. The source port can be set to
anything, but 30312 is recommended.
Only one TCP connection can be active at any time.
A carriage return (ASCII 13) character should be sent to terminate the
command line in case multiple packets get joined together.
10.3.2 Command structure
Commands are sent by the host (a PC connected to the network). The
command is returned by the RC120, together with any reply generated by
that command, in UDP or TCP/IP packets followed by
<LF><CR>
.
The last character sent is the
>
prompt. Once this has been received, the
host knows the command has been completed.
For example, sending the
VR
command might get the reply below:
If there is an error, a typical reply might be:
We recommend the host waits for the > prompt before sending the next
command; UDP communications are not guaranteed to arrive, so the host
software must be able to deal with lost messages.
When an error occurs, the host may request a reply message to be sent to
it by using the
GT
command.
Multiple commands can be entered on one line by separating them with a
semi-colon (
;
). The RC120 replies to the commands individually, separating
them with
<LF><CR>
and adding the
>
prompt after the final command
reply.
All commands comprise a code of two letters followed by any parameter
necessary. All spaces in the command are ignored.