Quido I/O modules have proven their usefulness in many control and surveillance applications. The high number of inputs and output relays make these modules quite versatile for various applications. XML is a popular format for data exchange between different systems. This guide provides clear and comprehensive information on how to read data from Quido in XML format.
XML can be used to read all the current information on the status of inputs, outputs and thermometer. The following text will tell you how to do it. But first you need to know where you can find the XML files in Quido.
The file with the current data in XML format is available in the main directory of Quido and is called fresh.xml. Therefore, the following address applies to Quido with factory default settings: http://192.168.1.254/fresh.xml
If a password to access the web interface is set in Quido, this password is also required when requesting the fresh.xml file.
Quido also contains the settings.xml file – some useful information from this file is described below.
The contents of the fresh.xml file correspond to the current state of Quido. Here is an example of a file from Quido ETH 4/4, which is a Quido module that features four inputs, four outputs and capacity for one external thermometer connected to it.
<?xml version="1.0" encoding="ISO-8859-1"?> <root xmlns="http://www.papouch.com/xml/quido/act"> <din id="1" name="Car park lights" sts="0" val="0" cmo="0" cnt="0" /> <din id="2" name="South Gate" sts="0" val="0" cmo="0" cnt="0" /> <din id="3" name="Number of boxes" sts="0" val="0" cmo="1" cnt="274" /> <din id="4" name=" " sts="0" val="1" cmo="3" cnt="28" /> <dout id="1" name="Valve" sts="0" val="0" mde="0" /> <dout id="2" name="Corridor lights" sts="0" val="1" mde="0" /> <dout id="3" name="Gate 3" sts="0" val="0" mde="1" /> <dout id="4" name="Cooling" sts="0" val="0" mde="4" /> <temp id="1" sts="0" val="12,6" th="30" tl="-10" tenb="1" /> <status location="Storage 5" unit="C" /> </root>
In the XML file are four types of tags: din, dout, temp and status. Din refers to the state of inputs, dout refers to outputs, temp contains information on thermometers and status provides information about the whole device. The number of tags depends on the number of inputs, outputs and thermometers of the particular Quido module.
This tag contains information about one of the inputs. The following attributes can be found in this tag:
This tag contains parameters applying to one of the outputs. The attributes of this tag are as follows:
The information in this tag is related to the temperature sensor connected to Quido. It involves the following information:
Other current information about the device:
This file contains a complete summary of the configuration of Quido. The following example shows some basic settings that can be useful for remote access to Quido.
<?xml version="1.0" encoding="ISO-8859-1"?> <root xmlns="http://www.papouch.com/xml/quido/set"> <set box="1" ip="192.168.1.124" mask="255.255.255.0" gate="0.0.0.0" wport="80" ... /> ... <set box="12" mac="00:20:4A:B4:8D:F1" /> </root>
Administrator credentials are required to access this file.
The meaning of some important parameters:
Settings related to network parameters:
Did you know that Quido can also send current information about its status via HTTP GET? To some extent, this method can be used to control Quido. For details, see the article HTTP GET in Quido...