Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How do I use DPS to register a device group with a symmetric key?

2025-05-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Picture and text explanation: 1. Register with the DPS add group:

Note: there is neither the concept of registering ID nor the concept of Device ID in group registration.

Mechanism

There are three types: x509 certificate, symmetric key

In this example, we use symmetric keys so that we can quickly understand and verify the business logic of group registration

We use automatic generation of keys, of course, we can also enter custom keys that meet the requirements manually.

Note: in this paper, symmetric key is used for demonstration, and the following chapters introduce the way of X509 certificate, which is also used in the recommended mass equipment scheme.

How to assign equipment to the center

Lowest latency: pre-allocate the equipment to the IoT center with the lowest latency, note that the lowest latency does not refer to the geographical location, for example, devices in northern China may be assigned to IoT Hub in eastern China depending on network conditions.

Evenly weighted distribution (default): linked IoT centers and other devices that are possibly pre-allocated to them. This setting is the default. If you preconfigure the device to only one IoT center, you can keep this setting.

Static configuration through the registration list: the specification of the required IoT center in the registration list takes precedence over the allocation policy for the device preprovisioned service level.

Use Azure Function (custom): this scheme can use custom logic to determine which IoT Hub to distribute to.

In this example, only one IoT Hub is configured, so the default uniform weighting is fine.

Twin state of initial equipment

For example, the version number can be set to 1.11 and the version will be upgraded according to the logic of device twin.

The status after being added is:

Registration record is empty:

Change private static string registrationId = "for group registration, here is the DeviceID of the device to be registered, usually fill in a unique value such as MAC address"; instead, you can add multiple devices to the IoT Hub through this group registration of DPS:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report