Iot device access method, iot device, and storage medium
By individually burning configuration information into IoT devices, the cumbersome process of changing IoT device access platforms is solved, enabling a convenient and efficient access process that is suitable for privately deployed IoT platforms.
Patent Information
- Application Number
- CN202310475644.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-25
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2043-04-25
AI Technical Summary
In existing technologies, when IoT devices connect to an IoT platform, the product certificate needs to be re-burned when the platform is changed, which makes the connection process cumbersome and inconvenient and cannot meet the needs of private deployment.
IoT devices burn their IoT configuration information into a local preset storage area and access the IoT platform by reading the local configuration information. This allows them to access the platform without having to re-burn the entire system when the platform changes, using a unified access method.
It reduces the complexity of IoT device access, improves the convenience and efficiency of access, and meets the needs of privately deployed IoT platforms.
Smart Images

Figure CN116582564B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communications, and more particularly to an Internet of Things (IoT) device access method, IoT device, and storage medium. Background Technology
[0002] The Internet of Things (IoT) platform connects to IoT devices, communicates with them, and manages, stores, and forwards data for these devices.
[0003] In related technologies, the way an IoT platform connects to IoT devices typically involves first creating a product on the IoT platform and generating a product certificate. Then, during the production process of IoT devices under that product, the same product certificate (ProductKey and ProductSecret) is burned into the system for each IoT device. When the IoT platform needs to connect to an IoT device, it authenticates the product certificate of the IoT device. Only after successful authentication can the IoT platform connect to the IoT device.
[0004] However, when the IoT platform to be connected changes (such as the IoT platform server changes or a new IoT platform is connected), the IoT device system needs to be modified and re-programmed to re-program the new product certificate, which is cumbersome and inconvenient. Summary of the Invention
[0005] This invention provides an IoT device access method, an IoT device, and a storage medium, aiming to reduce the complexity of IoT device access and improve the convenience and efficiency of IoT device access.
[0006] In a first aspect, embodiments of the present invention provide an Internet of Things (IoT) device access method, applied to IoT devices, including:
[0007] Obtain IoT configuration information and burn the IoT configuration information into a preset storage area, which is the local storage area of the IoT device;
[0008] When it is necessary to connect to an IoT platform, the IoT configuration information is read from the preset storage area;
[0009] Based on the IoT configuration information, an access request is sent to the IoT platform so that the IoT platform can authenticate the IoT device according to the access request, and access and manage the IoT device if the authentication is successful.
[0010] Optionally, the IoT configuration information includes the network address and port number of the IoT platform, as well as the account information and device information of the IoT device;
[0011] Sending an access request to the IoT platform based on the IoT configuration information includes:
[0012] The account information of the IoT device is encrypted to obtain the encrypted account information of the IoT device.
[0013] Encapsulate the encrypted account information and device information of the IoT device into the access request;
[0014] The access request is sent to the IoT platform based on the network address and port number of the IoT platform.
[0015] Optionally, the method further includes:
[0016] Upon receiving a message indicating a change in the IoT platform that needs to be connected, the message is parsed to obtain new IoT configuration information, which is then written into the preset storage area.
[0017] When it is necessary to connect to a new IoT platform, the new IoT configuration information is read from the preset storage area;
[0018] Based on the new IoT configuration information, a new access request is sent to the new IoT platform, so that the new IoT platform can authenticate the IoT device according to the new access request, and access and manage the IoT device if the authentication is successful.
[0019] Optionally, before writing the new IoT configuration information into the preset storage area, the following steps are included:
[0020] The IoT configuration information is erased from the preset storage area.
[0021] Secondly, embodiments of the present invention also provide an IoT device access method, applied to an IoT platform, comprising:
[0022] Receive access requests sent by IoT devices;
[0023] The access request is parsed to obtain the encrypted account information and device information of the IoT device;
[0024] The IoT device is authenticated based on the encrypted account information;
[0025] Once authentication is successful, the user can access the IoT device and manage it based on the device information.
[0026] Optionally, before receiving the access request sent by the IoT device, the process includes:
[0027] Obtain product information of the products to which the IoT device belongs;
[0028] IoT configuration information is generated based on the product information, and the IoT configuration information is used to burn into the preset storage area of the IoT device.
[0029] Optionally, authenticating the IoT device based on the encrypted account information includes:
[0030] The encrypted account information is decrypted to obtain the account information, and the connection of the account information is verified.
[0031] If the connection verification of the account information is successful, the authentication of the IoT device is confirmed.
[0032] Optionally, the device information includes the unique identifier of the IoT device;
[0033] The management of the IoT device based on the device information includes:
[0034] Add the unique identifier of the IoT device to the product's management list.
[0035] Thirdly, embodiments of the present invention also provide an Internet of Things (IoT) device, the IoT device including a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for implementing connection communication between the processor and the memory, wherein when the computer program is executed by the processor, it implements the IoT device access method as described in the first aspect.
[0036] Fourthly, embodiments of the present invention also provide an Internet of Things (IoT) platform, the IoT platform including a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for implementing connection communication between the processor and the memory, wherein when the computer program is executed by the processor, it implements the IoT device access method as described in the second aspect.
[0037] Fifthly, embodiments of the present invention also provide a storage medium for computer-readable storage, characterized in that the storage medium stores one or more programs, which can be executed by one or more processors to implement the method for accessing Internet of Things devices as described in the first or second aspect.
[0038] This invention provides an IoT device access method, an IoT device, and a storage medium. The IoT device access method involves the IoT device separately burning its IoT configuration information into a local preset storage area, improving the maintainability of the IoT configuration information. When the IoT device needs to connect to an IoT platform, it can read the IoT configuration information from the local preset storage area, thereby achieving access to the IoT platform based on the IoT configuration information. This allows for a unified IoT device access method. Even if the IoT platform is changed, the IoT device can securely access the platform based on the corresponding IoT configuration information burned into the local preset storage area, without needing to re-burn the entire system to obtain the corresponding IoT configuration information. This greatly reduces the complexity of IoT device access and improves the convenience and efficiency of IoT device access. Thus, it can meet the needs of connecting IoT devices to privately deployed IoT platforms. Attached Figure Description
[0039] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 This is a schematic diagram of the application environment of an IoT device access method provided in an embodiment of the present invention;
[0041] Figure 2 This is a flowchart illustrating an IoT device access method provided in an embodiment of the present invention;
[0042] Figure 3 yes Figure 2 A flowchart illustrating the sub-steps of the IoT device access method;
[0043] Figure 4 This is another flowchart illustrating an IoT device access method provided in an embodiment of the present invention;
[0044] Figure 5 This is another flowchart illustrating an IoT device access method provided in an embodiment of the present invention;
[0045] Figure 6 yes Figure 5 A flowchart illustrating the steps preceding S301 in the network device access method;
[0046] Figure 7 This is an example diagram of an application scenario provided by an embodiment of the present invention;
[0047] Figure 8 This is a schematic block diagram of the structure of an Internet of Things (IoT) device provided in an embodiment of the present invention. Detailed Implementation
[0048] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0049] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0050] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0051] Please see Figure 1 , Figure 1 This is a schematic diagram of an application environment for an IoT device access method provided in an embodiment of the present invention. This application environment may include, for example, an IoT device 110 and an IoT platform 120. The IoT device 110 and the IoT platform 120 are connected via a communication network.
[0052] To facilitate understanding of the technical solutions provided in the embodiments of the present invention, several concepts will be explained below.
[0053] IoT devices 110 include smart home devices, wearable devices, smart vehicle terminals, smart cameras, industrial smart gateways, and self-moving devices. IoT devices enable interconnection, interoperability, and interaction between users and IoT devices, as well as between IoT devices themselves, through an IoT platform.
[0054] The IoT Platform 120 is an important component of the IoT ecosystem, and is an integrated platform that combines capabilities such as device management and secure data communication.
[0055] The products are a collection of IoT devices of the same model with the same functions.
[0056] Current methods for connecting IoT platforms to IoT devices typically require first creating a product on the IoT platform and generating a product certificate. Then, during the production process of IoT devices under that product, the same product certificate (ProductKey and ProductSecret) is burned into the system of each IoT device. When the IoT platform needs to connect to an IoT device, it authenticates the IoT device's product certificate. Only after successful authentication can the IoT platform connect to the IoT device. However, if the IoT platform to be connected changes (such as a change in the IoT platform's server or a new IoT platform to be connected), the system of the IoT device needs to be modified and re-burned to re-burn the new product certificate. This is cumbersome and inconvenient, and cannot meet the needs of connecting IoT devices to privately deployed IoT platforms.
[0057] To address the aforementioned issues, this invention provides an IoT device access method, an IoT device, and a storage medium. In this IoT device access method, the IoT device separately records its IoT configuration information in a local preset storage area, improving the maintainability of the IoT configuration information. When the IoT device needs to connect to an IoT platform, it can read the IoT configuration information from the local preset storage area, thereby achieving access to the IoT platform based on the IoT configuration information. This allows for a unified IoT device access method. Even if the IoT platform is changed, the IoT device can securely access the platform based on the corresponding IoT configuration information, without needing to re-record the entire system to obtain the relevant IoT configuration information. This greatly reduces the complexity of IoT device access and improves the convenience and efficiency of IoT device access. Thus, it can meet the needs of connecting IoT devices to privately deployed IoT platforms.
[0058] The following detailed description of some embodiments of the present invention is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0059] Please see Figure 2 , Figure 2 This is a flowchart illustrating an IoT device access method provided by an embodiment of the present invention. This method is mainly applied to IoT devices, which can be any of the following: smart home devices, wearable devices, smart vehicle terminals, smart cameras, industrial smart gateways, and self-moving devices. This embodiment of the present invention does not impose any limitations on these.
[0060] like Figure 2 As shown, the IoT device access method provided in this embodiment of the invention includes steps S101 to S103.
[0061] Step S101: Obtain IoT configuration information and burn the IoT configuration information into a preset storage area, which is the local storage area of the IoT device.
[0062] IoT devices connect to IoT platforms through IoT configuration information, which can be generated by the IoT platform the device needs to interface with. For example, IoT configuration information can be obtained by receiving user input into the IoT device.
[0063] In some embodiments, the IoT configuration information includes the network address and port number of the IoT platform that the IoT device needs to connect to, as well as the account information and device information configured for the IoT device.
[0064] Among them, the network address corresponding to the IoT platform can be the URL (Uniform Resource Locator) of the IoT platform; the account information of the IoT device is the connection ID and password configured by the IoT platform for the IoT device; the device information of the IoT device includes the unique identification information (DeviceId) of the IoT device, which is randomly generated, has no regularity, and is easy to distinguish.
[0065] After obtaining the IoT configuration information, the IoT device burns the configuration information to a local preset storage area. This preset storage area is a specific partition allocated from the IoT device's memory, and it is used solely for writing IoT configuration information, thus improving the maintainability of the configuration information.
[0066] Step S102: If it is necessary to connect to an IoT platform, read the IoT configuration information from the preset storage area.
[0067] When IoT devices need to connect to an IoT platform, such as when the IoT device is connected to the internet, the IoT configuration information is read from the local preset storage area.
[0068] Step S103: Based on the IoT configuration information, send an access request to the IoT platform so that the IoT platform can authenticate the IoT device according to the access request, and access and manage the IoT device if the authentication is successful.
[0069] The IoT device sends an access request to the IoT platform based on the IoT configuration information.
[0070] In some embodiments, such as Figure 3As shown, the step of sending an access request to the IoT platform according to the IoT configuration information includes sub-steps S1031 to S1033.
[0071] Sub-step S1031: Perform encryption operation on the account information of the IoT device to obtain the encrypted account information of the IoT device.
[0072] To prevent the theft of IoT device account information for malicious access to the IoT platform, the IoT device's account information is extracted from the IoT configuration information and encrypted to obtain encrypted account information. For example, a preset MD5 algorithm can be used to perform an MD5 hash on the IoT device's connection ID and password to obtain the encrypted account information.
[0073] Sub-step S1032: Encapsulate the encrypted account information and device information of the IoT device into the access request.
[0074] IoT devices also extract their own unique identification information from IoT configuration information, and encapsulate the IoT device's encrypted account information and unique identification information in the access request.
[0075] Sub-step S1033: Send the access request to the IoT platform according to the network address and port number of the IoT platform.
[0076] The IoT device also extracts the network address and port number of the IoT platform from the IoT configuration information, and then sends an access request to the IoT platform based on this network address and port number. In this way, the IoT device can securely and conveniently send access requests to the IoT platform based on the IoT configuration information.
[0077] Subsequently, the IoT platform receives access requests from IoT devices, parses these requests to obtain the encrypted account information and unique identifier of the IoT devices, and then authenticates the IoT devices based on the encrypted account information. If authentication is successful, the IoT devices are allowed access, and the platform manages them based on their unique identifiers. These unique identifiers facilitate the IoT platform's differentiation of connected IoT devices, providing convenience for managing them.
[0078] In some embodiments, such as Figure 4 As shown, the IoT device access method provided in this embodiment of the invention further includes steps S201 to S203.
[0079] Step S201: Upon receiving a message indicating a change in the IoT platform to be connected, parse the message to obtain new IoT configuration information and write the new IoT configuration information into the preset storage area.
[0080] When an IoT device receives a message indicating a change in the IoT platform it needs to connect to, it parses the message to extract the new IoT configuration information carried within, and then writes this new configuration information to the IoT device's preset storage area. This new IoT configuration information includes the network address and port number corresponding to the new IoT platform, as well as new account information and device information configured for the IoT device.
[0081] Step S202: If it is necessary to connect to a new IoT platform, read the new IoT configuration information from the preset storage area.
[0082] When an IoT device needs to connect to a new IoT platform, it reads new IoT configuration information from a pre-set storage area.
[0083] Step S203: Based on the new IoT configuration information, send a new access request to the new IoT platform so that the new IoT platform can authenticate the IoT device according to the new access request, and access and manage the IoT device if the authentication is successful.
[0084] IoT devices send new access requests to the new IoT platform they need to connect to, using the new IoT configuration information. Specifically, to prevent the new account information of IoT devices from being stolen and used for malicious access to the new IoT platform, the IoT devices extract the new account information from the new IoT configuration information, perform encryption operations, and obtain new encrypted account information.
[0085] The IoT device also extracts new device information from the new IoT configuration information, encapsulating the new encrypted account information and the new device information in a new access request. The IoT device also extracts the network address and port number of the new IoT platform from the new IoT configuration information, and then sends a new access request to the new IoT platform based on the network address and port number of the new IoT platform.
[0086] When the new IoT platform receives a new access request, it parses the request to obtain the new encrypted account information and device information of the IoT device. Then, it authenticates the IoT device based on the new encrypted account information, and allows access to the IoT device if the authentication is successful. Finally, it manages the IoT device based on the new device information.
[0087] Therefore, for different IoT platforms, IoT devices can simply burn the corresponding IoT configuration information into the local preset storage area, so that they can access the corresponding IoT platform in a unified way without modifying and re-burning the entire system. This greatly reduces the cumbersomeness of IoT device access and improves the convenience and efficiency of IoT device access.
[0088] In some embodiments, in order to save space in the preset storage area of IoT devices, the IoT configuration information previously stored in the preset storage area is erased before new IoT configuration information is written to the preset storage area.
[0089] The IoT device access method described above involves burning IoT configuration information into a local preset storage area, improving the maintainability of this information. When an IoT device needs to connect to an IoT platform, it can retrieve this configuration information from the local preset storage area and then connect to the platform based on it. This unified approach allows for secure IoT device access even if the IoT platform is changed. The IoT device can securely connect based on this configuration information without needing to re-burn the entire system to obtain the necessary configuration information, significantly reducing the complexity of IoT device access and improving its convenience and efficiency. This effectively meets the needs of connecting IoT devices to privately deployed IoT platforms.
[0090] Please see Figure 5 , Figure 5 This is another flowchart illustrating an IoT device access method provided in an embodiment of the present invention. This method is primarily applied to IoT platforms.
[0091] like Figure 5 As shown, the IoT device access method provided in this embodiment of the invention includes steps S301 to S304.
[0092] Step S301: Receive the access request sent by the IoT device.
[0093] In some embodiments, such as Figure 6 As shown, before step S301, steps S401 to S402 are included.
[0094] Step S401: Obtain product information of the product to which the IoT device belongs.
[0095] Before receiving an access request from an IoT device, the IoT platform obtains product information about the product to which the IoT device belongs. This product information includes the category and model of the product to which the IoT device belongs, as well as the IoT device's serial number. For example, this could be product information input by a user into the IoT platform.
[0096] Step S402: Generate IoT configuration information based on the product information. The IoT configuration information is used to burn into the preset storage area of the IoT device.
[0097] The IoT platform generates IoT configuration information based on product information. Specifically, it can configure a connection ID and password for the IoT device based on the product category and the device's serial number, serving as the device's account information; it can also randomly generate a unique identifier for the IoT device based on its serial number, serving as the device information.
[0098] The connection ID and password configured for the IoT device, along with the device information, the URL and port number of the IoT platform, constitute the IoT configuration information. This IoT configuration information is then individually burned into the IoT device's preset storage area.
[0099] In this way, when an IoT device is connected to the network, it can read IoT configuration information from its local preset storage area and then send an access request to the IoT platform based on the IoT configuration information. Specifically, the IoT device extracts its account information from the IoT configuration information, performs encryption operations to obtain encrypted account information; it also extracts its own unique identification information from the IoT configuration information, encapsulates the encrypted account information and device information in the access request; and it also extracts the network address and port number of the IoT platform from the IoT configuration information, and then sends an access request to the IoT platform based on the network address and port number.
[0100] The IoT platform receives access requests from IoT devices.
[0101] Step S302: Parse the access request to obtain the encrypted account information and device information of the IoT device.
[0102] The IoT platform parses the access requests sent by IoT devices to obtain the encrypted account information and device information of the IoT devices.
[0103] Step S303: Authenticate the IoT device based on the encrypted account information.
[0104] The IoT platform authenticates IoT devices based on their encrypted account information.
[0105] In some embodiments, step S303 may be: performing a decryption operation on the encrypted account information to obtain account information, and performing connection verification on the account information; if the connection verification of the account information is successful, confirming that the authentication of the IoT device is successful.
[0106] When an IoT platform authenticates an IoT device, it first decrypts the encrypted account information of the IoT device to obtain the account information. Specifically, the encryption algorithm used by the IoT device to encrypt its account information is known to the IoT platform (e.g., the encryption algorithm is agreed upon in advance with the IoT device). The IoT platform has a corresponding pre-set decryption algorithm, which it uses to decrypt the encrypted account information of the IoT device.
[0107] After obtaining the account information (connection ID and password) of the IoT device, the IoT platform verifies the connection using the connection ID and password. Specifically, after configuring the connection ID and password for the IoT device, the IoT platform stores them in a local preset database. When the IoT device sends an access request, the IoT platform obtains the connection ID and password and matches them with the pre-stored connection IDs and passwords in the preset database. If a matching pre-stored connection ID and password are found, the authentication of the IoT device is confirmed. This ensures the security of the IoT platform.
[0108] Step S304: If authentication is successful, access the IoT device and manage the IoT device according to the device information.
[0109] Once the IoT platform successfully authenticates the IoT device, it can access the IoT device and manage it based on the device information.
[0110] In some embodiments, managing IoT devices based on their device information can involve adding the unique identifier of the IoT device to the management list of the product to which the IoT device belongs, thus facilitating the management of connected IoT devices by the IoT platform.
[0111] The IoT device access method described above is applied to an IoT platform. It receives access requests from IoT devices; parses the access requests to obtain encrypted account information and device information of the IoT devices; authenticates the IoT devices based on the encrypted account information; accesses the IoT devices upon successful authentication; and manages the IoT devices based on the device information. Compared with existing IoT device access methods, this method provides significant convenience for IoT platforms to securely access and manage IoT devices.
[0112] For a better understanding of the above embodiments, please refer to Figure 7 Examples of application scenarios are as follows:
[0113] During the production process of IoT devices, system programming is completed. The IoT device acquires IoT configuration information, including the URL and port number of the IoT platform to be connected, as well as the device's account information (including connection ID and password) and unique identifier. This configuration information is then programmed separately into a local preset storage area. When the IoT device is connected to the network, it reads the IoT configuration information from the local preset storage area, encrypts the device's connection ID and password, and encapsulates them together with the unique identifier into an access request. Based on the URL and port number corresponding to the IoT platform, this access request is sent to the IoT platform. The IoT platform receives the access request from the IoT device, parses it, and obtains the encrypted connection ID, password, and unique identifier. It then decrypts the encrypted connection ID and password to obtain the IoT device's connection ID and password. If the connection ID and password are correct, the authentication of the IoT device is successful, and the unique identifier of the IoT device is added to the management list of the product to which the IoT device belongs. If authentication fails, the IoT device access fails. If an IoT device subsequently receives a message indicating a change to a new IoT platform, it parses the message to obtain the new IoT configuration information and burns this information into its local preset storage area. When the IoT device needs to connect to the new IoT platform, it reads the new configuration information from the preset storage area and sends a new access request to the new IoT platform based on this information. The new IoT platform then authenticates the IoT device based on the new access request and, if authentication is successful, connects to and manages the IoT device. In this way, even if the IoT platform is changed, the IoT device can securely connect based on the corresponding configuration information burned into its local preset storage area, without needing to re-burn the entire system to obtain the configuration information. This greatly reduces the complexity of IoT device connection and improves the convenience and efficiency of connection. This meets the needs of connecting IoT devices to privately deployed IoT platforms.
[0114] Please see Figure 8 , Figure 8 This is a schematic block diagram of the structure of an Internet of Things (IoT) device provided in an embodiment of the present invention.
[0115] like Figure 8As shown, the Internet of Things device 200 includes a processor 201 and a memory 202, which are connected via a bus 203, such as an I2C (Inter-integrated Circuit) bus.
[0116] Specifically, processor 201 provides computing and control capabilities to support the operation of the entire IoT device. Processor 201 can be a Central Processing Unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0117] Specifically, the memory 202 can be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a portable hard drive, etc.
[0118] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the embodiments of the present invention, and does not constitute a limitation on the IoT devices to which the embodiments of the present invention are applied. A specific server may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0119] The processor 201 is used to run a computer program stored in the memory 202, and implements any of the IoT device access methods provided in the embodiments of the present invention when executing the computer program.
[0120] In one embodiment, the processor 201 is configured to run a computer program stored in the memory 202, and to perform the following steps when executing the computer program:
[0121] Obtain IoT configuration information and burn the IoT configuration information into a preset storage area, which is the local storage area of the IoT device;
[0122] When it is necessary to connect to an IoT platform, the IoT configuration information is read from the preset storage area;
[0123] Based on the IoT configuration information, an access request is sent to the IoT platform so that the IoT platform can authenticate the IoT device according to the access request, and access and manage the IoT device if the authentication is successful.
[0124] In one embodiment, the IoT configuration information includes the network address and port number of the IoT platform, as well as the account information and device information of the IoT device. When the processor 201 sends an access request to the IoT platform based on the IoT configuration information, it is configured to:
[0125] The account information of the IoT device is encrypted to obtain the encrypted account information of the IoT device.
[0126] Encapsulate the encrypted account information and device information of the IoT device into the access request;
[0127] The access request is sent to the IoT platform based on the network address and port number of the IoT platform.
[0128] In one embodiment, the processor 201 is further configured to perform the following steps:
[0129] Upon receiving a message indicating a change in the IoT platform that needs to be connected, the message is parsed to obtain new IoT configuration information, which is then written into the preset storage area.
[0130] When it is necessary to connect to a new IoT platform, the new IoT configuration information is read from the preset storage area;
[0131] Based on the new IoT configuration information, a new access request is sent to the new IoT platform, so that the new IoT platform can authenticate the IoT device according to the new access request, and access and manage the IoT device if the authentication is successful.
[0132] In one embodiment, before writing the new IoT configuration information into the preset storage area, the processor 201 is configured to perform the following:
[0133] The IoT configuration information is erased from the preset storage area.
[0134] This invention also provides an Internet of Things (IoT) platform. The IoT platform includes a processor and a memory, which are connected via a bus, such as an I2C (Inter-integrated Circuit) bus.
[0135] The processor is used to run a computer program stored in a memory, and when executing the computer program, implements any of the IoT device access methods for IoT platforms provided in the embodiments of the present invention.
[0136] In one embodiment, the processor is configured to run a computer program stored in memory, and to perform the following steps when executing the computer program:
[0137] Receive access requests sent by IoT devices;
[0138] The access request is parsed to obtain the encrypted account information and device information of the IoT device;
[0139] The IoT device is authenticated based on the encrypted account information;
[0140] Once authentication is successful, the user can access the IoT device and manage it based on the device information.
[0141] In one embodiment, before implementing the access request sent by the IoT device, the processor is configured to:
[0142] Obtain product information of the products to which the IoT device belongs;
[0143] IoT configuration information is generated based on the product information, and the IoT configuration information is used to burn into the preset storage area of the IoT device.
[0144] In one embodiment, when the processor performs authentication of the IoT device based on the encrypted account information, it is configured to:
[0145] The encrypted account information is decrypted to obtain the account information, and the connection of the account information is verified.
[0146] If the connection verification of the account information is successful, the authentication of the IoT device is confirmed.
[0147] In one embodiment, the device information includes the unique identifier information of the IoT device, and the processor, when implementing the management of the IoT device based on the device information, is configured to:
[0148] Add the unique identifier of the IoT device to the product's management list.
[0149] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the IoT device described above can be referred to the corresponding process in the aforementioned IoT device access method embodiments, and will not be repeated here.
[0150] This invention also provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs that can be executed by one or more processors to implement the steps of any of the IoT device access methods provided in the specification of this invention.
[0151] The storage medium can be an internal storage unit of the IoT device or IoT platform described in the foregoing embodiments, such as a hard drive or memory of the IoT device or IoT platform. Alternatively, the storage medium can be an external storage device of the IoT device or IoT platform, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the IoT device or IoT platform.
[0152] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware embodiments, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0153] It should be understood that the term "and / or" as used in this specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, herein, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0154] The sequence numbers of the above embodiments of the present invention are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The above descriptions are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for accessing Internet of Things (IoT) devices, characterized in that, Applied to IoT devices, including: Obtain IoT configuration information and burn the IoT configuration information into a preset storage area. The preset storage area is the local storage area of the IoT device. The preset storage area is isolated from the system partition of the IoT device. The preset storage area is only used for writing the IoT configuration information. When it is necessary to connect to an IoT platform, the IoT configuration information is read from the preset storage area; The account information of the IoT device is encrypted to obtain encrypted account information of the IoT device; the encrypted account information and device information of the IoT device are encapsulated into an access request; the access request is sent to the IoT platform according to the network address and port number of the IoT platform, so that the IoT platform can authenticate the IoT device according to the access request, and access and manage the IoT device if the authentication is successful; the IoT configuration information includes the network address and port number of the IoT platform, as well as the account information and device information of the IoT device; the device information includes the unique identification information of the IoT device.
2. The IoT device access method according to claim 1, characterized in that, The method further includes: Upon receiving a message indicating a change in the IoT platform that needs to be connected, the message is parsed to obtain new IoT configuration information, which is then written into the preset storage area. When it is necessary to connect to a new IoT platform, the new IoT configuration information is read from the preset storage area; Based on the new IoT configuration information, a new access request is sent to the new IoT platform, so that the new IoT platform can authenticate the IoT device according to the new access request, and access and manage the IoT device if the authentication is successful.
3. The IoT device access method according to claim 2, characterized in that, Before writing the new IoT configuration information into the preset storage area, the following steps are included: The IoT configuration information is erased from the preset storage area.
4. A method for connecting IoT devices, characterized in that, Applications in IoT platforms, including: Obtain product information for the products to which IoT devices belong; IoT configuration information is generated based on the product information. The IoT configuration information is used to burn into the preset storage area of the IoT device. The preset storage area is the local storage area of the IoT device. The preset storage area is isolated from the system partition of the IoT device. The preset storage area is only used to write the IoT configuration information. Receive the access request sent by the IoT device; The access request is parsed to obtain the encrypted account information and device information of the IoT device; the device information includes the unique identifier information of the IoT device. The IoT device is authenticated based on the encrypted account information; Once authentication is successful, the user can access the IoT device and manage it based on the device information.
5. The IoT device access method according to claim 4, characterized in that, The authentication of the IoT device based on the encrypted account information includes: The encrypted account information is decrypted to obtain the account information, and the connection of the account information is verified. If the connection verification of the account information is successful, the authentication of the IoT device is confirmed.
6. The IoT device access method according to claim 4, characterized in that, The management of the IoT device based on the device information includes: Add the unique identifier of the IoT device to the product's management list.
7. An Internet of Things (IoT) device, characterized in that, The IoT device includes a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for enabling communication between the processor and the memory, wherein when the computer program is executed by the processor, it implements the IoT device access method as described in any one of claims 1 to 3.
8. An Internet of Things (IoT) platform, characterized in that, The IoT platform includes a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for enabling communication between the processor and the memory, wherein the computer program, when executed by the processor, implements the IoT device access method as described in any one of claims 4 to 6.
9. A storage medium for computer-readable storage, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the IoT device access method according to any one of claims 1 to 3 or 4 to 6.
Citation Information
Patent Citations
Authentication method and authentication system
CN105554759A
Trusted node determination method and device based on blockchain network
CN111277553A
Method and device for accessing equipment to Internet of Things platform, equipment and medium
CN113206886A
Activation method and device of Internet of Things terminal equipment, equipment and storage medium
CN115835369A