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.

ElementDescriptionValue/Children
NThe root node containing the relevance info for data from a single device<E>, <U>, <L>
EVersion XML NumberNumber
UDevice unique identifierString
LList of parameters<P>
PA parameter from the list of parameters, used in <L><M>, <A>
MParam unique identifier for a single parameter, used in <P>Integer
AList of data for a parameter, used in <P><D>
DA single data for a parameter, used in <A><T>, <V>
TThe timestamp of single data point in UTC, used in <D>Integer
VThe value of single data point, used in <D>Float

 

 

Examples

 

XML 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        |
+------------------+--------------------------+-----------+