Communication method, device, access point, server, system and storage medium

The server assists in key generation and key exchange of device identification information and random data, which solves the problem of easy leakage of symmetric encryption algorithm keys in IoT devices and improves security and stability of communication encryption.

CN112448808BActive Publication Date: 2024-09-20BANMA ZHIXING NETWORK HONGKONG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910807099.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-29
Publication Date
2024-09-20
Estimated Expiration
2039-08-29

AI Technical Summary

Technical Problem

Symmetric encryption algorithm keys in IoT devices are easily leaked, resulting in insufficient security. Especially on resource-constrained devices, how to securely and quickly access the network is a challenge.

Method used

Introduce a server to assist in key generation and perform key exchange through device identification information and random data. This ensures that the transmission content during the key generation process does not contain the actual key. Only device identification information and random data are transmitted to enhance the security of key exchange. .

Benefits of technology

It improves the security of key exchange and key utilization, lowers the threshold for attackers to crack the key, enhances the security of communication encryption, and is suitable for IoT devices with limited resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112448808B
    Figure CN112448808B
Patent Text Reader

Abstract

Disclosed are a communication method, device, access point, server, system and storage medium. For example, a second device can receive device identification information sent by a first device, the device identification information is used to characterize the identity of the first device, send the device identification information to a server, and receive first data corresponding to the device identification information sent by the server, calculate a key based on the first data and the second data, and can send the second data to the first device so that the first device calculates the key. The present disclosure introduces a server to assist in generating a key and completes the key exchange between devices, thereby improving the security of key exchange and communication encryption using the key.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communications, and in particular to a communication method, device, access point, server, system and storage medium. Background Art

[0002] With the popularization of the Internet of Things, more and more devices are connected together through local networks or Internet and other communication protocols, realizing information-based, remote management and control, and intelligent networks. At the same time, the data security issues of the Internet of Things are becoming increasingly prominent. Since most of the devices connected to the Internet of Things are resource-constrained devices, symmetric encryption algorithms with low computing power requirements are widely used. Symmetric encryption algorithms use the same symmetric key for encryption and decryption. Once the symmetric key on the device side is leaked, it will cause great harm to the security of the Internet of Things.

[0003] Taking smart home devices, smart car devices and other smart devices as examples, smart devices come in various forms. For smart devices without human-machine interaction interfaces, how to connect these devices to home gateways or car networks in a convenient, fast, safe and reliable manner is an urgent problem that smart device manufacturers need to solve. At present, it is generally necessary to use mobile phone APP to coordinate to obtain the password of the wireless gateway, which is neither convenient nor safe. Some manufacturers also use USB cables, network cables, etc. to connect smart devices to home gateways or car machines, which not only increases costs but is also inconvenient. Summary of the invention

[0004] A technical problem to be solved by the present disclosure is to provide a communication solution that can improve security.

[0005] According to the first aspect of the present disclosure, a communication method is proposed, which is suitable for execution by a second device, including: receiving device identification information sent by a first device, the device identification information is used to characterize the identity of the first device; sending the device identification information to a server; receiving first data corresponding to the device identification information sent by the server; calculating a key based on the first data and the second data; and sending the second data to the first device.

[0006] Optionally, the second data is data generated by the second device, or the method further includes: receiving second data sent by the server.

[0007] Optionally, the method further includes: sending the first message encrypted by using the key to the first device; and / or decrypting the second message sent by the first device by using the key.

[0008] According to the second aspect of the present disclosure, a communication method is also proposed, which is suitable for execution by a second device, including: receiving device identification information sent by a first device, the device identification information is used to characterize the identity of the first device; sending the device identification information to a server; receiving a key sent by the server, the key is obtained by the server based on second data and first data corresponding to the device identification information; and sending the second data to the first device.

[0009] Optionally, the method further includes: sending second data to the server; or receiving second data sent by the server.

[0010] Optionally, the method further includes: sending the first message encrypted by using the key to the first device; and / or decrypting the second message sent by the first device by using the key.

[0011] According to the third aspect of the present disclosure, a communication method is also proposed, which is suitable for execution by a second device, including: receiving device identification information and second data sent by a first device, the device identification information being used to characterize the identity of the first device; sending the device identification information to a server; receiving first data corresponding to the device identification information sent by the server; and calculating a key based on the first data and the second data.

[0012] Optionally, the method further includes: sending the first message encrypted by using the key to the first device; and / or decrypting the second message sent by the first device by using the key.

[0013] According to the fourth aspect of the present disclosure, a communication method is also proposed, which is suitable for execution by a second device, including: receiving device identification information and second data sent by a first device, the device identification information being used to characterize the identity of the first device; sending the device identification information and the second data to a server; receiving a key sent by the server, the key being obtained by the server based on the second data and the first data corresponding to the device identification information.

[0014] Optionally, the method further includes: sending the first message encrypted by using the key to the first device; and / or decrypting the second message sent by the first device by using the key.

[0015] According to the fifth aspect of the present disclosure, a communication method is also proposed, which is suitable for execution by a first device, including: sending device identification information to a second device, the device identification information being used to characterize the identity of the first device; receiving second data sent by the second device; and calculating a key based on the second data and the first data corresponding to the device identification information.

[0016] Optionally, the method further includes: sending the second message encrypted by using the key to the second device; and / or decrypting the first message sent by the second device by using the key.

[0017] Optionally, the first device stores the first data, or the method further includes: sending device identification information to a server, and receiving first data corresponding to the device identification information sent by the server.

[0018] According to the sixth aspect of the present disclosure, a communication method is also proposed, which is suitable for execution by a first device, including: sending device identification information and second data to a second device, wherein the device identification information is used to characterize the identity of the first device; and calculating a key based on the second data and the first data corresponding to the device identification information.

[0019] Optionally, the method further includes: sending the second message encrypted by using the key to the second device; and / or decrypting the first message sent by the second device by using the key.

[0020] Optionally, the first device stores the first data, or the method further includes: sending device identification information to a server, and receiving first data corresponding to the device identification information sent by the server.

[0021] According to the seventh aspect of the present disclosure, a communication method is also proposed, which is suitable for execution by a server, including: associatively saving device identification information and first data for a first device, wherein the device identification information is used to identify the identity of the first device; receiving device identification information and second data sent by a second device; searching for the first data corresponding to the device identification information; calculating a key based on the second data and the first data; and sending the key to the second device.

[0022] Optionally, the step of sending the key to the second device includes: sending the key to the second device using Hypertext Transfer Protocol Security.

[0023] Optionally, the method further includes: verifying the identity of the second device; and when the identity of the second device is legal, executing the step of searching for first data corresponding to the device identification information.

[0024] Optionally, the method further includes: receiving device identification information sent by the first device; and sending first data corresponding to the device identification information to the first device.

[0025] According to the eighth aspect of the present disclosure, a communication method is also proposed, which is suitable for execution by a server, including: associatively saving device identification information and first data for a first device, wherein the device identification information is used to identify the identity of the first device; receiving device identification information sent by a second device; searching for the first data corresponding to the device identification information; generating second data for participating in generating a key; calculating a key based on the second data and the first data; and sending the key and the second data to the second device.

[0026] According to the ninth aspect of the present disclosure, a communication method is also proposed, which is suitable for execution by a server, including: associatively saving device identification information and first data for a first device, wherein the device identification information is used to identify the identity of the first device, and the first data is partial data involved in generating a key; receiving device identification information sent by a second device; searching for first data corresponding to the device identification information; and sending the found first data to the second device.

[0027] Optionally, the method further includes: generating second data for participating in generating a key; and sending the second data to a second device.

[0028] According to the tenth aspect of the present disclosure, a second device is also proposed, including: a receiving module, a sending module and a calculating module, the receiving module is used to receive device identification information sent by the first device, the device identification information is used to characterize the identity of the first device, the sending module is used to send the device identification information to the server, the receiving module is also used to receive first data corresponding to the device identification information sent by the server, the calculating module is used to calculate a key based on the first data and the second data, and the sending module is also used to send the second data to the first device.

[0029] Optionally, the device also includes: an encryption module and / or a decryption module, the encryption module is used to encrypt the first message using a key, the sending module is also used to send the encrypted first message to the first device, the receiving module is also used to receive a second message sent by the first device, and the decryption module is used to decrypt the second message using the key.

[0030] Optionally, the second data is data generated by the second device, or the receiving module is further used to receive second data sent by the server.

[0031] According to the eleventh aspect of the present disclosure, a second device is also proposed, including: a receiving module, used to receive device identification information sent by the first device, the device identification information is used to characterize the identity of the first device; a sending module, used to send the device identification information to a server, the receiving module is also used to receive a key sent by the server, the key is obtained by the server based on second data and first data corresponding to the device identification information, and the sending module is also used to send the second data to the first device.

[0032] According to the twelfth aspect of the present disclosure, a second device is also proposed, including: a receiving module, a sending module and a computing module, the receiving module is used to receive device identification information and second data sent by the first device, the device identification information is used to characterize the identity of the first device, the sending module is used to send the device identification information to the server, the receiving module is also used to receive first data corresponding to the device identification information sent by the server, and the computing module is used to calculate a key based on the first data and the second data.

[0033] According to the thirteenth aspect of the present disclosure, a second device is also proposed, including: a receiving module, used to receive device identification information and second data sent by a first device, the device identification information is used to characterize the identity of the first device; a sending module, used to send the device identification information and the second data to a server, the receiving module is also used to receive a key sent by the server, the key is obtained by the server based on the second data and the first data corresponding to the device identification information.

[0034] According to the fourteenth aspect of the present disclosure, a first device is also proposed, including: a sending module for sending device identification information to a second device, the device identification information being used to characterize the identity of the first device; a receiving module for receiving second data sent by the second device; and a calculating module for calculating a key based on the second data and first data corresponding to the device identification information.

[0035] Optionally, the device also includes: an encryption module and / or a decryption module, the encryption module is used to encrypt the second message using a key, the sending module is also used to send the encrypted second message to the second device, the receiving module is also used to receive the first message sent by the second device, and the decryption module is used to decrypt the first message using the key.

[0036] Optionally, the first device further includes a storage module for storing the first data, or the sending module is further used to send device identification information to the server, and the receiving module is further used to receive the first data corresponding to the device identification information sent by the server.

[0037] According to the fifteenth aspect of the present disclosure, a first device is also proposed, including: a sending module for sending device identification information and second data to a second device, the device identification information being used to characterize the identity of the first device; and a calculating module for calculating a key based on the second data and the first data corresponding to the device identification information.

[0038] According to the sixteenth aspect of the present disclosure, a server is also proposed, including: a storage module, used to associatively save device identification information and first data for a first device, wherein the device identification information is used to identify the identity of the first device, and the first data is partial data involved in generating a key; a receiving module, used to receive the device identification information and second data sent by a second device; a search module, used to search for the first data corresponding to the device identification information; a calculation module, used to calculate the key based on the second data and the first data; and a sending module, used to send the key to the second device.

[0039] According to the seventeenth aspect of the present disclosure, a server is also proposed, including: a storage module, used to associatively save device identification information and first data for a first device, wherein the device identification information is used to identify the identity of the first device, and the first data is partial data participating in generating a key; a receiving module, used to receive device identification information sent by a second device; a search module, used to search for the first data corresponding to the device identification information; a generation module, used to generate second data for participating in generating a key; a calculation module, used to calculate a key based on the second data and the first data; and a sending module, used to send the key and the second data to the second device.

[0040] According to the eighteenth aspect of the present disclosure, a server is also proposed, including: a storage module, used to associatively save device identification information and first data for a first device, wherein the device identification information is used to identify the identity of the first device, and the first data is partial data involved in generating a key; a receiving module, used to receive device identification information sent by a second device; a search module, used to search for first data corresponding to the device identification information; and a sending module, used to send the found first data to the second device.

[0041] According to the nineteenth aspect of the present disclosure, a communication system is also proposed, including: a second device as described in any one of the tenth to thirteenth aspects of the present disclosure; a first device as described in the fourteenth or fifteenth aspect of the present disclosure; and a server as described in any one of the sixteenth to eighteenth aspects of the present disclosure.

[0042] According to the twentieth aspect of the present disclosure, a smart device is also proposed, including: a storage module, used to store device identification information and first data, the device identification information is used to identify the identity of the smart device, and the first data is a first part of data participating in generating a key; a transceiver module, used to send a probe request frame to the access point in response to receiving a beacon frame sent by the access point, the probe request frame includes the device identification information, and the transceiver module is also used to receive a probe reply frame sent by the access point for the probe request frame, the probe reply frame includes second data and encrypted data after encrypting a network password using a key, the second data is a second part of data participating in generating the key; a calculation module, used to calculate the key based on the first data and the second data; a decryption module, used to decrypt the encrypted data based on the calculated key to obtain the network password; and a networking module, used to access the network corresponding to the access point based on the network password.

[0043] Optionally, the beacon frame includes the first identification information and / or the second identification information for identifying the access point, and the probe request frame also includes the first identification information and / or the second identification information.

[0044] According to the twenty-first aspect of the present disclosure, an access point is also proposed, including: a transceiver module, which is used to send a beacon frame in the form of a broadcast, and the transceiver module is also used to receive a detection request frame sent by a smart device, the detection request frame includes the device identification information of the smart device, the transceiver module also sends the device identification information to the server, and receives the first data corresponding to the device identification information sent by the server, wherein the first data is the first part of data participating in generating a key; a generation module, which is used to generate second data, and the second data is the second part of data participating in generating a key; a calculation module, which is used to calculate the key based on the first data and the second data, and the transceiver module is also used to send a detection reply frame for the detection request frame to the smart device, and the detection reply frame includes the second data and the encrypted data after encrypting the network password using the key.

[0045] Optionally, the access point further includes: a first interaction module, and in response to an operation performed by a user on the first interaction module, the transceiver module sends a beacon frame in a broadcasting form.

[0046] Optionally, the access point also includes: a prompt module, which is used to output to the user the device information of the smart device that wishes to access the network corresponding to the access point; a second interaction module, in response to the user's operation of allowing the smart device to access the network performed through the second interaction module, the transceiver module sends the device identification information to the server.

[0047] Optionally, the access point is a vehicle computer or a gateway device.

[0048] According to the twenty-second aspect of the present disclosure, a computing device is also proposed, including: a processor; and a memory on which executable code is stored, and when the executable code is executed by the processor, the processor executes the method described in any one of the first to ninth aspects of the present disclosure.

[0049] According to the twenty-third aspect of the present disclosure, a non-temporary machine-readable storage medium is also proposed, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes a method as described in any one of the first to ninth aspects of the present disclosure.

[0050] The present disclosure introduces a server to assist in generating keys and complete key exchange between devices, thereby improving the security of key exchange and communication encryption using keys. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components in the exemplary embodiments of the present disclosure.

[0052] Figure 1 A schematic structural diagram of a communication system according to an embodiment of the present disclosure is shown.

[0053] Figure 2 A schematic flow chart of a communication method according to an embodiment of the present disclosure is shown.

[0054] Figure 3 A schematic flowchart of a communication method according to another embodiment of the present disclosure is shown.

[0055] Figure 4 A schematic flowchart of a communication method according to another embodiment of the present disclosure is shown.

[0056] Figure 5 A schematic flowchart of a communication method according to another embodiment of the present disclosure is shown.

[0057] Figure 6 A schematic flow chart showing encrypted communication between a first device and a second device based on a key is shown.

[0058] Figure 7 A schematic flowchart of a communication method according to another embodiment of the present disclosure is shown.

[0059] Figure 8 A schematic flow chart of a key exchange method between a smart device and a vehicle computer is shown.

[0060] Fig. 9 A schematic block diagram showing the structure of a first device according to the present disclosure.

[0061] Fig.10 A schematic block diagram showing the structure of a second device according to the present disclosure.

[0062] Fig.11 A schematic block diagram showing the structure of a server according to the present disclosure.

[0063] Fig.12 A schematic block diagram showing the structure of a smart device according to an embodiment of the present disclosure.

[0064] Fig.13 A schematic block diagram showing the structure of an access point according to an embodiment of the present disclosure is shown.

[0065] Fig.14 A schematic diagram of the structure of a computing device that can be used to implement the above communication method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0066] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0067] A secret key is a parameter used in algorithms that convert plaintext to ciphertext or ciphertext to plaintext. Secret keys are divided into symmetric keys and asymmetric keys. Since most devices connected to the Internet of Things are resource-constrained devices, symmetric encryption algorithms with low computing power requirements are widely used. In symmetric encryption algorithms, both parties sending and receiving data use the same key to encrypt or decrypt plaintext or ciphertext, which requires the two communicating parties to exchange keys. If the two communicating parties exchange keys directly, there is a risk that the keys can be easily monitored.

[0068] In response to the security issues of key exchange in symmetric encryption, the present disclosure proposes a communication solution that introduces a server to assist in generating keys and completes key exchange between devices, thereby improving the security of key exchange and communication encryption using keys.

[0069] The key mentioned in the present disclosure preferably refers to a symmetric key, that is, both parties sending and receiving data use the same key to encrypt or decrypt plaintext or ciphertext. For the sake of distinction, the two communicating parties can be referred to as the first device and the second device.

[0070] In the present disclosure, the key is generated based on two parts of data. For the sake of distinction, the two parts of data involved in generating the key can be referred to as the first data and the second data, respectively. The communicating parties can calculate the first data and the second data based on the same key generation algorithm to obtain the key. Among them, the first data and the second data can be, but are not limited to, characters, numbers, a combination of characters and numbers, etc. of a predetermined length. The present disclosure does not limit the specific content of the first data and the second data, and the specific implementation of the key generation algorithm.

[0071] Figure 1 A schematic structural diagram of a communication system according to an embodiment of the present disclosure is shown.

[0072] like Figure 1 As shown, the communication system includes a first device 110, a second device 120 and a server 130. The first device 110 and the second device 120 can be various devices suitable for communication, such as but not limited to IoT devices. The server 130 can be regarded as a cloud service end, and the server 130 can be used to assist in realizing the key exchange between the first device 110 and the second device 120.

[0073] The first device 110 may store device identification information and first data. For example, the manufacturer may pre-set the device identification information and first data in the first device 110. The device identification information refers to information used to identify the identity of the first device 110, such as but not limited to a device identification code, a MAC address, etc. Optionally, the first data may not be pre-stored in the first device 110, but the first data may be obtained from the server 130 when needed.

[0074] The server 130 may store the device identification information and the first data for the first device 110 in association. As an example, before the first device 110 leaves the factory, the manufacturer may register the first device 100 with the server 130, so that the device identification information and the first data for the first device 110 are stored in association on the server 130.

[0075] For example, the manufacturer can upload the device identification information of the first device 100 to the server 130, and the server 130 generates first data for the device identification information, and saves the device identification information and the first data in association. The server 130 can also send the generated first data to the manufacturer so that the manufacturer presets the first data into the first device 100.

[0076] For another example, the manufacturer may generate the first data and preset the first data in the first device 110 , and the device identification information of the first device 110 and the first data may be uploaded to the server 130 , which may store the device identification information and the first data in association with each other.

[0077] The server 130 may store device identification information and first data corresponding to each device for multiple devices. For example, the server 130 may maintain a database containing the corresponding relationship between device identification information and first data. Optionally, the first data of different devices may be different.

[0078] The first device 110 and the second device 120 first perform a key exchange to determine the key used in the communication process, and then the first device 110 and the second device 120 can use the determined key to implement communication encryption.

[0079] The present disclosure implements key exchange with the help of the server 130. In the key exchange process, the first device 110 and the second device 120 do not transmit the key, but transmit the device identification information and the second data. The generation of the key depends on the first data and the second data. Therefore, even if the transmission content between the first device 110 and the second device 120 is maliciously monitored, the key cannot be obtained from the transmission content.

[0080] The implementation process of key exchange is exemplarily described below in conjunction with specific embodiments.

[0081] Example 1

[0082] Figure 2 A schematic flow chart of a communication method according to an embodiment of the present disclosure is shown.

[0083] See also Figure 2 In step S2110, the first device may send device identification information used to represent the identity of the first device to the second device. The first device may send the device identification information to the second device in plain text.

[0084] The second device may receive the device identification information sent by the first device. After receiving the device identification information, the second device may execute step S2210 to send the device identification information to the server.

[0085] As described above, the server can store the device identification information and the first data in association. Therefore, after receiving the device identification information sent by the second device, the server can perform step S2310 to search for the first data corresponding to the device identification information.

[0086] Optionally, after receiving the device identification information sent by the second device, the server can also verify the identity of the second device, and only execute step S2310 if the identity of the second device is legal. For example, when the second device sends device identification information to the server, it can carry AppKey (public key, equivalent to an account) and AppSecret (private key, equivalent to a password), and the server can verify the identity of the second device based on AppKey and AppSecret. Among them, AppKey and AppSecret can be obtained by the second device through registration. If the identity of the second device is illegal, the server can refuse to provide query services to the second device.

[0087] After finding the first data corresponding to the device identification information, the server may execute step S2320 to send the first data to the second device.

[0088] In this embodiment, the second device may execute step S2220 to generate the second data. The server may also execute step S2330 to generate the second data. The second data may be data generated in a variety of ways, such as data generated based on a random number generation algorithm, that is, random data. In the case where the second data is generated by the server, the server may also send the second data to the second device. For example, the server may send the generated second data together with the found first data to the second device.

[0089] The second device may execute step S2230 to calculate a key based on the first data and the second data. The present disclosure does not limit a specific method for calculating the key. For example, a hash algorithm may be used to calculate the key.

[0090] The second device may also execute step S2240 to send the second data to the first device. The second data may be sent to the first device in plain text. The present disclosure does not limit the execution order of step S2240 and step S2230.

[0091] After receiving the second data sent by the second device, the first device may perform step S2120 to calculate a key based on the first data and the second data. The key calculation method of the first device and the second device is the same, and the calculation method may be pre-agreed by both parties.

[0092] As described above, the first device may or may not be pre-installed with the first data. In the case where the first data is pre-installed in the first device, the first device may calculate the key based on the first data pre-stored in the first device and the received second data after receiving the second data sent by the second device. In the case where the first data is not pre-installed in the first device, the first device may send device identification information to the server, receive the first data corresponding to the device identification information sent by the server, and calculate the key based on the first data and the second data received from the second device.

[0093] Thus, the key exchange between the first device and the second device can be realized. In the entire key exchange process, the device identification information and the second data are transmitted between the first device and the second device. Therefore, even if the transmission process is monitored, the key cannot be obtained therefrom.

[0094] In fact, if you want to maliciously obtain the key, you must meet the following conditions at the same time: 1. Crack the first device or server to obtain the first data; 2. Monitor the communication process between the first device and the second device to obtain the second data currently used; 3. Reverse crack the code on the first device or the code on the second device to find out the key generation algorithm.

[0095] It can be seen that the present invention can greatly increase the threshold for attackers to crack the key by storing a part of the data (i.e., the first data) used to participate in generating the key on the server and realizing key exchange with the help of the server, thereby enhancing the security of subsequent encrypted communications using the key. The deployment is flexible and risks can be quickly resolved after being identified, thereby improving risk management capabilities.

[0096] Example 2

[0097] Figure 3A schematic flowchart of a communication method according to another embodiment of the present disclosure is shown.

[0098] The difference from the solution described in Example 1 is that in this embodiment, the server can calculate the key and send the calculated key to the second device. The following focuses on the differences between this embodiment and Example 1. The similarities can be found in the corresponding description of Example 1 and will not be repeated in this embodiment.

[0099] In this embodiment, the steps that can be executed by the first device (step S3110, step S3120) are the same as the steps that can be executed by the first device in Example 1 (step S2110, step S2120). For the implementation details of step S3110 and step S3120, please refer to the corresponding description of step S2110 and step S2120 in Example 1, which will not be repeated here.

[0100] After receiving the device identification information sent by the first device, the second device may execute step S3210 to upload the device identification information to the server.

[0101] After receiving the device identification information sent by the second device, the server may execute step S3310 to search for first data corresponding to the device identification information.

[0102] In this embodiment, the second device may execute step S3220 to generate the second data. The server may also execute step S3320 to generate the second data. The second data may be data generated in a variety of ways, such as data generated based on a random number generation algorithm, that is, random data. In the case where the second data is generated by the second device, the second device may also send the second data to the server. Optionally, the second device may send the generated second data together with the device identification information to the server.

[0103] The server may execute step S3330 to calculate a key based on the first data and the second data. The disclosure does not limit the specific method of calculating the key. The key generation algorithms of the first device and the server are the same, and the algorithm may be pre-agreed upon by both parties.

[0104] After calculating the key, the server can execute step S3340 to send the key to the second device. In order to ensure that the transmitted key is not stolen, the server can use a secure channel such as Hypertext Transfer Protocol Security (ie, https connection) to send the key to the second device.

[0105] Compared with Embodiment 1, the second device may not calculate the key, but obtain the key from the server, thereby reducing the requirements on the second device.

[0106] Example 3

[0107] Figure 4 A schematic flowchart of a communication method according to another embodiment of the present disclosure is shown.

[0108] The difference from the solution described in Example 1 is that in this embodiment, the second data can be generated by the first device. The following focuses on the differences between this embodiment and Example 1. The similarities can be found in the corresponding description of Example 1 and will not be repeated in this embodiment.

[0109] See also Figure 4 In step S4110, the first device may send device identification information and second data to the second device. The second data may be data generated by the first device, such as data generated by the first device based on multiple methods, such as data generated based on a random number generation algorithm, that is, random data. The device identification information and the second data may be sent to the second device together or in batches.

[0110] After receiving the device identification information sent by the first device, the second device may execute step S4210 to send the device identification information to the server.

[0111] After receiving the device identification information uploaded by the second device, the server may execute step S4310 to search for first data corresponding to the device identification information.

[0112] After finding the first data corresponding to the device identification information, the server may execute step S4320 to send the found first data to the second device.

[0113] After receiving the first data sent by the server, the second device may execute step S4220 to calculate the key based on the first data and the second data. The present disclosure does not limit the specific method of calculating the key.

[0114] The first device may perform step S2120 to calculate a key based on the first data and the second data, wherein the key calculation method of the first device and the second device is the same, and the calculation method may be pre-agreed by both parties.

[0115] As described above, the first device may or may not be pre-installed with the first data. In the case where the first data is pre-installed in the first device, the first device may calculate the key based on the first data pre-stored in the first device and the generated second data after generating the second data. In the case where the first data is not pre-installed in the first device, the first device may send device identification information to the server, receive the first data corresponding to the device identification information sent by the server, and calculate the key based on the first data and the generated second data.

[0116] Example 4

[0117] Figure 5 A schematic flowchart of a communication method according to another embodiment of the present disclosure is shown.

[0118] The difference from the solution described in Example 3 is that in this embodiment, the server can calculate the key and send the calculated key to the second device. The following focuses on the differences between this embodiment and Example 3. The similarities can be found in the corresponding description of Example 3 and will not be repeated in this embodiment.

[0119] In this embodiment, the steps that can be executed by the first device (step S5110, step S5120) are the same as the steps that can be executed by the first device in Example 3 (step S4110, step S4120). For the implementation details of step S5110 and step S5120, please refer to the corresponding description of step S4110 and step S4120 in Example 3, which will not be repeated here.

[0120] After receiving the device identification information and the second data sent by the first device, the second device may execute step S5210 to send the device identification information and the second data to the server. The second device may send the device identification information and the second data to the server together or in batches.

[0121] After receiving the device identification information sent by the second device, the server may execute step S5310 to search for first data corresponding to the device identification information.

[0122] After finding the first data corresponding to the device identification information, the server may execute step S5320 to calculate the key based on the first data and the second data. The present disclosure does not limit the specific method of calculating the key. The key generation algorithm of the first device and the server is the same, and the algorithm may be pre-agreed by both parties.

[0123] After calculating the key, the server can execute step S5330 to send the key to the second device. In order to ensure that the transmitted key is not stolen, the server can use a secure channel such as Hypertext Transfer Protocol Security (ie, https connection) to send the key to the second device.

[0124] Compared with Embodiment 3, the second device may not calculate the key, but obtain the key from the server, thereby reducing the requirements on the second device.

[0125] So far combined Figures 2 to 5 An exemplary description is given of the implementation process of key exchange between the first device and the second device.

[0126] Encrypted Communications

[0127] After the first device and the second device have exchanged keys, they can perform encrypted communication based on the obtained keys.

[0128] Figure 6 A schematic flow chart showing encrypted communication between a first device and a second device based on a key is shown.

[0129] See also Figure 6 , the second device may execute step S6210 to send the first message encrypted by the key to the first device. The first message refers to data encrypted by the key (ie, ciphertext), and the present disclosure does not limit the encryption algorithm used by the second device.

[0130] After receiving the first message, the first device may perform step S6110 to decrypt the first message sent by the second device using the key. The decryption algorithm mentioned here refers to the inverse algorithm of the encryption algorithm. The encryption algorithm and the decryption algorithm may be pre-agreed by the communicating parties.

[0131] The first device may also execute step S6120 to send the second message encrypted by the key to the second device, wherein the second message refers to the encrypted data (ie, ciphertext) encrypted by the key, and the present disclosure does not limit the encryption algorithm used by the first device.

[0132] After receiving the second message, the second device may execute step S6220 to decrypt the second message sent by the first device using the key.

[0133] In the present disclosure, the device only stores part of the data involved in generating the key, rather than the stored key, so the key cannot be directly obtained from the device, thereby reducing security risks; and because only the device identification code and random number are transmitted in plain text, man-in-the-middle attacks are prevented; similarly, because only the device identification code and random number are transmitted, malicious eavesdroppers are prevented from de-encoding the symmetric key from the transmitted content.

[0134] Application Examples

[0135] The communication scheme disclosed in the present invention can be used for the secure networking (i.e., networking) of smart devices, especially for smart devices that do not have a human-computer interaction interface (such as smart sockets, smart switches, etc.). Based on the communication scheme disclosed in the present invention, network configuration can be automatically achieved, and the security of the network configuration process can be improved.

[0136] Figure 7 A schematic flowchart of a communication method according to another embodiment of the present disclosure is shown.

[0137] The smart device 710 in this embodiment can be various devices suitable for accessing the network, such as but not limited to smart sockets, smart switches, smart speakers and other devices.

[0138] When the smart device 710 leaves the factory, the manufacturer may preset the device identification information and the first data into the smart device. As an example, the device identification information may include but is not limited to the manufacturer information, the information of the smart device 710 (such as the MAC address), etc. The first data refers to the partial data used to participate in the generation of the key, that is, the important factor of the key used to transmit the network password (such as the wifi password) during the network configuration process.

[0139] The server 730 can manage the relevant information of the plurality of smart devices 710. For example, before the smart device leaves the factory, the manufacturer can upload the device identification information and the first data of the smart device to the server 730, and the server 730 maintains a database including the corresponding relationship between the device identification information and the first data. Optionally, the first data can be generated by the server when the device identification information of the smart device is registered on the server.

[0140] As an example, the server 730 may provide a setting interface and a query interface, and the manufacturer may set specific information of the smart device (such as device identification information and first data) through the setting interface, and the access point 720 may query specific information of the device (such as querying the first data) through the query interface.

[0141] The access point 720 (Access Point, referred to as AP) can be regarded as a HUB (repeater) in a traditional wired network, and is also the most commonly used device for building a small wireless local area network. AP is equivalent to a bridge connecting the wired network and the wireless network. Its main function is to connect various wireless network clients together and then connect the wireless network to the Ethernet. In the present disclosure, an access point may refer to a wireless access point, such as a general term for wireless routers (including wireless gateways, wireless bridges) and other similar devices. Optionally, the access point may be, but is not limited to, a vehicle computer, a gateway device (such as a home gateway).

[0142] In this embodiment, the smart device 710 can be regarded as the first device mentioned above, and the access point 720 can be regarded as the second device mentioned above. The server 730 can store the device identification information of the smart device 710 and the first data in association.

[0143] The network configuration process is as follows.

[0144] During the network configuration process, the access point 720 may execute step S7210 to transmit a beacon frame (i.e., a beacon frame) in the form of a broadcast. For example, the access point 720 may periodically transmit a beacon frame. In addition to the information in the frame format that complies with the existing mechanism, the beacon frame may also include first identification information and / or second identification information. The first identification information may be regarded as a special mark bit, and the first identification information may be used to characterize that the access point 720 that sends the beacon frame is currently in the network configuration mode. The second identification information is used to identify the access point 720. For example, the second identification information may be the MAC address of the access point 720 or other information that can characterize the identity of the access point 720.

[0145] Optionally, the access point 720 may include an interaction module (for ease of distinction, it may be referred to as a first interaction module), and the first interaction module may be provided to the user in the form of a UI (User Interface) control, a physical button, etc. When the user performs a specific operation (such as clicking) through the first interaction module, the network configuration mode may be triggered, and the access point 720 executes S7210 to transmit a beacon frame to the outside in the form of a broadcast.

[0146] The smart device 710 may execute step S7110 to receive a beacon frame.

[0147] As described above, the beacon frame may include the first identification information. Therefore, the smart device 710 may filter the received signal by determining whether the received signal contains the first identification information, thereby filtering out the beacon frame containing the first identification information.

[0148] After receiving the beacon frame containing the first identification information, the smart device 710 may execute step S7120 to send a probe request frame (ie, a ProbeRequest frame) to the access point 720 .

[0149] The probe request frame includes device identification information for characterizing the identity of the smart device 710. Optionally, the probe request frame also includes second identification information, and the device identification information (e.g., the MAC address of the smart device) and the second identification information (e.g., the MAC address of the access point 720) in the probe request frame can be used to indicate that the smart device 710 expects to complete network configuration with the access point 720. Optionally, the probe request frame may also include first identification information.

[0150] After receiving the probe request frame, the access point 720 may execute step S7220 to send the device identification information in the probe request frame to the server 730 .

[0151] Optionally, the access point 720 may further include a second interaction module. The access point 720 may output to the user the device information of the smart device 710 that is expected to access the network corresponding to the access point, and the user may determine whether to allow the smart device 710 to access the network through the second interaction module. In response to the user's operation of allowing the smart device 710 to access the network through the second interaction module, the access point 720 may execute step S7220.

[0152] After receiving the probe request frame, the access point 720 may also execute step S7230 to generate second data. Here, the access point 720 may generate data in a variety of ways, such as generating data based on a random data generation algorithm, that is, generating random data. The order of executing step S7220 and step S7230 is not limited in this disclosure.

[0153] As an example, after receiving the detection request frame, the access point 720 can first filter according to the first identification information and / or the second identification information. For the detection request frame with the first identification information and / or the second identification information, the access point 720 can execute step S7220 and / or step S7230.

[0154] After receiving the device identification information, the server 730 may query the first data corresponding to the device identification information. After finding the first data, the server 730 may execute step S7310 to send the first data to the access point 720.

[0155] The access point 720 may perform step S7240 according to the first data obtained from the server 730 and the second data generated locally, and calculate a key based on the first data and the second data.

[0156] After calculating the key, the access point 720 can use the key to encrypt the network password (ie, the network access password, such as the wifi password), and the encrypted data can be attached to the probe response frame (ie, the ProbeResponse frame).

[0157] In step S7250, the access point 720 may send a probe reply frame to the smart device 710. The probe reply frame may be regarded as a reply made by the access point 720 to the received probe request frame. In addition to the encrypted network password, the probe reply frame also includes second data. The second data may be attached to the probe reply frame in plain text.

[0158] After receiving the detection reply frame, the smart device 710 may execute step S7130 to calculate a key based on the second data in the detection reply frame and the first data stored in the smart device 710, and use the key to decrypt the encrypted data to obtain the network password.

[0159] After obtaining the network password, the smart device 710 can execute step S7140 to complete the subsequent networking process based on the decrypted network password and access the network corresponding to the access point 720.

[0160] It should be noted that in this embodiment, by appropriately modifying the frame formats of beacon frames, probe request frames, and probe reply frames, the smart device can automatically obtain the network password (such as the wifi password) of the access point (such as the vehicle computer), thereby connecting to the access point and completing the automatic network configuration process. In this embodiment, the specific frame formats in the beacon frames, probe request frames, and probe reply frames appear during the network configuration process. In the case of non-network configuration, these customized contents may not exist in the relevant frames.

[0161] The following takes the key interaction between the smart device and the car computer as an example to illustrate the implementation process of the smart device automatically connecting to the wifi provided by the car computer.

[0162] Figure 8 A schematic flow chart of a key exchange method between a smart device and a vehicle computer is shown.

[0163] like Figure 8 As shown, device A is a wifi smart device that provides wifi access function, which can be but not limited to the smart socket shown in the figure. Device B is a car machine that can provide wifi.

[0164] The manufacturer of device A can register the manufacturer information and device information (including MAC address, etc.) to the cloud when the device leaves the factory, and pre-embed the SecurityNum (ie, the first data mentioned above) generated by the cloud on device A.

[0165] During the network configuration process, device A can send a device identification code to device B. After receiving the device identification code from device A, device B can generate a random number and upload the device identification code and the random number to the cloud.

[0166] The cloud can query the corresponding SecurityNum based on the device identification code, and then calculate the key based on the SecurityNum and the random number in the cloud and return it to device B.

[0167] Device B can use the key key to encrypt the wifi password and send the random number and encrypted data to device A.

[0168] Device A can calculate the key according to the reserved SecurityNum and the received random number, and can use the key to decrypt the encrypted data to get the wifi password. In this way, device A can automatically connect to device B's wifi based on the wifi password.

[0169] Fig. 9 A schematic block diagram of the structure of the first device according to the present disclosure is shown. The functional modules of the first device can be implemented by hardware, software, or a combination of hardware and software that implements the principles of the present invention. It can be understood by those skilled in the art that Fig. 9 The functional modules described can be combined or divided into sub-modules to implement the principles of the above invention. Therefore, the description herein can support any possible combination, division, or further limitation of the functional modules described herein.

[0170] The following is a brief description of the functional modules that the first device may have and the operations that each functional module may perform. For the details involved, please refer to the relevant description above and will not be repeated here.

[0171] In one embodiment of the present disclosure, the first device 800 may include a sending module 820 and a calculating module 840 .

[0172] The sending module 820 is used to send device identification information and second data to the second device, where the device identification information is used to characterize the identity of the first device, and the second data is part of the data involved in generating the key. The second data may be random data generated by the first device 800. Optionally, the first device 800 may further include a generating module for generating the second data.

[0173] The calculation module 840 is used to calculate the key based on the second data and the first data corresponding to the device identification information. The first data can be pre-stored in the first device 800, or can be obtained by the first device 800 from a server. For example, the first device 800 can send the device identification information to the server through the sending module 820 to obtain the first data corresponding to the device identification information from the server.

[0174] Optionally, the first device 800 may further include a storage module 810, and the storage module 810 is used to store device identification information and first data.

[0175] Optionally, the first device 800 may further include a receiving module 830, an encryption module and / or a decryption module. The encryption module may be used to encrypt the second message using the key, and the sending module 820 may send the encrypted second message to the second device. The receiving module 830 may receive the first message sent by the second device, and the decryption module may be used to decrypt the first message using the key.

[0176] In another embodiment of the present disclosure, the first device 800 may include a sending module 820 , a receiving module 830 , and a calculating module 840 .

[0177] The sending module 820 is used to send device identification information to the second device, where the device identification information is used to represent the identity of the first device.

[0178] The receiving module 830 is used to receive second data sent by the second device.

[0179] The calculation module 840 is used to calculate the key based on the second data and the first data corresponding to the device identification information. The first data can be pre-stored in the first device 800, or can be obtained by the first device 800 from a server. For example, the first device 800 may include a storage module 810, and the storage module 810 can store the device identification information and the first data. In this case, the calculation module 840 can calculate the key based on the received second data and the first data stored in the storage module 810. For another example, the first device 800 can also send the device identification information to the server through the sending module 820 to obtain the first data corresponding to the device identification information from the server. In this case, the calculation module 840 can calculate the key based on the received second data and the first data obtained from the server.

[0180] Optionally, the first device 800 may further include an encryption module and / or a decryption module. The encryption module may be used to encrypt the second message using a key, and the sending module 820 may send the encrypted second message to the second device. The receiving module 830 may receive the first message sent by the second device, and the decryption module may be used to decrypt the first message using the key.

[0181] Fig.10 A schematic block diagram of the structure of the second device according to the present disclosure is shown. The functional modules of the second device can be implemented by hardware, software, or a combination of hardware and software that implements the principles of the present invention. It can be understood by those skilled in the art that Fig.10 The functional modules described can be combined or divided into sub-modules to implement the principles of the above invention. Therefore, the description herein can support any possible combination, division, or further limitation of the functional modules described herein.

[0182] The following is a brief description of the functional modules that the second device can have and the operations that each functional module can perform. For the details involved, please refer to the relevant description above, which will not be repeated here.

[0183] In one embodiment of the present disclosure, the second device 900 may include a receiving module 910 and a sending module 920 .

[0184] As an example of the present disclosure, the receiving module 910 can receive device identification information sent by the first device, and the device identification information is used to characterize the identity of the first device. The sending module 920 can send the device identification information to the server. The receiving module 910 also receives a key sent by the server, and the key is obtained by the server based on the second data and the first data corresponding to the device identification information. The sending module 920 is also used to send the second data to the first device. The second data can be generated by the second device 900 or by the server. For example, the second device 900 may include a generation module, and the second data can be generated by the generation module. In this case, the sending module 920 sends the second data to the server in addition to sending the device identification information to the server. For another example, in the case where the second data is generated by the server, the receiving module 910 receives the second data in addition to receiving the key generated by the server.

[0185] As another example of the present disclosure, the receiving module 910 may receive device identification information and second data sent by the first device. The sending module 920 is used to send the device identification information and the second data to the server. The receiving module is also used to receive a key sent by the server, which is obtained by the server based on the second data and the first data corresponding to the device identification information.

[0186] Optionally, the second device 900 may further include an encryption module and / or a decryption module. The encryption module is used to encrypt the first message using a key, the sending module is also used to send the encrypted first message to the first device, the receiving module is also used to receive the second message sent by the first device, and the decryption module is used to decrypt the second message using the key.

[0187] In another embodiment of the present disclosure, the second device 900 may include a receiving module 910 , a sending module 920 , and a calculating module 930 .

[0188] As an example of the present disclosure, the receiving module 910 is used to receive device identification information sent by the first device, and the device identification information is used to characterize the identity of the first device. The sending module 920 is used to send the device identification information to the server, and the receiving module 910 is also used to receive the first data corresponding to the device identification information sent by the server. The calculation module 930 is used to calculate the key based on the first data and the second data. The sending module 920 is also used to send the second data to the first device. The second data can be data generated by the second device or data generated by the server. For example, the second device 900 can also include a generation module for generating the second data. For another example, the receiving module can also receive the second data sent by the server.

[0189] Optionally, the receiving module 910 may also receive a second message encrypted by a key sent by the first device, and the sending module 920 may also send the first message encrypted by the key to the first device. The second device may also include an encryption module and / or a decryption module. The encryption module may be used to encrypt the first message by using the key. The decryption module may be used to decrypt the received second message.

[0190] As another example of the present disclosure, the receiving module 910 is used to receive device identification information and second data sent by a first device, where the device identification information is used to characterize the identity of the first device, and the second data is partial data involved in generating a key.

[0191] The sending module 920 is used to send the device identification information to the server, and the receiving module 910 is also used to receive the first data corresponding to the device identification information sent by the server. The calculating module 930 is used to calculate the key based on the first data and the second data.

[0192] Optionally, the receiving module 910 may also receive a second message encrypted by a key sent by the first device, and the sending module 920 may also send the first message encrypted by the key to the first device. The second device may also include an encryption module and / or a decryption module. The encryption module may be used to encrypt the first message by using the key. The decryption module may be used to decrypt the received second message.

[0193] Fig.11 A schematic block diagram of the structure of a server according to the present disclosure is shown. The functional modules of the server can be implemented by hardware, software, or a combination of hardware and software that implements the principles of the present invention. It can be understood by those skilled in the art that Fig.11The functional modules described can be combined or divided into sub-modules to implement the principles of the above invention. Therefore, the description herein can support any possible combination, division, or further limitation of the functional modules described herein.

[0194] The following is a brief description of the functional modules that a server may have and the operations that each functional module may perform. For the details involved, please refer to the relevant description above and will not be repeated here.

[0195] In one embodiment of the present disclosure, the server 1000 includes a storage module 1010 , a receiving module 1020 , a search module 1030 , and a sending module 1060 .

[0196] The storage module 1010 is used to store the device identification information and the first data for the first device in association, wherein the device identification information is used to identify the identity of the first device, and the first data is part of the data involved in generating the key. The receiving module 1020 is used to receive the device identification information sent by the second device. The search module 1030 is used to search for the first data corresponding to the device identification information. The sending module 1060 is used to send the found first data to the second device.

[0197] In another embodiment of the present disclosure, the server 1000 includes a storage module 1010 , a receiving module 1020 , a search module 1030 , a calculation module 1050 , and a sending module 1060 .

[0198] The storage module 1010 is used to store the device identification information and the first data for the first device in association, wherein the device identification information is used to identify the identity of the first device, and the first data is part of the data involved in generating the key. The receiving module 1020 is used to receive the device identification information and the second data sent by the second device. The search module 1030 is used to search for the first data corresponding to the device identification information. The calculation module 1050 is used to calculate the key based on the second data and the first data. The sending module 1060 is used to send the key to the second device.

[0199] In yet another embodiment of the present disclosure, the server 1000 includes a storage module 1010 , a receiving module 1020 , a searching module 1030 , a generating module 1040 , a calculating module 1050 , and a sending module 1060 .

[0200] The storage module 1010 is used to store the device identification information and the first data for the first device in association, wherein the device identification information is used to identify the identity of the first device, and the first data is part of the data involved in generating the key. The receiving module 1020 is used to receive the device identification information sent by the second device. The search module 1030 is used to search for the first data corresponding to the device identification information. The generation module 1040 is used to generate the second data for participating in generating the key. The calculation module 1050 is used to calculate the key based on the second data and the first data. The sending module 1060 is used to send the key and the second data to the second device.

[0201] Fig.12 A schematic block diagram of the structure of an intelligent device according to an embodiment of the present disclosure is shown. The functional modules of the intelligent device can be implemented by hardware, software, or a combination of hardware and software that implements the principles of the present invention. It can be understood by those skilled in the art that Fig.12 The functional modules described can be combined or divided into sub-modules to implement the principles of the above invention. Therefore, the description herein can support any possible combination, division, or further limitation of the functional modules described herein.

[0202] The following is a brief description of the functional modules that a smart device may have and the operations that each functional module may perform. For the details involved, please refer to the relevant description above and will not be repeated here.

[0203] See also Fig.12 The smart device 1100 includes a storage module 1110 , a transceiver module 1120 , a calculation module 1130 , a decryption module 1140 and a networking module 1150 .

[0204] The storage module 1110 is used to store device identification information and first data, where the device identification information is used to identify the identity of the smart device, and the first data is the first part of data involved in generating a key.

[0205] The transceiver module 1120 is used to send a probe request frame to the access point in response to receiving a beacon frame sent by the access point, the probe request frame including device identification information, and the transceiver module is also used to receive a probe reply frame sent by the access point for the probe request frame, the probe reply frame including second data and encrypted data after encrypting the network password using a key, the second data being the second part of data involved in generating the key.

[0206] The calculation module 1130 is used to calculate a key based on the first data and the second data.

[0207] The decryption module 1140 is used to decrypt the encrypted data based on the calculated key to obtain the network password.

[0208] The networking module 1150 is used to access a network corresponding to an access point based on a network password.

[0209] Fig.13 The schematic block diagram of the structure of an access point according to an embodiment of the present disclosure is shown. The functional modules of the access point can be implemented by hardware, software or a combination of hardware and software that implements the principles of the present invention. It can be understood by those skilled in the art that Fig.13 The functional modules described can be combined or divided into sub-modules to implement the principles of the above invention. Therefore, the description herein can support any possible combination, division, or further limitation of the functional modules described herein.

[0210] The following briefly describes the functional modules that an access point may have and the operations that each functional module may perform. For the details involved, please refer to the above related descriptions, which will not be repeated here.

[0211] See also Fig.13 The access point 1200 includes a transceiver module 1210 , a generation module 1220 and a calculation module 1230 .

[0212] The transceiver module 1210 is used to send beacon frames in the form of broadcast. The transceiver module is also used to receive detection request frames sent by smart devices, which include device identification information of the smart device. The transceiver module also sends the device identification information to the server and receives the first data corresponding to the device identification information sent by the server, wherein the first data is the first part of data involved in generating the key.

[0213] The generating module 1220 is used to generate second data, where the second data is a second part of data involved in generating the key.

[0214] The calculation module 1230 is used to calculate the key based on the first data and the second data. The transceiver module 1210 is also used to send a detection reply frame to the smart device for the detection request frame, the detection reply frame includes the second data and the encrypted data obtained by encrypting the network password using the key.

[0215] The access point 1200 may further include a first interaction module. In response to an operation performed by a user on the first interaction module, the transceiver module sends a beacon frame in a broadcasting form.

[0216] The access point 1200 may also include a prompt module and a second interaction module. The prompt module is used to output device information of the smart device that is expected to access the network corresponding to the access point to the user. In response to the user's operation of allowing the smart device to access the network performed through the second interaction module, the transceiver module sends the device identification information to the server.

[0217] Fig.14 A schematic diagram of the structure of a computing device that can be used to implement the above communication method according to an embodiment of the present invention is shown.

[0218] See also Fig.14 , the computing device 1300 includes a memory 1310 and a processor 1320 .

[0219] The processor 1320 may be a multi-core processor or may include multiple processors. In some embodiments, the processor 1320 may include a general-purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), etc. In some embodiments, the processor 1320 may be implemented using a customized circuit, such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).

[0220] The memory 1310 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 1320 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at runtime. In addition, the memory 1310 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 1310 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0221] The memory 1310 stores executable codes, and when the executable codes are processed by the processor 1320 , the processor 1320 can execute the communication method mentioned above.

[0222] The communication method, device, access point, server, and system according to the present invention have been described above in detail with reference to the accompanying drawings.

[0223] In addition, the method according to the present invention may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing the above steps defined in the above method of the present invention.

[0224] Alternatively, the present invention may also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or computing device, server, etc.), the processor executes the various steps of the above-mentioned method according to the present invention.

[0225] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or a combination of both.

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

[0227] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A smart device, characterized in that: include: A storage module, used to store device identification information and first data, wherein the device identification information is used to identify the identity of the smart device, and the first data is a first part of data involved in generating a key; a transceiver module, configured to send a probe request frame to the access point in response to receiving a beacon frame sent by the access point, wherein the probe request frame includes the device identification information, and the transceiver module is further configured to receive a probe reply frame sent by the access point in response to the probe request frame, wherein the probe reply frame includes second data and encrypted data obtained by encrypting a network password using a key, wherein the second data is a second part of data involved in generating the key; wherein the key is calculated by the access point based on the second data and first data corresponding to the device identification information obtained from a server; A calculation module, used for calculating a key based on the first data and the second data; wherein the first data and the second data are characters, numbers, or a combination of characters and numbers of a predetermined length; a decryption module, configured to decrypt the encrypted data based on the calculated key to obtain a network password; and The networking module is used to access the network corresponding to the access point based on the network password.

2. The smart device according to claim 1, characterized in that: The beacon frame includes first identification information and / or second identification information for identifying the access point, The probe request frame further includes the first identification information and / or the second identification information.

3. An access point, characterized in that: include: A transceiver module, used to send a beacon frame in the form of broadcast, the transceiver module is also used to receive a detection request frame sent by a smart device, the detection request frame includes device identification information of the smart device, the transceiver module also sends the device identification information to a server, and receives first data corresponding to the device identification information sent by the server, wherein the first data is a first part of data participating in generating a key; A generating module, used to generate second data, where the second data is a second part of data involved in generating a key; A calculation module, configured to calculate a key based on the first data and the second data, wherein the first data and the second data are characters, numbers, or a combination of characters and numbers of a predetermined length; The transceiver module is also used to send a detection reply frame for the detection request frame to the smart device, and the detection reply frame includes the second data and encrypted data after the network password is encrypted using the key, so that the smart device calculates the key according to the first data and the second data, decrypts the encrypted data based on the calculated key to obtain the network password, and accesses the network corresponding to the access point based on the network password.

4. The access point according to claim 3, characterized in that: Also includes: The first interaction module, in response to an operation performed by a user on the first interaction module, the transceiver module sends a beacon frame in the form of broadcasting.

5. The access point according to claim 3, characterized in that: Also includes: A prompt module, used to output to the user device information of the smart device that is expected to access the network corresponding to the access point; The second interaction module is configured to send the device identification information to the server in response to an operation performed by the user through the second interaction module to allow the smart device to access the network.

6. The access point according to claim 3, characterized in that: The access point is a vehicle computer or a gateway device.