Communication method and device and storage medium

Sending keys and encrypting data through the IoT gateway solves the problem of low security of multiple App management devices, improves the security of data transmission between IoT devices and terminals, reduces the risk of security vulnerabilities, and realizes the control of multiple devices. unified management.

CN118659915APending Publication Date: 2024-09-17CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410904353.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Since IoT devices from different manufacturers correspond to different device management apps, users need to download and manage multiple apps, which increases security vulnerabilities and reduces the security of data transmission between IoT devices and terminals.

Method used

Sending the key through the IoT gateway enables the first device to encrypt the data and send instructions to the gateway to ensure the data is encrypted during transmission, reducing the number of multiple applications to manage and reducing the risk of security breaches.

Benefits of technology

It improves the security of data transmission between IoT devices and terminals, reduces the number of applications, reduces the risk of security vulnerabilities, and enables unified management of multiple devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659915A
    Figure CN118659915A
Patent Text Reader

Abstract

The invention provides a communication method and device and a storage medium, relates to the technical field of communication, and can improve the security of data transmission between Internet of Things equipment and a terminal. The method comprises the following steps: receiving first information from an Internet of Things gateway, wherein the first information is used for indicating a key of the Internet of Things gateway; based on the key of the Internet of Things gateway, encrypting the first data, and determining second data, the first data being to-be-transmitted data of a first application program, and the first application program being used for managing operation states of a plurality of second devices; and sending second information to the Internet of Things gateway, wherein the second information is used for indicating the Internet of Things gateway to send second data to at least one second device in the plurality of second devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a communication method, device and storage medium. Background Art

[0002] In recent years, with the rapid development of the Internet of Things (IOT) and smart home markets, the types and number of IoT devices have increased dramatically. As a result, a variety of network configuration technologies have emerged, such as wireless LAN (Wi-Fi) configuration, Bluetooth configuration, near field communication (NFC) configuration, low-speed short-distance transmission wireless network protocol (ZigBee) configuration, etc.

[0003] However, with the above-mentioned network configuration technology, since IoT devices from different manufacturers correspond to different device management applications (applications, Apps), users need to use more and more device management Apps downloaded by terminals. Due to the complexity of App developers, Apps have a large number of security vulnerabilities, which leads to low security of data transmission between IoT devices and terminals. Summary of the invention

[0004] The present application provides a communication method, apparatus and storage medium, which can improve the security of data transmission between IoT devices and terminals.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a communication method, which includes: receiving first information from an Internet of Things gateway, the first information being used to indicate a key of the Internet of Things gateway; encrypting first data based on the key of the Internet of Things gateway to determine second data, the first data being data to be transmitted of a first application, and the first application being used to manage the operating status of multiple second devices; sending second information to the Internet of Things gateway, the second information being used to instruct the Internet of Things gateway to send second data to at least one second device among the multiple second devices respectively.

[0007] In a possible implementation, based on the key of the Internet of Things gateway, the first data is encrypted to determine the second data, including: processing the key of the Internet of Things gateway based on a preset algorithm to determine the key used for communication between the Internet of Things gateway and the first device; based on the key used for communication between the Internet of Things gateway and the first device, encrypting the first data to determine the second data.

[0008] In a possible implementation manner, the method further includes: sending third information to the Internet of Things gateway, where the third information is used to indicate the public key of the first device.

[0009] In a possible implementation manner, the method further includes: generating a private key of the first device based on a random algorithm; and determining a public key of the first device based on a corresponding relationship between the private key and the public key.

[0010] In a second aspect, the present application provides a communication method, which includes: sending first information to a first device, the first information being used to indicate a key of an Internet of Things gateway; receiving second information from the first device, the second information being used to instruct the Internet of Things gateway to send second data to at least one of a plurality of second devices, respectively, the second data being determined by encrypting the first data based on the key of the Internet of Things gateway, the first data being data to be transmitted of a first application, and the first application being used to manage the operating status of the plurality of second devices.

[0011] In a possible implementation, the method also includes: receiving third information from the first device, the third information is used to indicate the public key of the first device; sending the first information to the first device, including: sending the first information to the first device when the public key of the first device is verified successfully.

[0012] In a possible implementation manner, the method further includes: sending the second data to at least one second device respectively.

[0013] In a third aspect, the present application provides a communication device, which includes: a communication unit and a processing unit; the communication unit is used to receive first information from an Internet of Things gateway, the first information is used to indicate a key of the Internet of Things gateway; the processing unit is used to encrypt first data based on the key of the Internet of Things gateway to determine second data, the first data is data to be transmitted of a first application, and the first application is used to manage the operating status of multiple second devices; the communication unit is also used to send second information to the Internet of Things gateway, and the second information is used to instruct the Internet of Things gateway to send second data to at least one second device among the multiple second devices.

[0014] In one possible implementation, the processing unit is further used to process the key of the IoT gateway based on a preset algorithm to determine the key used for communication between the IoT gateway and the first device; the processing unit is further used to encrypt the first data based on the key used for communication between the IoT gateway and the first device to determine the second data.

[0015] In a possible implementation, the communication unit is further used to send third information to the Internet of Things gateway, where the third information is used to indicate the public key of the first device.

[0016] In a possible implementation, the processing unit is further configured to generate a private key of the first device based on a random algorithm; the processing unit is further configured to determine the public key of the first device based on a corresponding relationship between the private key and the public key.

[0017] In a fourth aspect, the present application provides a communication device, which includes: a communication unit and a processing unit; the processing unit is used to instruct the communication unit to send first information to a first device, the first information is used to indicate a key of an Internet of Things gateway; the processing unit is also used to instruct the communication unit to receive second information from the first device, the second information is used to instruct the Internet of Things gateway to send second data to at least one second device among multiple second devices, the second data is determined by encrypting the first data based on the key of the Internet of Things gateway, the first data is data to be transmitted of a first application, and the first application is used to manage the operating status of multiple second devices.

[0018] In one possible implementation, the processing unit is further used to instruct the communication unit to receive third information from the first device, where the third information is used to indicate the public key of the first device; the processing unit is further used to instruct the communication unit to send the first information to the first device when the public key of the first device is verified successfully.

[0019] In a possible implementation manner, the processing unit is further configured to instruct the communication unit to send the second data to at least one second device respectively.

[0020] In a fifth aspect, the present application provides a communication device, comprising: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the communication method described in the first aspect, any possible implementation of the first aspect, the second aspect, and any possible implementation of the second aspect.

[0021] In a sixth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a terminal, the terminal executes the communication method described in the first aspect, any possible implementation of the first aspect, the second aspect, and any possible implementation of the second aspect.

[0022] In the seventh aspect, the present application provides a computer program product comprising instructions, which, when the computer program product is run on a communication device, enables the communication device to perform a communication method as described in the first aspect, any possible implementation of the first aspect, the second aspect, and any possible implementation of the second aspect.

[0023] In an eighth aspect, the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement a communication method as described in the first aspect, any possible implementation of the first aspect, the second aspect, and any possible implementation of the second aspect.

[0024] Specifically, the chip provided in the present application also includes a memory for storing computer programs or instructions.

[0025] The above technical solution brings at least the following beneficial effects: the Internet of Things gateway sends the key of the Internet of Things gateway to the first device, so that the first device can encrypt the data transmitted to the second device based on the received key of the Internet of Things gateway, determine the second data, and send the second information to the Internet of Things gateway to instruct the Internet of Things gateway to send the second data to at least one of the multiple second devices. In other words, the data transmitted between the first device and the second device is encrypted data (i.e., the second data), which improves the security of data transmission between the Internet of Things device and the terminal. In addition, the embodiment of the present application manages the operating status of multiple second devices based on one application. Compared with the general technology of managing the operating status of multiple second devices based on multiple applications, the embodiment of the present application can uniformly manage multiple second devices, reduce the number of applications that manage the second devices, and thus reduce the risk of security vulnerabilities in the application, and further improve the security of data transmission between the Internet of Things device and the terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of the structure of a communication system provided in an embodiment of the present application;

[0027] Figure 2 A schematic diagram of the structure of another communication system provided in an embodiment of the present application;

[0028] Figure 3 A schematic diagram of the composition of a communication device provided in an embodiment of the present application;

[0029] Figure 4 A flow chart of a communication method provided in an embodiment of the present application;

[0030] Figure 5 A flowchart of network configuration between a first device and a second device provided in an embodiment of the present application;

[0031] Figure 6 A flowchart of another communication method provided in an embodiment of the present application;

[0032] Figure 7 A flowchart of another communication method provided in an embodiment of the present application;

[0033] Figure 8 A flowchart of another communication method provided in an embodiment of the present application;

[0034] Fig. 9 A flowchart of another communication method provided in an embodiment of the present application;

[0035] Fig.10 A flowchart of another communication method provided in an embodiment of the present application;

[0036] Fig.11 A schematic diagram of the structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The communication method, device and storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0038] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0039] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0040] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0041] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0042] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0043] In recent years, with the rapid development of the Internet of Things (IoT) and smart home markets, the types and number of IoT devices have increased dramatically. According to relevant statistics, as of 2021, there are more than 3,500 types of IoT devices in the world, and the number of IoT devices has exceeded 100 million. In this context, a variety of network configuration technologies have emerged, such as Wi-Fi network configuration, Bluetooth network configuration, NFC network configuration, and Zigbee network configuration.

[0044] Since IoT devices from different manufacturers correspond to different device management apps, users need to use more and more device management apps downloaded by terminals, and the operation of apps is complicated, which leads to high learning and usage costs for users. In addition, there are many developers of apps, and there are many security vulnerabilities in apps, so the data security exchange problem caused by this has also become a focus of attention.

[0045] At present, personal privacy is protected and data integrity, confidentiality and availability are guaranteed through technical means such as data encryption, data desensitization, data leakage prevention, data traceability and database security prevention. However, the above methods still require the use of different device management apps, which leads to low security of data transmission between IoT devices and terminals.

[0046] In view of this, an embodiment of the present application provides a communication method, in which an Internet of Things gateway sends a key of the Internet of Things gateway to a first device, so that the first device can encrypt the data transmitted to the second device based on the received key of the Internet of Things gateway, determine the second data, and send a second message to the Internet of Things gateway to instruct the Internet of Things gateway to send the second data to at least one of the multiple second devices. In other words, the data transmitted between the first device and the second device is encrypted data (i.e., the second data), which improves the security of data transmission between the Internet of Things device and the terminal. In addition, the embodiment of the present application manages the operating status of multiple second devices based on one application. Compared with the general technology of managing the operating status of multiple second devices based on multiple applications, the embodiment of the present application can uniformly manage multiple second devices, reduce the number of applications that manage the second devices, and thus reduce the risk of security vulnerabilities in the application, and further improve the security of data transmission between the Internet of Things device and the terminal.

[0047] For example, Figure 1 A schematic diagram of the structure of a communication system 10 provided in an embodiment of the present application is shown in FIG. The communication system 10 may include at least one first device 101 and at least one IoT gateway 102 , and the first device 101 may be connected to the IoT gateway 102 for communication. Figure 1 Only one first device 101 and one IoT gateway 102 are shown. The embodiment of the present application does not impose any restriction on the number of the first device 101 and the IoT gateway 102.

[0048] The first device 101 is used to receive the first information from the Internet of Things gateway, encrypt the first data based on the key of the Internet of Things gateway, determine the second data, and send the second information to the Internet of Things gateway. The first information is used to indicate the key of the Internet of Things gateway, the first data is the data transmitted from the first device to the second device, and the second information is used to instruct the Internet of Things gateway to send the second data to the second device.

[0049] The Internet of Things gateway 102 is used to send first information to the first device and receive second information from the first device. The first information is used to indicate the key of the Internet of Things gateway, and the second information is used to indicate that the Internet of Things gateway sends second data to the second device. The second data is determined by encrypting the first data based on the key of the Internet of Things gateway, and the first data is data transmitted from the first device to the second device.

[0050] Optionally, the first device 101 may be an IoT device or terminal. Exemplarily, the IoT device may be: a sweeping robot, a smart speaker, a smart purifier, or a camera. Of course, the above is only an exemplary description of the IoT device, and the IoT device may also be other devices, and the present application embodiment does not impose any limitation on this.

[0051] Exemplarily, the terminal may be: a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a wearable device (e.g., a smart watch, a smart bracelet, a pedometer, etc.), an in-vehicle device (e.g., a car, a bicycle, an electric car, an airplane, a ship, a train, a high-speed train, etc.), a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a smart home device (e.g., a refrigerator, a TV, an air conditioner, an electric meter, etc.), an intelligent robot, a workshop device, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, or a wireless terminal in a smart home, a flying device (e.g., an intelligent robot, a hot air balloon, a drone, an airplane), etc. In a possible application scenario of the present application, the terminal is a terminal that often works on the ground, such as an in-vehicle device. In this application, for the sake of convenience, the chips deployed in the above-mentioned devices, such as system-on-a-chip (SOC), baseband chips, etc., or other chips with communication functions can also be referred to as terminals. Of course, the above is only an exemplary description of the terminal, and the above-mentioned terminal can also be other devices, and the embodiments of this application do not impose any restrictions on this.

[0052] Further, optionally, the communication system 10 may also include at least one second device 103 (not shown in the figure). In the case where the first device 101 is an IoT device, the second device 103 may be a terminal. In the case where the first device 101 is a terminal, the second device 103 may be an IoT device.

[0053] Optionally, the Internet of Things gateway 102 may be an optical modem, a router, or a switch. Of course, the above is only an exemplary description of the Internet of Things gateway, and the Internet of Things gateway may also be other devices, and the embodiments of the present application do not impose any limitation on this.

[0054] It should be noted that Figure 1 This is just an exemplary framework diagram. Figure 1 The number of nodes included in the Figure 1 In addition to the functional nodes shown, the communication system 10 may also include other nodes, and this application does not impose any limitation on this.

[0055] Further, optionally, Figure 2 A schematic diagram of the structure of another communication system 20 provided in an embodiment of the present application is shown in FIG. The communication system 20 may include at least one smart phone 201 , at least one Internet of Things gateway 202 , and at least one Internet of Things device 203 . Figure 2 Only one smart phone 201, one IoT gateway 202, and one IoT device 203 are shown. Smart phone 201, IoT gateway 202, and IoT device 203 can be connected via a service bus or a smart home network. The embodiment of the present application does not impose any restrictions on the number of smart phones 201, IoT gateways 202, and IoT devices 203.

[0056] It can be understood that the smartphone 201 can be understood as the first device 101, the IoT gateway 202 can be understood as the IoT gateway 102, and the IoT device 203 can be understood as the second device 103. Alternatively, the smartphone 201 can be understood as the second device 103, the IoT gateway 202 can be understood as the IoT gateway 102, and the IoT device 203 can be understood as the first device 101. The description of the functions of the smartphone 201, the IoT gateway 202, and the IoT device 203 can be understood by referring to the description of the corresponding positions above, and will not be repeated here.

[0057] Optionally, the smart phone 201 may include a software development kit (SDK) module.

[0058] Optionally, the Internet of Things gateway 202 may include at least one of the following: a service plug-in, a combined (C) system, or a Linux system. Of course, the above is only an exemplary description of the Internet of Things gateway 202, and the Internet of Things gateway 202 may also include other software, and the present application embodiment does not impose any limitation on this.

[0059] Optionally, the IoT device 203 may include a terminal application, an SDK module, or device firmware, wherein the SDK module is used for device interconnection.

[0060] Exemplarily, the SDK module may include at least one of the following: an active discovery module, an automatic connection module, an automatic registration module, a heartbeat acquisition module, a state change perception module, a state information reading module, a state change processing module, or a topology management module. Of course, the above is only an exemplary description of the SDK software, and the SDK software may also include other modules, and the embodiments of the present application do not impose any restrictions on this.

[0061] The application scenarios of the embodiments of the present application are not limited. The system architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. It is known to those skilled in the art that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0062] When implementing it specifically, Figure 1 The equipment in Figure 3 The structure shown, or including Figure 3 Parts shown. Figure 3 The present invention provides a schematic diagram of the composition of a communication device 30 provided in an embodiment of the present invention. The communication device 30 may be the first device 101 or a chip or a system on chip in the first device 101. Alternatively, the communication device 30 may be the Internet of Things gateway 102 or a chip or a system on chip in the Internet of Things gateway 102. Figure 3 As shown, the communication device 30 may include a processor 301 and a bus 302 .

[0063] Furthermore, the communication device 30 may also include a communication interface 303 and a memory 304. The processor 301, the memory 304 and the communication interface 303 may be connected via a bus 302.

[0064] The processor 301 is a CPU, a general processor, a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The processor 301 may also be other devices with processing functions, such as circuits, devices, or software modules, without limitation.

[0065] The bus 302 is used to transmit information between the components included in the communication device 30.

[0066] The communication interface 303 is used to communicate with other devices or other communication networks. The other communication networks may be Ethernet, radio access network (RAN), wireless local area network (WLAN), etc. The communication interface 303 may be a module, a circuit, a communication interface or any device capable of achieving communication.

[0067] The memory 304 is used to store instructions, where the instructions may be computer programs.

[0068] The memory 304 may be a read-only memory (ROM) or other types of static storage devices that can store static information and / or instructions, or a random access memory (RAM) or other types of dynamic storage devices that can store information and / or instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, etc., without limitation.

[0069] It should be noted that the memory 304 can exist independently of the processor 301, or can be integrated with the processor 301. The memory 304 can be used to store instructions or program codes or some data, etc. The memory 304 can be located in the communication device 30, or can be located outside the communication device 30, without limitation. The processor 301 is used to execute the instructions stored in the memory 304 to implement the communication method provided in the following embodiments of the present application.

[0070] In an example, the processor 301 may include one or more CPUs, for example, CPU0 and CPU1 (not shown in the figure).

[0071] As an optional implementation, the communication device 30 includes multiple processors.

[0072] As an optional implementation, the communication device 30 further includes an output device and an input device. For example, the input device is a keyboard, a mouse, a microphone, a joystick, and the like, and the output device is a display screen, a speaker, and the like.

[0073] It should be noted that the communication device 30 can be a desktop computer, a portable computer, a network server, a mobile phone, a tablet computer, a wireless terminal, an embedded device, a chip system or a Figure 2 In addition, Figure 2 The composition shown in the Figure 1 as well as Figure 2 The limitations of each device in Figure 2 In addition to the parts shown, Figure 1 as well as Figure 2 The various devices in the drawings may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0074] In the embodiment of the present application, the chip system may be composed of a chip, or may include a chip and other discrete devices.

[0075] In addition, the actions, terms, etc. involved in the various embodiments of the present application can refer to each other without limitation. The message name or parameter name in the message exchanged between the various devices in the embodiments of the present application is only an example, and other names can also be used in the specific implementation without limitation.

[0076] The communication method provided by the embodiment of the present application is described below in conjunction with the accompanying drawings. Among them, the actions, terms, etc. involved in the various embodiments of the present application can refer to each other without limitation. The message name or parameter name in the message exchanged between the various devices in the embodiment of the present application is only an example, and other names can also be used in the specific implementation without limitation. The actions involved in the various embodiments of the present application are only an example, and other names can also be used in the specific implementation, such as: "included in" in the embodiment of the present application can also be replaced by "carried on" or "carried on", etc.

[0077] like Figure 4 As shown, an embodiment of the present application proposes a communication method, the method comprising:

[0078] S401: The Internet of Things gateway sends first information to a first device. Correspondingly, the first device receives the first information from the Internet of Things gateway.

[0079] The first information is used to indicate the key of the Internet of Things gateway.

[0080] It can be understood that the relevant description of the first device can be understood by referring to the description of the corresponding position above, and will not be repeated here.

[0081] Exemplarily, the key of the IoT gateway may be the public key of the IoT gateway. In this example, the first information may include the public key of the IoT gateway. Of course, the above is only an exemplary description of the first information, and the first information may also include other information, such as key information such as a private key, and the present application embodiment does not impose any restrictions on this.

[0082] Optionally, the first information may also be used to indicate an Internet Protocol (IP) address port of the IoT gateway. In other words, the first information may also include the IP address port of the IoT gateway, so that the first device may subsequently communicate and interact with the IoT gateway based on the IP address port of the IoT gateway.

[0083] Optionally, before S401, the first device needs to be networked with the second device so that the first device and the second device can subsequently communicate and interact through the Internet of Things gateway. Figure 5 As shown, the process of network configuration between the first device and the second device includes the following steps.

[0084] Step 1: The second device starts the waiting-for-activation mode.

[0085] Optionally, the above step 1 may be specifically as follows: in response to the user's operation, the second device turns on the waiting-for-activation mode.

[0086] In some examples, the user's operation may be that the user continuously presses the activation button of the second device within a preset time period (e.g., 5 to 10 seconds). Alternatively, the user's operation may be that the user continuously presses the activation button of the second device until the indicator light of the second device flashes rapidly. Of course, the above is only an exemplary description of the user's operation, and the user's operation may also be other operations, and the embodiments of the present application do not impose any restrictions on this.

[0087] Step 2: The first device searches for the second device to obtain a device list.

[0088] Step 3: When the first device searches for the second device, the first device sends a request message to the cloud platform. Correspondingly, the cloud platform receives the request message from the first device.

[0089] The request information is used to instruct obtaining a token.

[0090] Optionally, when the first device fails to search for the second device, the first device sends fifth information to the second device, where the fifth information is used to instruct the second device to restart the waiting-for-activation mode. Correspondingly, the second device receives the fifth information from the first device.

[0091] Step 4: The cloud platform sends a response message to the first device. Correspondingly, the first device receives the response message from the cloud platform.

[0092] The response information is used to indicate the token.

[0093] Step 5: The first device and the second device perform authentication.

[0094] Step 6: The cloud platform sends activation information to the first device. Correspondingly, the first device receives the activation information from the cloud platform.

[0095] The activation information is used to instruct the first device to perform network binding with the second device.

[0096] Step 7: The first device sends activation information to the second device. Correspondingly, the second device receives the activation information from the first device and saves the activation information.

[0097] Step 8: The second device sends result information to the first device. Correspondingly, the first device receives the result information from the second device.

[0098] The result information is used to indicate the result information of the network configuration binding between the first device and the second device.

[0099] Step 9: The first device sends result information to the cloud platform. Correspondingly, the cloud platform receives the result information from the first device and saves the result information.

[0100] It is understandable that the network distribution technology in general technology is difficult to cover a variety of near-field communication technologies, resulting in the inability of IoT devices to access the Internet quickly, safely, simply and efficiently, which in turn makes it difficult for the network distribution technology in general technology to cope with a more complex IoT environment. The network distribution process recorded in the communication method provided in the embodiment of the present application can be adapted to different near-field communication technologies, that is, the communication method provided in the embodiment of the present application unifies the network distribution processes corresponding to a variety of near-field communication technologies, so that the unified network distribution process can be used to distribute the network of IoT devices that support different near-field communication technologies among the above-mentioned multiple near-field communication technologies. In addition, the use of this unified network distribution process to distribute the network of IoT devices is simple to operate, thereby also improving the network distribution speed of IoT devices.

[0101] S402: The first device encrypts the first data based on the key of the Internet of Things gateway to determine the second data.

[0102] The first data is data to be transmitted of the first application program, and the first application program is used to manage the operation status of the plurality of second devices.

[0103] Exemplarily, the data to be transmitted may include at least one of the following: status information of the first device, online information of the first device, status modification result information of the first device, status change information of the first device, offline information of the first device, or abnormal offline information of the first device. Of course, the above is only an exemplary description of the data to be transmitted, and the data to be transmitted may also include other information, and the embodiments of the present application do not impose any limitation on this.

[0104] Exemplarily, the operating state of the second device may be that the device is online, the device is offline, the device is in an on state, the device is in an off state, or the device is abnormally offline. Of course, the above is only an exemplary description of the operating state of the second device, and the operating state of the second device may also be other states, and the embodiments of the present application do not impose any restrictions on this.

[0105] Optionally, the implementation process of the above S402 may be: the first device encrypts the first data based on an advanced encryption standard (AES) algorithm and a key of the Internet of Things gateway to determine the second data.

[0106] Also optionally, the implementation process of the above S402 may be: the first device encrypts the first data based on a data encryption standard (DES) algorithm and a key of the Internet of Things gateway to determine the second data.

[0107] S403: The first device sends the second information to the Internet of Things gateway. Correspondingly, the Internet of Things gateway receives the second information from the first device.

[0108] The second information is used to instruct the Internet of Things gateway to send second data to at least one second device among the multiple second devices.

[0109] It should be noted that, since the first device can manage the second device that needs to be managed, the first device can send the second data to the second device that needs to be managed (ie, at least one second device among multiple second devices) through the Internet of Things gateway.

[0110] Optionally, the implementation process of the above S403 may be: the first device periodically sends the second information to the Internet of Things gateway. Correspondingly, the Internet of Things gateway receives the second information from the first device.

[0111] Exemplarily, the period of sending the second information may be 30 seconds. Of course, the above is only an exemplary description of the period of sending the second information, and the period of sending the second information may also be other periods, for example, 50 seconds, and the embodiment of the present application does not impose any limitation on this.

[0112] Alternatively, the implementation process of the above S403 may be: the first device sends the second information a preset number of times to the Internet of Things gateway. Correspondingly, the Internet of Things gateway receives the second information a preset number of times from the first device.

[0113] Exemplarily, the preset number of times may be 10. Of course, the above is only an exemplary description of the preset number of times, and the preset number of times may also be other times, for example, 15 times, and the present application embodiment does not impose any limitation on this.

[0114] Exemplarily, the second information may include at least one of the following: an identifier of the second device, address information of the second device, or second data. Of course, the above is only an exemplary description of the second information, and the second information may also include other information, which is not limited in any way by the present application.

[0115] Optionally, the first device may send the second information to the IoT gateway in at least one of the following ways: Wifi transmission, Bluetooth transmission, or NFC transmission. Furthermore, when the first device is offline, the first device may also send the second information to the IoT gateway, thereby ensuring secure and fast data exchange even when the first device is offline.

[0116] In the communication method provided by the present application, the Internet of Things gateway sends the key of the Internet of Things gateway to the first device, so that the first device can encrypt the data transmitted to the second device based on the received key of the Internet of Things gateway, determine the second data, and send the second information to the Internet of Things gateway to instruct the Internet of Things gateway to send the second data to at least one of the multiple second devices. In other words, the data transmitted between the first device and the second device is encrypted data (i.e., the second data), which improves the security of data transmission between the Internet of Things device and the terminal. In addition, the embodiment of the present application manages the operating status of multiple second devices based on one application. Compared with the general technology of managing the operating status of multiple second devices based on multiple applications, the embodiment of the present application can manage multiple second devices in a unified manner, reduce the number of applications that manage the second devices, and thus reduce the risk of security vulnerabilities in the application, and further improve the security of data transmission between the Internet of Things device and the terminal.

[0117] Optionally, before S401, the first device needs to send the public key of the first device to the IoT gateway, so that the IoT gateway can respond to the public key of the first device and send the secret key of the IoT gateway to the first device, and then the first device can receive the secret key from the IoT gateway. Figure 6 As shown, the communication method provided in the embodiment of the present application may also include the following steps.

[0118] S601: The first device sends third information to the Internet of Things gateway. Correspondingly, the Internet of Things gateway receives the third information from the first device.

[0119] The third information is used to indicate the public key of the first device.

[0120] Optionally, the implementation process of the above S601 may be: the first device sends the third information to the IoT gateway in a broadcasting manner using the User Datagram Protocol (UDP). Correspondingly, the IoT gateway receives the third information from the first device.

[0121] Alternatively, the implementation process of S601 may be: the first device sends the third information to the Internet of Things gateway in an end-to-end manner according to the IP address of the Internet of Things gateway. Correspondingly, the Internet of Things gateway receives the third information from the first device.

[0122] S602: When the public key of the first device is verified successfully, the IoT gateway sends the first information to the first device. Correspondingly, the first device receives the first information from the IoT gateway.

[0123] Optionally, the implementation process of the IoT gateway verifying whether the public key of the first device is passed can be: the IoT gateway compares the public key of the first device received from the first device with the public key of the first device stored internally in the IoT gateway to determine whether the public key of the first device received from the first device is consistent with the public key of the first device stored internally. If the public key of the first device received from the first device is consistent with the public key of the first device stored internally, the verification is passed. If the public key of the first device received from the first device is inconsistent with the public key of the first device stored internally, the verification fails.

[0124] Optionally, when the public key verification of the first device fails, the IoT gateway sends fourth information to the first device, and the fourth information is used to instruct the first device to resend the third information to the IoT gateway. Correspondingly, the first device receives the fourth information from the IoT gateway.

[0125] Optionally, before S601, the first device needs to determine the public key of the first device so that the public key of the first device can be sent to the IoT gateway. Figure 7 As shown, the communication method provided in the embodiment of the present application may also include the following steps.

[0126] S701. The first device generates a private key of the first device based on a random algorithm.

[0127] Optionally, the implementation process of the above S701 may be: when the first device is powered on, it generates a random number based on a random algorithm, and uses the random number as the private key of the first device.

[0128] S702: The first device determines the public key of the first device based on the correspondence between the private key and the public key.

[0129] Optionally, the implementation process of the above S702 may be: the first device determines the correspondence between the private key and the public key based on the first elliptic curve (for example, secp160r1), and determines the public key of the first device.

[0130] Also optionally, the implementation process of the above S702 may be: the first device determines the correspondence between the private key and the public key based on the second elliptic curve (for example, secp256k1), and determines the public key of the first device.

[0131] In one possible implementation, Figure 8 As shown, the above S402 can be specifically determined through the following S801 to S802.

[0132] S801. The first device processes the key of the Internet of Things gateway based on a preset algorithm to determine the key used for communication between the Internet of Things gateway and the first device.

[0133] Exemplarily, the preset algorithm may be an elliptic curve Diffie-Hellman key exchange (ECDH) algorithm. Of course, the above is only an exemplary description of the preset algorithm, and the preset algorithm may also be other algorithms, for example, Rivest-Shamir-Adleman (RSA) algorithm, and the present application embodiment does not impose any limitation on this.

[0134] S802: The first device encrypts the first data based on the key used for communication between the IoT gateway and the first device to determine the second data.

[0135] It is understandable that during the information exchange between the first device and the IoT gateway, there is no exchange process of the key used for communication between the IoT gateway and the first device. That is to say, the first device and the IoT gateway do not directly transmit the key used for communication between the IoT gateway and the first device, but transmit the key of the IoT gateway, thereby ensuring the security of data transmission during the subsequent communication between the first device and the IoT gateway.

[0136] Optionally, the implementation process of the above S802 may be: the first device encrypts the first data based on the key used for communication between the IoT gateway and the first device, the structure of the data encryption protocol, and the data encryption method to determine the second data.

[0137] Exemplarily, the structure of the data encryption protocol can be as shown in Table 1 below, and the structure of the data encryption protocol includes a protocol header (packet-t), an optional area (option), and load data (payload). Of course, the above is only an exemplary description of the structure of the data encryption protocol, and the structure of the data encryption protocol can also be other structures, and the embodiments of the present application do not impose any restrictions on this.

[0138] Table 1

[0139] packet-t option payload Protocol header Optional area Load data

[0140] Exemplarily, as shown in Table 2 below, the protocol header may include at least one of the following: (magic), optional area interval length (optlen), load data area interval length (payloadlen), version number (version), data packet type (type), total number of packets (total), packet sequence number (index), data packet encryption type (enctype), reserved (reserved), or cyclic redundancy check (CRC). Of course, the above is only an exemplary description of the protocol header, and the protocol header may also include other data, and the embodiments of the present application do not impose any restrictions on this.

[0141] Table 2

[0142]

[0143] Optionally, the data in the optional area corresponding to different data packet types are different. In addition, when the data packet type is a control information type, the optional area may be empty data.

[0144] Optionally, the data formats of the payload data areas corresponding to different data packet types are different. Furthermore, the contents of the payload data areas corresponding to the same data packet types may also be different. In addition, the character string in the payload data area may be encoded using 8-bit unicode transformation format (UTF-8), and UTF-8 is also required for decoding.

[0145] Exemplarily, the above data packet encryption type can be a static AES key, an ECDH negotiated key, or a dynamic AES key. Of course, the above is only an exemplary description of the data packet encryption type, and the above data packet encryption type can also be other types, and the embodiments of the present application do not impose any restrictions on this.

[0146] Exemplarily, the ECDH negotiation key encryption method is as follows:

[0147] Step 1: Determine the shared key (sharedKey) by AES(ECDH(public key (srcPubKey) + private key (selfPriKey)), message) function.

[0148] Step 2: Determine the AES Key and AES IV, where AES Key = the first 16 bytes of sharedKey (ie, bytes 0-15), and AES IV = the last 16 bytes of sharedKey (ie, bytes 16-31).

[0149] Step 3: Encrypt the data based on AES Key, AES IV, and AES algorithm.

[0150] Exemplarily, the dynamic AES key encryption method is as follows:

[0151] Step 1: Determine a random bus key (busKey).

[0152] Step 2: Determine AES Key and AES IV, where AES Key = the first 16 bytes of busKey (bytes 0-15), and AES IV = the last 16 bytes of busKey (bytes 16-31).

[0153] Step 3: Encrypt the data based on AES Key, AES IV, and AES algorithm.

[0154] Exemplarily, the static AES key encryption method is as follows:

[0155] Step 1: The IoT gateway determines the fixed key.

[0156] Step 2: Determine AES Key and AES IV, where AES Key = the first 16 bytes of fixedkey (ie, bytes 0-15), and AES IV = the last 16 bytes of fixedkey (ie, bytes 16-31).

[0157] Step 3: Encrypt the data based on AES Key, AES IV, and AES algorithm.

[0158] Optionally, after S403, the IoT gateway needs to send the second data to the second device. Fig. 9 As shown, the communication method provided in the embodiment of the present application may also include the following steps.

[0159] S901. The Internet of Things gateway sends second data to at least one second device respectively.

[0160] Optionally, the implementation process of the above S901 may be: the Internet of Things gateway sends the second data to the second device through the transmission control protocol (TCP).

[0161] It is understandable that the above embodiment is only used as an example of the first device transmitting data to the second device. However, the second device can also transmit data to the first device through the Internet of Things gateway. The relevant description of the second device transmitting data to the first device can be understood by referring to the description of the corresponding position above, and will not be repeated here.

[0162] Optionally, before the first device transmits data with the IoT gateway, the first device needs to successfully register with the IoT gateway. Specifically, the first device periodically searches for the IoT gateway, and after searching for the IoT gateway, interacts with the IoT gateway to complete the registration of the first device in the IoT gateway.

[0163] Exemplarily, the cycle of searching for the IoT gateway may be 5 seconds. Of course, the above is only an exemplary description of the cycle of searching for the IoT gateway, and the cycle of searching for the IoT gateway may also be other cycles, for example, 10 seconds, and the present application embodiment does not impose any limitation on this.

[0164] Alternatively, if Fig.10 As shown, the process of the first device interacting with the Internet of Things gateway to complete the registration of the first device in the Internet of Things gateway may include the following steps.

[0165] Step 1: The first device sends online discovery information to the Internet of Things gateway. Correspondingly, the Internet of Things gateway receives the online discovery information from the first device.

[0166] Among them, the online discover information is used to indicate the acquisition of the address information of the Internet of Things gateway.

[0167] Step 2: The IoT gateway sends an address response message to the first device. Correspondingly, the first device receives the address response message from the IoT gateway.

[0168] The address response information is used to indicate the address information of the IoT gateway.

[0169] Step 3: A bus connection is established between the first device and the Internet of Things gateway to complete the registration of the first device in the Internet of Things gateway.

[0170] Alternatively, if Fig.10 As shown, after the first device successfully registers with the Internet of Things gateway, the first device needs to obtain the status information of the online second device so that the first device can subsequently communicate and interact with the online second device obtained above, which can specifically include the following steps.

[0171] Step 4: The first device sends the bound second device information to the IoT gateway. Correspondingly, the IoT gateway receives the bound second device information from the first device.

[0172] The bound second device information is used to indicate the second device that is successfully networked with the IoT gateway.

[0173] Step 5: The IoT gateway sends the status information of the online second device to the first device. Correspondingly, the first device receives the status information of the online second device from the IoT gateway.

[0174] The status information of the online second device is used to indicate the status information of the online second device among the second devices that are successfully networked with the Internet of Things gateway.

[0175] Alternatively, if Fig.10 As shown, before the second device transmits data with the Internet of Things gateway, the second device needs to successfully register with the Internet of Things gateway, and the process of the second device interacting with the Internet of Things gateway to complete the registration of the second device in the Internet of Things gateway may include the following steps.

[0176] Step 6: The second device sends online discover information to the IoT gateway. Correspondingly, the IoT gateway receives the online discover information from the second device.

[0177] It is understandable that the above-mentioned online discover information can be understood by referring to the description of the above-mentioned corresponding positions, which will not be repeated here.

[0178] Step 7: The IoT gateway sends address response information to the second device. Correspondingly, the second device receives the address response information from the IoT gateway.

[0179] It is understandable that the above-mentioned address response information can be understood by referring to the description of the above-mentioned corresponding position, which will not be repeated here.

[0180] Step 8: A bus connection is established between the second device and the Internet of Things gateway to complete the registration of the second device in the Internet of Things gateway.

[0181] An example, such as Fig.10 As shown, taking the data to be transmitted as the status information of the second device as an example, the transmission process of the second data is exemplarily described:

[0182] Step 9: The second device sends the status information of the second device to the Internet of Things gateway. Correspondingly, the Internet of Things gateway receives the status information from the second device.

[0183] Step 10: The IoT gateway sends the status information of the second device to the first device. Correspondingly, the first device receives the status information of the second device from the IoT gateway.

[0184] Another example, such as Fig.10 As shown, taking the above data to be transmitted as the request information for reading / modifying the status of the specified second device as an example, the transmission process of the second data is exemplarily described:

[0185] Step 11: The first device sends a request message for reading / modifying the status of a specified second device to the Internet of Things gateway. Correspondingly, the Internet of Things gateway receives the request message for reading / modifying the status of a specified second device from the first device.

[0186] The request information for reading the status of the specified second device is used to request reading the status information of the specified second device. In this case, the request information for reading the status of the specified second device may include the identifier of the specified second device. The request information for modifying the status of the specified second device is used to request modifying the status information of the specified second device. In this case, the request information for modifying the status of the specified second device may include the identifier of the specified second device and / or information related to modifying the status of the specified second device.

[0187] Optionally, the first device may modify the state of the second device through the culink protocol.

[0188] Step 12: The Internet of Things gateway sends the read / modify status information of the second device to the corresponding second device. Correspondingly, the second device receives the read / modify status information of the second device from the Internet of Things gateway.

[0189] Another example, such as Fig.10 As shown, taking the above-mentioned data to be transmitted as result information as an example, the transmission process of the second data is exemplarily described:

[0190] Step 13: The second device sends result information to the IoT gateway. Correspondingly, the IoT gateway receives the result information from the first device.

[0191] The result information is used to indicate the real-time status information of the second device.

[0192] Step 14: The IoT gateway sends result information to the first device. Correspondingly, the first device receives the result information from the IoT gateway.

[0193] Another example, such as Fig.10 As shown, taking the data to be transmitted as the state change information of the second device as an example, the transmission process of the second data is exemplarily described:

[0194] Step 15: The second device sends the state change information of the second device to the Internet of Things gateway. Correspondingly, the Internet of Things gateway receives the state change information of the second device from the second device.

[0195] The state change information of the second device is used to indicate the state of the second device before the change and the state of the second device after the change.

[0196] Step 16: The IoT gateway sends the state change information of the second device to the first device. Correspondingly, the first device receives the state change information of the second device from the IoT gateway.

[0197] Another example, such as Fig.10 As shown, taking the offline notification information of the second device as an example, the transmission process of the second data is exemplarily described:

[0198] Step 17: The second device sends offline notification information of the second device to the Internet of Things gateway. Correspondingly, the Internet of Things gateway receives the offline notification information of the second device from the second device.

[0199] The offline notification information of the second device is used to indicate that the second device is disconnected from the Internet of Things gateway.

[0200] Step 18: The Internet of Things gateway sends offline notification information of the second device to the first device. Correspondingly, the first device receives offline notification information of the second device from the Internet of Things gateway.

[0201] Another example, such as Fig.10 As shown, the transmission process of the second data is exemplarily described by taking the above-mentioned data to be transmitted as the abnormal offline notification information of the second device:

[0202] Step 19: The Internet of Things gateway sends abnormal offline notification information of the second device to the first device. Correspondingly, the first device receives the abnormal offline notification information of the second device from the Internet of Things gateway.

[0203] Among them, the abnormal offline notification information of the second device is used to indicate that the second device is disconnected from the Internet of Things gateway under abnormal circumstances. It is understandable that the above communication method can be implemented by a communication device. In order to implement the above functions, the communication device includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of each example described in the embodiments disclosed herein, the embodiments disclosed in this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments disclosed in this application.

[0204] The embodiments disclosed in the present application can divide the functional modules of the communication device generated by the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments disclosed in the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0205] Fig.11 A schematic diagram of the structure of a communication device provided by an embodiment of the present invention. Fig.11 As shown, the communication device 110 can be used to perform Figure 4-Figure 10 The communication method shown. The communication device 110 includes: a communication unit 1101 and a processing unit 1102.

[0206] When the above communication device 110 is used to illustrate the architecture of the first device:

[0207] The communication unit 1101 is used to receive first information from the Internet of Things gateway, where the first information is used to indicate the key of the Internet of Things gateway; the processing unit 1102 is used to encrypt the first data based on the key of the Internet of Things gateway to determine the second data, where the first data is the data to be transmitted of the first application, and the first application is used to manage the operating status of multiple second devices; the communication unit 1101 is also used to send second information to the Internet of Things gateway, where the second information is used to instruct the Internet of Things gateway to send the second data to at least one second device among the multiple second devices.

[0208] In one possible implementation, the processing unit 1102 is further used to process the key of the IoT gateway based on a preset algorithm to determine the key used for communication between the IoT gateway and the first device; the processing unit 1102 is further used to encrypt the first data based on the key used for communication between the IoT gateway and the first device to determine the second data.

[0209] In a possible implementation, the communication unit 1101 is further used to send third information to the Internet of Things gateway, where the third information is used to indicate the public key of the first device.

[0210] In a possible implementation, the processing unit 1102 is further configured to generate a private key of the first device based on a random algorithm; the processing unit 1102 is further configured to determine the public key of the first device based on a corresponding relationship between the private key and the public key.

[0211] When the above communication device 110 is used to illustrate the architecture of the Internet of Things gateway:

[0212] The processing unit 1102 is used to instruct the communication unit 1101 to send first information to the first device, where the first information is used to indicate the key of the Internet of Things gateway; the processing unit 1102 is also used to instruct the communication unit 1101 to receive second information from the first device, where the second information is used to instruct the Internet of Things gateway to send second data to at least one of the multiple second devices, respectively, where the second data is determined by encrypting the first data based on the key of the Internet of Things gateway, and the first data is the data to be transmitted of the first application, and the first application is used to manage the operating status of the multiple second devices.

[0213] In one possible implementation, the processing unit 1102 is also used to instruct the communication unit 1101 to receive third information from the first device, where the third information is used to indicate the public key of the first device; the processing unit 1102 is also used to instruct the communication unit 1101 to send the first information to the first device when the public key of the first device is verified successfully.

[0214] In a possible implementation, the processing unit 1102 is further configured to instruct the communication unit 1101 to send the second data to at least one second device respectively.

[0215] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0216] The present disclosure also provides a computer-readable storage medium having instructions stored thereon. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the communication method provided by the above-mentioned embodiment of the present disclosure.

[0217] The embodiments of the present disclosure also provide a computer program product including instructions, which, when executed on an electronic device, enables the electronic device to execute the communication method provided by the embodiments of the present disclosure.

[0218] Among them, the computer readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer readable storage media (a non-exhaustive list) include: 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), a register, a hard disk, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0219] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A communication method, characterized in that: The method comprises: Receiving first information from an Internet of Things gateway, where the first information is used to indicate a key of the Internet of Things gateway; Encrypting first data based on the key of the IoT gateway to determine second data, where the first data is data to be transmitted of a first application, and the first application is used to manage the operating status of multiple second devices; Send second information to the Internet of Things gateway, where the second information is used to instruct the Internet of Things gateway to send the second data to at least one second device among the multiple second devices respectively.

2. The method according to claim 1, characterized in that The method of encrypting the first data based on the key of the Internet of Things gateway to determine the second data includes: Processing the key of the Internet of Things gateway based on a preset algorithm to determine a key used for communication between the Internet of Things gateway and the first device; Based on the key used for communication between the Internet of Things gateway and the first device, the first data is encrypted to determine the second data.

3. The method according to claim 1, characterized in that The method further comprises: Send third information to the Internet of Things gateway, where the third information is used to indicate the public key of the first device.

4. The method according to claim 3, characterized in that The method further comprises: Generate a private key of the first device based on a random algorithm; Based on the correspondence between the private key and the public key, the public key of the first device is determined.

5. A communication method, characterized in that: The method comprises: Sending first information to a first device, where the first information is used to indicate a key of the Internet of Things gateway; Receive second information from the first device, where the second information is used to instruct the Internet of Things gateway to send the second data to at least one second device among multiple second devices respectively, where the second data is determined by encrypting the first data based on the key of the Internet of Things gateway, and the first data is data to be transmitted of a first application, and the first application is used to manage the operating status of multiple second devices.

6. The method according to claim 5, characterized in that The method further comprises: receiving third information from the first device, where the third information is used to indicate a public key of the first device; The sending the first information to the first device includes: When the public key of the first device is verified successfully, the first information is sent to the first device.

7. The method according to claim 5 or 6, characterized in that: The method further comprises: The second data is sent to the at least one second device respectively.

8. A communication device, characterized in that: The device comprises: a communication unit and a processing unit; The communication unit is used to receive first information from an Internet of Things gateway, where the first information is used to indicate a key of the Internet of Things gateway; The processing unit is used to encrypt first data based on the key of the Internet of Things gateway to determine second data, where the first data is data to be transmitted of a first application, and the first application is used to manage the operating status of multiple second devices; The communication unit is further used to send second information to the Internet of Things gateway, where the second information is used to instruct the Internet of Things gateway to send the second data to at least one second device among the multiple second devices respectively.

9. A communication device, characterized in that: The device comprises: a communication unit and a processing unit; The processing unit is used to instruct the communication unit to send first information to the first device, where the first information is used to indicate the key of the Internet of Things gateway; The processing unit is also used to instruct the communication unit to receive second information from the first device, and the second information is used to instruct the Internet of Things gateway to send the second data to at least one second device among the multiple second devices respectively, and the second data is determined by encrypting the first data based on the key of the Internet of Things gateway, and the first data is the data to be transmitted of the first application, and the first application is used to manage the operating status of multiple second devices.

10. A communication device, characterized in that: include: A memory and a processor; the memory and the processor are coupled; The memory is used to store instructions executable by the processor; When the processor executes the instructions, the communication method as described in any one of claims 1 to 7 is performed.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is enabled to execute the communication method as claimed in any one of claims 1 to 7.

12. A computer program product, characterized in that The computer program product comprises computer program instructions, and when the computer program instructions are executed by a processor, the communication method as claimed in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Smart home system, information encryption method and device and terminal

    CN107947924A

  • Data security authentication transmission method and device for Internet of Things terminal

    CN112291230A

  • Data processing method based on Internet-of-Things equipment distribution

    CN113645220A

  • Key negotiation method, gateway, terminal equipment and storage medium

    CN114884659A

  • Efficient Internet-Of-Things (IoT) Data Encryption / Decryption

    US20220141004A1