C-Gate Commands and Events use an addressing system to refer to C-Bus networks, groups and devices.
This addressing system gives the name of a network, then either a
C-Bus unit or a group number. Additionally, a terminal of an output unit can be addressed also. All the group, unit and terminal numbers are in decimal.
||The Command Interface
The Command Interface allows a controlling system or program (or even a Perl script or Java applet) to control and get the status of
C-Bus groups and units on the networks. The command interface is based on ASCII text commands and formatted responses delivered via a TCP/IP socket.
When C-Gate starts, it opens a TCP/IP server on the command-port (defined in the C-Gate configuration file). One or more clients then connect to this port and access the command interface. A computer program does this by using TCP/IP to open a socket connection, then sending and receiving commands over this socket connection. To type commands and get information from C-Gate, a Telnet client can be used to connect and interact with C-Gate.