Revision 3.1
WebRelay
TM
Users Manual
This indicates that the user has turned the auto reboot feature off. Note that the auto
reboot feature will automatically be re-enabled if power is lost and restored to WebRelay
TM
Reboot Button:
This button may be included on the control page (as specified in the setup). When the user presses this button,
WebRelay
TM
will begin the reboot sequence as defined in the ‘Reboot Options’.
Auto ON/OFF Button:
This allows the user to temporarily disable the automatic reboot feature. When automatic reboot is disabled,
WebRelay
TM
will stop pinging the device. Automatic reboot will be disabled until a user re-enables it or WebRelay
TM
is powered cycled. The user can re-enable this feature by pressing the ‘Auto ON/OFF’ button, or by changing any of
the reboot parameters in the setup pages.
3.3 XML Operation
Custom computer applications may be created to monitor and control WebRelay
TM
without using a web browser.
Monitoring the state of the input and the relay is done by sending a request to port 80 (or port specified in setup) for
the XML page. Control of the relay is done by sending GET requests to the same page on port 80 (or port specified
in setup). This can be demonstrated by entering commands into the URL line of a web browser.
Request the current state: http://192.168.1.2/state.xml
This will return the following XML page.:
<?xml version="1.0" encoding="utf-8" ?>
-<datavalues>
<relaystate>1</relaystate>
<inputstate>0</inputstate>
<rebootstate>0</rebootstate>
<totalreboots>0</totalreboots>
</datavalues>
The tags <relaystate> , <inputstate>, <rebootstate>, and <totalreboots> indicate the current state of the WebRelay
TM
unit. Values for each tag is described below.
<relaystate>
0=off(coil off)
1=on (coil energized)
<inputstate>
0=off (voltage not applied to input)
1=on (voltage applied to input)
<rebootstate>
0=Auto Reboot off
1=Pinging
2=Waiting for response
3=Rebooting
4=Waiting for boot
<totalreboots> This field indicates the number of times WebRelay
TM
has automatically rebooted the device that it is
controlling. Note that this counter only increments when reboots are initiated by the automatic reboot controller.
This is cleared by sending a command and is automatically cleared whenever WebRelay
TM
loses power.
Xytronix Research & Design, Inc.
page 43