Scenario 1.3: Dynamically Register Non-Smart Devices


This scenario can be seen as an extension of Scenario 1.1. In this scenario, non-smart devices can be dynamically registered through a pluggable data logger, which collects data and forwards it to the cloud.


The figure below illustrates the workflow for Scenario 1.3.


../../_images/connection_scenario_1.3.png


Take a household photovoltaic inverter as an example. The inverter itself does not support firmware burning. Considering that the data logger only gathers data from one inverter, the inverter and the data logger can be treated as a single smart device. Since the data logger supports firmware burning, the inverter and data logger together can be regarded as a whole smart device capable of firmware burning.


The main steps of this scenario are as follows:

  1. Create an inverter product in the customer OU.

  2. The data logger developer creates a data logger application in the developer OU and obtains the service account (SA) for the application: accesskey and secretkey.

  3. The data logger developer configures the data logger at the factory and burns the following credential information into it:

    • The SA of the data logger application.

    • The productKey of the inverter.

    • The OU ID (orgId) which the productKey belongs to.

  4. IoT implementation personnel perform on-site installation, attaching the data logger to the inverter, powering on the device, and connecting it to the network. Once connected, the device performs the following actions:

    • The data logger collects the inverter’s serial number and uses it as the deviceKey. Using the SA, it calls the Open APIs to dynamically create the device with productKey, deviceKey (serial number), and orgId, and retrieves the deviceSecret.

    • The data logger records the deviceSecret and automatically burns it into the device’s firmware.

    • The data logger collects inverter data and connects to the cloud using productKey, deviceKey, and deviceSecret. After authentication is passed, the device comes online and begins sending data.