BS1000 command and backlog protocol



Similar documents
User manual BS1000 LAN base station

Configuring Alarm s From The Field Logger DL1080/DL1081 Using SMTP2GO As The Outgoing Server

Chapter 6 Using Network Monitoring Tools

Discovery Tool for COMbricks Quick Start Guide

Chapter 1 Configuring Basic Connectivity

Chapter 6 Using Network Monitoring Tools

Savvius Insight Initial Configuration

How To Check If Your Router Is Working Properly

CS 326e F2002 Lab 1. Basic Network Setup & Ethereal Time: 2 hrs

c. Securely insert the Ethernet cable from your cable or DSL modem into the Internet port (B) on the WGT634U. Broadband modem

Management Software. Web Browser User s Guide AT-S106. For the AT-GS950/48 Gigabit Ethernet Smart Switch. Version Rev.

WEBTITAN CLOUD. User Identification Guide BLOCK WEB THREATS BOOST PRODUCTIVITY REDUCE LIABILITIES

Chapter 9 Monitoring System Performance

TR-7W Configuration Guide. Before You Start

Managing the System Event Log

Broadband Phone Gateway BPG510 Technical Users Guide

Chapter 3 Management. Remote Management

Olson Electronics Remote Power Monitoring Meter

Chapter 4 Management. Viewing the Activity Log

How To Check If Your Router Is Working Properly On A Nr854T Router (Wnr854) On A Pc Or Mac) On Your Computer Or Ipad (Netbook) On An Ipad Or Ipa (Networking

Exploring the Remote Access Configuration Utility

USER MANUAL GUIMGR Graphical User Interface Manager for FRM301/FRM401 Media Racks

WIZnet S2E (Serial-to-Ethernet) Device s Configuration Tool Programming Guide

HRG Performance Series DVR DDNS Support Application Note (hrgddns)

Network Management Card. User Manual

Chapter 4 Managing Your Network

F-SECURE MESSAGING SECURITY GATEWAY

Chapter 1 Configuring Internet Connectivity

UIP1868P User Interface Guide

IN5100 Series Networking Guide

Type Message Description Probable Cause Suggested Action. Fan in the system is not functioning or room temperature

Mediatrix 4404 Step by Step Configuration Guide June 22, 2011

CYAN SECURE WEB APPLIANCE. User interface manual

DOMUSBOX. User guide. Index

Network Traffic Analysis

e-filing Secure Web Service User Manual

H0/H2/H4 -ECOM100 DHCP & HTML Configuration. H0/H2/H4--ECOM100 DHCP Disabling DHCP and Assigning a Static IP Address Using HTML Configuration

SPC Connect Configuration Manual V1.0

Wind River. Intelligent Device Platform XT EMS Profile EMS DEVICE MANAGEMENT USER'S GUIDE WIND RIVER 1.0

ABB solar inverters. User s manual ABB Remote monitoring portal

MicroLogix 1400 Embedded Web Server

VOIP-211RS/210RS/220RS/440S. SIP VoIP Router. User s Guide

Prestige 314 Read Me First

The data between TC Monitor and remote devices is exchanged using HTTP protocol. Monitored devices operate either as server or client mode.

HREP Series DVR DDNS Configuration Application Note

While every effort was made to verify the following information, no warranty of accuracy or usability is expressed or implied.

estadium Project Lab 8: Wireless Mesh Network Setup with DD WRT

Installing, Uninstalling, and Upgrading Service Monitor

HWg-STE HWg-STE PoE MANUAL

Hands-on MESH Network Exercise Workbook

Basic Configuration Guide using Web Interface for router TG585iv7

Lego Mindstorms NXT Network

V310 Support Note Version 1.0 November, 2011

Information and Digital Technology

HTTP Data Logging Protocol

Vertex VoIP Caller ID (Version 1.5)

THINKTEL COMMUNICATIONS CUDATEL PHONE SYSTEM 270. High Availability and SIP-TRUNK Configuration

ReadyNAS Remote Troubleshooting Guide NETGEAR

SITRANS RD500 Configuring the RD500 with PSTN or GSM modems and Windows-based servers and clients for communication Objective:

WEB CONFIGURATION. Configuring and monitoring your VIP-101T from web browser. PLANET VIP-101T Web Configuration Guide

mysensors mysensors Wireless Sensors and Ethernet Gateway Quick Start Guide Information to Users Inside the Box mysensors Ethernet Gateway Quick Start

Configuring the Avaya B179 SIP Conference Phone with Avaya Aura Communication Manager and Avaya Aura Session Manager Issue 1.0

R&S AFQ100A, R&S AFQ100B I/Q Modulation Generator Supplement

Prepare your IP network for HD video conferencing

The PostBase Connectivity Wizard

Software Development Kit (SDK)

HC Products ILF-100WD User Manual

AP6511 First Time Configuration Procedure

CSCE 465 Computer & Network Security

BIT COMMANDER. Serial RS232 / RS485 to Ethernet Converter

Installing and Using the vnios Trial

Setting Up Scan to SMB on TaskALFA series MFP s.

Setup Manual and Programming Reference. RGA Ethernet Adapter. Stanford Research Systems. Revision 1.05 (11/2010)

Quick Note 53. Ethernet to W-WAN failover with logical Ethernet interface.

*Compatible with MPI series grid-tied inverters

PC/POLL SYSTEMS Version 7 Polling SPS2000 Cash Register TCP/IP Communications

Configuring NXT Hardware with Mercury Inside into Doors.NET TM Application Note

Broadband Router ESG-103. User s Guide

V101 SIP VoIP Telephone Adaptor User Manual V1.1m

1 PC to WX64 direction connection with crossover cable or hub/switch

If you have questions or find errors in the guide, please, contact us under the following address:

IP Filtering for Patton RAS Products

Protecting the Home Network (Firewall)

Chapter 8 Router and Network Management

How to Configure an Initial Installation of the VMware ESXi Hypervisor

Data Transfer Management with esync 1.5

TCP/IP Network Connectivity and ION Meters

Device Log Export ENGLISH

JOINUS AG. PowerPay Checkout. Magento Module User Manual. Support:

ACCESS 9340 and 9360 Meter Ethernet Communications Card ETHER

Users manual. TCW181B-CM_R1 Page 1

TW100-BRF114 Firewall Router. User's Guide. Cable/DSL Internet Access. 4-Port Switching Hub

Chapter 4 Customizing Your Network Settings

Secure Ubiquitious House and Facility Control Solution

KE1020A INSTALL GUIDE

IDDERO TOUCH PANELS. Video door phone configuration

1. Summary Recording triggered by SIP INFO Configurations on the phone How the SIP INFO works... 2

Intelligent Monitoring Configuration Tool

Dual Bay Home Media Store. User Manual

Chapter 2 Quality of Service (QoS)

Transcription:

BS1000 command and backlog protocol V0.3 2013/5/31 1 / 6 BS1000 command and backlog protocol Introduction When the bs1000 is updating a website, measurement data is transferred to the site using a http request. However, there are occasions when this transfer fails, usually because the network is down. The measurement data is saved in the on-board dataflash memory, but remains there. No action is started from the bs1000 to retransmit the data. Either the server has to open a connection back to the BS1000 to fetch the data using the data.xml page of the BS1000, or it has to report to the station it is missing some data and request a retransmit. Since firmware version 1.0.4.7 it is possible to use the last option. This option does not require a connection back to the station. It does require some modifications on the server side in order to use this protocol. The second part of this document provides information on how the same mechanism is used to obtain general information from the bs1000 remotely, without opening a direct connection. (v1.0.5.2) Sequence The following sequence should be performed in order to retransmit data: 1. BS1000 transmits a http request to the server with measurement data. 2. The server responds to the request with a normal empty response (no further action performed by the BS1000), or it responds with a small xml file. 3. The BS1000 interprets the xml response and if successful, it will transmit the data specified in the xml as a new http-post request. The key element in this sequence is that the basestation interprets the returned xml, and performs the action described there. XML: command When action of the bs1000 is needed then an xml should be sent as a reply with root element 'cmd'. The 'cmd' element has the following attributes: Attribute Type Function cmd int Command identifier (1 for backlog) url string The location where to report back id int Filter data by this Sensor id q int Filter data by this Sensor type s int Filter data by starting from this Start time e int Filter data by ending to this End time site int Site id to be used on report back log string Logger id to be used on report back

BS1000 command and backlog protocol V0.3 2013/5/31 2 / 6 pwd string Password to be used on report back With this data, the basestation will first select data from its dataflash memory. Only measurements within the [s,e] period are reported, from the sensor specified. <?xml version="1.0" encoding="utf-8"?> <cmd cmd= 1 url= add_backlog.php" id="16408 q= 1 s= 422081202 e= 422123724 site= 183 pwd= some pwd log= log93 > Example of a command sent as response to an incoming measurement. It requests data from temperature sensor 16408 for the period s, e. The site, pwd and log attributes are used in the new http reques from the bs1000. This selection is sent to the specified url as a http-post request, using the site, log and pwd fields as parameters. An extra parameter 'data' is sent as well, with the selected measurements from the dataflash memory in xml format. The parameters e, id and type are reflected as well. XML: response data The format of xml data reported back is the same as for the data.xml page: The data consists of the 'measurements' root element, which contains a list of 0, 1 or more value elements. Each value element represent a measurement, and it has the following attributes: id sensor id type sensor type; 1=temperature, 3= RH%, 5=CO2,... t timestamp; number of seconds since 1-1-2000 The measurement value itself is given as the element value. <?xml version="1.0" encoding="utf-8"?> <measurements> <value id="16408" type="1" t="327682224">25.1</value> <value id="16408" type="1" t="327682287">39.5</value> <value id="16408" type="1" t="327682335">33.7</value> <value id="16408" type="1" t="327682378">30.7</value> <value id="16408" type="1" t="327682417">28.9</value> <value id="16408" type="1" t="327682493">26.8</value> <value id="16408" type="1" t="327682581">25.4</value> <value id="16408" type="1" t="327682660">24.7</value> <value id="16408" type="1" t="327682718">24.4</value> <more>327684165</more> </measurements> Example of xml data reported back to the server.

BS1000 command and backlog protocol V0.3 2013/5/31 3 / 6 Since the data transfer could potentially take a long time, the resulting xml data may be truncated. This is indicated by the 'more' element. The element value of the 'more' element gives the last timestamp that was examined in the flash memory. Note that this may not be the same as the last given value timestamp. When the 'more' element is not present, the data is not truncated. Firmware Typically about 10 measurements are reported back per request. Although the cmd response pair could be repeated continuously (the website creates another 'cmd' based on the response), the firmware is a limiting factor at this moment: When a command initiates a new request, then during this time the firmware blocks other network requests, like sending http-requests from rules. This means outgoing measurement requests are blocked during backlog activity. Therefore it is advised not to continue backlog, but initiate a backlog only after a measurement is reported. In the next firmware a timed rule will be defined, that will generate a http request based on a timer, not on an incoming measurement. This request can trigger a backlog operation, or some other commands yet to be specified. Remote commands Since firmware version 1.0.5.2 an extra rule type is defined that will generate a http-request based on a timer, not on an incoming measurement. This request can trigger a backlog operation, or an action specified by command: Command Action 1 Provide a backlog 2 Provide general information 3 Provide recent event log 4 Set time The command is an xml file as response to a http request. The timed rule is fired at most every 15 seconds. The inhibit time specified in the rule is added to this period. Command 1 is specified as above, the commands 2-4 have the following attributes: Attribute Type Function cmd int Command identifier url string The location where to report back site int Site id to be used on report back id int Command id to be used on report back log string Logger id to be used on report back pwd string Password to be used on report back

BS1000 command and backlog protocol V0.3 2013/5/31 4 / 6 s int Time to set for command 4 Again, the site, log, id and pwd data fields are reflected on the response http-request. Command 2: Provide general information With command 2 general information about the logger is sent back: A http-request is sent to the provided url, together with the site, log and pwd data fields and the data parameter that provides the following xml: The data consists of the 'info' root element, and has the following child elements: Element Element type Description device model string Device model name name string Network name version string Firmware version utc_time string Current time of internal clock (UTC) utc_date string Current date of internal clock (UTC) network mac string ethernet identification dhcp yes / no indicates if dhcp is used ip string ip address of bs1000 mask string network mask gateway string gateway ip address dns string dns server ip address time string time server ip address Example The server responds to a http-post request from the bs1000 with this xml to issue command 2: <cmd cmd="2" url="192.168.0.62/temperature/cmd_result.php" id="56" > Then the bs1000 will send a new http-post request to the server as indicated in the url field with these parameters as data:

BS1000 command and backlog protocol V0.3 2013/5/31 5 / 6 id = "56" data = <?xml version= 1.0 encoding=utf-8?> <info> <device> <model>bs1000</model> <name>log53</name>... </log>. Command 3: Provide the recent event log Command 3 lets the logger send back the current recent event log. A http-request is sent to the provided url, together with the site, log and pwd data fields and the data parameter that provides the following xml: The data consists of the 'log' root element, and has the following child elements: Element Attribute type Description event int Event result number Example t string UTC date / time r int Rule number d int Device number The server responds to a http-post request from the bs1000 with this xml to issue command 3: <cmd cmd="3" url="192.168.0.62/temperature/cmd_result.php" id="57" > Then the bs1000 will send a new http-post request to the server with these parameters as data: id = "57" data = <?xml version= 1.0 encoding=utf-8?> <log> <event r= 1 d= 56 t= 2013-05-31 11:29:17 >200</event>...

BS1000 command and backlog protocol V0.3 2013/5/31 6 / 6 </log>. Command 4: Set time This command enables you to set the loggers clock to a specified time. The cmd element additionally consists of the attribute 's' that contains the UTC time to be set, in seconds since 1-1-2000. The bs1000 responds to this command by setting the internal clock, and emit the following xml: Element Element type Description time Example utc_date string UTC time utc_time string UTC date The server responds to a http-post request from the bs1000 with this xml to issue command 4: <cmd cmd="3" url="192.168.0.62/temperature/cmd_result.php" id="58" s= 423315019 > Then the bs1000 will set the clock to 423315019 and send a new http-post request to the server with these parameters as data: id = "58" data = <?xml version= 1.0 encoding=utf-8?> <time> <utc_time>11:30:19</utc_time> <utc_date>2013-05-31</utc_date> </time>.