Activation method, device, equipment and storage medium of Internet of Things terminal device
By updating and burning identification information before the IoT terminal device leaves the factory, the problem of failure to activate the device when registering a third-party cloud platform is solved, the activation efficiency and user experience are improved, and the device can be used normally after shipment.
Patent Information
- Application Number
- CN202211393899.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-08
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2042-11-08
AI Technical Summary
When the Internet of Things terminal device is registered on a third-party cloud platform, the registration information is inconsistent with the information written to the device, which causes the device to be unable to activate, increasing operational complexity and extending the construction period.
Before leaving the factory, the first platform receives a request message from the second platform, updates the identification information of the device, and burns it into the device to ensure that the device can complete activation authentication in advance when registering on the second platform, and keeps the identification information consistent .
The device activation process is simplified, the user can avoid repeated operations, improve the device activation efficiency and user experience, and ensure smooth delivery.
Smart Images

Figure CN115835369B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to an activation method, device, equipment and storage medium for an Internet of Things terminal device. Background Art
[0002] In the related art, when an IoT terminal device based on a specific platform is registered on a third-party cloud platform, new registration information will be generated synchronously on the specific platform. At this time, the registration information of the IoT terminal device on the specific platform will change and be inconsistent with the registration information pre-programmed into the IoT terminal device, resulting in the inability to activate and use the IoT terminal device normally. Therefore, when the manufacturer's IoT terminal device is shipped to the purchaser or the project site, the above-mentioned new registration information needs to be re-programmed before it can be activated and used normally, which increases the cumbersomeness of the operation, reduces the user experience of the IoT terminal device, and prolongs the construction period. Summary of the invention
[0003] In view of this, the embodiments of the present application provide an activation method, apparatus, device and storage medium for an IoT terminal device, which can improve the activation efficiency of the IoT terminal device and enhance the user's operating experience.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides an activation method for an Internet of Things terminal device, which is applied before the Internet of Things terminal device leaves the factory. The method includes: a first platform receives a request message from a second platform, where the request message is used to indicate that the Internet of Things terminal device has been registered on the second platform;
[0006] The first platform updates the first identification information to the second identification information based on the request message;
[0007] The first platform sends the second identification information to the IoT terminal device, or burns the second identification information into the IoT terminal device;
[0008] Among them, the first identification information is the identification information generated when the Internet of Things terminal device is initially registered on the first platform, the second identification information is used by the Internet of Things terminal device to update the locally stored identification information for activation authentication, the first platform is the original platform of the Internet of Things terminal device, and the second platform is a third-party platform other than the original platform.
[0009] In the above solution, the first platform updates the first identification information to the second identification information based on the request message, including:
[0010] The first platform generates second identification information based on the first identification information and a calculation rule; the calculation rule is pre-set by the first platform.
[0011] In the above solution, the Internet of Things terminal device includes: a low-power wide area network terminal device.
[0012] In the above scheme, the first identification information and the second identification information both include: triplet information of the Internet of Things terminal device; the triplet information consists of the product identification, device name and device key of the Internet of Things terminal device.
[0013] In the above scheme, the method further includes:
[0014] The first platform receives an activation request from the IoT terminal device; the activation request includes the second identification information;
[0015] The first platform confirms whether the second identification information of the first platform is consistent with the second identification information of the Internet of Things terminal device; if they are consistent, the activation is successful, and the first platform sends activation success information to the Internet of Things terminal device; if they are inconsistent, the first platform sends activation failure information to the Internet of Things terminal device.
[0016] In a second aspect, a method for activating an Internet of Things terminal device is applied before the Internet of Things terminal device leaves the factory, and the method includes:
[0017] The Internet of Things terminal device sends a registration request to the second platform; the registration request carries the first identification information of the Internet of Things terminal device;
[0018] The IoT terminal device receives and stores the second identification information sent by the first platform; the IoT terminal device updates the locally stored identification information for activation authentication based on the second identification information, or burns the second identification information; wherein the first identification information is the identification information generated when the IoT terminal device is initially registered on the first platform; the second identification information is used by the IoT terminal device to update the locally stored identification information for activation authentication; the first platform is the original belonging platform of the IoT terminal device, and the second platform is a third-party platform other than the original belonging platform;
[0019] The Internet of Things terminal device sends an activation request to the first platform; the activation request includes the second identification information.
[0020] In a third aspect, a method for activating an Internet of Things terminal device is applied before the Internet of Things terminal device leaves the factory, and the method includes:
[0021] The second platform receives a registration request from an Internet of Things terminal device; the registration request carries the first identification information of the Internet of Things terminal device;
[0022] The second platform registers the IoT terminal device based on the registration request;
[0023] The second platform sends a request message to the first platform; the request message is used to indicate that the Internet of Things terminal device has been registered on the second platform; wherein the first identification information is the identification information generated when the Internet of Things terminal device is initially registered on the first platform, the first platform is the original home platform of the Internet of Things terminal device, and the second platform is a third-party platform other than the original home platform.
[0024] In a fourth aspect, an embodiment of the present application provides an activation device for an Internet of Things terminal device, which is applied to a first platform, and the device includes: a first receiving module, which is used to receive a request message from a second platform, wherein the request message is used to indicate that the Internet of Things terminal device has been registered on the second platform;
[0025] A first updating module, configured to update the first identification information to the second identification information based on the request message;
[0026] A first sending module, used for sending the second identification information to the Internet of Things terminal device;
[0027] Among them, the first identification information is the identification information generated when the Internet of Things terminal device is initially registered on the first platform, and the second identification information is used by the Internet of Things terminal device to update the locally stored identification information used for activation authentication; the first platform is the original platform of the Internet of Things terminal device, and the second platform is a third-party platform other than the original platform.
[0028] In a fifth aspect, an embodiment of the present application provides an activation device for an Internet of Things terminal device, which is applied to an Internet of Things terminal device, and the device includes:
[0029] A second sending module is used to send a registration request to the second platform; the registration request carries the first identification information of the Internet of Things terminal device;
[0030] A second receiving module, used to receive second identification information sent by the first platform;
[0031] A second updating module, configured to update the locally stored identification information for activating authentication based on the second identification information;
[0032] The burning module is used for burning the second identification information.
[0033] In a sixth aspect, an embodiment of the present application provides an activation device for an Internet of Things terminal device, which is applied to a second platform, and the device includes:
[0034] A third receiving module is used to receive a registration request of an Internet of Things terminal device; the registration request carries the identification information of the Internet of Things terminal device;
[0035] A registration module, used to register the Internet of Things terminal device based on the registration request;
[0036] The third sending module is used to send a request message to the first platform; the request message is used to indicate that the Internet of Things terminal device has been registered on the second platform.
[0037] In a seventh aspect, an embodiment of the present application provides a first platform, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein:
[0038] The processor is used to execute the steps of the method described in the first aspect when running a computer program.
[0039] In an eighth aspect, an embodiment of the present application provides an Internet of Things terminal device, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein:
[0040] The processor is used to execute the steps of the method described in the second aspect when running a computer program.
[0041] In a ninth aspect, an embodiment of the present application provides a second platform, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein:
[0042] The processor is used to execute the steps of the method described in the third aspect when running a computer program.
[0043] In the tenth aspect, an embodiment of the present application provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in any one of the first aspect, the second aspect and the third aspect are implemented.
[0044] The technical solution provided by the embodiment of the present application is that before the IoT terminal device leaves the factory, the first platform receives a request message from the second platform, and the request message is used to indicate that the IoT terminal device has been registered on the second platform; based on the request message, the first platform updates the first identification information to the second identification information; the first platform sends the second identification information to the IoT terminal device, or burns the second identification information to the IoT terminal device; wherein the first identification information is the identification information generated by the IoT terminal device when it is initially registered on the first platform, and the second identification information is used by the IoT terminal device to update the identification information stored locally for activation authentication, the first platform is the original platform of the IoT terminal device, and the second platform is a third-party platform other than the original platform. In this way, when the IoT terminal device using the first platform wants to register on the second platform, the IoT terminal device can complete the registration in advance on the manufacturer side, and keep the identification information of the IoT terminal device before leaving the factory consistent with the identification information updated by the first platform, so that the delivery is smooth, the repeated operation of the user is avoided, the activation efficiency of the device is improved, and the user experience is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A flowchart of an activation method provided in one embodiment of the present application;
[0046] Figure 2 A schematic diagram of the process of activating an IoT terminal device in this application example;
[0047] Figure 3 A schematic diagram of an activation method flow chart provided in another embodiment of the present application;
[0048] Figure 4 A schematic diagram of an activation method flow chart provided in yet another embodiment of the present application;
[0049] Figure 5 This is a schematic diagram of the activation process of a LoRaWAN device in an application example of this application;
[0050] Figure 6 A schematic diagram of the structure of an activation device provided in one embodiment of the present application;
[0051] Figure 7 A schematic diagram of the structure of an activation device provided in another embodiment of the present application;
[0052] Figure 8 A schematic diagram of the structure of an activation device provided in yet another embodiment of the present application;
[0053] Fig. 9 A schematic diagram of the structure of a first platform provided in an embodiment of the present application;
[0054] Fig.10 A schematic diagram of the structure of an Internet of Things terminal device provided in an embodiment of the present application;
[0055] Fig.11 A schematic diagram of the structure of a second platform provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0058] The present application embodiment provides an activation method for an Internet of Things terminal device. The method is applied before the Internet of Things terminal device leaves the factory. Figure 1 As shown, the method mainly includes the following steps:
[0059] Step 110: The first platform receives a request message from the second platform, where the request message is used to indicate that the IoT terminal device has been registered on the second platform.
[0060] The first platform and the second platform here are any of the IoT platforms. The IoT platform refers to a platform that connects IoT terminal devices, supports IoT terminal devices to report business data, and provides business data to users, or receives control commands issued by users to IoT terminal devices, such as a cloud platform. The cloud platform can be understood as allowing developers to develop programs or run written programs in the "cloud", or use the services provided in the "cloud", or both. In simple terms, a cloud platform refers to a platform that can provide various cloud services such as Infrastructure as a Server (IaaS), Platform as a Service PaaS (Platform as a Server, PaaS), and Software as a Service (SaaS). For example, it includes but is not limited to: Alibaba Cloud Platform, Tencent Cloud Platform, and Huawei Cloud Platform.
[0061] The IoT terminal devices here are devices that belong to IoT products, mainly including: low-power wide area network terminal devices, that is, terminal devices that use the low-power wide area network (LPWAN) standard based on the open source MAC (Media Access Control) layer protocol launched by the LoRa (Long Range Radio) Alliance, for example, including but not limited to: LoRaWAN devices, NarrowBand Internet of Things (NB-IOT), 4G devices and other terminal devices.
[0062] Here, the first platform can send and receive data with the second platform based on a cloud application programming interface (Application Programming Interface, API).
[0063] Step 120: The first platform updates the first identification information to the second identification information based on the request message.
[0064] The first identification information and the second identification information here are both identification data used by the IoT terminal device to characterize its own identity during information interaction. Usually, the identification information is pre-burned in the IoT terminal device. It should be noted that the identification information in the IoT terminal device is uniquely determined to ensure normal information interaction.
[0065] Step 130: The first platform sends the second identification information to the IoT terminal device, or burns the second identification information to the IoT terminal device; wherein the first identification information is the identification information generated by the IoT terminal device when the IoT terminal device is initially registered on the first platform, and the second identification information is used by the IoT terminal device to update the locally stored identification information for activation authentication, the first platform is the original platform of the IoT terminal device, and the second platform is a third-party platform other than the original platform.
[0066] The burning method here can be reasonably selected according to the needs. When different burning methods are selected, the corresponding authentication methods may be the same. The burning methods include but are not limited to: one type one password, one machine one password.
[0067] One model, one secret: All devices under the same product can be burned with the same device identification information, that is, all devices contain the same product certificate (ProductKey and ProductSecret). That is, the same product certificate is burned in batches for devices of the same product type.
[0068] One device, one secret: Burn a separate device certificate for each device one by one, with a high security level. That is, each device burns its own device certificate (ProductKey, DeviceName and DeviceSecret).
[0069] Here, for IoT terminal devices, IoT terminal devices can be applied to multiple platforms at the same time, and the platforms can be divided into original belonging platforms and third-party platforms other than the original belonging platforms. The original belonging platform refers to the platform where the IoT terminal device is first registered.
[0070] In an embodiment of the present application, before leaving the factory, when the second platform, that is, a platform other than the original belonging platform of the IoT terminal device, completes the registration of the IoT terminal device, the second platform sends a registration completion message to the first platform, and on the first platform, that is, the original belonging platform of the IoT terminal device, the first identification information on the first platform is updated to the second identification information accordingly, and the second identification information is sent to the IoT terminal device. In this way, before the IoT terminal device leaves the factory, the first platform can send the updated second identification information to the IoT terminal device, or burn the second identification information to the IoT terminal device. In this way, when the IoT terminal device using the first platform is to be registered on the second platform, the IoT terminal device can complete the registration in advance on the manufacturer side, and keep the identification information of the IoT terminal device before leaving the factory consistent with the identification information updated by the first platform, so that it can be activated and used normally after delivery, so that delivery is smooth, repeated operations of users are avoided, and the user experience is improved.
[0071] In some embodiments, the first platform updates the first identification information to the second identification information based on the request message, including: the first platform generates the second identification information based on the first identification information and an operation rule; the operation rule is pre-set by the first platform.
[0072] Here, the second identification information may be randomly generated according to different rules set by the platform.
[0073] In some embodiments, the Internet of Things terminal device includes: a low-power wide area network terminal device.
[0074] LoRaWAN is a low power wide area network (LPWAN) standard based on an open source MAC layer protocol launched by the LoRa (Long Range Radio) Alliance. Its biggest features are long distance, low power consumption and low cost. The IoT terminal device includes a terminal device based on the low power wide area network protocol.
[0075] In some embodiments, the first identification information and the second identification information both include: triplet information of the Internet of Things terminal device; the triplet information consists of a product identification, a device name, and a device key of the Internet of Things terminal device.
[0076] Here, the triplet of the device is used to identify the IoT terminal device. In the IoT, all smart devices are classified according to IoT products. For example, smart desk lamp A is one product, and smart socket B is another product. IoT products refer to a collection of several devices with the same functions, and each product is distinguished by the product identifier (ProductKey). There are many devices in a product, and each device has a device name (DeviceName) and a device key (DeviceSecret) corresponding to it. These three are usually combined and called triplet information.
[0077] In some embodiments, Figure 2 As shown, the method also includes:
[0078] Step 210: The first platform receives an activation request from an IoT terminal device; the activation request includes second identification information.
[0079] Step 220: The first platform confirms whether the second identification information of the first platform is consistent with the second identification information of the IoT terminal device; if they are consistent, the activation is successful, and the first platform sends activation success information to the IoT terminal device; if they are inconsistent, the first platform sends activation failure information to the IoT terminal device.
[0080] Here, the IoT platform will verify the legitimacy of the device before activating it. Specifically, before the device is connected to the IoT platform through the protocol, it is necessary to report product and device information according to different authentication methods. Only after the authentication is passed can it be connected to the IoT platform. The IoT platform provides a variety of authentication schemes for different usage environments. For example, the device is authenticated through the device key. Before the device leaves the factory, the manufacturer can choose an authentication scheme for different usage environments. The IoT platform uses the following key authentication schemes:
[0081] Under the one-type-one-password authentication method, when the device sends an activation request, the IoT platform will confirm its identity. After the authentication is passed, it will send the information required for device access.
[0082] In the one-machine-one-password authentication mode, when a device establishes a connection with the IoT platform, the IoT platform authenticates the device certificate information it carries. After the authentication is passed, the IoT platform activates the device, and data can be transmitted between the device and the IoT platform. The one-machine-one-password authentication mode has a higher security and is recommended.
[0083] In this way, before the IoT terminal device leaves the factory, the activation request of the IoT terminal device is received through the first platform; the activation request includes the second identification information; the first platform confirms whether the second identification information of the first platform is consistent with the second identification information of the IoT terminal device; if they are consistent, the activation is successful, and the first platform sends the activation success information to the IoT terminal device; if they are inconsistent, the scheme of sending the activation failure information to the IoT terminal device can enable the IoT terminal device to complete the activation authentication on the first platform before leaving the factory, avoiding a series of operational troubles caused by the user's activation failure, and improving the operation experience of the IoT terminal device in the hands of the user. At the same time, it solves the problem of the IoT terminal device being unusable due to the activation failure after the IoT terminal device is shipped.
[0084] The present application also provides an activation method for an IoT terminal device, which is applied before the device leaves the factory and is executed by the IoT terminal device. Figure 3 As shown, the method comprises the following steps:
[0085] Step 310: The IoT terminal device sends a registration request to the second platform; the registration request carries the first identification information of the IoT terminal device.
[0086] Step 320: The IoT terminal device receives and stores the second identification information sent by the first platform; the IoT terminal device updates the locally stored identification information for activating authentication based on the second identification information, or burns the second identification information; wherein the first identification information is the identification information generated by the IoT terminal device when it is initially registered on the first platform; the second identification information is used by the IoT terminal device to update the locally stored identification information for activating authentication; the first platform is the original platform of the IoT terminal device, and the second platform is a third-party platform other than the original platform.
[0087] In an embodiment of the present application, whether the IoT terminal device can receive and store the second identification information sent by the first platform depends on the security settings of the first platform; if the first platform does not allow the IoT terminal device to store its data, the second identification information can be burned accordingly.
[0088] Step 330: The IoT terminal device sends an activation request to the first platform; the activation request includes the second identification information.
[0089] In the embodiment of the present application, after the IoT terminal device successfully registers on the second platform, that is, the first platform updates the first identification information to the second identification information, and the IoT terminal device successfully updates the identification information or burns the second identification information, at this time, the IoT terminal device also needs to complete the authentication and activation process of its original belonging platform, the first platform. After the authentication and activation is successful, the IoT terminal device can be used normally. The activation process is completed by the interaction between the IoT terminal device and the first platform.
[0090] In this embodiment, the IoT terminal completes its registration on the second platform through the device before leaving the factory, and receives and stores the second identification information updated by the first platform, and further completes the update or burning operation of the identification information stored in the IoT terminal device to ensure that the identification information on the IoT terminal device is the same as the identification information updated on the first platform. This ensures that after the device is shipped, it can be used normally without re-burning or updating the device, ensuring smooth delivery and avoiding extension of the construction period. Furthermore, after the registration is completed, the IoT terminal device sends an activation request to the first platform, and the first platform authenticates the second identification information updated or burned by the IoT terminal device to ensure that the IoT terminal device can be used normally. This further improves the activation efficiency of the IoT terminal device and enhances the user experience.
[0091] In an embodiment of the present application, an activation method of a second platform is provided, which is applied before the device leaves the factory and is executed by the second platform, such as Figure 4 As shown, the method mainly includes the following steps:
[0092] Step 410: The second platform receives a registration request of the Internet of Things terminal device; the registration request carries the first identification information of the Internet of Things terminal device.
[0093] Step 420: The second platform registers the IoT terminal device based on the registration request.
[0094] Step 430: The second platform sends a request message to the first platform; the request message is used to indicate that the IoT terminal device has been registered on the second platform; wherein the first platform is the original home platform of the IoT terminal device, and the second platform is a third-party platform other than the original home platform.
[0095] In this embodiment, the activation method is applied to the second platform. The second platform only completes the registration process of the IoT terminal device. At present, taking the IoT cloud platform as an example, there are many mature IoT cloud platform solutions on the market, which are convenient for enterprises to independently and conveniently build IoT management and control systems according to their needs, and improve their technical strength and competitiveness. Enterprises that do not have the accumulation and experience of cloud platform development technology and rely purely on their own development will consume significant resources and time. Choosing mature solutions on the market can not only save the trial and error costs of their own development, but also quickly realize the specialization of the cloud platform.
[0096] Therefore, the registration request of the IoT terminal device is received through the second platform; the registration request carries the first identification information of the IoT terminal device; the second platform registers the IoT terminal device based on the registration request; the second platform sends the request information to the first platform; the request message is used to indicate that the IoT terminal device has been registered on the second platform; wherein the first platform is the original platform of the IoT terminal device, and the second platform is a third-party platform other than the original platform. This can ensure that the IoT terminal device is successfully registered on the second platform and that the IoT terminal device does not need to be re-burned and updated with identification information when it is transferred to the user side, thereby realizing the forward movement of unnecessary operation processes in space and promoting smooth delivery.
[0097] Below, the embodiments of the present application are further described in detail in conjunction with application examples.
[0098] The activation method of this application example is as follows Figure 5 As shown, the IoT terminal device is a LoRaWAN low-power wide area network terminal device, the first platform is the Alibaba Cloud platform, and the second platform is a third-party cloud platform other than Alibaba Cloud. The first identification information of the LoRaWAN device is the ternary information product identification 1 (ProductKey1), device name 1 (DeviceName1) and device key 1 (DeviceSecret1) of the LoRaWAN device. The activation processing method is applied before leaving the factory. The activation processing method of the LoRaWAN device mainly includes:
[0099] Step 501: The LoRaWAN device sends a registration request to a third-party cloud platform, and the registration request carries the first identification information (ProductKey1, DeviceName1, DeviceSecret1) of the IoT terminal device.
[0100] Step 502: The third-party cloud platform receives a registration request from a LoRaWAN device.
[0101] Step 503: The third-party cloud platform registers the LoRaWAN device based on the registration request; Step 504: The third-party cloud platform sends a request message to the Alibaba Cloud platform; The request message is used to indicate that the LoRaWAN device has been registered on the third-party cloud platform.
[0102] Step 505: The Alibaba Cloud platform receives a request message from the third-party cloud platform, where the request message is used to indicate that the LoRaWAN device has been registered on the third-party cloud platform.
[0103] Step 506: Based on the request message, the Alibaba Cloud platform updates the first identification information (ProductKey1, DeviceName1, DeviceSecret1) to the second identification information (ProductKey2, DeviceName2, DeviceSecret2).
[0104] Step 507: Alibaba Cloud platform sends the second identification information (ProductKey2, DeviceName2, DeviceSecret2) to the LoRaWAN device, or burns the second identification information (ProductKey2, DeviceName2, DeviceSecret2) to the LoRaWAN device.
[0105] Step 508: The LoRaWAN device receives and stores the second identification information sent by the first platform; the LoRaWAN device updates the locally stored identification information for activating authentication based on the second identification information, or burns the second identification information.
[0106] Among them, the LoRaWAN device burning method can be selected as one device and one secret, that is, each device burns its own device certificate (ProductKey, DeviceName and DeviceSecret).
[0107] Before a device is connected to the Alibaba Cloud IoT platform, it must pass identity authentication. Currently, the IoT platform supports the use of device keys, ID2, and X.509 certificates for device identity authentication. This application example uses the one-machine-one-secret method in the device key authentication solution to authenticate the device.
[0108] Step 509, the LoRaWAN device sends an activation request to the Alibaba Cloud platform; the activation request includes the second identification information (ProductKey2, DeviceName2, DeviceSecret2).
[0109] Step 510: Alibaba Cloud platform receives an activation request from a LoRaWAN device.
[0110] In step 511, the Alibaba Cloud platform confirms whether the second identification information of the Alibaba Cloud platform is consistent with the second identification information of the LoRaWAN device; if they are consistent, the activation is successful, and the first platform sends activation success information to the IoT terminal device; if they are inconsistent, the first platform sends activation failure information to the IoT terminal device.
[0111] The specific steps for burning and activating the LoRaWAN device are as follows:
[0112] 1) Create a product.
[0113] 2) Create a product in the IoT platform console.
[0114] 3) Add a device.
[0115] 4) Add a device under the created product and obtain the device certificate information.
[0116] 5) Production line burning.
[0117] Develop a device-side program and embed the triplet information (ProductKey2, DeviceName2, and DeviceSecret2) into the program or save it to an external Flash. Each device saves its own triplet information.
[0118] 6) Device networking.
[0119] After the device is powered on and connected to the network, it initiates an authentication request with the device certificate.
[0120] Cloud activation. The IoT platform verifies the device certificate. After the authentication is passed, a connection is established with the device, and the device can communicate data with the IoT platform.
[0121] In this way, the problem of the LoRaWAN device connected to the Alibaba Cloud platform not being able to use the device normally when the device registration information is filled in when registering on a third-party IoT platform, that is, the device registration problem of the third-party cloud platform connecting to Alibaba Cloud, is solved. This prevents the manufacturer's equipment from being shipped to the purchaser or project site, and then the new triplet information generated by Alibaba Cloud during device registration is re-burned. This ensures smooth delivery and normal use after registration without affecting the project delivery cycle.
[0122] Based on the same inventive concept as the activation method provided in the above embodiment, the embodiment of the present application also provides an activation device, which is applied to the IoT terminal device before it leaves the factory and is executed by the first platform, such as Figure 6 As shown, the activation device 600 includes: a first receiving module 610 , a first updating module 620 and a second sending module 630 .
[0123] The first receiving module 610 is used for the first platform to receive a request message from the second platform, where the request message is used to indicate that the IoT terminal device has been registered on the second platform;
[0124] The first updating module 620 is used for the first platform to update the first identification information to the second identification information based on the request message.
[0125] The second sending module 630 is used for the first platform to send the second identification information to the Internet of Things terminal device.
[0126] In some embodiments, the first update module 620 is specifically used to:
[0127] The first platform generates the second identification information based on the first identification information and the operation rule; the operation rule is pre-set by the first platform.
[0128] In some embodiments, the first receiving module 610 is further configured to:
[0129] The first platform receives an activation request from an IoT terminal device; the activation request includes second identification information.
[0130] Exemplarily, the activation device further includes a confirmation module 640,
[0131] The first platform is used to confirm whether the second identification information of the first platform is consistent with the second identification information of the Internet of Things terminal device; if they are consistent, the activation is successful, and the first platform sends activation success information to the Internet of Things terminal device; if they are inconsistent, the first platform sends activation failure information to the Internet of Things terminal device.
[0132] The present application also provides an activation device which is applied to an IoT terminal device before it leaves the factory and is executed by the IoT terminal device. Figure 7 As shown, the activation device 700 includes: a second sending module 710 , a second receiving module 720 , a second updating module 730 and a burning module 740 .
[0133] The second sending module 710 is used for the IoT terminal device to send a registration request to the second platform; the registration request carries the first identification information of the IoT terminal device; and is used for the IoT terminal device to send an activation request to the first platform.
[0134] The second receiving module 720 is used for the IoT terminal device to receive the second identification information sent by the first platform.
[0135] The second updating module 730 is used for the IoT terminal device to update the locally stored identification information for activation authentication based on the second identification information;
[0136] The burning module 740 is used to burn the second identification information.
[0137] The present application also provides an activation device, which is applied to the IoT terminal device before it leaves the factory and is executed by the second platform, such as Figure 8 As shown, the activation device 800 includes: a third receiving module 810 , a registration module 820 and a third sending module 830 .
[0138] The third receiving module 810 is used for the second platform to receive a registration request of an IoT terminal device; the registration request carries identification information of the IoT terminal device;
[0139] The registration module 820 is used for the second platform to register the IoT terminal device based on the registration request;
[0140] The third sending module 830 is used for the second platform to send a request message to the first platform; the request message is used to indicate that the Internet of Things terminal device has been registered on the second platform.
[0141] It should be noted that: the activation device provided in the above embodiment only uses the division of the above program modules as an example when performing activation. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the activation device provided in the above embodiment and the activation method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0142] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a first platform. Fig. 9 Only an exemplary structure of the first platform is shown, not all structures, and can be implemented as needed. Fig. 9 Partial or complete structure shown.
[0143] like Fig. 9 As shown, the first platform 900 provided in the embodiment of the present application includes: at least one processor 901, a memory 902, a user interface 903 and at least one network interface 904. The various components in the first platform 900 are coupled together through a bus system 905. It can be understood that the bus system 905 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 905 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Fig. 9 Various buses are labeled as bus system 905.
[0144] The user interface 903 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.
[0145] The memory 902 in the embodiment of the present application is used to store various types of data to support the operation of the first platform. Examples of such data include: any computer program used to operate on the first platform.
[0146] The activation method disclosed in the embodiment of the present application can be applied to the processor 901, or implemented by the processor 901. The processor 901 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the activation method can be completed by the hardware integrated logic circuit or software instructions in the processor 901. The above-mentioned processor 901 can be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 901 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 902, and the processor 901 reads the information in the memory 902, and completes the steps of the activation method provided in the embodiment of the present application in combination with its hardware.
[0147] In an exemplary embodiment, the first platform can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.
[0148] The present application also provides an Internet of Things terminal device, Fig.10 Only an exemplary structure of the IoT terminal device is shown, not the entire structure. Fig.10 Partial or complete structure shown.
[0149] like Fig.10As shown, the IoT terminal device 1000 provided in the embodiment of the present application includes: at least one processor 1001, a memory 1002, a user interface 1003 and at least one network interface 1004. The various components in the IoT terminal device 1000 are coupled together through a bus system 1005. It can be understood that the bus system 1005 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1005 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Fig.10 Various buses are labeled as bus system 1005 .
[0150] The user interface 1003 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.
[0151] The memory 1002 in the embodiment of the present application is used to store various types of data to support the operation of the IoT terminal device. Examples of such data include: any computer program used to operate on the IoT terminal device.
[0152] The activation method disclosed in the embodiment of the present application can be applied to the processor 1001, or implemented by the processor 1001. The processor 1001 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the activation method can be completed by the hardware integrated logic circuit or software instructions in the processor 1001. The above-mentioned processor 1001 can be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 1001 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 1002, and the processor 1001 reads the information in the memory 1002, and completes the steps of the activation method provided in the embodiment of the present application in combination with its hardware.
[0153] In an exemplary embodiment, the IoT terminal device may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general-purpose processors, controllers, MCUs, microprocessors, or other electronic components to perform the aforementioned method.
[0154] The embodiment of the present application also provides a second platform, Fig.11 Only an exemplary structure of the second platform is shown, not all structures, and it can be implemented as needed. Fig.11Partial or complete structure shown.
[0155] like Fig.11 As shown, the second platform 1100 provided in the embodiment of the present application includes: at least one processor 1101, a memory 1102, a user interface 1103 and at least one network interface 1104. The various components in the second platform 1100 are coupled together through a bus system 1105. It can be understood that the bus system 1105 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1105 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Fig.11 Various buses are labeled as bus system 1105.
[0156] The user interface 1103 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.
[0157] The memory 1102 in the embodiment of the present application is used to store various types of data to support the operation of the second platform. Examples of such data include: any computer program used to operate on the second platform.
[0158] The activation method disclosed in the embodiment of the present application can be applied to the processor 1101, or implemented by the processor 1101. The processor 1101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the activation method can be completed by the hardware integrated logic circuit or software instructions in the processor 1101. The above-mentioned processor 1101 can be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 1101 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 1102, and the processor 1101 reads the information in the memory 1102, and completes the steps of the activation method provided in the embodiment of the present application in combination with its hardware.
[0159] In an exemplary embodiment, the second platform may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general purpose processors, controllers, MCUs, microprocessors, or other electronic components to perform the aforementioned methods.
[0160] It can be understood that the memory 902, 1002, 1102 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
[0161] In an exemplary embodiment, the embodiment of the present application further provides a storage medium, namely a computer storage medium, which can be a computer-readable storage medium, for example, a memory 902 storing a computer program, which can be executed by a processor 901 of a first platform to complete the steps of the method of the embodiment of the present application; for another example, a memory 1002 storing a computer program, which can be executed by a processor 1001 of an Internet of Things terminal device to complete the steps of the method of the embodiment of the present application; for another example, a memory 1102 storing a computer program, which can be executed by a processor 1101 of a second platform to complete the steps of the method of the embodiment of the present application. The computer-readable storage medium can be a memory such as ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
[0162] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0163] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0164] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for activating an Internet of Things terminal device, characterized in that: Applied before the IoT terminal device leaves the factory, the method comprises: a first platform receives a request message from a second platform, the request message is used to indicate that the IoT terminal device has been registered on the second platform; wherein the request message is sent by the second platform when the registration of the IoT terminal device is completed based on the registration request of the IoT terminal device; The first platform updates the first identification information to the second identification information based on the request message; The first platform sends the second identification information to the IoT terminal device, or burns the second identification information into the IoT terminal device; the first platform receives an activation request from the IoT terminal device; the activation request includes the second identification information; Among them, the first identification information is the identification information generated when the Internet of Things terminal device is initially registered on the first platform, and the second identification information is used by the Internet of Things terminal device to update the locally stored identification information used for activation authentication; the first platform is the original platform of the Internet of Things terminal device, and the second platform is a third-party platform other than the original platform.
2. The method according to claim 1, characterized in that The first platform updating the first identification information to the second identification information based on the request message includes: The first platform generates second identification information based on the first identification information and a calculation rule; the calculation rule is pre-set by the first platform.
3. The method according to claim 1, characterized in that The Internet of Things terminal device includes: a low-power wide area network terminal device.
4. The method according to claim 1, characterized in that: The first identification information and the second identification information both include: triplet information of the Internet of Things terminal device; the triplet information consists of a product identification, a device name and a device key of the Internet of Things terminal device.
5. The method according to claim 1, characterized in that The method further comprises: The first platform confirms whether the second identification information of the first platform is consistent with the second identification information of the Internet of Things terminal device; if they are consistent, the activation is successful, and the first platform sends activation success information to the Internet of Things terminal device; if they are inconsistent, the activation fails, and activation failure information is sent to the Internet of Things terminal device.
6. A method for activating an Internet of Things terminal device, characterized in that: Applied before the IoT terminal device leaves the factory, the method includes: The Internet of Things terminal device sends a registration request to the second platform; the registration request carries the first identification information of the Internet of Things terminal device; The IoT terminal device receives and stores the second identification information sent by the first platform; wherein the second identification information is obtained by updating the first identification information based on the request message sent by the first platform when the IoT terminal device is registered by the second platform; The IoT terminal device updates the locally stored identification information for activation authentication based on the second identification information, or burns the second identification information; wherein the first identification information is the identification information generated when the IoT terminal device is initially registered on the first platform; the second identification information is used by the IoT terminal device to update the locally stored identification information for activation authentication; the first platform is the original home platform of the IoT terminal device, and the second platform is a third-party platform other than the original home platform; The Internet of Things terminal device sends an activation request to the first platform; the activation request includes the second identification information.
7. A method for activating an Internet of Things terminal device, characterized in that: Applied before the IoT terminal device leaves the factory, the method includes: a second platform receives a registration request of the IoT terminal device; the registration request carries the first identification information of the IoT terminal device; The second platform registers the IoT terminal device based on the registration request; The second platform sends a request message to the first platform; the request message is used to indicate that the Internet of Things terminal device has been registered on the second platform; wherein the first identification information is the identification information generated when the Internet of Things terminal device is initially registered on the first platform, the first platform is the original platform of the Internet of Things terminal device, and the second platform is a third-party platform other than the original platform; the request message is used by the first platform to update the first identification information to the second identification information, and the second identification information is used by the Internet of Things terminal device to update the locally stored identification information for activation authentication.
8. An activation device for an Internet of Things terminal device, characterized in that: Applied to the first platform, the device comprises: A first receiving module, used to receive a request message from a second platform, the request message being used to indicate that the IoT terminal device has been registered on the second platform; wherein the request message is sent by the second platform when the registration of the IoT terminal device is completed based on the registration request of the IoT terminal device; a first updating module, used to update the first identification information to the second identification information based on the request message; A first sending module, used for sending the second identification information to the Internet of Things terminal device; The first receiving module is further used for: The first platform receives an activation request from the IoT terminal device; the activation request includes second identification information; Among them, the first identification information is the identification information generated when the Internet of Things terminal device is initially registered on the first platform, and the second identification information is used by the Internet of Things terminal device to update the locally stored identification information used for activation authentication; the first platform is the original platform of the Internet of Things terminal device, and the second platform is a third-party platform other than the original platform.
9. An activation device for an Internet of Things terminal device, characterized in that: Applied to an Internet of Things terminal device, the device comprises: A second sending module is used to send a registration request to the second platform; the registration request carries the first identification information of the IoT terminal device; and is used for the IoT terminal device to send an activation request to the first platform; wherein the activation request includes the second identification information; A second receiving module is used to receive the second identification information sent by the first platform; wherein the second identification information is obtained by updating the first identification information based on the request message sent by the first platform when the second platform completes the registration of the Internet of Things terminal device; A second updating module, configured to update the locally stored identification information for activating authentication based on the second identification information; A burning module, used for burning the second identification information; Among them, the first identification information is the identification information generated when the Internet of Things terminal device is initially registered on the first platform, the first platform is the original belonging platform of the Internet of Things terminal device, and the second platform is a third-party platform other than the original belonging platform.
10. An activation device for an Internet of Things terminal device, characterized in that: Applied to the second platform, the device comprises: A third receiving module is used to receive a registration request of an Internet of Things terminal device; the registration request carries the first identification information of the Internet of Things terminal device; A registration module, used to register the Internet of Things terminal device based on the registration request; The third sending module is used to send a request message to the first platform; the request message is used to indicate that the Internet of Things terminal device has been registered on the second platform; wherein, the first identification information is the identification information generated when the Internet of Things terminal device is initially registered on the first platform, the first platform is the original belonging platform of the Internet of Things terminal device, and the second platform is a third-party platform other than the original belonging platform; the request message is used by the first platform to update the first identification information to the second identification information, and the second identification information is used by the Internet of Things terminal device to update the locally stored identification information for activation authentication.
11. A first platform, characterized in that: include: A processor and a memory for storing a computer program that can be executed on the processor, wherein: The processor is used to execute the steps of the method according to any one of claims 1 to 5 when running a computer program.
12. An Internet of Things terminal device, characterized in that: include: A processor and a memory for storing a computer program that can be executed on the processor, wherein: The processor is used to execute the steps of the method according to claim 6 when running the computer program.
13. A second platform, characterized in that: include: A processor and a memory for storing a computer program that can be executed on the processor, wherein: The processor is used to execute the steps of the method according to claim 7 when running the computer program.
14. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5, the steps of the method according to claim 6, or the steps of the method according to claim 7 are implemented.
Citation Information
Patent Citations
Internet of Things equipment processing method and device based on blockchain
CN113726522A
Equipment control method, electronic equipment and storage medium
CN115001889A
