Poseidon2
– Family manual
HW group
www.HW-group.com
79 / 104
XML
– Interface description
Poseidon supports the following XML files:
values.xml
Small file for periodical polling of sensor readings. Subset of setup.xml
– only basic
identification and sensor readings are included.
setup.xml
Complete device configuration
Reading values using XML
Sensor readings are available as a HTML page intended for human users and as a XML page
(
values.xml
). Any application can easily read the values from XML tags.
XML record example for a temperature sensor:
<Entry>
<Name>Sensor 16</Name>
- Sensor name
<Interface>RS485</Interface>
- Sensor interface
<ID>75</ID>
- Unique identification within the device
<Value>27.8</Value>
- Current temperature, string with a
decimal point, without measure
<Min>10.0</Min>
-
Lower alarm limit
, string with a decimal
point, without measure
<Max>50.0</Max>
-
Upper alarm limit
, string with a decimal
point, without measure
<Hyst>0.0</Hyst>
-
Hysteresis range
, string with a decimal
point, without measure
<SNMPTrap>1</SNMPTrap>
-
SNMP Trap
, 0 = off, 1 = on
<EmailSMS>0</EmailSMS>
-
E-mail, SMS
, 0 = off, 1 = on
<AlarmState>Active</AlarmState>
-
Alarm
, Active or Inactive
<Color>0</Color>
-
Line color
, shows state of a sensor in
this line.
<UnitType>C</UnitType>
</Entry>
Note:
You can back up your device configuration by downloading the setup.xml file.
Writing values to the device using XML
The setup.xml and values.xml files can be uploaded to the Poseidon unit, if allowed by the protective
measures (HTTP password, IP address filter, DIP switch setting).
For downloading or uploading XML files from/to the Poseidon unit, we recommend the utility attached
to Application Note 29:
AN29: PosDamIO controls outputs through the command line