Communication method and device of cleaning equipment, cleaning equipment and medium

By using a key to encrypt communication between the host and the base station of the cleaning device, the problem of communication data leakage of the cleaning device is solved and communication security is improved.

CN120050650APending Publication Date: 2025-05-27BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311585538.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-24
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

When the host of the cleaning device communicates with the base station, the transmitted data is easily leaked, and there is a problem of low security.

Method used

The communication data is encrypted and decrypted by determining and using a key between the host and the base station of the cleaning device, ensuring the security of the data during transmission.

Benefits of technology

By encrypting communication, data transmitted between the host and the base station is difficult to decrypt even if it is stolen, thereby improving the security of communication and preventing data leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120050650A_ABST
    Figure CN120050650A_ABST
Patent Text Reader

Abstract

The invention relates to a communication method and device of cleaning equipment, the cleaning equipment and a medium. The communication method of the cleaning equipment comprises the following steps: when communication with a base station of the cleaning equipment is needed, determining a first key; and performing encrypted communication with the base station by using the first key. And when the host of the cleaning equipment needs to communicate with the base station, encrypting and decrypting the data through the first key, and determining the first key. And the host performs encrypted communication with the base station by using the first key, so that the data transmitted in the communication process is encrypted data. As the data transmitted between the host and the base station is encrypted data, even if the data is stolen, the data is difficult to decrypt and is not easy to leak, so that the security of communication is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of cleaning equipment, and in particular, to a communication method, device, cleaning equipment and medium for cleaning equipment. Background Art

[0002] Currently, with the development of cleaning equipment, cleaning equipment can automatically clean the dirt indoors without human control, saving users' time. Due to the increasing demands of users, during the process of cleaning dirt, the host of the cleaning equipment needs to communicate with the base station of the cleaning equipment to implement corresponding functions. However, during the communication between the host and the base station, the transmitted data is prone to leakage, resulting in low security. Summary of the Invention

[0003] To overcome the problems existing in the related art, the present disclosure provides a communication method, device, cleaning equipment and medium for cleaning equipment.

[0004] According to the first aspect of the embodiments of the present disclosure, a communication method for cleaning equipment is provided, which is applied to the host of the cleaning equipment. The communication method for cleaning equipment includes:

[0005] When communicating with the base station of the cleaning equipment is required, determine a first key;

[0006] Perform encrypted communication with the base station using the first key.

[0007] In some embodiments of the present disclosure, the performing encrypted communication with the base station using the first key includes:

[0008] When it is required to send first target data to the base station, encrypt the first target data using the first key to obtain first encrypted data;

[0009] Send the first encrypted data to the base station; and / or,

[0010] When receiving second encrypted data sent by the base station, decrypt the second encrypted data using the first key to obtain second target data.

[0011] In some embodiments of the present disclosure, the encryption algorithm for the encrypted communication is a symmetric encryption algorithm.

[0012] In some embodiments of the present disclosure, before the determining the first key, the communication method for cleaning equipment further includes:

[0013] Pair with the base station;

[0014] Receive first identification information sent by the base station;

[0015] Generate the first key according to the first identification information and the second identification information of the host.

[0016] In some embodiments of the present disclosure, after pairing with the base station, the communication method of the cleaning device further includes:

[0017] Obtain a first random number sent by a configuration device;

[0018] The generating the first key according to the first identification information and the second identification information of the host includes:

[0019] Generate the first key by using the first random number, the first identification information, and the second identification information with the hash-based message authentication code algorithm.

[0020] In some embodiments of the present disclosure, after pairing with the base station, the communication method of the cleaning device further includes:

[0021] Send the second identification information to the base station.

[0022] In some embodiments of the present disclosure, before determining the first key, the communication method of the cleaning device further includes:

[0023] During the initialization process, in response to a user operation, pair with the base station;

[0024] Perform key negotiation with the base station to generate the first key.

[0025] In some embodiments of the present disclosure, the performing key negotiation with the base station to generate the first key includes:

[0026] Generate a second random number;

[0027] Receive a first public key sent by the base station;

[0028] Generate the first key according to the second random number and the first public key.

[0029] In some embodiments of the present disclosure, the communication method of the cleaning device further includes:

[0030] Obtain a base point;

[0031] Generate a second public key according to the base point and the second random number;

[0032] Send the second public key to the base station.

[0033] According to the second aspect of the embodiments of the present disclosure, there is provided a communication method for a cleaning device, which is applied to a base station of the cleaning device. The communication method of the cleaning device includes:

[0034] When communication with the host of the cleaning device is required, determine a second key;

[0035] Perform encrypted communication with the host using the second key.

[0036] In some embodiments of the present disclosure, the performing encrypted communication with the host using the second key includes:

[0037] When it is necessary to send second target data to the host, encrypt the second target data using the second key to obtain second encrypted data;

[0038] Send the second encrypted data to the host; and / or,

[0039] When receiving first encrypted data sent by the host, decrypt the first encrypted data using the second key to obtain first target data.

[0040] In some embodiments of the present disclosure, before determining the second key, the communication method of the cleaning device further includes:

[0041] Pair with the host;

[0042] Receive second identification information sent by the host;

[0043] Generate the second key according to the first identification information of the base station and the second identification information.

[0044] In some embodiments of the present disclosure, after pairing with the host, the communication method of the cleaning device further includes:

[0045] Obtain a first random number sent by a configuration device;

[0046] The generating the second key according to the first identification information of the base station and the second identification information includes:

[0047] Generate the second key according to the first random number, the first identification information and the second identification information by using the hash-based message authentication code algorithm.

[0048] In some embodiments of the present disclosure, after pairing with the host, the communication method of the cleaning device further includes:

[0049] Send the first identification information to the host.

[0050] In some embodiments of the present disclosure, before determining the second key, the communication method of the cleaning device further includes:

[0051] During the initialization process, in response to the user's operation, pair with the host;

[0052] Negotiate a key with the host to generate the second key.

[0053] In some embodiments of the present disclosure, the negotiating a key with the host to generate the second key includes:

[0054] Generate a third random number;

[0055] Receive the second public key sent by the host;

[0056] Generate the second key according to the third random number and the second public key.

[0057] In some embodiments of the present disclosure, the communication method of the cleaning device further includes:

[0058] Obtain a base point;

[0059] Generate a first public key according to the base point and the third random number;

[0060] Send the first public key to the host.

[0061] According to the third aspect of the embodiments of the present disclosure, there is provided a communication device for a cleaning device, which is applied to the host of the cleaning device. The communication device of the cleaning device includes:

[0062] A first determination module, configured to determine a first key when communication with the base station of the cleaning device is required;

[0063] A first communication module, configured to perform encrypted communication with the base station using the first key.

[0064] According to the fourth aspect of the embodiments of the present disclosure, there is provided a communication device for a cleaning device, which is applied to the base station of the cleaning device. The communication device of the cleaning device includes:

[0065] A second determination module, configured to determine a second key when communication with the host of the cleaning device is required;

[0066] A second communication module, configured to perform encrypted communication with the host using the second key.

[0067] According to the fifth aspect of the embodiments of the present disclosure, there is provided a cleaning device, which includes a host and a base station;

[0068] The host includes a first processor and a first memory for storing executable instructions of the first processor;

[0069] Wherein, the first processor is configured to execute:

[0070] When communication with the base station is required, determine a first key;

[0071] Perform encrypted communication with the base station using the first key;

[0072] The base station includes a second processor and a second memory for storing executable instructions of the second processor;

[0073] Wherein, the second processor is configured to execute:

[0074] When communication with the host is required, determine a second key;

[0075] Perform encrypted communication with the host using the second key.

[0076] According to a sixth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, which when the instructions in the storage medium are executed by a processor of a terminal, enables the terminal to execute the communication method of the cleaning device as described above.

[0077] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

[0078] When the host of the cleaning device needs to communicate with the base station, the data is encrypted and decrypted using the first key, and the first key is determined. The host performs encrypted communication with the base station using the first key, so that the data transmitted during the communication process is encrypted data. Since the data transmitted between the host and the base station is encrypted data, even if the data is stolen, it is not easily leaked because it is difficult to decrypt, thereby improving the security of the communication.

[0079] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.

[0081] Figure 1-1 is a schematic diagram of data transmission;

[0082] Figure 1-2 is another schematic diagram of data transmission;

[0083] Figure 1-3 is another schematic diagram of data transmission;

[0084] Figure 2It is a schematic flowchart of a communication method of a cleaning device shown according to an exemplary embodiment;

[0085] Figure 3 It is a schematic flowchart of a communication method of a cleaning device shown according to another exemplary embodiment;

[0086] Figure 4 It is a schematic flowchart of a communication method of a cleaning device shown according to another exemplary embodiment;

[0087] Figure 5 It is a schematic flowchart of a communication method of a cleaning device shown according to another exemplary embodiment;

[0088] Figure 6 It is a schematic flowchart of a communication method of a cleaning device shown according to another exemplary embodiment;

[0089] Figure 7 It is a schematic flowchart of a communication method of a cleaning device shown according to another exemplary embodiment;

[0090] Figure 8 It is a schematic flowchart of a communication method of a cleaning device shown according to another exemplary embodiment;

[0091] Figure 9 It is a schematic flowchart of a communication method of a cleaning device shown according to another exemplary embodiment;

[0092] Figure 10 It is a schematic diagram of key negotiation shown according to an exemplary embodiment;

[0093] Figure 11 It is a schematic flowchart of a communication method of a cleaning device shown according to another exemplary embodiment;

[0094] Figure 12 It is a schematic flowchart of a communication method of a cleaning device shown according to another exemplary embodiment;

[0095] Figure 13 It is a schematic flowchart of a communication method of a cleaning device shown according to another exemplary embodiment;

[0096] Figure 14 It is a block diagram of a communication device of a cleaning device shown according to an exemplary embodiment;

[0097] Figure 15 It is a block diagram of a communication device of a cleaning device shown according to another exemplary embodiment;

[0098] Figure 16 It is a block diagram of an electronic device shown according to an exemplary embodiment.

[0099] In the figure:

[0100] 100 - First determination module; 150 - First communication module; 200 - Second determination module; 250 - Second communication module; 400 - Electronic device; 402 - Processing component; 404 - Memory; 406 - Power supply component; 408 - Multimedia component; 410 - Audio component; 412 - Input / output interface; 414 - Sensor component; 416 - Communication component; 420 - Processor. Detailed implementation manners

[0101] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0102] Currently, with the development of cleaning devices, cleaning devices such as floor-sweeping robots and floor-washing robots can automatically clean the dirt indoors without human control, saving the user's time. To improve the cleaning effect of the cleaning device, a camera is installed in the main body of the cleaning device, and the camera can collect image information of the indoor environment. According to the collected image information, the main body can better identify furniture, obstacles, and floor types, thereby effectively planning the cleaning path and enhancing the effect of cleaning dirt. Due to the increasing user requirements, during the process of cleaning dirt, the main body of the cleaning device needs to communicate with the base station of the cleaning device to implement corresponding functions. For example, during the processes of charging, cleaning, and voice control of the main body, the main body needs to communicate with the base station.

[0103] In the related art, during the communication between the main body and the base station, the transmitted data is not encrypted. As Figure 1-1 shown, the logic of data transmission can be, for example, two types, and the data transmission time in each logic is 2.25 ms, and the data is represented in the form of 0 and 1. In the first logic, data is transmitted in the first 1.5 ms. In the second logic, data is transmitted in the first 0.75 ms. As Figure 1-2 shown, the data transmission time is 4 ms, and data is transmitted in the first 3 ms. As Figure 1-3As shown, the time for data transmission including status information is 4 ms. In the first 3 ms, data including status information is transmitted, and after the transmission of data including status information is completed, data including instructions is transmitted. However, during the communication between the host and the base station, if the unencrypted data transmitted is stolen, the user's information can be learned from the stolen data. For example, by stealing the image information collected by the camera, the user's indoor environment information can be learned. Therefore, the data during the communication between the host and the base station will be leaked, and there is a problem of low communication security.

[0104] To solve the above technical problems, the present disclosure provides a communication method for a cleaning device. During the communication between the host and the base station of the cleaning device, the data is encrypted and decrypted by a key, so that the data transmitted during the communication process is encrypted data. When the data is stolen, since it is impossible to determine the key used for data encryption, it is difficult to decrypt the data. Since it is difficult to decrypt the data transmitted between the host and the base station, even if the data is stolen, it is not easily leaked, thereby improving the communication security.

[0105] For ease of understanding, first, the cleaning device of the present disclosure is described. The cleaning device includes a host and a base station. After the host and the base station are paired, the host can generate a first key and store the first key in a first memory, and the base station can generate a second key and store the second key in a second memory. The first memory and the second memory can be, for example, secure chips. During the communication process, the host and the base station can use the first key and the second key to perform encrypted communication in infrared, radio frequency, etc. ways to improve the communication security.

[0106] An embodiment of the present disclosure provides a communication method for a cleaning device, which is applied to the host of the cleaning device, as Figure 2 shown, the method includes:

[0107] S200. When it is necessary to communicate with the base station of the cleaning device, determine the first key.

[0108] S300. Perform encrypted communication with the base station using the first key.

[0109] In this embodiment, when the host of the cleaning device needs to communicate with the base station, the data is encrypted and decrypted by the first key to determine the first key. The host performs encrypted communication with the base station using the first key, so that the data transmitted during the communication process is encrypted data. Since the data transmitted between the host and the base station is encrypted data, even if the data is stolen, it is not easily leaked because it is difficult to decrypt, thereby improving the communication security.

[0110] Exemplarily, the need to communicate with the base station of the cleaning device in step S200 may be a situation where the host needs to be charged, cleaned, controlled by voice, etc.

[0111] Exemplarily, the determination of the first key in step S200 may be to directly read the first key stored in the first memory of the host, or to temporarily generate the first key according to a preset rule.

[0112] In one embodiment, the encrypted communication with the base station using the first key in step S300 can be determined in the following manner:

[0113] When the first target data needs to be sent to the base station, encrypt the first target data with the first key to obtain the first encrypted data.

[0114] Send the first encrypted data to the base station.

[0115] In this embodiment, when the host needs to send the first target data to the base station, if the first target data is directly transmitted, the user's information will be leaked after the first target data is stolen. Encrypt the first target data with the determined first key to obtain the first encrypted data, and send the first encrypted data to the base station. By encrypting the first target data with the first key and then sending it to the base station, even if the first encrypted data is stolen, it is difficult to leak the user's information, thereby improving the security of communication.

[0116] Exemplarily, after the first encrypted data is sent to the base station, the host will receive the first response data from the base station for the first encrypted data.

[0117] In one embodiment, the encrypted communication with the base station using the first key in step S300 can also be determined in the following manner:

[0118] When the second encrypted data sent by the base station is received, decrypt the second encrypted data with the first key to obtain the second target data.

[0119] In this embodiment, when the second encrypted data sent by the base station is received, since the second target data has been encrypted, the second target data cannot be directly determined. Decrypt the second encrypted data with the first key to obtain the second target data for performing operations corresponding to the second target data. By decrypting the second encrypted data sent by the base station with the first key, it is avoided that the second target data cannot be determined to prevent information leakage, thereby improving the reliability of communication.

[0120] Exemplarily, after the second encrypted data sent by the base station is received, the host will send the second response data for the second encrypted data to the base station.

[0121] In one embodiment, the encryption algorithm for encrypted communication is a symmetric encryption algorithm. Among them, the first key in the host is the same as the second key in the base station.

[0122] In this embodiment, since the host and the base station use a symmetric encryption algorithm to encrypt the first target data and the second target data, the host and the base station only need to use the same key for encrypted communication, thereby reducing the complexity of communication.

[0123] Exemplarily, the symmetric encryption algorithm can be, for example, the Advanced Encryption Standard (AES) algorithm.

[0124] It can be understood that the encryption algorithm for encrypted communication can also be an asymmetric encryption algorithm. In the asymmetric encryption algorithm, since the first key of the host is different from the second key of the base station, the security of communication can be further improved.

[0125] In one embodiment, as Figure 3 shown, before determining the first key in step S200, the communication method of the cleaning device further includes:

[0126] S100. Pair with the base station.

[0127] S110. Receive the first identification information sent by the base station.

[0128] S120. Generate a first key according to the first identification information and the second identification information of the host.

[0129] In this embodiment, since the host and the base station need to use the first key for encryption during the communication process, the first key needs to be generated before determining the stored first key. The host pairs with the base station to transmit information with the base station to generate the first key. Receive the first identification information sent by the base station and generate the first key according to the first identification information and the second identification information, so that the first key is unique. Encrypted communication is carried out with the unique first key, reducing the possibility of the first key being deciphered, thereby improving the security of communication.

[0130] Exemplarily, the first identification information can be the Universally Unique Identifier (UUID) of the base station, or information with a unique identifier such as the Serial Number (SN) of the base station. The second identification information can be the Universally Unique Identifier of the host, or information with a unique identifier such as the serial number of the host.

[0131] Exemplarily, steps S100 to S120 may be executed during the production process of the cleaning device. Under the control of the configuration device during the production process, the host can be paired with the base station. After the host is paired with the base station, a first key is generated. After the base station is paired with the host, a second key is generated. Since the host and the base station have been paired and their respective keys have been generated after leaving the factory, the user does not need to pair the host and the base station after turning on the cleaning device for the first time, thus improving the user experience.

[0132] In one embodiment, after pairing with the base station in step S100, the communication method of the cleaning device further includes:

[0133] Obtaining a first random number sent by the configuration device.

[0134] The determination of the first key in step S120 based on the first identification information and the second identification information of the host is determined as follows:

[0135] Based on the first random number, the first identification information, and the second identification information, a first key is generated using the Hash-based Message Authentication Code (HMAC) algorithm.

[0136] In this embodiment, during the production process of the cleaning device, the configuration device generates a first random number and sends the first random number to the host. The host generates a first key using the Hash-based Message Authentication Code algorithm based on the first random number, the first identification information, and the second identification information. Since the first random number is added in the process of generating the first key, the possibility of the first key being deciphered is reduced, thereby improving the security of communication.

[0137] It can be understood that in addition to generating the first key using the Hash-based Message Authentication Code algorithm based on the first random number, the first identification information, and the second identification information, the first key can also be generated only based on the first identification information and the second identification information, which is not limited herein.

[0138] In one embodiment, after pairing with the base station in step S100, the communication method of the cleaning device further includes:

[0139] Sending the second identification information to the base station.

[0140] In this embodiment, by sending the second identification information to the base station, the base station can generate the same key for symmetric encryption based on the first identification information and the second identification information, thereby reducing the complexity of communication.

[0141] In one embodiment, as Figure 4 shown, before determining the first key in step S200, the communication method of the cleaning device further includes:

[0142] S130. During the initialization process, in response to the user's operation, pair with the base station.

[0143] S140. Conduct key negotiation with the base station to generate a first key.

[0144] In this embodiment, during the initialization process, in response to the user's operation on the cleaning device, the host pairs with the base station. After pairing, the host and the base station conduct key negotiation to generate a first key. By generating the first key during the initialization process, it is avoided that generating the first key during the production process affects the production of the cleaning device, thereby improving the production efficiency of the cleaning device. At the same time, since the first key can be generated during the initialization process after the production process, the flexibility of key generation is improved.

[0145] Exemplarily, the initialization process of step S130 can be that after the user first purchases the cleaning device, the host and the base station are turned on, and an operation is performed on the application program corresponding to the cleaning device to pair the host and the base station. Or, it can also be that during the use of the cleaning device by the user, the host and the base station are restored to the factory settings through the application program corresponding to the cleaning device, and an operation is performed on the application program to pair the host and the base station. Among them, when the host and / or the base station is restored to the factory settings, the host will delete the stored first key, and the base station will delete the stored second key. In this way, in the case where the host or the base station is damaged, only the host or the base station is replaced, and the old host is paired with the new base station or the new host is paired with the old base station. Under the operation of the user on the application program, the old host and the new base station conduct key negotiation to generate a first key, or the new host and the old base station conduct key negotiation to generate a first key. At the same time, the new base station and the old host conduct key negotiation to generate a second key, or the old base station and the new host conduct key negotiation to generate a second key. Since the process of generating the first key and the second key can be realized during the initialization process, the problem of replacing both the host and the base station when one of them is damaged is avoided, thereby reducing the complexity of cleaning device maintenance.

[0146] In one embodiment, the conducting key negotiation with the base station in step S140 to generate a first key includes:

[0147] Generate a second random number.

[0148] Receive the first public key sent by the base station.

[0149] Generate a first key according to the second random number and the first public key.

[0150] In this embodiment, during the process of key negotiation, a second random number is generated. The first public key sent by the base station is received, and a first key is generated based on the second random number and the first public key. Since the second random number and the first public key have a high degree of randomness, the first key generated based on the second random number and the first public key is difficult to decipher, thereby improving the security of communication.

[0151] In one embodiment, after generating the second random number in the above steps, the communication method of the cleaning device further includes:

[0152] Obtain a base point.

[0153] Generate a second public key according to the base point and the second random number.

[0154] Send the second public key to the base station.

[0155] In this embodiment, by sending the second public key generated according to the base point and the second random number to the base station, the base station can generate the same second key for symmetric encryption according to the second public key and the third random number, thereby reducing the complexity of communication.

[0156] Exemplarily, during the process of key negotiation between the host and the base station, the Elliptic Curve Diffie-Hellman (ECDH) algorithm can be used for key negotiation. Obtaining the base point in the above steps can be obtaining the base point on the elliptic curve of the Elliptic Curve Diffie-Hellman algorithm.

[0157] Exemplarily, during the process of key negotiation between the host and the base station, it can be that the host initiates a key negotiation request to the base station. In response to the key negotiation request initiated by the host, the base station sends the first public key to the host, and the host receives the first public key sent by the base station. After receiving the first public key, the host sends the second public key to the base station.

[0158] An embodiment of the present disclosure provides a communication method for a cleaning device, which is applied to the host of the cleaning device, as Figure 5 shown, the method includes:

[0159] S400. Pair with the base station.

[0160] S410. Obtain the first random number sent by the configuration device.

[0161] S420. Receive the first identification information sent by the base station.

[0162] S430. Send the second identification information to the base station.

[0163] S440. Generate a first key according to the first random number, the first identification information, and the second identification information.

[0164] S450. When communication with the base station is required, determine the first key.

[0165] S460. When the first target data needs to be sent to the base station, encrypt the first target data with the first key to obtain the first encrypted data.

[0166] S470. Send the first encrypted data to the base station.

[0167] S480. When the second encrypted data sent by the base station is received, decrypt the second encrypted data with the first key to obtain the second target data.

[0168] In this embodiment, during the production process, the host is paired with the base station. Obtain the first random number sent by the configuration device during the production process, receive the first identification information sent by the base station, and generate and store the first key according to the first random number, the first identification information, and the second identification information. Send the second identification information to the base station so that the base station generates the second key according to the first random number, the first identification information, and the second identification information. When communication with the base station of the cleaning device is required, determine the stored first key. When the first target data needs to be sent to the base station, encrypt the first target data with the first key to obtain the first encrypted data and send it to the base station. When the second encrypted data sent by the base station is received, decrypt the second encrypted data with the first key to obtain the second target data and perform the corresponding operations. Since the data transmitted between the host and the base station is encrypted data, even if the data is stolen, it is not easily leaked because it is difficult to decrypt, thereby improving the security of communication. At the same time, since the host has been paired with the base station and generated the first key after leaving the factory, the user does not need to pair the host and the base station after first turning on the cleaning device, thereby improving the user experience.

[0169] An embodiment of the present disclosure provides a communication method for a cleaning device, which is applied to the host of the cleaning device, as Figure 6 shown, the method includes:

[0170] S500. During the initialization process, in response to the user's operation, pair with the base station.

[0171] S510. Obtain the base point.

[0172] S520. Generate a second random number.

[0173] S530. Receive the first public key sent by the base station.

[0174] S540. Generate a second public key according to the base point and the second random number.

[0175] S550. Send the second public key to the base station.

[0176] S560. Generate a first key based on the second random number and the first public key.

[0177] S570. When communication with the base station is required, determine the first key.

[0178] S580. When the first target data needs to be sent to the base station, encrypt the first target data with the first key to obtain first encrypted data.

[0179] S590. Send the first encrypted data to the base station.

[0180] S600. When the second encrypted data sent by the base station is received, decrypt the second encrypted data with the first key to obtain second target data.

[0181] In this embodiment, during the initialization process, in response to the user's operation, the host is paired with the base station. The base point on the elliptic curve is obtained, the second random number is generated, and the first public key sent by the base station is received. A first key is generated according to the second random number and the first public key. A second public key is generated according to the base point and the second random number and sent to the base station so that the base station generates a second key according to the third random number and the second public key. When communication with the base station of the cleaning device is required, the stored first key is determined. When the first target data needs to be sent to the base station, the first target data is encrypted with the first key to obtain first encrypted data and sent to the base station. When the second encrypted data sent by the base station is received, the second encrypted data is decrypted with the first key to obtain second target data and corresponding operations are performed. Since the data transmitted between the host and the base station is encrypted data, even if the data is stolen, it is not easily leaked because it is difficult to decrypt, thus improving the security of communication. At the same time, since the first key can be generated during the initialization process after production, the flexibility of key generation is improved.

[0182] An embodiment of the present disclosure provides a communication method for a cleaning device, which is applied to the base station of the cleaning device, as Figure 7 shown. The method includes:

[0183] S800. When communication with the host of the cleaning device is required, determine the second key.

[0184] S900. Perform encrypted communication with the host with the second key.

[0185] In this embodiment, when the base station of the cleaning device needs to communicate with the host, the data is encrypted and decrypted with the second key to determine the second key. The base station communicates with the host using the second key for encrypted communication, so that the data transmitted during the communication process is encrypted data. Since the data transmitted between the base station and the host is encrypted data, even if the data is stolen, it is difficult to decrypt and thus not easily leaked, thereby improving the security of the communication.

[0186] Exemplarily, the need to communicate with the host of the cleaning device in step S800 can be in situations such as when the host needs to be charged, cleaned, or controlled in a voice manner.

[0187] Exemplarily, the determination of the second key in step S800 can be to directly read the second key stored in the second memory of the base station, or to temporarily generate the second key according to a preset rule.

[0188] In one embodiment, the encrypted communication with the host using the second key in step S900 can be determined in the following manner:

[0189] When the second target data needs to be sent to the host, the second target data is encrypted with the second key to obtain the second encrypted data.

[0190] The second encrypted data is sent to the host.

[0191] In this embodiment, when the base station needs to send the second target data to the host, if the second target data is directly transmitted, the user's information will be leaked after the second target data is stolen. The second target data is encrypted with the determined second key to obtain the second encrypted data, and the second encrypted data is sent to the host. By encrypting the second target data with the second key and then sending it to the host, even if the second encrypted data is stolen, it is difficult to leak the user's information, thereby improving the security of the communication.

[0192] Exemplarily, after the second encrypted data is sent to the host, the base station will receive the second response data from the host for the second encrypted data.

[0193] In one embodiment, the encrypted communication with the host using the second key in step S900 can also be determined in the following manner:

[0194] When the first encrypted data sent by the host is received, the first encrypted data is decrypted with the second key to obtain the first target data.

[0195] In this embodiment, when the first encrypted data sent by the host is received, since the first target data has been encrypted, the first target data cannot be directly determined. The first encrypted data is decrypted with the second key to obtain the first target data, so as to perform an operation corresponding to the first target data. By decrypting the first encrypted data sent by the host with the second key, it is avoided that the first target data cannot be determined to prevent information leakage, thereby improving the reliability of communication.

[0196] Exemplarily, after receiving the first encrypted data sent by the host, the base station sends the first response data for the first encrypted data to the host.

[0197] In one embodiment, as Figure 8 shown, before determining the second key in step S800, the communication method of the cleaning device further includes:

[0198] S700. Pair with the host.

[0199] S710. Receive the second identification information sent by the host.

[0200] S720. Generate the second key according to the first identification information of the base station and the second identification information.

[0201] In this embodiment, since the base station and the host need to use the second key for encryption during communication, before determining the stored second key, the second key needs to be generated first. The base station pairs with the host to transmit information with the host to generate the second key. Receive the second identification information sent by the host and generate the second key according to the first identification information and the second identification information, making the second key unique. Encrypted communication is performed with the unique second key, reducing the possibility of the second key being deciphered, thereby improving the security of communication.

[0202] In one embodiment, after pairing with the host in step S700, the communication method of the cleaning device further includes:

[0203] Obtain the first random number sent by the configuration device.

[0204] The determination of generating the second key according to the first identification information of the base station and the second identification information in step S720 is determined in the following manner:

[0205] Generate the second key by using the hash-based message authentication code algorithm according to the first random number, the first identification information and the second identification information.

[0206] In this embodiment, during the production of the cleaning device, the device is configured to generate a first random number and send the first random number to the base station. The base station generates a second key according to the first random number, the first identification information, and the second identification information by using the hash-based message authentication code algorithm. Since the first random number is added in the process of generating the second key, the possibility of the second key being deciphered is reduced, thereby improving the security of communication.

[0207] It can be understood that, in addition to generating the second key according to the first random number, the first identification information, and the second identification information by using the hash-based message authentication code algorithm, the second key can also be generated only according to the first identification information and the second identification information.

[0208] In one embodiment, after pairing with the host in step S700, the communication method of the cleaning device further includes:

[0209] Sending the first identification information to the host.

[0210] In this embodiment, by sending the first identification information to the host, the host can generate the same key according to the first identification information and the second identification information for symmetric encryption, thereby reducing the complexity of communication.

[0211] In one embodiment, as Figure 9 shown, before determining the second key in step S800, the communication method of the cleaning device further includes:

[0212] S730. During the initialization process, in response to the user's operation, pair with the host.

[0213] S740. Perform key negotiation with the host to generate a second key.

[0214] In this embodiment, during the initialization process, in response to the user's operation on the cleaning device, the base station pairs with the host. After pairing, the base station and the host perform key negotiation to generate a second key. By generating the second key during the initialization process, it is avoided that generating the second key during the production process affects the production of the cleaning device, thereby improving the production efficiency of the cleaning device. At the same time, since the second key can be generated during the initialization process after the production process, the flexibility of key generation is improved.

[0215] In one embodiment, performing key negotiation with the host in step S740 to generate a second key includes:

[0216] Generating a third random number.

[0217] Receiving the second public key sent by the host.

[0218] Generating a second key according to the third random number and the second public key.

[0219] In this embodiment, during the process of key negotiation, a third random number is generated. The second public key sent by the host is received, and a second key is generated based on the third random number and the second public key. Since the third random number and the second public key have a high degree of randomness, the second key generated based on the third random number and the second public key is difficult to be deciphered, thereby improving the security of communication.

[0220] In one embodiment, after generating the third random number in the above steps, the communication method of the cleaning device further includes:

[0221] Obtain a base point.

[0222] Generate a first public key based on the base point and the third random number.

[0223] Send the first public key to the host.

[0224] In this embodiment, by sending the first public key generated based on the base point and the third random number to the host, the host can generate the same key for symmetric encryption based on the first public key and the second random number, thereby reducing the complexity of communication.

[0225] Exemplarily, during the process of key negotiation between the base station and the host, the Elliptic Curve Diffie-Hellman algorithm can be used for key negotiation. The obtaining of the base point in the above steps can be to obtain the base point on the elliptic curve of the Elliptic Curve Diffie-Hellman algorithm.

[0226] Exemplarily, as Figure 10 shown, the process of key negotiation between the host and the base station is described. The host and the base station obtain the base point G on the elliptic curve. The host generates a second random number a as the private key, generates a second public key aG based on the second random number a and the base point G, and sends the second public key aG to the base station. The base station generates a third random number b, generates a first public key bG based on the third random number b and the base point G, and sends the first public key bG to the host. The host generates a first key abG based on the second random number a and the first public key bG. The base station generates a second key abG based on the third random number b and the second public key aG. Since the first key abG of the host and the second key abG of the base station are the same, the host and the base station can encrypt the transmitted data in a symmetric encryption manner, thereby reducing the complexity of communication.

[0227] The embodiments of the present disclosure provide a communication method for a cleaning device, which is applied to the base station of the cleaning device, as Figure 11 shown, the method includes:

[0228] S1000. Pair with the host.

[0229] S1010. Obtain the first random number sent by the configuration device.

[0230] S1020. Receive the second identification information sent by the host.

[0231] S1030. Send the first identification information to the host.

[0232] S1040. Generate a second key according to the first random number, the first identification information and the second identification information.

[0233] S1050. Determine the second key when communication with the host is required.

[0234] S1060. When it is necessary to send the second target data to the host, encrypt the second target data with the second key to obtain the second encrypted data.

[0235] S1070. Send the second encrypted data to the host.

[0236] S1080. When receiving the first encrypted data sent by the host, decrypt the first encrypted data with the second key to obtain the first target data.

[0237] In this embodiment, during the production process, the base station is paired with the host. Obtain the first random number sent by the configuration device during the production process, receive the second identification information sent by the host, and generate and store the second key according to the first random number, the first identification information and the second identification information. Send the first identification information to the host so that the host can generate the first key according to the first random number, the first identification information and the second identification information. When communication with the host of the cleaning device is required, determine the stored second key. When it is necessary to send the second target data to the host, encrypt the second target data with the second key to obtain the second encrypted data and send it to the host. When receiving the first encrypted data sent by the host, decrypt the first encrypted data with the second key to obtain the first target data and perform the corresponding operations. Since the data transmitted between the base station and the host is encrypted data, even if the data is stolen, it is not easy to leak because it is difficult to decrypt, thereby improving the security of communication. At the same time, since the base station has been paired with the host and generated the second key after leaving the factory, the user does not need to pair the base station and the host after first turning on the cleaning device, thereby improving the user experience.

[0238] An embodiment of the present disclosure provides a communication method for a cleaning device, which is applied to the host of the cleaning device, as Figure 12 shown, the method includes:

[0239] S1100. During the initialization process, in response to the user's operation, pair with the host.

[0240] S1110. Obtain the base point.

[0241] S1120. Generate a third random number.

[0242] S1130. Receive the second public key sent by the host.

[0243] S1140. Generate a first public key based on the base point and the third random number.

[0244] S1150. Send the first public key to the host.

[0245] S1160. Generate a second key based on the third random number and the second public key.

[0246] S1170. Determine the second key when communication with the host is required.

[0247] S1180. When the second target data needs to be sent to the host, encrypt the second target data with the second key to obtain second encrypted data.

[0248] S1190. Send the second encrypted data to the host.

[0249] S1200. When the first encrypted data sent by the host is received, decrypt the first encrypted data with the second key to obtain the first target data.

[0250] In this embodiment, during the initialization process, in response to the user's operation, the base station is paired with the host. The base point on the elliptic curve is obtained, a third random number is generated, and the second public key sent by the host is received. A second key is generated based on the third random number and the second public key. A first public key is generated based on the base point and the third random number, and the first public key is sent to the host so that the host generates a first key based on the second random number and the first public key. When communication with the host of the cleaning device is required, the stored second key is determined. When the second target data needs to be sent to the host, the second target data is encrypted with the second key to obtain second encrypted data and sent to the host. When the first encrypted data sent by the host is received, the first encrypted data is decrypted with the second key to obtain the first target data and corresponding operations are performed. Since the data transmitted between the base station and the host is encrypted data, even if the data is stolen, it is not easily leaked because it is difficult to decrypt, thus improving the security of communication. At the same time, since the second key can be generated during the initialization process after production, the flexibility of key generation is improved.

[0251] In an exemplary embodiment, a communication method for a cleaning device is provided, as Figure 13 shown, and the method includes:

[0252] S1300. The host is paired with the base station.

[0253] S1310. The host obtains the first random number sent by the configuration device.

[0254] S1320. The base station obtains the first random number sent by the configuration device.

[0255] S1330. The base station sends the first identification information to the host.

[0256] S1340. The host sends the second identification information to the base station.

[0257] S1350. The host generates the first key according to the first random number, the first identification information, and the second identification information.

[0258] S1360. The base station generates the second key according to the first random number, the first identification information, and the second identification information.

[0259] S1370. When communication with the base station is required, the host determines the first key.

[0260] S1380. When communication with the host is required, the base station determines the second key.

[0261] S1390. The host and the base station perform encrypted communication with the first key and the second key.

[0262] In an exemplary embodiment, a communication device of a cleaning device is provided, which is applied to the host of the cleaning device, and the communication device of the cleaning device is used to implement the above method. Refer to Figure 14 As shown, the communication device of the cleaning device may include a first determination module 100 and a first communication module 150. Among them, in the process of implementing the above method,

[0263] The first determination module 100 is configured to determine the first key when communication with the base station of the cleaning device is required.

[0264] The first communication module 150 is configured to perform encrypted communication with the base station with the first key.

[0265] In an exemplary embodiment, a communication device of a cleaning device is provided. In this device, the first communication module 150 is configured to:

[0266] When it is necessary to send the first target data to the base station, encrypt the first target data with the first key to obtain the first encrypted data.

[0267] Send the first encrypted data to the base station. And / or,

[0268] When receiving the second encrypted data sent by the base station, decrypt the second encrypted data with the first key to obtain the second target data.

[0269] In an exemplary embodiment, a communication device of a cleaning device is provided, and the device further includes:

[0270] A first pairing module, configured to pair with a base station.

[0271] A first receiving module, configured to receive first identification information sent by the base station.

[0272] A first generating module, configured to generate a first key according to the first identification information and a second identification information of the host.

[0273] In an exemplary embodiment, a communication device of a cleaning device is provided, and the device further includes:

[0274] A first obtaining module, configured to obtain a first random number sent by a configuration device.

[0275] In an exemplary embodiment, a communication device of a cleaning device is provided. In the device, the first generating module is configured to:

[0276] Generate a first key according to the first random number, the first identification information and the second identification information by using a hash-based message authentication code algorithm.

[0277] In an exemplary embodiment, a communication device of a cleaning device is provided, and the device further includes:

[0278] A first sending module, configured to send the second identification information to the base station.

[0279] In an exemplary embodiment, a communication device of a cleaning device is provided. In the device, the first pairing module is configured to:

[0280] During initialization, in response to a user operation, pair with the base station.

[0281] The first generating module is configured to:

[0282] Negotiate a key with the base station to generate a first key.

[0283] In an exemplary embodiment, a communication device of a cleaning device is provided. In the device, the first generating module is configured to:

[0284] Generate a second random number.

[0285] The first receiving module is configured to:

[0286] Receive a first public key sent by the base station.

[0287] The first generating module is configured to:

[0288] Generate a first key based on the second random number and the first public key.

[0289] In an exemplary embodiment, a communication device of a cleaning device is provided. In this device, a first acquisition module is configured to:

[0290] Acquire a base point.

[0291] A first generation module is configured to:

[0292] Generate a second public key based on the base point and the second random number.

[0293] A first sending module is configured to:

[0294] Send the second public key to the base station.

[0295] In an exemplary embodiment, a communication device of a cleaning device is provided, which is applied to the base station of the cleaning device. This communication device of the cleaning device is used to implement the above method. Refer to Figure 15 As shown, this communication device of the cleaning device may include a second determination module 200 and a second communication module 250. Among them, during the implementation of the above method,

[0296] The second determination module 200 is configured to determine a second key when communication with the host of the cleaning device is required.

[0297] The second communication module 250 is configured to perform encrypted communication with the host using the second key.

[0298] In an exemplary embodiment, a communication device of a cleaning device is provided. In this device, the second communication module 250 is configured to:

[0299] When it is necessary to send second target data to the host, encrypt the second target data with the second key to obtain second encrypted data.

[0300] Send the second encrypted data to the host. And / or,

[0301] When receiving the first encrypted data sent by the host, decrypt the first encrypted data with the second key to obtain the first target data.

[0302] In an exemplary embodiment, a communication device of a cleaning device is provided, and this device further includes:

[0303] A second pairing module is configured to pair with the host.

[0304] A second receiving module is configured to receive the second identification information sent by the host.

[0305] A second generation module, configured to generate a second key according to the first identification information and the second identification information of the base station.

[0306] In an exemplary embodiment, a communication device of a cleaning device is provided, and the device further includes:

[0307] A second acquisition module, configured to acquire a first random number sent by a configuration device.

[0308] In an exemplary embodiment, a communication device of a cleaning device is provided. In the device, the second generation module is configured to:

[0309] Generate a second key by using a hash-based message authentication code algorithm according to the first random number, the first identification information, and the second identification information.

[0310] In an exemplary embodiment, a communication device of a cleaning device is provided, and the device further includes:

[0311] A second sending module, configured to send the first identification information to the host.

[0312] In an exemplary embodiment, a communication device of a cleaning device is provided. In the device, the second pairing module is configured to:

[0313] During initialization, in response to a user operation, pair with the host.

[0314] The second generation module is configured to:

[0315] Negotiate a key with the host to generate a second key.

[0316] In an exemplary embodiment, a communication device of a cleaning device is provided. In the device, the second generation module is configured to:

[0317] Generate a third random number.

[0318] The second receiving module is configured to:

[0319] Receive a second public key sent by the host.

[0320] The second generation module is configured to:

[0321] Generate a second key according to the third random number and the second public key.

[0322] In an exemplary embodiment, a communication device of a cleaning device is provided. In the device, the second acquisition module is configured to:

[0323] Acquire a base point.

[0324] The second generation module is configured to:

[0325] Generate a first public key according to a base point and a third random number.

[0326] The second sending module is configured to:

[0327] Send the first public key to the host.

[0328] In an exemplary embodiment, an electronic device is provided, such as the host or base station of the above-mentioned cleaning device.

[0329] Reference Figure 16 As shown, the electronic device 400 may include one or more of the following components: a processing component 402, a memory 404, a power supply component 406, a multimedia component 408, an audio component 410, an input / output (I / O) interface 412, a sensor component 414, and a communication component 416.

[0330] The processing component 402 generally controls the overall operation of the electronic device 400, such as operations associated with display, data communication, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402. When the electronic device 400 is the host, the processor 420 is the first processor. When the electronic device 400 is the base station, the processor 420 is the second processor.

[0331] The memory 404 is configured to store various types of data to support the operation of the electronic device 400. Examples of such data include instructions for any application or method operating on the electronic device 400, messages, pictures, videos, etc. The memory 404 may be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disc. When the electronic device 400 is the host, the memory 404 is the first memory. When the electronic device 400 is the base station, the memory 404 is the second memory.

[0332] The power supply component 406 provides power for various components of the electronic device 400. The power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 400.

[0333] The multimedia component 408 includes a screen that provides an output interface between the electronic device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 408 includes a camera module. The camera module can collect image information indoors.

[0334] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 400 is in an operating mode, such as a voice recognition mode. The received audio signals can be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

[0335] The I / O interface 412 provides an interface between the processing component 402 and a peripheral interface module, which can be a keyboard, click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, volume buttons, a power-on button, and a lock button.

[0336] The sensor component 414 includes one or more sensors for providing a status assessment of various aspects of the electronic device 400. For example, the sensor component 414 can detect the on / off state of the electronic device 400, the relative positioning of components, such as the display and keypad of the electronic device 400. The sensor component 414 can also detect a change in the position of the electronic device 400 or a component of the electronic device 400, the presence or absence of user contact with the electronic device 400, the orientation or acceleration / deceleration of the electronic device 400, and the temperature change of the electronic device 400. The sensor component 414 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 414 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.

[0337] The communication component 416 is configured to facilitate communication between the electronic device 400 and other terminals in a wired or wireless manner. The electronic device 400 can access a communication standard-based wireless network, such as WiFi. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0338] In an exemplary embodiment, the electronic device 400 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described methods.

[0339] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the above instructions can be executed by a processor 420 of the electronic device 400 to complete the above methods. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc. When the instructions in the storage medium are executed by the processor of the terminal, the terminal can execute the methods shown in the above embodiments.

[0340] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and embodiments are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the claims.

[0341] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and embodiments are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0342] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A communication method for a cleaning device, applied to the host of the cleaning device, Characterized in that, The communication method of the cleaning device includes: When it is necessary to communicate with the base station of the cleaning device, determine a first key; Perform encrypted communication with the base station using the first key.

2. The communication method of the cleaning device according to claim 1, Characterized in that, The performing encrypted communication with the base station using the first key includes: When it is necessary to send first target data to the base station, encrypt the first target data using the first key to obtain first encrypted data; Send the first encrypted data to the base station; and / or, When receiving second encrypted data sent by the base station, decrypt the second encrypted data using the first key to obtain second target data.

3. The communication method of the cleaning device according to claim 1, Characterized in that, The encryption algorithm for the encrypted communication is a symmetric encryption algorithm.

4. The communication method of the cleaning device according to any one of claims 1 to 3, Characterized in that, Before the determining of the first key, the communication method of the cleaning device further includes: Pair with the base station; Receive first identification information sent by the base station; Generate the first key according to the first identification information and second identification information of the host.

5. The communication method of the cleaning device according to claim 4, Characterized in that, After the pairing with the base station, the communication method of the cleaning device further includes: Obtain a first random number sent by a configuration device; The generating the first key according to the first identification information and second identification information of the host includes: Generate the first key according to the first random number, the first identification information and the second identification information by using the hash-based message authentication code algorithm.

6. The communication method of the cleaning device according to claim 4, Characterized in that, After the pairing with the base station, the communication method of the cleaning device further includes: Send the second identification information to the base station.

7. The communication method of the cleaning device according to any one of claims 1 to 3, Characterized in that, Before the determining of the first key, the communication method of the cleaning device further includes: During the initialization process, in response to the user's operation, pair with the base station; Perform key negotiation with the base station to generate the first key.

8. The communication method of the cleaning device according to claim 7, Characterized in that, The performing key negotiation with the base station to generate the first key includes: Generate a second random number; Receive a first public key sent by the base station; Generate the first key according to the second random number and the first public key.

9. The communication method of the cleaning device according to claim 8, Characterized in that, The communication method of the cleaning device further includes: Obtain a base point; Generate a second public key according to the base point and the second random number; Send the second public key to the base station.

10. A communication method for a cleaning device, applied to the base station of the cleaning device, Characterized in that, The communication method of the cleaning device includes: When it is necessary to communicate with the host of the cleaning device, determine a second key; Perform encrypted communication with the host using the second key.

11. The communication method of the cleaning device according to claim 10, wherein, The performing encrypted communication with the host using the second key includes: When it is necessary to send second target data to the host, encrypt the second target data using the second key to obtain second encrypted data; Send the second encrypted data to the host; and / or, When receiving first encrypted data sent by the host, decrypt the first encrypted data using the second key to obtain first target data.

12. The communication method of the cleaning device according to claim 10 or 11, wherein, Before the determining of the second key, the communication method of the cleaning device further includes: Pair with the host; Receive second identification information sent by the host; Generate the second key according to the first identification information of the base station and the second identification information.

13. The communication method of the cleaning device according to claim 12, wherein, After the pairing with the host, the communication method of the cleaning device further includes: Obtain a first random number sent by a configuration device; The generating the second key according to the first identification information of the base station and the second identification information includes: Generate the second key according to the first random number, the first identification information and the second identification information by using the hash-based message authentication code algorithm.

14. The communication method of the cleaning device according to claim 12, wherein, After the pairing with the host, the communication method of the cleaning device further includes: Send the first identification information to the host.

15. The communication method of the cleaning device according to claim 10 or 11, wherein, Before the determining of the second key, the communication method of the cleaning device further includes: During initialization, in response to a user operation, pair with the host; Perform key negotiation with the host to generate the second key.

16. The communication method of the cleaning device according to claim 15, wherein, The performing key negotiation with the host to generate the second key includes: Generate a third random number; Receive a second public key sent by the host; Generate the second key according to the third random number and the second public key.

17. The communication method of the cleaning device according to claim 16, wherein, The communication method of the cleaning device further includes: Obtain a base point; Generate a first public key according to the base point and the third random number; Send the first public key to the host.

18. A communication device of a cleaning device, applied to the host of the cleaning device, wherein, The communication device of the cleaning device includes: A first determination module, the first determination module is configured to determine a first key when it is necessary to communicate with the base station of the cleaning device; A first communication module, which is configured to perform encrypted communication with the base station using the first key.

19. A communication device for a cleaning device, applied to a base station of the cleaning device, Characterized in that, The communication device of the cleaning device includes: A second determination module, which is configured to determine a second key when communication with the host of the cleaning device is required; A second communication module, which is configured to perform encrypted communication with the host using the second key.

20. A cleaning device, Characterized in that, The cleaning device includes a host and a base station; The host includes a first processor and a first memory for storing executable instructions of the first processor; Wherein, the first processor is configured to execute: Determine a first key when communication with the base station is required; Perform encrypted communication with the base station using the first key; The base station includes a second processor and a second memory for storing executable instructions of the second processor; Wherein, the second processor is configured to execute: Determine a second key when communication with the host is required; Perform encrypted communication with the host using the second key.

21. A non-transitory computer-readable storage medium, Characterized in that, When the instructions in the storage medium are executed by a processor of a terminal, the terminal can execute the communication method of the cleaning device according to any one of claims 1 to 17.