background image

 

 

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: ......

Page 2: ...and TSHxxx temperature humidity sensors SMS alarm alerts up to 5 numbers Email alarm alerts up to 5 email recipients SMTP with SSL support Single call control the relays can be controlled with a singl...

Page 3: ...mum low level input voltage for digital inputs VDC 0 8 Maximum input voltage for digital inputs VDC 5 5 Supply voltage for 1 wire bus VDD VDC 5 0 0 2 Maximum output current for 1 wire bus VDD A 0 2 An...

Page 4: ...ion 6 2 Connectors Attention Disconnect power supply before wiring The correct wiring procedure is as follows Make sure power is turned off Make wiring connections to the terminals Apply power It is r...

Page 5: ...y contact mode digital inputs can be used to monitor the state of a discrete device door contact switch push button PIR detector etc Following picture illustrates how a dry contact switch can be conne...

Page 6: ...esigned to connect several sensors over a short wiring It is not suitable for long distances or environments with EMC interference We recommend reading Maxim s 1 Wire tips at http www maxim ic com app...

Page 7: ...ver mentioned wiring length We guarantee proper operation only with Teracom 1 Wire sensors 6 2 5 Relay connection The relay contacts are internally connected directly to the terminal connectors For al...

Page 8: ...essage appears The following drivers will be installed Microchip composite device USB serial port driver If for some reason the USB serial port driver cannot be installed automatically it must be inst...

Page 9: ...he power supply or by Scan for new sensors button All found sensors are shown in ascending order refer their unique ID number For every sensor there are description value and ID information Teracom te...

Page 10: ...nic isolated One side of source is connected to Analog In and the other side is connected to GND pins For every analog input 3 variables Unit Multiplier and Offset can be set in Setup Input Output sec...

Page 11: ...an be set in this section These descriptions will appear in the monitoring page XML data SMS and Email alerts For every analog input field Unit Multiplier and Offset parameters are available to conver...

Page 12: ...on Setup Alarm conditions Following choices to assign parameter to relay are possible S S stands for Sensor 1 Wire The relay is activated from value measured from specified 1 Wire sensor and rules for...

Page 13: ...section is used for parameterization of trigger and alert conditions for 1 Wire sensors analog and digital inputs 7 2 3 1 1 Wire sensors and analog inputs For every sensor two type of fields are pres...

Page 14: ...SMS message with the measured value Email SMS the authorized recipients will receive SMS and email messages with the measured value All above settings are valid also for the analog inputs Example TCG1...

Page 15: ...it reached 19 C it goes out of range trigger and alert conditions The relay is activated heater is switched on and e mail is sent The Max value is set far enough from the wanted temperature to avoid t...

Page 16: ...mote 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 HT...

Page 17: ...able to process the commands which are sent from the remote server The valid commands are described below Command Description set r1 1 Turn Relay 1 ON set r1 0 Turn Relay 1 OFF set r2 1 Turn Relay 2...

Page 18: ...t should be used IPaddress Port For example 209 81 9 7 123 The current system time is sent in the status xml file when Push mode is enabled 7 2 5 3 GPRS setup To set the GPRS connection it is necessar...

Page 19: ...tension Press UPLOAD button The firmware will be uploaded and verified the Upload procedure taker around 6 minutes If the file is correct the following message will appear Upload Successful Please wai...

Page 20: ...m or larger for wiring of digital and analog inputs and relay output of the device should be used To avoid electric shock and fire hazard do not expose this product to liquids rain or moisture Objects...

Page 21: ...able after Controller Initialization the LEDs will display directly the next controller state Searching for GSM network Searching for GSM network SIG LED is OFF STA LED flashes flash length 200ms Conn...

Page 22: ...02rc4 FwVer MnfInfo www teracom cc MnfInfo DeviceInfo S Appendix B S1 S1 S2 description Sensor1 description id FFFFFFFFFFFF id item1 value value unit unit alarm 0 alarm item1 item2 value value unit u...

Page 23: ...sor4 description id FFFFFFFFFFFF id item1 value value unit unit alarm 0 alarm item1 item2 value value unit unit alarm 0 alarm item2 description Analog In1 description value 0 00 value unit VDC unit mu...

Page 24: ...ter must be replaced by one space character SMS master number Syntax number mobile number in international format Rights Master Description this message is used to change the Master number Example mas...

Page 25: ...ormat Rights Master Description this message is used to add up to 5 numbers to the Call list Example add call users 359885111111 359885222222 359885333333 359885444444 35988555555 Answer 359885111111...

Page 26: ...values of relay are r1 r2 Rights Master Users Description this message is used to switch ON OFF the selected relay output Example 1 set r1 1 Answer R1 ON R2 OFF DI1 0 DI2 1 AI1 15 6VDC AI2 681 3kg S11...

Page 27: ...e is used to send test SMS messagel to the authorized users Example test sms Answer SMS update URL Syntax URL is URL of the update cod file Rights Master Description this message is used to update the...

Reviews: