Scenario 1.2: Programable smart devices (share the same credentials), direct connection


This scenario deals with the low operability issue of Scenario 1.1.

Procedure

  1. Before leaving the factory, batch burn the device firmware with the same credentials (i.e., productKey and productSecret) .
  2. The device registration can be integrated with the manufacturer’s device management system. Upon the shipment of a batch of devices, the customer’s device management system can register the devices in batch by calling the REST API. The serial number and MAC address, which can uniquely identify a device, can be used as the deviceKey.
  3. After the devices are sent to the site, powered on, and connected to the network, present the productKey, productSecret, and deviceKey to EnOS IoT Hub to obtain the deviceSecret issued by EnOS.
  4. The devices are then authenticated through the device triple (productKey, deviceKey, deviceSecret) and logged in to EnOS Cloud.


The following figure illustrates the message flow of connection scenario 1.2.

../../_images/connection_scenario_1.2.png