Internet of Things communication method and system, computer equipment, medium and product

By receiving and verifying product identifiers and keys in IoT devices, judging the device registration status, and directly using dynamic registration connections to communicate when registered, the problem of low communication efficiency of IoT devices is solved and efficient Data transfer and secure connection.

CN119299084APending Publication Date: 2025-01-10深圳开鸿数字产业发展有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411351436.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

IoT devices need to be restarted after dynamic registration to re-establish connections, resulting in reduced communication efficiency between devices and IoT platforms.

Method used

By receiving the product identifier and product key of the device to be communicated for verification, we can determine whether the device has been registered, and directly use the dynamically registered connection for data communication when it has been registered, avoiding the restart and reconnection steps.

Benefits of technology

Improves the communication efficiency between devices and IoT platforms, avoids the delay caused by restarting and reconnection in traditional technologies, ensures a smooth transition of dynamic registration and data communication, while maintaining security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299084A_ABST
    Figure CN119299084A_ABST
Patent Text Reader

Abstract

The invention discloses an Internet of Things communication method and system, computer equipment, a medium and a product, and relates to the technical field of Internet of Things, the disclosed Internet of Things communication method comprises the following steps: receiving a product identifier and a product key of to-be-communicated equipment, and verifying the product identifier and the product key; if it is detected that the product identifier and the product key pass verification, detecting whether the to-be-communicated device is registered; and if it is detected that the to-be-communicated device is registered, taking a device identifier of the to-be-communicated device as a user name, taking a device key of the to-be-communicated device as a password, and performing data communication with the to-be-communicated device based on the user name and the password. The technical scheme of the invention aims to solve the technical problem of how to improve the communication efficiency between the equipment and the Internet of Things platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet of Things technology, and in particular to an Internet of Things communication method, system, computer equipment, medium and product. Background Art

[0002] Dynamic registration of IoT devices refers to the process in which, in the IoT platform, even if the device does not know its device key or other necessary authentication information in advance, it can automatically obtain these necessary information by sending a registration request to the platform, and establish a secure connection with the IoT platform accordingly. When dynamic registration is completed, the device obtains the required authentication information and can start to establish a connection with the IoT platform for data communication and exchange data. However, in actual applications, after the device obtains the authentication information, it is necessary to disconnect the dynamically registered connection and let the device go through a restart process, and then reconnect and communicate with the IoT device after the restart. However, although the restart step helps to improve system stability and security, it also brings additional time delays to data communication, thereby reducing the efficiency of communication between the device and the IoT platform.

[0003] Therefore, how to improve the communication efficiency between devices and the Internet of Things platform is a technical problem that needs to be solved by those skilled in the art. Summary of the invention

[0004] The main purpose of this application is to provide an Internet of Things communication method, system, computer equipment, medium and product, aiming to solve the technical problem of how to improve the communication efficiency between devices and Internet of Things platforms.

[0005] To achieve the above purpose, the present application proposes an Internet of Things communication method, which is applied to an Internet of Things platform and includes:

[0006] Receiving a product identifier and a product key of a device to be communicated, and verifying the product identifier and the product key;

[0007] If it is detected that the product identifier and the product key have passed the verification, then detecting whether the device to be communicated has been registered;

[0008] If it is detected that the device to be communicated has been registered, the device identifier of the device to be communicated is used as the user name, the device key of the device to be communicated is used as the password, and data communication is performed with the device to be communicated based on the user name and the password.

[0009] In one embodiment, after the step of detecting whether the communication device has been registered, the method further includes:

[0010] If it is detected that the device to be communicated is not registered, creating a virtual device corresponding to the device to be communicated, and generating a device identifier and a device key corresponding to the virtual device;

[0011] After detecting that the device identifier and the device key are generated, it is determined that the device to be communicated has been registered.

[0012] In one embodiment, after the step of performing data communication with the target communication device based on the user name and the password, the method further includes:

[0013] The device identifier and the device key are transmitted to the device to be communicated, so that the device to be communicated stores the device identifier and the device key.

[0014] In one embodiment, after the step of verifying the product identifier and the product key, the method further comprises:

[0015] If it is detected that the product identifier or the product key verification fails, generating a connection rejection response message;

[0016] The connection rejection response information is transmitted to the communication device.

[0017] In one embodiment, before the step of receiving the product identifier and product key of the device to be communicated, the method further includes:

[0018] Creating each product and generating a target product identifier and a target product key corresponding to each product;

[0019] The step of verifying the product identifier and the product key comprises:

[0020] According to the product identifier and each of the target product identifiers, determining a first target product corresponding to the product identifier among each of the products;

[0021] Determining, from among the products, a second target product corresponding to the product key according to the product key and each of the target product keys;

[0022] The product identifier and the product key are verified according to the first target product and the second target product.

[0023] In one embodiment, the step of verifying the product identifier and the product key according to the first target product and the second target product includes:

[0024] If it is detected that the first target product is the same as the second target product, determining that the product identifier and the product key have been verified;

[0025] If it is detected that the first target product is different from the second target product, it is determined that the verification of the product identifier and the product key fails.

[0026] In addition, to achieve the above purpose, the present application also proposes an Internet of Things communication system, which is applied to an Internet of Things platform, and the Internet of Things communication system includes:

[0027] A data verification module, used to receive a product identifier and a product key of a device to be communicated, and verify the product identifier and the product key;

[0028] A registration judgment module, configured to detect whether the device to be communicated has been registered if it is detected that the product identifier and the product key have passed verification;

[0029] The connection module is used to use the device identifier of the device to be communicated as the user name and the device key of the device to be communicated as the password if it is detected that the device to be communicated has been registered, and to perform data communication with the device to be communicated based on the user name and the password.

[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a computer device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the Internet of Things communication method as described above.

[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the Internet of Things communication method described above are implemented.

[0032] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the Internet of Things communication method as described above.

[0033] In an embodiment of the present application, by receiving the product identifier and product key of the device to be communicated and verifying the product identifier and the product key, it is possible to determine whether the device to be communicated is legal through verification; if it is detected that the product identifier and the product key verification pass, it is detected whether the device to be communicated has been registered, and it can be determined based on the registration status whether the device to be communicated has the authentication information required for data communication; if it is detected that the device to be communicated has been registered, the device identifier of the device to be communicated is used as the user name, and the device key of the device to be communicated is used as the password, and data communication is performed with the device to be communicated based on the user name and the password.

[0034] In this application, the connection during dynamic registration of the device can be directly used as a connection for data communication. Therefore, in this application, during data communication, there is no need to interrupt the connection first and reconnect after the device is restarted as in traditional technology. It can be seen that compared with traditional technology, this application uses the connection during dynamic registration for data communication, which improves the communication efficiency between the device and the Internet of Things platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0037] Figure 1 A flowchart of the first embodiment of the Internet of Things communication method of the present application is provided;

[0038] Figure 2 A flowchart diagram of another embodiment of the Internet of Things communication method of the present application is provided;

[0039] Figure 3 This is a schematic diagram of the module structure of the Internet of Things communication system according to an embodiment of the present application;

[0040] Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the Internet of Things communication method in the embodiment of the present application.

[0041] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0042] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0043] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0044] Nowadays, dynamic registration of IoT devices refers to the process in which, in an IoT platform, a device can automatically obtain the necessary information by sending a registration request to the platform, even if it does not know its device key or other necessary authentication information in advance, and establish a secure connection with the IoT platform accordingly. When dynamic registration is completed, the device obtains the required authentication information and can start to establish a connection with the IoT platform for data communication and exchange data. However, in actual applications, after the device obtains the authentication information, it is necessary to disconnect the dynamically registered connection and let the device go through a restart process, and then reconnect and communicate with the IoT device after the restart. However, although the restart step helps to improve system stability and security, it also brings additional time delays to data communication, thereby reducing the efficiency of communication between the device and the IoT platform.

[0045] Therefore, how to improve the communication efficiency between devices and the Internet of Things platform is a technical problem that needs to be solved by those skilled in the art.

[0046] In an embodiment of the present application, by receiving the product identifier and product key of the device to be communicated and verifying the product identifier and the product key, it is possible to determine whether the device to be communicated is legal through verification; if it is detected that the product identifier and the product key verification pass, it is detected whether the device to be communicated has been registered, and it can be determined based on the registration status whether the device to be communicated has the authentication information required for data communication; if it is detected that the device to be communicated has been registered, the device identifier of the device to be communicated is used as the user name, and the device key of the device to be communicated is used as the password, and data communication is performed with the device to be communicated based on the user name and the password.

[0047] In this application, the connection during dynamic registration of the device can be directly used as a connection for data communication. Therefore, in this application, during data communication, there is no need to interrupt the connection first and reconnect after the device is restarted as in traditional technology. It can be seen that compared with traditional technology, this application uses the connection during dynamic registration for data communication, which improves the communication efficiency between the device and the Internet of Things platform.

[0048] It should be noted that the execution subject of the IoT communication method of the present application may be a computer device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a television, etc. Alternatively, the execution subject of the IoT communication method of the present application may also be an IoT platform, or an electronic device with an IoT platform. The following takes the IoT platform as an example to illustrate various embodiments of the IoT communication method of the present application.

[0049] The present application embodiment provides an Internet of Things communication method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the Internet of Things communication method of the present application.

[0050] In this embodiment, the Internet of Things communication method includes steps S10 to S30:

[0051] Step S10, receiving a product identifier and a product key of a device to be communicated, and verifying the product identifier and the product key;

[0052] It should be noted that the device to be communicated refers to the device that actively transmits the product identifier and product key to the IoT platform and needs to communicate with the IoT platform. The product identifier refers to the ProductKey of the device to be communicated, and the product key refers to the ProductSecret.

[0053] It is understandable that products refer to any device connected to the Internet through network connection and communication technology, such as smart home devices, industrial IoT devices, and smart wearable devices. For products that may be connected to the IoT platform, virtual products corresponding to the products can be created in advance on the IoT platform, and product identifiers and product keys corresponding to different products can be generated. Furthermore, for different physical products, the product identifiers and product keys on the IoT platform can be burned into them. Therefore, when the physical product is registered on the IoT platform, it can be determined whether the device to be connected is legal based on the product identifier and product key.

[0054] In a feasible implementation manner, before the above step S10, the method further includes:

[0055] Step S100, creating each product, and generating a target product identifier and a target product key corresponding to each product;

[0056] It should be noted that the target product identifier and target product key refer to the product identifier and product key generated by the IoT platform when creating a product.

[0057] Based on this, the above step S10 includes:

[0058] Step S101, determining a first target product corresponding to the product identifier among the products according to the product identifier and the target product identifiers;

[0059] It is understandable that after receiving the product identifier of the product that needs to be connected to the platform, the product identifier can be compared with each target product identifier on the IoT platform to determine whether the product identifier is legal.

[0060] Exemplarily, if a target product identifier that is identical to the product identifier is found among the target product identifiers, the product corresponding to the target product identifier may be used as the first target product.

[0061] Step S102, determining a second target product corresponding to the product key in each of the products according to the product key and each of the target product keys;

[0062] Similarly, after receiving the product key of the product that needs to be connected to the platform, the product key can be compared with each target product key on the IoT platform to determine whether the product key is legitimate.

[0063] Exemplarily, if a target product key identical to the product key is found among the target product keys, the product corresponding to the target product key may be used as the second target product.

[0064] Step S103: verifying the product identifier and the product key according to the first target product and the second target product.

[0065] In this embodiment, it can be determined whether the product identifier and the product key have passed the verification based on the first target product and the second target product.

[0066] In a feasible implementation manner, the above step S103 includes:

[0067] Step S1031, if it is detected that the first target product is the same as the second target product, then it is determined that the product identifier and the product key have been verified;

[0068] Step S1032: If it is detected that the first target product is different from the second target product, it is determined that the verification of the product identifier and the product key fails.

[0069] It is understandable that when it is detected that the first target product and the second target product are the same, it indicates that the product key and product identifier received by the IoT platform correspond to the same product, so it can be determined that the product identifier and product key verification have passed. When it is detected that the first target product and the second target product are different, it indicates that the product key corresponds to a certain product (such as product A), and the product identifier corresponds to another product (such as product B), which indicates that the device to be connected is not legal, so it can be determined that the product identifier and product key verification have failed.

[0070] Step S20, if it is detected that the product identifier and the product key are verified, then detecting whether the device to be communicated has been registered;

[0071] It should be noted that if the device to be communicated is not registered, it means that the device is accessing the IoT platform for the first time, and if the device to be communicated is registered, it means that the device is not accessing the IoT platform for the first time.

[0072] Step S30: If it is detected that the device to be communicated has been registered, the device identifier of the device to be communicated is used as the user name, the device key of the device to be communicated is used as the password, and data communication is performed with the device to be communicated based on the user name and the password.

[0073] In this embodiment, if it is detected that the device to be communicated is not accessing the IoT platform for the first time, the device identifier and device key of the device to be communicated can be obtained. Then, the device identifier of the device to be communicated is used as the user name, and the device key of the device to be communicated is used as the password to perform data communication with the device to be communicated. Thus, the dynamically registered connection can be reused as a data communication connection, which can not only achieve a smooth transition between dynamic registration and device data communication, but also avoid the "jump" of the secondary connection on the basis of ensuring the security of dynamic registration and device connection.

[0074] It should be noted that the above username and password refer to the fields required by the protocol for data communication. In this application, the protocol can be the MQTT protocol or the HTTPS protocol, and this application does not limit the type of protocol.

[0075] In a feasible implementation manner, after the above step S20, the method further includes:

[0076] Step S200: if it is detected that the device to be communicated is not registered, a virtual device corresponding to the device to be communicated is created, and a device identifier and a device key corresponding to the virtual device are generated;

[0077] Step S300: after detecting that the device identifier and the device key are generated, determining that the device to be communicated has been registered.

[0078] It is understandable that after the product identifier and product key are verified, if it is detected that the device to be communicated is accessing the Internet of Things platform for the first time, it is necessary to create a virtual device corresponding to the device to be communicated on the Internet of Things platform, and generate a device identifier and device key corresponding to the virtual device, so as to perform data communication based on the device identifier and device key.

[0079] Therefore, even devices that are connected to the IoT platform for the first time can reuse dynamically registered connections to improve the efficiency of data communication.

[0080] In a feasible implementation manner, after the above step S30, the method further includes:

[0081] Step S400: transmitting the device identifier and the device key to the device to be communicated, so that the device to be communicated stores the device identifier and the device key.

[0082] It is understandable that only when the device to be communicated has a communication demand with the IoT platform will it be dynamically registered on the IoT platform for data communication. In this embodiment, since the dynamically registered connection is also used for data communication, data communication can be performed based on the dynamically registered connection after dynamic registration. However, the communication demand does not exist all the time. Therefore, after data communication is performed based on the dynamically registered connection, if it is determined that there is no communication demand, the dynamically registered connection will also be disconnected. In order to facilitate the device to communicate quickly with the IoT platform when it has a communication demand, it is also necessary to transfer the device identifier and device key to the device to be communicated based on the dynamically registered connection so that the device to be communicated can store them.

[0083] Please refer to Figure 2 In a feasible implementation manner, after the above step S10, the method further includes:

[0084] Step S500, if it is detected that the product identifier or the product key verification fails, then a connection rejection response message is generated;

[0085] Step S600: transmitting the connection rejection response information to the communication device.

[0086] It should be noted that the connection rejection response information refers to information used to characterize the connection rejection. In a feasible implementation manner, the reason for the connection rejection may be indicated in the connection rejection response information for the convenience of technical personnel to check.

[0087] It is understandable that, in order to maintain the security of data communication, when it is detected that the product identifier or product key verification fails, the communication request of the device to be communicated may be rejected.

[0088] For example, it is assumed that a product identifier and product key have been generated for product A on the IoT platform. Then, the product identifier and product key can be burned into multiple devices corresponding to product A. When these devices have the need to communicate with the IoT platform, the product identifier and product key burned in the device and the device ID can be passed to the IoT platform, and then the IoT platform verifies the product identifier and product key, and determines whether the device has been registered based on the device. Then, if the device is not registered, the device can be created and device authentication information can be generated to achieve registration; if the device has been registered, data communication can be performed on the dynamically registered connection based on the device identifier and device key of the device. Therefore, for devices that need to be dynamically registered on the IoT platform, data communication can be performed based on the connection during dynamic registration, thereby improving the efficiency of data communication.

[0089] In an embodiment of the present application, by receiving the product identifier and product key of the device to be communicated and verifying the product identifier and the product key, it is possible to determine whether the device to be communicated is legal through verification; if it is detected that the product identifier and the product key verification pass, it is detected whether the device to be communicated has been registered, and it can be determined based on the registration status whether the device to be communicated has the authentication information required for data communication; if it is detected that the device to be communicated has been registered, the device identifier of the device to be communicated is used as the user name, and the device key of the device to be communicated is used as the password, and data communication is performed with the device to be communicated based on the user name and the password.

[0090] In this application, the connection during dynamic registration of the device can be directly used as a connection for data communication. Therefore, in this application, during data communication, there is no need to interrupt the connection first and reconnect after the device is restarted as in traditional technology. It can be seen that compared with traditional technology, this application uses the connection during dynamic registration for data communication, which improves the communication efficiency between the device and the Internet of Things platform.

[0091] Furthermore, based on the above-mentioned first embodiment of the Internet of Things communication method of the present application, a specific embodiment of the Internet of Things communication method of the present application is proposed.

[0092] In this embodiment, the steps of dynamic registration are:

[0093] Create a product and generate authentication information ProductKey, ProductSecret;

[0094] Enable dynamic registration;

[0095] Create a device (optional) and generate device authentication information Client ID, DeviceKey, and DeviceSecret;

[0096] Burn the product certificate ProductKey, ProductSecret to the device;

[0097] Device networking: The device is powered on and connected to the Internet, carrying the device authentication information Client ID, ProductKey, and ProductSecret to initiate a request to connect to the IoT platform;

[0098] The IoT platform performs authentication registration based on the authentication information;

[0099] To avoid reconnection during dynamic device registration and data communication, the ProductKey and ProductSecret of the product are first verified during dynamic registration. If the verification fails, the connection is directly rejected. If the verification passes, first check whether the device exists. If the device does not exist, automatically create the device first; then obtain the DeviceKey and DeviceSecret of the device and use them as the Username and Password of the MQTT connection for connection; after a successful connection, send the device's authentication information ClientID, DeviceKey, and DeviceSecret to the device, which is saved by the device and used as the authentication information for subsequent connection requests; then, after the IoT platform receives a message reply from the device that the authentication information has been saved, data communication can be carried out. Therefore, without interruption, device registration and data communication can be achieved with one connection request.

[0100] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the IoT communication method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0101] The present application also provides an Internet of Things communication system, which is applied to an Internet of Things platform. Please refer to Figure 3 , the Internet of Things communication system includes:

[0102] The data verification module 10 is used to receive the product identifier and product key of the device to be communicated, and verify the product identifier and the product key;

[0103] A registration judgment module 20, configured to detect whether the device to be communicated has been registered if it is detected that the product identifier and the product key have passed verification;

[0104] The connection module 30 is used to use the device identifier of the device to be communicated as the user name and the device key of the device to be communicated as the password if it is detected that the device to be communicated has been registered, and to perform data communication with the device to be communicated based on the user name and the password.

[0105] In one embodiment, the Internet of Things communication system further includes:

[0106] A device creation module, configured to create a virtual device corresponding to the device to be communicated, and generate a device identifier and a device key corresponding to the virtual device if it is detected that the device to be communicated is not registered;

[0107] The detection module is used to determine that the communication device has been registered after detecting that the device identifier and the device key have been generated.

[0108] In one embodiment, the Internet of Things communication system further includes:

[0109] The authentication information transmission module is used to transmit the device identifier and the device key to the device to be communicated, so that the device to be communicated can store the device identifier and the device key.

[0110] In one embodiment, the Internet of Things communication system further includes:

[0111] A response information generation module, configured to generate a connection rejection response message if it is detected that the product identifier or the product key verification fails;

[0112] A response information transmission module is used to transmit the connection rejection response information to the communication device.

[0113] In one embodiment, the Internet of Things communication system further includes:

[0114] A product creation module, used to create each product and generate a target product identifier and a target product key corresponding to each product;

[0115] Based on this, the data verification module 10 is also used for:

[0116] According to the product identifier and each of the target product identifiers, determining a first target product corresponding to the product identifier among each of the products;

[0117] Determining, from among the products, a second target product corresponding to the product key according to the product key and each of the target product keys;

[0118] The product identifier and the product key are verified according to the first target product and the second target product.

[0119] In one embodiment, the data verification module 10 is further used for:

[0120] If it is detected that the first target product is the same as the second target product, determining that the product identifier and the product key have been verified;

[0121] If it is detected that the first target product is different from the second target product, it is determined that the verification of the product identifier and the product key fails.

[0122] The Internet of Things communication system provided by the present application adopts the Internet of Things communication method in the above embodiment, which can solve the technical problem of how to improve the communication efficiency between the device and the Internet of Things platform. Compared with the prior art, the beneficial effects of the Internet of Things communication system provided by the present application are the same as the beneficial effects of the Internet of Things communication method provided by the above embodiment, and other technical features in the Internet of Things communication system are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0123] The present application provides a computer device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the Internet of Things communication method in the above-mentioned embodiment 1.

[0124] Reference below Figure 4 , which shows a schematic diagram of the structure of a computer device suitable for implementing an embodiment of the present application. Figure 4 The computer device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0125] like Figure 4As shown, the computer device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read On ly Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the computer device are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 may allow the computer device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a computer device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.

[0126] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0127] The computer device provided by the present application adopts the Internet of Things communication method in the above embodiment, which can solve the technical problem of how to improve the communication efficiency between the device and the Internet of Things platform. Compared with the prior art, the beneficial effects of the computer device provided by the present application are the same as the beneficial effects of the Internet of Things communication method provided by the above embodiment, and the other technical features in the computer device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0128] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0129] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present 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.

[0130] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the Internet of Things communication method in the above-mentioned embodiment.

[0131] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM: Erasable Programmab le Read On ly Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read On ly Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0132] The computer-readable storage medium may be included in the computer device; or may exist independently without being installed in the computer device.

[0133] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by a computer device, the computer device: receives the product identifier and product key of the device to be communicated, and verifies the product identifier and product key; if it is detected that the product identifier and product key verification pass, detects whether the device to be communicated has been registered; if it is detected that the device to be communicated has been registered, uses the device identifier of the device to be communicated as the user name, uses the device key of the device to be communicated as the password, and performs data communication with the device to be communicated based on the user name and the password.

[0134] The computer program code for performing the operation of the present application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0135] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0136] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0137] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned Internet of Things communication method, and can solve the technical problem of how to improve the communication efficiency between the device and the Internet of Things platform. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the Internet of Things communication method provided in the above-mentioned embodiment, and will not be repeated here.

[0138] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned Internet of Things communication method when executed by a processor.

[0139] The computer program product provided by this application can solve the technical problem of how to improve the communication efficiency between the device and the Internet of Things platform. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the Internet of Things communication method provided by the above embodiment, which will not be repeated here.

[0140] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. An Internet of Things communication method, characterized in that: The Internet of Things communication method is applied to an Internet of Things platform, and the Internet of Things communication method includes: Receiving a product identifier and a product key of a device to be communicated, and verifying the product identifier and the product key; If it is detected that the product identifier and the product key have passed the verification, then detecting whether the device to be communicated has been registered; If it is detected that the device to be communicated has been registered, the device identifier of the device to be communicated is used as the user name, the device key of the device to be communicated is used as the password, and data communication is performed with the device to be communicated based on the user name and the password.

2. The Internet of Things communication method according to claim 1, characterized in that: After the step of detecting whether the communication device has been registered, the method further includes: If it is detected that the device to be communicated is not registered, creating a virtual device corresponding to the device to be communicated, and generating a device identifier and a device key corresponding to the virtual device; After detecting that the device identifier and the device key are generated, it is determined that the device to be communicated has been registered.

3. The Internet of Things communication method according to claim 1, characterized in that: After the step of performing data communication with the communication target based on the user name and the password, the method further includes: The device identifier and the device key are transmitted to the device to be communicated, so that the device to be communicated stores the device identifier and the device key.

4. The Internet of Things communication method according to claim 1, characterized in that: After the step of verifying the product identifier and the product key, the method further comprises: If it is detected that the product identifier or the product key verification fails, generating a connection rejection response message; The connection rejection response information is transmitted to the communication device.

5. The Internet of Things communication method according to claim 1, characterized in that: Before the step of receiving the product identifier and product key of the device to be communicated, the method further includes: Creating each product and generating a target product identifier and a target product key corresponding to each product; The step of verifying the product identifier and the product key comprises: According to the product identifier and each of the target product identifiers, determining a first target product corresponding to the product identifier among each of the products; Determining, from among the products, a second target product corresponding to the product key according to the product key and each of the target product keys; The product identifier and the product key are verified according to the first target product and the second target product.

6. The Internet of Things communication method according to claim 5, characterized in that: The step of verifying the product identifier and the product key according to the first target product and the second target product comprises: If it is detected that the first target product is the same as the second target product, determining that the product identifier and the product key have been verified; If it is detected that the first target product is different from the second target product, it is determined that the verification of the product identifier and the product key fails.

7. An Internet of Things communication system, characterized in that: The Internet of Things communication system is applied to the Internet of Things platform, and the Internet of Things communication system includes: A data verification module, used to receive a product identifier and a product key of a device to be communicated, and verify the product identifier and the product key; A registration judgment module, configured to detect whether the device to be communicated has been registered if it is detected that the product identifier and the product key have passed verification; The connection module is used to use the device identifier of the device to be communicated as the user name and the device key of the device to be communicated as the password if it is detected that the device to be communicated has been registered, and to perform data communication with the device to be communicated based on the user name and the password.

8. A computer device, characterized in that: The computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the Internet of Things communication method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the Internet of Things communication method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the Internet of Things communication method according to any one of claims 1 to 6 are implemented.