TCG120 _R1.1 - March 2015
Page 16
7.2.4. Push
Push mode is intended for easy integration with client-server monitoring programs. When Push
mode is enabled,
TCG120
(client) begins to send periodically HTTP request messages (POST method) to
the monitoring program (server). These HTTP request messages contain XML data (status.xml) which is
sent to the server for processing. The monitoring software (server) answers with HTTP response
message. The respond messages are used not only for confirmation, but also to send command to the
TCG120
controller, for example: set r1=1. Below is a typical communication session between
TCG120
and remote server:
- 1 - HTTP POST request with XML data is sent to the remote server
- 2 - the server responds with HTTP response message, which contains “set r1=1” command as a
brief text in the message body
- 3 - new HTTP POST request is sent to the server to confirm the reception of the “set r1=1”
command.
- 4 - the server sends new HTTP response, which includes “set FIN” in the message body. This
indicates that there are no pending commands and the session can be closed.
- 5 - when the Push period timer expires,
TCG120
sends new HTTP POST request to the server
- 6 – the server answers with “set FIN” – there is no pending commands and the session can be
closed.
To enable the Push mode, the following parameters should be set:
Method –
HTTP POST should be selected;
URL
– the URL of the remote server;
Period
– the Push period is set between 1 and 255 minutes.
Summary of Contents for TCG120
Page 1: ......