Skip to content

Post Data Through HTTP

This content support products:

  1. Mini DTU(Y201)
  2. RS485/RS232 DTU(Y202)

This feature allows users to add multiple Modbus collection commands, which can be scheduled to collect data after being enabled. It also supports performing operations on the values and reporting them to the cloud server in JSON key-value format.

Features

Read Register Data:

  1. Integer: 16-bit, 32-bit, signed and unsigned, multiple byte orders.
  2. Floating Point: 32-bit, multiple byte orders.
  3. BCD Code: 16-bit, 32-bit.

Custom Key Name for Each Data:

  1. User-defined key-value pairs.
  2. Timestamp can be Unix numeric or UTC string (example string: 2023/05/06 13:00:00).
  3. Reporting device IMEI, ICCID.

More:

  1. When collection fails, the value can be reported as 0 or null.
  2. Supports collecting multiple register data points with one command (the first register is set normally, and the slave address and function code of the subsequent ones are set to 0; the register address is automatically calculated based on the data type, making the user-input value invalid).
  3. If the JSON key name is empty, the point is only collected but not reported.
  4. Modbus collection can be set to enable or disable transparent transmission.

Data Format

The data format posted to the server is as follows:

json
{
    "imei":"860061060000000",
    "time":1681105255,
    "iccid":"89860620220031600000",
    "key name":"value",
    "data":{
        "k1":12.3,
        "k2":null,
        "k3":666
    }
}