Wireless Sensors, LLC
Ethernet Gateway Model GWAY-1100
Version 2.0 © July 2013
17 / 35
INTEGRATION
The GWAY-1100 provides a powerful set of tools to enable developers and network administra-
tors the ability to integrate the device (and data from connected 1-Wire devices) with existing
management and/or monitoring systems. The following are the network services supported by
GWAY-1100, accessible via TCP/IP:
HTTP
—service provides delivery of html and xml data files via http get, a method of writ-
ing data to 1-Wire devices, the Web browser interface previously discussed and firmware
upgrading
SNMP
—provides access to data from all connected sensors, and pushes SNMP traps to
remote listeners for alarming capabilities
Telnet
—service provides login to monitor some of the GWAY-1100’s communication ac-
tivities for diagnostic purposes
UDP Broadcast
—listener on port number 30303 will respond to properly formatted pack-
ets broadcast to this port number, allowing other devices and applications to discover
GWAY-1100s that exist on the same network.
1-Wire
Interface
—service provides a TCP client that implements a command / response
low level interface that may be used to directly control the 1-Wire bus
POST Client
—provides a method of pushing XML data about connected 1-Wire devices
to a server.
HTTP
The HTTP mechanism enables programmers to utilize a GET command to retrieve various data
elements that are contained in an XML file as well as write data to 1-Wire devices that support
control functions.
The GWAY-1100 provides the following XML file for data retrieval:
Details.xml
—this file provides detailed information on the GWAY-1100 and all connected
devices.
Retrieving XML File
To retrieve the XML file, simply access it by corresponding URL.
For example:
“http://192.254.1.1/details.xml”
Once the file has been retrieved, it can be parsed according to the methods available to the de-
veloper in whatever programming language they are using.
Details.xml
The following is an example of the details.xml file:
<Devices-Detail-Response xmlns="http://www.wirelesssensors.com/schema/GWAY-1100"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<PollCount>85</PollCount>
<DevicesConnected>1</DevicesConnected>
<LoopTime>1.046</LoopTime>
<DevicesConnectedChannel1>0</DevicesConnectedChannel1>
<DevicesConnectedChannel2>0</DevicesConnectedChannel2>
<DevicesConnectedChannel3>1</DevicesConnectedChannel3>