All Products
Search
Document Center

IoT Platform:Test data communication

Last Updated:Jan 11, 2024

This topic describes how to use a data transmission unit (DTU) as a device to report data to IoT Platform and receive data from IoT Platform.

Test data reporting

  1. Start a serial port debugging tool. This topic uses sscom v4.2 as an example.

    Note

    Before you use the debugging tool to simulate data sending and receiving, you must exit the DTU configuration tool.

  2. Set the required parameters for the debugging tool, open a serial port, and then click Send.

    Set the spinning speed and electric current parameters based on the TSL model you created in IoT Platform. Then, send the values of the parameters to IoT Platform. Set the spinning speed to 150, electric current to 10 A. In the debugging tool, enter the following hex digits in sequence: 96 and 0A.

  3. After data is sent, turn on the Real-time Refresh switch.

    1. Log on to the IoT Platform console. In the left-side navigation pane, choose Devices > Devices.

    2. Find the target device and click View.

    3. On the Device Details page, choose TSL Data > Status, and turn on the Real-time Refresh switch.

      Wait a few minutes until the uploaded data is displayed.

Test data receiving

On the Debug Physical Device tab, send a command to set the spinning speed, and test data receiving for the DTU device.

  1. Log on to the IoT Platform console. In the left-side navigation pane, choose Maintenance > Online Debug.

  2. Select the device that you want to debug and click the Debug Physical Device tab.

  3. Select the spinning speed property in the Debug Feature field, select Set in the Method field, enter a value, and then click Send Command.

  4. After the command is sent, view the received data in the debugging tool for the DTU device.

If data is displayed as expected in both the IoT Platform console and the device, it indicates a successful configuration.