WQData LIVE Direct FTP XML Data Format


The following is the XML file structure for an X2 data logger system that can be utilized for direct FTP. Upon request, NexSens Technology can provide the user with a list of the logger parameter IDs required for parsing the data into the desired format.

 

WQData LIVE XML Data Format

 

XML format data upload sample

<N>
  <E>Version XML tag</E>
  <U>Device UID</U> 
  <L> 
    <P> 
      <M>Parameter UID</M> 
      <A> 
        <D> 
          <T>Timestamp</T> 
          <V>Value</V> 
        </D>
      </A>
    </P>
  </L>
</N>

 

 

Explanation of Elements

 

Table 1: XML data format element descriptions.

Element Description Value/Children
N The root node containing the relevance info for data from a single device <E>, <U>, <L>
E Version XML Number Number
U Device unique identifier String
L List of parameters <P>
P A parameter from the list of parameters, used in <L> <M>, <A>
M Param unique identifier for a single parameter, used in <P> Integer
A List of data for a parameter, used in <P> <D>
D A single data for a parameter, used in <A> <T>, <V>
T The timestamp of single data point in UTC, used in <D> Integer
V The value of single data point, used in <D> Float

 

 

Examples

 

Format data upload sample

<N>
  <E>0.01</E>
  <U>Device_UID</U>
  <L>
    <P>
      <M>1</M>
      <A>
        <D>
          <T>@1604880000</T>
          <V>1.36</V>
        </D>
      </A>
    </P>
    <P>
      <M>2</M>
      <A>
        <D>
          <T>@1604880000</T>
          <V>1.33</V>
        </D>
      </A>
    </P>
  </L>
</N>

 

 

Sensor Parameter List

+------------------+--------------------------+-----------+
| UUID: Device_UID		                          |
+------------------+--------------------------+-----------+
| X2 Meta Parameters (Sensor ID: 1)                       |
+------------------+--------------------------+-----------+
| Parameter ID     | Name                     | Unit      |
+------------------+--------------------------+-----------+
|                1 | Processor Power          | V         |
|                2 | RTC Power                | V         |
|                3 | Primary Power            | V         |
|                4 | Secondary Power          | V         |
|                5 | Sensor Power             | V         |
|                6 | Total System Current     | mA        |
|                7 | Sensor Current           | mA        |
|                8 | Internal Pressure        | mBar      |
|                9 | Internal Temperature     | C         |
|               10 | Internal Humidity        | %         |
|               11 | Cell Signal Strength     | dB        |
|               12 | Cell Status              |           |
+------------------+--------------------------+-----------+
| 3510-1001-004 (0.01 in) (Sensor ID: 2)                  |
+------------------+--------------------------+-----------+
| Parameter ID     | Name                     | Unit      |
+------------------+--------------------------+-----------+
|               13 | Interval Rain            | in        |
+------------------+--------------------------+-----------+