Equipment to be subjected to network distribution, networking equipment, server and equipment network distribution method

Through the encryption key interaction between the device to be distributed and the cloud server, the problem of low security in the key negotiation process in the traditional device distribution network is solved, and the security and integrity of the distribution network information is improved.

CN119030724APending Publication Date: 2024-11-26HISENSE HOME APPLIANCES GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310609209.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-26
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In the traditional device distribution method, the key negotiation process between the device and the mobile phone is vulnerable to attack, resulting in low security of the distribution network interaction information and tampering and theft risk.

Method used

Identity information is encrypted through the device key of the network to be distributed, the first encryption information is generated, and the networked device is sent to the cloud server. After verification, the cloud server generates feedback results, including the encrypted networked key, the networked device will It stores and transmits it back to the device to be distributed to ensure that only the device to be distributed and the cloud server knows the device key and improves information security.

Benefits of technology

It effectively improves the information security during the equipment distribution process, prevents attackers from tampering with or stealing keys, and ensures the integrity and reliability of distribution network information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030724A_ABST
    Figure CN119030724A_ABST
Patent Text Reader

Abstract

The invention provides a device to be subjected to network distribution, a networking device, a server and a device network distribution method, and relates to the technical field of communication networks, the method comprises the following steps: after receiving a network distribution request of the networking device, encrypting identity information of the networking device by using a device key of the networking device, and sending the encrypted identity information to a server; forwarding the first encrypted information to a cloud server through the networking equipment, and receiving second encrypted information sent by the networking equipment; and decrypting the second encrypted information by using the own device key to obtain a distribution network key, and performing distribution network processing by using the distribution network key and a distribution network key stored in the networking device. According to the embodiment of the invention, the interaction information between the equipment to be subjected to network distribution and the cloud server can be encrypted through the equipment key known by the equipment to be subjected to network distribution and the cloud server to obtain the network distribution key, so that although the networking equipment is attacked, the information security of the equipment to be subjected to network distribution and the cloud server cannot be influenced, and the information security is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication networks, and in particular to a device to be networked, a networking device, a server and a device network configuration method. Background Art

[0002] In the fields of smart home and smart Internet of Things, device network configuration is a very important part. In the traditional network configuration method, when a device is connected to a gateway or router, network configuration interaction is usually performed between the device and the mobile phone, so that the device can obtain the necessary information to connect to the gateway or router. Generally, when a device and a mobile phone interact with each other for network configuration, the device and the mobile phone will first negotiate a key. After the key negotiation is completed, a key is obtained, and the information of the network configuration interaction is encrypted with the key. However, when the key negotiation is performed between the device and the mobile phone, the mobile phone is vulnerable to attacks from other devices. Other devices steal the interaction content between the mobile phone and the device in the mobile phone and tamper with the content, which makes the key security of the network configuration interaction relatively low, resulting in low security of subsequent network configuration interaction information. Summary of the invention

[0003] The present invention provides a network device to be configured, a networked device, a server and a device network configuration method, which can encrypt the information exchanged between the network device to be configured and the cloud server through a device key known only to the network device to be configured and the cloud server, and obtain a network configuration key. In this way, even if the networked device is attacked, the information security of the network device to be configured and the cloud server will not be affected, thereby improving the security of the information.

[0004] In a first aspect, an embodiment of the present invention provides a device to be networked, including: a processor and a communication unit;

[0005] The processor is configured to, after receiving a network configuration request from a networked device, encrypt its own identity information using its own device key to obtain first encrypted information;

[0006] Decrypting the second encrypted information using the device key of the device itself to obtain a network configuration key, and performing network configuration processing using the network configuration key and the network configuration key stored in the networked device;

[0007] The communication unit is used to send the first encrypted information to the networked device, so that the networked device sends it to the cloud server, so that the cloud server verifies the first encrypted information using the device key and identity information stored in the cloud server, and generates a feedback result after the verification is successful; wherein the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the network configuration device to be configured;

[0008] Receive second encrypted information sent by the networked device; wherein the second encrypted information is sent by the networked device after receiving the feedback result and storing the network configuration key.

[0009] In a possible implementation, the communication unit is further configured to forward its own identity information to the cloud server through the networked device, so that the cloud server verifies the first encrypted information according to the received identity information;

[0010] The processor is also used to determine that the identity information sent by the networked device is the same as the identity information decrypted using its own device key; wherein the identity information sent by the networked device is sent by the cloud server to the networked device; and the encrypted identity information is sent by the cloud server to the networked device.

[0011] In a second aspect, an embodiment of the present invention provides a networking device, including: a processor and a communication unit;

[0012] The processor is used to respond to the network configuration instruction, initiate a network configuration request to the device to be configured, and store the network configuration key in the feedback result;

[0013] The communication unit is used to send the first encrypted information sent by the network device to be configured to the cloud server; wherein the first encrypted information is obtained by encrypting the identity information of the network device to be configured using its own device key;

[0014] Receive the feedback result sent by the cloud server; wherein the feedback result is generated by the cloud server after the verification is successful by using the device key and identity information stored in the cloud server to verify the first encrypted information; the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the device to be configured;

[0015] The second encrypted information in the feedback result is sent to the device to be networked, and the stored network configuration key is used to perform network configuration processing with the device to be networked.

[0016] In a third aspect, an embodiment of the present invention provides a cloud server, including: a processor and a communication unit;

[0017] The communication unit is used to receive the first encrypted information sent by the networked device; wherein the first encrypted information is obtained by the networked device to be configured using its own device key to encrypt its own identity information, and the first encrypted information is sent by the networked device to the networked device;

[0018] Sending the feedback result to the networked device so that the networked device obtains the network configuration key, and sending the second encrypted information to the to-be-configured network device so that the to-be-configured network device obtains the network configuration key through the second encrypted information;

[0019] The processor is used to verify the first encrypted information using the device key and identity information of the device to be configured, and generate the feedback result after the verification is successful; wherein the feedback result includes the second encrypted information and the configuration key obtained by encrypting the configuration key using the device key of the device to be configured.

[0020] In a possible implementation, the communication unit is further used to receive identity information sent by a networked device; wherein the identity information sent by the networked device is the identity information of the device to be configured sent to the networked device;

[0021] After successful verification, the identity information of the network device to be configured and the identity information of the network device to be configured encrypted by the device key of the network device to be configured are sent to the network device to be configured through the networking device, so that the network device to be configured verifies the received identity information and the identity information decrypted by its own device key for verification;

[0022] The processor is further configured to determine, from a plurality of identity information, identity information that is identical to the received identity information;

[0023] If the first encrypted information is successfully decrypted using a device key corresponding to the same identity information as the received identity information, and the identity information after decrypting the first encrypted information is the same as the received identity information, then it is determined that the verification is successful.

[0024] In a fourth aspect, an embodiment of the present invention provides a device network configuration method, the method being applied to a device to be configured, comprising:

[0025] After receiving the network configuration request from the networked device, encrypt the identity information of the device using the device key to obtain the first encrypted information;

[0026] Forwarding the first encrypted information to the cloud server through the networked device, so that the cloud server verifies the first encrypted information using the device key and identity information stored in the cloud server, and generates a feedback result after successful verification; wherein the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the network configuration device to be configured;

[0027] Receiving second encrypted information sent by the networked device; wherein the second encrypted information is sent by the networked device after receiving the feedback result and storing the network configuration key;

[0028] The second encrypted information is decrypted using the own device key to obtain a network configuration key, and the network configuration key and the network configuration key stored in the networked device are used to perform network configuration processing.

[0029] In one possible implementation, the method further includes:

[0030] forwarding its own identity information to the cloud server through the networked device, so that the cloud server verifies the first encrypted information according to the received identity information;

[0031] Before using the network configuration key and the network configuration key stored in the networking device to perform network configuration processing, the method further includes:

[0032] Determine that the identity information sent by the networked device is the same as the identity information decrypted using its own device key; wherein the identity information sent by the networked device is sent by the cloud server to the networked device; and the encrypted identity information is sent by the cloud server to the networked device.

[0033] In a fifth aspect, an embodiment of the present invention provides a device network configuration method, the method being applied to a networked device, comprising:

[0034] Respond to the network configuration instruction and initiate a network configuration request to the device to be configured;

[0035] Sending the first encrypted information sent by the network device to be configured to the cloud server; wherein the first encrypted information is obtained by encrypting the identity information of the network device to be configured using its own device key;

[0036] Receive the feedback result sent by the cloud server, and store the network configuration key in the feedback result; wherein the feedback result is generated by the cloud server using the device key and identity information stored in the cloud server to verify the first encrypted information after the verification is successful; the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the device to be configured;

[0037] The second encrypted information in the feedback result is sent to the device to be networked, and the stored network configuration key is used to perform network configuration processing with the device to be networked.

[0038] In a sixth aspect, an embodiment of the present invention provides a device network configuration method, the method being applied to a cloud server, comprising:

[0039] Receive first encrypted information sent by a networked device; wherein the first encrypted information is obtained by encrypting the identity information of the networked device using its own device key, and the first encrypted information is sent by the networked device to the networked device;

[0040] The first encrypted information is verified using the device key and identity information of the device to be configured, and after the verification is successful, a feedback result is generated; wherein the feedback result includes the second encrypted information and the configuration key obtained by encrypting the configuration key using the device key of the device to be configured;

[0041] The feedback result is sent to the networked device so that the networked device obtains the network configuration key, and the second encrypted information is sent to the to-be-configured device so that the to-be-configured device obtains the network configuration key through the second encrypted information.

[0042] In a possible implementation, before verifying the first encrypted information using the device key and identity information of the to-be-provisioned network device, the method further includes:

[0043] Receiving identity information sent by a networked device; wherein the identity information sent by the networked device is the identity information of the networked device to be configured that is sent by the networked device to the networked device;

[0044] The first encrypted information is verified using the device key and identity information of the device to be configured, including:

[0045] Determine, from the plurality of identity information, identity information that is identical to the received identity information;

[0046] If the first encrypted information is successfully decrypted using a device key corresponding to the same identity information as the received identity information, and the identity information after decrypting the first encrypted information is the same as the received identity information, then it is determined that the verification is successful;

[0047] The method further comprises:

[0048] After successful verification, the identity information of the device to be configured and the identity information of the device to be configured encrypted using the device key of the device to be configured are sent to the device to be configured through the networking device, so that the device to be configured verifies the received identity information and the identity information decrypted using its own device key.

[0049] The present invention proposes that the device key of the network device to be configured is used to encrypt the identity information to obtain the first encrypted information, and the first encrypted information is forwarded to the cloud server through the network device. After the cloud server verifies the first encrypted information, the network configuration key is encrypted with the device key, and the unencrypted network configuration key is sent to the network device. The network device saves the unencrypted network configuration key, and sends the encrypted information to the network device to be configured. The network device to be configured uses the device key to obtain the network configuration key. Since the network device cannot obtain the device key of the network device to be configured, only the network device to be configured and the cloud server know the device key, and the device key is used to exchange information that only they know, so that the network device to be configured and the cloud server are further encrypted, thereby improving the security of information. Further, the network device to be configured sends its own unencrypted identity information to the cloud server, and the cloud server verifies the encrypted information based on the unencrypted identity information of the network device to be configured, and the cloud server uses the device key to encrypt the identity information and the unencrypted identity information to the network device to be configured, and the network device to be configured uses the device key to decrypt the identity information and the unencrypted identity information for verification. If they are the same, it means that the conversation between them has not been tampered with, ensuring the security of information. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A schematic diagram of a networking device and a device to be networked provided in an embodiment of the present invention;

[0051] Figure 2 A schematic diagram of a device network distribution system provided by an embodiment of the present invention;

[0052] Figure 3 An interactive schematic diagram of a device network configuration method provided by an embodiment of the present invention;

[0053] Figure 4 An interactive schematic diagram of another device network configuration method provided by an embodiment of the present invention;

[0054] Figure 5 An interactive schematic diagram of another device network configuration method provided by an embodiment of the present invention;

[0055] Figure 6 A schematic diagram of a network configuration process of connecting a fan to a gateway provided by an embodiment of the present invention;

[0056] Figure 7 A flowchart of a first device network configuration method provided by an embodiment of the present invention;

[0057] Figure 8 A flowchart of a processing method applied to a device to be networked provided by an embodiment of the present invention;

[0058] Fig. 9 A structural diagram of a network device to be configured provided by an embodiment of the present invention;

[0059] Fig.10 A flowchart of a second device network configuration method provided by an embodiment of the present invention;

[0060] Fig.11 A flowchart of a processing method applied to a networked device provided by an embodiment of the present invention;

[0061] Fig.12 A structural diagram of a networking device provided by an embodiment of the present invention;

[0062] Fig.13 A flowchart of a third device network configuration method provided by an embodiment of the present invention;

[0063] Fig.14 A flowchart of a processing method applied to a cloud server provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0064] The technical solutions in the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. The terms "first" and "second" are used for descriptive purposes only and should not be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0065] Combination Figure 1 As shown, the device 100 to be configured can be a smart home, such as a fan, a sweeper and a lamp, and the networked device 101 can be a mobile phone. The device 100 to be configured can be connected to a wireless network. Generally, when connecting to a wireless network, it is generally necessary to enter an account number and a key. Since the device 100 to be configured may not have a component that can be input, based on this, it can interact with the networked device 101 so that the device 100 to be configured can be connected to the wireless network.

[0066] During the networking process, in order to avoid dangerous events such as information tampering or theft during interaction, the information can be encrypted, and the encryption key can be allocated by the cloud server.

[0067] When distributing the network, combine Figure 2 As shown, the networked device 101 is connected to the cloud server 102, and the networked device 101 can be connected to the device to be configured 100. When the configuration operation of the device to be configured 100 is not completed, the networked device 101 and the device to be configured 100 can communicate through communication methods such as Bluetooth.

[0068] Combination Figure 3 As shown, the networked device 101 responds to the network configuration instruction and initiates a network configuration request to the network configuration device 100;

[0069] After receiving the network configuration request from the networked device, the networked device 100 uses its own device key to encrypt its own identity information to obtain first encrypted information; and sends the first encrypted information to the networked device 101;

[0070] The networked device 101 sends the first encrypted information sent by the networked device 100 to the cloud server 102;

[0071] The cloud server 102 receives the first encrypted information sent by the networked device, verifies the first encrypted information using the device key and identity information stored in the cloud server 102, and generates a feedback result after the verification is successful; the feedback result is sent to the networked device 101; the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the networked device to be configured;

[0072] The networked device 101 receives the feedback result sent by the cloud server 102, stores the network configuration key in the feedback result, and sends the second encrypted information in the feedback result to the network configuration device 100 to be configured;

[0073] The device 100 to be networked receives the second encrypted information sent by the networked device 101, decrypts the second encrypted information using its own device key to obtain the network configuration key, and performs network configuration processing using the network configuration key and the network configuration key stored in the networked device.

[0074] Among them, the device key and identity information of the device to be configured are generated by the key system, and the device key and identity information stored in the cloud server itself are generated by the key system for the device to be configured and sent by the key system.

[0075] Specifically, use the key management system to randomly generate a series of "PID+KEY". It is necessary to ensure that the PID and KEY are different, and then upload them to the cloud server; the production system randomly takes out a set of "PID+KEY" from the cloud server and writes it to the device to be configured. At this point, the allocation of unique device keys and identity information of the device to be configured is completed.

[0076] In the above-mentioned interaction process provided by the present invention, the device to be configured uses a device key known only to the cloud server to encrypt identity information, and the cloud server uses the identity information and the device key to verify the encrypted information. After successful verification, the device key encrypted network configuration key and the unencrypted network configuration key are sent to the networked device 101, and the networked device 101 saves the unencrypted network configuration key for subsequent network configuration with the device to be configured, and sends the encrypted network configuration key to the device to be configured 100. The device to be configured uses its own device key to decrypt the network configuration key to obtain the network configuration key. In this way, the device to be configured and the networked device both obtain the network configuration key of the cloud server.

[0077] Since the device key is stored in advance by the device to be configured and the cloud server, and is not interacted with through the networked device, the networked device does not know the device key of the device to be configured. Therefore, when the device key of the device to be configured is used to encrypt the information interaction between the device to be configured and the cloud server, the device key cannot be obtained by obtaining the information of the networked device, which improves the security of information interaction.

[0078] Combination Figure 4 As shown, after receiving the network configuration request from the networked device, the networked device 100 sends its own identity information to the networked device 101;

[0079] The networked device 101 sends the received identity information of the networked device to be configured to the cloud server 102;

[0080] The cloud server 102 receives the identity information sent by the networked device, and determines the identity information that is the same as the received identity information from multiple identity information; if the first encrypted information is successfully decrypted using the device key corresponding to the identity information that is the same as the received identity information, and the identity information after decrypting the first encrypted information is the same as the received identity information, then it is determined that the verification is successful; after the verification is successful, the identity information of the networked device to be configured and the identity information of the networked device to be configured encrypted using the device key of the networked device to be configured are sent to the networked device 101;

[0081] The networking device 101 sends the identity information of the network device to be configured and the identity information of the network device to be configured encrypted by using the device key of the network device to be configured to the network device to be configured 100;

[0082] The device 100 to be networked determines that the identity information sent by the networked device is the same as the identity information decrypted by its own device key before using the network configuration key and the network configuration key stored in the networked device to perform network configuration processing.

[0083] Among them, in the cloud server, if the first encrypted information is decrypted unsuccessfully using the device key corresponding to the identity information that is the same as the received identity information, or the identity information after decrypting the first encrypted information is different from the received identity information, then it is determined that the verification is unsuccessful, that is, the information sent to the cloud server has been tampered with and can be discarded.

[0084] The cloud server will store the identity information and device keys of multiple smart homes, as shown in Table 1:

[0085] Identity information Device Key PID1 KEY1 PID2 KEY2 PID3 KEY3

[0086] When the cloud server receives the identity information of the device to be configured sent by the networked device, it checks Table 1. When the identity information of the device to be configured sent by the networked device is PID1, the cloud server determines that the device key of the device to be configured is KEY1, and uses KEY1 to decrypt the first encrypted information. After the decryption is successful, the decrypted identity information is compared with PID1 to see if they are the same. If they are the same, the verification is successful. If they are not the same, the verification fails.

[0087] Based on the above content, the embodiment of the present invention provides the following examples, combined with Figure 5 As shown, the networked device uses the pre-made secret key SK to initiate a network configuration REQ (which can be sent via WiFi / Bluetooth) to the device to be configured;

[0088] The device to be configured receives the configuration request REQ and decrypts it using the pre-made secret key SK. After confirming that the configuration request can be decrypted normally, PID2+device information is encrypted using the device key DK to obtain the encrypted information DA. When encrypted using the device key DK, it is a white square. Then PID1+DA is encrypted using the pre-made secret key SK and the encrypted information RSP is sent to the networked device. PID1 and PID2 are both identity information of the device to be configured, which are only used for distinction.

[0089] The networked device 101 receives the network configuration response message RSP, decrypts it using the pre-made secret key SK, and then sends the PID1+DA information to the cloud server 102 for verification; the cloud server 102 searches for the device key DK of the device to be configured that has expired through PID1, and then decrypts it to confirm whether it can be decrypted normally, obtains PID2, and checks whether PID1 and PID2 are consistent; the cloud server 102 allocates a network configuration key NK for network configuration, encrypts the network configuration key NK and PID2 with the device key DK of the device to be configured to obtain CA, and sends the PID1+NK+CA content to the networked device 101.

[0090] The networked device 101 receives the content, knows the network configuration key NK, and transparently transmits PID1+CA to the network device 100 to be configured. The network device 100 to be configured uses the network device DK to encrypt CA, encrypts NK+PID2, and compares whether PID1 and PID2 are consistent. If they are consistent, the network configuration key NK of the network device to be configured and the network configuration key NK of the networked device will interact with each other for network configuration.

[0091] Above Figure 5In the scheme, the device to be configured and the networked device negotiate a key to obtain a pre-made key SK. When the networked device sends a configuration request to the device to be configured, the pre-made key SK is used to encrypt all the information to be sent, and the device to be configured uses the pre-made key SK to encrypt all the information to be sent. The interaction between the device to be configured and the networked device is encrypted with the key SK, which improves the security of the interactive information. Since the networked device and the cloud server do not use the pre-made key SK to encrypt the information, the networked device uses the pre-made key SK to decrypt it after receiving it. If there is also a key for encryption between the networked device 101 and the cloud server 102, when the networked device 101 and the cloud server interact with each other, the key between the networked device and the cloud server is used to encrypt the information.

[0092] For example, the networked device may be a mobile phone, and the smart home may include a fan, a sweeper, and a light. Figure 6 As shown, the network configuration is to connect the device to be configured to the gateway. Bluetooth interaction is used in the network configuration process. The mobile phone displays the devices that can be configured, such as fans, sweepers, and lights. When the user clicks on the fan, the fan becomes the device to be configured. The mobile phone and the fan are connected via Bluetooth. The mobile phone uses the pre-made key SK to encrypt the network configuration request, and sends the encrypted network configuration request to the fan via the Bluetooth module. After the fan receives the encrypted network configuration request through its own Bluetooth module, it decrypts it using the pre-made key SK. The fan uses its own device key to encrypt its own PID to obtain encrypted information, and then encrypts the encrypted information and its own PID using the pre-made key SK. The encrypted information is sent to the mobile phone via its own Bluetooth module, and the mobile phone receives the encrypted network configuration request through its own Bluetooth module. The mobile phone receives the information, decrypts it with the pre-made key SK, and sends the encrypted information and the fan's PID to the cloud server through the wireless network module. The cloud server verifies it. After successful verification, the fan's device key is used to encrypt the fan's PID and the network configuration key to obtain the encrypted information. The encrypted information, the fan's PID and the network configuration key are sent to the mobile phone together. The mobile phone saves the network configuration key, and sends the encrypted information and the fan's PID to the fan through the Bluetooth module. The fan receives the information with the Bluetooth module, and decrypts the encrypted information with the fan's device key to obtain the fan's PID. The decrypted fan's PID is compared with the received fan's PID. If they are the same, it is determined that the network configuration key is sent by the cloud server and the information has not been tampered with. The fan can send information about successful key acquisition to the mobile phone through its own Bluetooth module. After receiving the information, the mobile phone uses the network configuration key to encrypt the account and password needed to connect to the gateway, and sends the encrypted information to the fan through its own Bluetooth module. The fan receives the encrypted information through its own Bluetooth module and decrypts the encrypted information using the network configuration key. The fan uses the decrypted gateway account and password to send it to the gateway. After the gateway allows access to the network, the network configuration is successful. In this way, the fan can send information to the cloud server through the gateway.

[0093] Combination Figure 7 As shown, an embodiment of the present invention provides a first device network configuration method, which is applied to a device to be configured, and includes:

[0094] S700: After receiving a network configuration request from a networked device, encrypt the identity information of the device using the device key to obtain first encrypted information;

[0095] S701: forwarding the first encrypted information to the cloud server through the networked device, so that the cloud server verifies the first encrypted information using the device key and identity information stored in the cloud server, and generates a feedback result after the verification is successful; wherein the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the network configuration device to be configured;

[0096] S702: Receive second encrypted information sent by the networked device; wherein the second encrypted information is sent by the networked device after receiving the feedback result and storing the network configuration key;

[0097] S703: Use its own device key to decrypt the second encrypted information to obtain a network configuration key, and use the network configuration key and the network configuration key stored in the networked device to perform network configuration processing.

[0098] Optionally, the method further includes:

[0099] forwarding its own identity information to the cloud server through the networked device, so that the cloud server verifies the first encrypted information according to the received identity information;

[0100] Before using the network configuration key and the network configuration key stored in the networking device to perform network configuration processing, the method further includes:

[0101] Determine that the identity information sent by the networked device is the same as the identity information decrypted using its own device key; wherein the identity information sent by the networked device is sent by the cloud server to the networked device; and the encrypted identity information is sent by the cloud server to the networked device.

[0102] Based on the above scheme, the present invention proposes the following examples, combined with Figure 8 As shown, the processing method applied to the device to be configured includes:

[0103] S801: receiving a network configuration request message;

[0104] S802: Decrypt using the pre-made key SK to check whether the message can be decrypted successfully. If yes, proceed to S803, otherwise end. The pre-made key is agreed upon by the enterprise during production and is mainly used to ensure that the transmitted content is not in plain text. A message that can be decrypted normally indicates that it is a legitimate network configuration request (other checks can also be added as needed, such as requiring the network configuration request to include some equipment manufacturer information).

[0105] S803: Use the device key DK to encapsulate the PID and other information to obtain the encrypted content DA, use the pre-made key to encrypt the PID and DA as a response message for the network configuration request, and send it to the networked device; wherein the PID is burned during production;

[0106] S804: Check whether the networked device responds. If yes, proceed to S805; otherwise, end;

[0107] S805: Decrypt using the pre-made secret key SK to determine whether the decryption is successful. If yes, proceed to S806, otherwise, end;

[0108] S806: The decrypted message consists of two parts, one is plain text (PID1), and the other is encrypted by the cloud using DK; the second part is decrypted using the device key to obtain PID2 and NK; among them, NK is the key used for the direct network configuration process between the device and the APP (each network configuration is randomly assigned by the cloud).

[0109] S807: Compare the decrypted PID2 and the plaintext PID1 to see if they are the same. If so, proceed to S808, otherwise end. If PID1 is consistent with PID2, it can be verified that the secret key is indeed allocated from the cloud (only the cloud knows the unique private key of the device corresponding to PID1);

[0110] S808: Use the network configuration key NK for encryption and perform subsequent network configuration process with the networked device.

[0111] Among them, the method of distinguishing the message encrypted by the prefabricated key SK and the message encrypted by the configuration network key NK is to add a plaintext flag to the message encrypted by the prefabricated key SK; that is, when the plaintext flag is detected, the message is the message encrypted by the prefabricated key SK, and when the plaintext flag is detected, the message is the message encrypted by the configuration network key NK.

[0112] The network equipment to be configured can be a smart home, such as a fan, a desk lamp, a washing machine, an air conditioner, etc. In addition to the components included in ordinary home appliances, the network equipment to be configured can also be combined with Fig. 9As shown, taking an electric fan as an example, in addition to the common components of the electric fan, namely, the electric fan head 900, the bracket 901 and the base 902, the electric fan further includes: a processor 903 and a communication unit 904; wherein the processor 903 and the communication unit 904 are arranged on the bracket 901, and the processor 903 and the communication unit 904 are arranged inside the virtual frame of the bracket 901;

[0113] The processor 903 is configured to, after receiving a network configuration request from a networked device, encrypt its own identity information using its own device key to obtain first encrypted information;

[0114] Decrypting the second encrypted information using the device key of the device itself to obtain a network configuration key, and performing network configuration processing using the network configuration key and the network configuration key stored in the networked device;

[0115] The communication unit 904 is used to send the first encrypted information to the networked device, so that the networked device sends it to the cloud server, so that the cloud server verifies the first encrypted information using the device key and identity information stored in the cloud server, and generates a feedback result after the verification is successful; wherein the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the network configuration device to be configured;

[0116] Receive second encrypted information sent by the networked device; wherein the second encrypted information is sent by the networked device after receiving the feedback result and storing the network configuration key.

[0117] Optionally, the communication unit 904 is further configured to forward its own identity information to the cloud server through the networked device, so that the cloud server verifies the first encrypted information according to the received identity information;

[0118] The processor 903 is also used to determine that the identity information sent by the networked device is the same as the identity information decrypted using its own device key; wherein the identity information sent by the networked device is sent by the cloud server to the networked device; and the encrypted identity information is sent by the cloud server to the networked device.

[0119] Combination Fig.10 As shown, an embodiment of the present invention provides a second device network configuration method, which is applied to a networked device and includes:

[0120] S1000: respond to the network configuration instruction and initiate a network configuration request to the device to be configured;

[0121] S1010: Sending first encrypted information sent by the network device to be configured to the cloud server; wherein the first encrypted information is obtained by encrypting the identity information of the network device to be configured using its own device key;

[0122] S1020: receiving the feedback result sent by the cloud server, and storing the network configuration key in the feedback result; wherein the feedback result is generated by the cloud server using the device key and identity information stored in the cloud server to verify the first encrypted information after the verification is successful; the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the device to be configured;

[0123] S1030: Send the second encrypted information in the feedback result to the device to be networked, and use the stored network configuration key to perform network configuration processing with the device to be networked.

[0124] Based on the above scheme, the present invention proposes the following examples, combined with Fig.11 As shown, the processing method applied to the networked device includes:

[0125] S1110: The network configuration message is encrypted using a pre-made secret key SK, and the encrypted information is sent to the network configuration device;

[0126] S1120: Waiting for a response message from the device to be configured;

[0127] S1130: Decrypt using the pre-made secret key SK to determine whether the decryption is normal. If yes, proceed to S1140, otherwise, end;

[0128] S1140: The decrypted content is information encrypted by the device to be configured using the device key DK, and the encrypted information is sent to the cloud server;

[0129] Among them, the networked device cannot know the content of the message, and can directly transmit it to the cloud server. The direct communication between the networked device and the cloud server is also encrypted;

[0130] S1150: Waiting to receive a response from the cloud server. After receiving the response from the cloud server, decrypting using the key to determine whether the decryption is successful. If yes, proceed to S1160, otherwise, end;

[0131] S1160: The decrypted content includes two parts. The first part is plain text, including PID1 and NK, and the second part is information encrypted by the cloud server using the device key DK. The second part is assembled with PID1, encrypted with the pre-made secret key SK, and sent to the network device to be configured.

[0132] S1170: Wait for the response of the device to be configured, and check whether the response can be decrypted by NK. If yes, proceed to S1180; otherwise, end;

[0133] S1180: Use NK key encryption to complete other business logics of network configuration.

[0134] Wherein, the networking device includes: a processor and a communication unit;

[0135] The processor is used to respond to the network configuration instruction, initiate a network configuration request to the device to be configured, and store the network configuration key in the feedback result;

[0136] The communication unit is used to send the first encrypted information sent by the network device to be configured to the cloud server; wherein the first encrypted information is obtained by encrypting the identity information of the network device to be configured using its own device key;

[0137] Receive the feedback result sent by the cloud server; wherein the feedback result is generated by the cloud server after the verification is successful by using the device key and identity information stored in the cloud server to verify the first encrypted information; the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the device to be configured;

[0138] The second encrypted information in the feedback result is sent to the device to be networked, and the stored network configuration key is used to perform network configuration processing with the device to be networked.

[0139] Fig.12 A schematic diagram of the structure of a networking device is shown.

[0140] The following is a detailed description of the embodiment using a networking device as an example. It should be understood that Fig.12 The networked device shown is only an example and networked devices may have more Fig.12 The more or less components shown in the figure can be combined with two or more components, or can have different component configurations. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0141] Fig.12 FIG. 2 exemplarily shows a hardware configuration block diagram of a networked device according to an exemplary embodiment. Fig.12 As shown, the networking device includes: a radio frequency (RF) circuit 1210, a memory 1220, a display unit 1230, a camera 1240, a sensor 1250, an audio circuit 1260, a wireless fidelity (Wi-Fi) module 1270, a processor 1280, a Bluetooth module 1281, and a power supply 1290 and other components.

[0142] The RF circuit 1210 can be used to receive and send signals during the process of sending and receiving information or making calls. It can receive downlink data from the base station and hand it over to the processor 1280 for processing; it can send uplink data to the base station. Generally, the RF circuit includes but is not limited to antennas, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer and other devices.

[0143] The memory 1220 can be used to store software programs and data. The processor 1280 executes various functions and data processing of the networked device by running the software programs or data stored in the memory 1220. The memory 1220 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. The memory 1220 stores an operating system that enables the networked device to run. In the present application, the memory 1220 can store an operating system and various application programs, and can also store code for executing the method described in the embodiment of the present application.

[0144] The display unit 1230 may be used to receive input digital or character information and generate signal input related to user settings and function control of the networked device. Specifically, the display unit 1230 may include a touch screen 1231 disposed on the front of the networked device, which may collect user touch operations on or near it, such as clicking a button, dragging a scroll box, etc.

[0145] The display unit 1230 can also be used to display information input by the user or information provided to the user and a graphical user interface (GUI) of various menus of the networked device. Specifically, the display unit 1230 may include a display screen 1232 disposed on the front of the networked device. The display screen 1232 may be configured in the form of a liquid crystal display, a light emitting diode, etc. The display unit 1230 may be used to display various graphical user interfaces described in this application.

[0146] The touch screen 1231 can be covered on the display screen 1232, or the touch screen 1231 and the display screen 1232 can be integrated to realize the input and output functions of the networked device, and the integrated display screen can be referred to as a touch display screen. In this application, the display unit 1230 can display the application and the corresponding operation steps.

[0147] The camera 1240 can be used to capture still images or videos. The object is projected onto the photosensitive element through the lens to generate an optical image. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then passed to the processor 1280 for conversion into a digital image signal.

[0148] The networked device may further include at least one sensor 1250, such as an acceleration sensor 1251, a distance sensor 1252, a fingerprint sensor 1253, and a temperature sensor 1254. The networked device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, and a motion sensor.

[0149] The audio circuit 1260, the speaker 1261, and the microphone 1262 can provide an audio interface between the user and the networked device. The audio circuit 1260 can transmit the electrical signal converted from the received audio data to the speaker 1261, which is converted into a sound signal for output. The networked device can also be equipped with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 1262 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1260 and converted into audio data, and then the audio data is output to the RF circuit 1210 to be sent to, for example, another terminal, or the audio data is output to the memory 1220 for further processing. In this application, the microphone 1262 can obtain the user's voice.

[0150] Wi-Fi is a short-range wireless transmission technology. Networked devices can help users send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 1270. It provides users with wireless broadband Internet access.

[0151] The processor 1280 is the control center of the networked device. It uses various interfaces and lines to connect various parts of the entire terminal. It executes various functions of the networked device and processes data by running or executing software programs stored in the memory 1220 and calling data stored in the memory 1220. In some embodiments, the processor 1280 may include one or more processing units; the processor 1280 may also integrate an application processor and a baseband processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the baseband processor mainly processes wireless communications. It is understandable that the above-mentioned baseband processor may not be integrated into the processor 1280. In the present application, the processor 1280 can run the operating system, application programs, user interface display and touch response, as well as the processing method described in the embodiment of the present application. In addition, the processor 1280 is coupled to the display unit 1230.

[0152] The Bluetooth module 1281 is used to exchange information with other Bluetooth devices having Bluetooth modules through the Bluetooth protocol. For example, the networked device can establish a Bluetooth connection with a wearable electronic device (such as a smart watch) that also has a Bluetooth module through the Bluetooth module 1281 to exchange data.

[0153] The networked device also includes a power supply 1290 (such as a battery) for supplying power to various components. The power supply can be logically connected to the processor 1280 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption. The networked device can also be configured with a power button for turning on and off the terminal, as well as locking the screen and other functions.

[0154] The networking device may be a mobile phone.

[0155] Combination Fig.13 As shown, an embodiment of the present invention provides a third device network configuration method, which is applied to a cloud server and includes:

[0156] S1300: Receive first encrypted information sent by a networked device; wherein the first encrypted information is obtained by encrypting the identity information of the networked device using its own device key, and the first encrypted information is sent by the networked device to the networked device;

[0157] S1310: Verify the first encrypted information using the device key and identity information of the device to be configured, and generate a feedback result after the verification is successful; wherein the feedback result includes the second encrypted information and the configuration key obtained by encrypting the configuration key using the device key of the device to be configured;

[0158] S1320: Send the feedback result to the networked device so that the networked device obtains the network configuration key, and send the second encrypted information to the to-be-configured network device so that the to-be-configured network device obtains the network configuration key through the second encrypted information.

[0159] Optionally, before verifying the first encrypted information using the device key and identity information of the device to be networked, the method further includes:

[0160] Receiving identity information sent by a networked device; wherein the identity information sent by the networked device is the identity information of the networked device to be configured that is sent by the networked device to the networked device;

[0161] The first encrypted information is verified using the device key and identity information of the device to be configured, including:

[0162] Determine, from the plurality of identity information, identity information that is identical to the received identity information;

[0163] If the first encrypted information is successfully decrypted using a device key corresponding to the same identity information as the received identity information, and the identity information after decrypting the first encrypted information is the same as the received identity information, then it is determined that the verification is successful;

[0164] The method further comprises:

[0165] After successful verification, the identity information of the device to be configured and the identity information of the device to be configured encrypted using the device key of the device to be configured are sent to the device to be configured through the networking device, so that the device to be configured verifies the received identity information and the identity information decrypted using its own device key.

[0166] Based on the above scheme, the present invention proposes the following examples, combined with Fig.14 As shown, the processing method applied to the cloud server includes:

[0167] S1400: receiving a PID1 network configuration request message sent by a networked device;

[0168] S1410: Check whether the device key DK corresponding to PID1 exists. If yes, proceed to S1420, otherwise, end;

[0169] S1420: Randomly generate a network configuration key NK, use the device key DK corresponding to PID1 to encrypt the "PID1+NK" content, obtain the encrypted message body CA, and send the "PID1+NK+CA" content to the networked device.

[0170] Based on the above method, an embodiment of the present invention provides a cloud server, including: a processor and a communication unit;

[0171] The communication unit is used to receive the first encrypted information sent by the networked device; wherein the first encrypted information is obtained by encrypting the identity information of the networked device using its own device key, and the first encrypted information is sent by the networked device to the networked device; the device key and identity information of the networked device to be configured are allocated by the cloud server;

[0172] Sending the feedback result to the networked device so that the networked device obtains the network configuration key, and sending the second encrypted information to the to-be-configured network device so that the to-be-configured network device obtains the network configuration key through the second encrypted information;

[0173] The processor is used to verify the first encrypted information using the device key and identity information of the device to be configured, and generate the feedback result after the verification is successful; wherein the feedback result includes the second encrypted information and the configuration key obtained by encrypting the configuration key using the device key of the device to be configured.

[0174] Optionally, the communication unit is further used to receive identity information sent by the networked device; wherein the identity information sent by the networked device is the identity information of the device to be configured sent to the networked device;

[0175] After successful verification, the identity information of the network device to be configured and the identity information of the network device to be configured encrypted by the device key of the network device to be configured are sent to the network device to be configured through the networking device, so that the network device to be configured verifies the received identity information and the identity information decrypted by its own device key for verification;

[0176] The processor is further configured to determine, from a plurality of identity information, identity information that is identical to the received identity information;

[0177] If the first encrypted information is successfully decrypted using a device key corresponding to the same identity information as the received identity information, and the identity information after decrypting the first encrypted information is the same as the received identity information, then it is determined that the verification is successful.

[0178] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0179] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A network device to be configured, characterized in that: include: processor and communication unit; The processor is configured to, after receiving a network configuration request from a networked device, encrypt its own identity information using its own device key to obtain first encrypted information; Decrypting the second encrypted information using the device key of the device itself to obtain a network configuration key, and performing network configuration processing using the network configuration key and the network configuration key stored in the networked device; The communication unit is used to send the first encrypted information to the networked device, so that the networked device sends it to the cloud server, so that the cloud server verifies the first encrypted information using the device key and identity information stored in the cloud server, and generates a feedback result after the verification is successful; wherein the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the network configuration device to be configured; Receive second encrypted information sent by the networked device; wherein the second encrypted information is sent by the networked device after receiving the feedback result and storing the network configuration key.

2. The network equipment to be configured according to claim 1, characterized in that ; The communication unit is further configured to forward its own identity information to the cloud server through the networked device, so that the cloud server verifies the first encrypted information according to the received identity information; The processor is also used to determine that the identity information sent by the networked device is the same as the identity information decrypted using its own device key; wherein the identity information sent by the networked device is sent by the cloud server to the networked device; and the encrypted identity information is sent by the cloud server to the networked device.

3. A networking device, characterized in that: include: processor and communication unit; The processor is used to respond to the network configuration instruction and initiate a network configuration request to the device to be configured; And storing the network configuration key in the feedback result; The communication unit is used to send the first encrypted information sent by the network device to be configured to the cloud server; wherein the first encrypted information is obtained by encrypting the identity information of the network device to be configured using its own device key; Receive the feedback result sent by the cloud server; wherein the feedback result is generated by the cloud server after the verification is successful by using the device key and identity information stored in the cloud server to verify the first encrypted information; the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the device to be configured; The second encrypted information in the feedback result is sent to the device to be networked, and the stored network configuration key is used to perform network configuration processing with the device to be networked.

4. A cloud server, characterized in that: include: processor and communication unit; The communication unit is used to receive the first encrypted information sent by the networked device; wherein the first encrypted information is obtained by encrypting the identity information of the networked device using its own device key, and the first encrypted information is sent by the networked device to the networked device; the feedback result is sent to the networked device so that the networked device obtains the network configuration key, and the second encrypted information is sent to the networked device so that the networked device obtains the network configuration key through the second encrypted information. The processor is used to verify the first encrypted information using the device key and identity information stored in the processor, and generate the feedback result after the verification is successful; wherein the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the device to be configured.

5. The cloud server according to claim 4, It is characterized by: The communication unit is further used to receive identity information sent by the networked device; wherein the identity information sent by the networked device is the identity information of the networked device to be configured that is sent by the networked device to the networked device; After successful verification, the identity information of the network device to be configured and the identity information of the network device to be configured encrypted by the device key of the network device to be configured are sent to the network device to be configured through the networking device, so that the network device to be configured verifies the received identity information and the identity information decrypted by its own device key for verification; The processor is further configured to determine, from a plurality of identity information, identity information that is identical to the received identity information; If the first encrypted information is successfully decrypted using a device key corresponding to the same identity information as the received identity information, and the identity information after decrypting the first encrypted information is the same as the received identity information, then it is determined that the verification is successful.

6. A device network configuration method, characterized in that: The method is applied to a device to be networked, and includes: After receiving the network configuration request from the networked device, encrypt the identity information of the device using the device key to obtain the first encrypted information; Forwarding the first encrypted information to the cloud server through the networked device, so that the cloud server verifies the first encrypted information using the device key and identity information stored in the cloud server, and generates a feedback result after successful verification; wherein the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the network configuration device to be configured; Receiving second encrypted information sent by the networked device; wherein the second encrypted information is sent by the networked device after receiving the feedback result and storing the network configuration key; The second encrypted information is decrypted using the own device key to obtain a network configuration key, and the network configuration key and the network configuration key stored in the networked device are used to perform network configuration processing.

7. The device network configuration method according to claim 6, characterized in that: The method further comprises: forwarding its own identity information to the cloud server through the networked device, so that the cloud server verifies the first encrypted information according to the received identity information; Before using the network configuration key and the network configuration key stored in the networking device to perform network configuration processing, the method further includes: Determine that the identity information sent by the networked device is the same as the identity information decrypted using its own device key; wherein the identity information sent by the networked device is sent by the cloud server to the networked device; and the encrypted identity information is sent by the cloud server to the networked device.

8. A device network configuration method, characterized in that: The method is applied to a networked device, comprising: Respond to the network configuration instruction and initiate a network configuration request to the device to be configured; Sending the first encrypted information sent by the network device to be configured to the cloud server; wherein the first encrypted information is obtained by encrypting the identity information of the network device to be configured using its own device key; Receive the feedback result sent by the cloud server, and store the network configuration key in the feedback result; wherein the feedback result is generated by the cloud server using the device key and identity information stored in the cloud server to verify the first encrypted information after the verification is successful; the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the device to be configured; The second encrypted information in the feedback result is sent to the device to be networked, and the stored network configuration key is used to perform network configuration processing with the device to be networked.

9. A device network configuration method, characterized in that: The method is applied to a cloud server and includes: Receive first encrypted information sent by a networked device; wherein the first encrypted information is obtained by encrypting the identity information of the networked device using its own device key, and the first encrypted information is sent by the networked device to the networked device; The first encrypted information is verified using the device key and identity information stored in the device, and after the verification is successful, a feedback result is generated; wherein the feedback result includes the second encrypted information and the network configuration key obtained by encrypting the network configuration key using the device key of the network configuration device to be configured; The feedback result is sent to the networked device so that the networked device obtains the network configuration key, and the second encrypted information is sent to the to-be-configured device so that the to-be-configured device obtains the network configuration key through the second encrypted information.

10. The device network configuration method according to claim 9, characterized in that: Before verifying the first encrypted information using the device key and identity information of the network device to be configured, the method further includes: Receiving identity information sent by a networked device; wherein the identity information sent by the networked device is the identity information of the networked device to be configured that is sent by the networked device to the networked device; The first encrypted information is verified using the device key and identity information of the device to be configured, including: Determine, from the plurality of identity information, identity information that is identical to the received identity information; If the first encrypted information is successfully decrypted using a device key corresponding to the same identity information as the received identity information, and the identity information after decrypting the first encrypted information is the same as the received identity information, then it is determined that the verification is successful; The method further comprises: After successful verification, the identity information of the device to be configured and the identity information of the device to be configured encrypted using the device key of the device to be configured are sent to the device to be configured through the networking device, so that the device to be configured verifies the received identity information and the identity information decrypted using its own device key for verification.