Pairing method and pairing device of cleaning system and storage medium

By using wired communication and a mechanism for actively writing and dual-verification of device identifiers, the electromagnetic interference problem during the pairing process between cleaning equipment and base stations was solved, enabling fast and reliable synchronization of device identifiers and improving production efficiency and user experience.

CN121489327APending Publication Date: 2026-02-10DREAM INNOVATION TECH (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511657245.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-12
Publication Date
2026-02-10

AI Technical Summary

Technical Problem

In existing technologies, the wireless pairing process between cleaning equipment and base stations is affected by electromagnetic interference in the workshop environment, resulting in unstable pairing success rates and long pairing times, which has become a bottleneck for improving production efficiency.

Method used

The device identifier is transmitted directly through the serial port of the cleaning equipment via wired communication. Combined with the active writing of the device identifier and a dual verification mechanism, the accurate pairing between the cleaning equipment and the base station is ensured.

Benefits of technology

It achieves fast and reliable device identifier synchronization, improves production efficiency and product delivery quality, ensures that devices can be used directly at the factory without manual pairing by the user, and avoids the impact of wireless interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121489327A_ABST
    Figure CN121489327A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a pairing method and device of a cleaning system and a storage medium, and the method comprises the steps that cleaning equipment reads an equipment identifier stored in the cleaning equipment in response to a pairing driving signal received through a communication serial port; the cleaning equipment responds to a base station access signal received through the communication serial port, the base station access signal represents that the base station is connected with the communication serial port through a data transmission line, and the equipment identifier of the cleaning equipment is sent to the base station through the communication serial port, so that the base station stores the equipment identifier of the cleaning equipment as the equipment identifier of the base station, and the equipment identifier of the cleaning equipment is sent to the base station. Determining that the cleaning equipment is paired with the base station under the condition that the equipment identifier of the cleaning equipment is consistent with the equipment identifier of the base station; the method can be carried out offline, is not influenced by wireless interference of a production environment, and can effectively improve the production efficiency and the product delivery quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cleaning equipment technology, and in particular to a pairing method, pairing device, and storage medium for a cleaning system. Background Technology

[0002] In the pre-shipment testing phase of cleaning equipment such as robotic vacuum cleaners, initial pairing between the cleaning device and the base station is a prerequisite for achieving functions such as automatic recharging and dust collection. Currently, mainstream technologies rely on wireless communication technologies (such as Wi-Fi and Bluetooth) for pairing. This method requires the broadcasting, scanning, and handshake protocols of wireless signals. On the production line, this manifests as the cleaning device needing to be physically placed within the base station's signal range and waiting for it to automatically complete wireless pairing. This process is time-consuming and susceptible to interference from the complex electromagnetic environment within the workshop, leading to unstable pairing success rates and low production efficiency, becoming a bottleneck restricting the improvement of production cycle time. Summary of the Invention

[0003] This application provides a pairing method, pairing device, and storage medium for a cleaning system, which can be performed offline and is not affected by wireless interference in the production environment, thereby effectively improving production efficiency and product delivery quality.

[0004] In a first aspect, this application provides a pairing method for a cleaning system, applied to the cleaning system, the system including a cleaning device and a base station, the cleaning device being provided with a communication serial port, the method comprising: The cleaning device responds to the pairing drive signal received through the communication serial port and reads the device identifier stored in the cleaning device; The cleaning device responds to a base station access signal received through the communication serial port. The base station access signal indicates that the base station is connected to the communication serial port through a data transmission line. The cleaning device sends its device identifier to the base station through the communication serial port, so that the base station stores the cleaning device's device identifier as its own device identifier. When both the cleaning device and the base station are powered on, the device identifier of the cleaning device and the device identifier of the base station are compared and verified to obtain the identifier verification result. If the identification verification result indicates that the device identifier of the cleaning device and the device identifier of the base station are consistent, it is determined that the cleaning device and the base station have been paired.

[0005] In some embodiments, after obtaining the identifier verification result, the method further includes: Read the cleaning equipment batch identification information from the cleaning equipment, and read the base station batch identification information from the base station; The batch identification information of the cleaning equipment is compared with the batch identification information of the base station to obtain the batch verification result; Determining that the cleaning device and the base station are paired when the identification verification result indicates that the device identifier of the cleaning device and the device identifier of the base station are consistent includes: determining that the cleaning device and the base station are paired when the batch verification result indicates that the batch identification information of the cleaning device and the batch identification information of the base station are consistent, and the identification verification result indicates that the device identifier of the cleaning device and the device identifier of the base station are consistent.

[0006] In some embodiments, after obtaining the identifier verification result, the method further includes: If the batch verification result indicates that the batch identification information of the cleaning equipment is inconsistent with the batch identification information of the base station, a clearing command is sent to the base station so that the base station deletes the equipment identifier stored in the base station. In response to receiving a base station access signal again via the communication serial port, the cleaning device sends its device identifier to the base station via the communication serial port, so that the base station stores the cleaning device's device identifier as its own device identifier.

[0007] In some embodiments, the comparison and verification process between the device identifier of the cleaning device and the device identifier of the base station to obtain the identifier verification result includes: The device identifier of the cleaning equipment and the device identifier of the base station are converted into the same data format to obtain a first string corresponding to the device identifier of the cleaning equipment and a second string corresponding to the device identifier of the base station. The first string and the second string are compared byte by byte to obtain the identifier verification result.

[0008] In some embodiments, the comparison and verification process between the device identifier of the cleaning equipment and the device identifier of the base station to obtain the identifier verification result includes: Calculate the first hash value of the device identifier of the cleaning device and the second hash value of the device identifier of the base station, respectively; The identifier verification result is obtained by comparing whether the first hash value and the second hash value are consistent.

[0009] In some embodiments, after determining that the cleaning device has been paired with the base station, the method further includes: Based on a preset sampling strategy, a target cleaning device and a target base station are selected from the multiple paired cleaning devices and multiple base stations. A communication link test based on device identifiers is performed on the target cleaning device and the target base station to obtain the communication test results; If the communication test results indicate that the communication link test has failed, the device identifier comparison and verification process is re-performed for the paired cleaning devices and the paired base stations.

[0010] In some embodiments, the cleaning device, in response to a pairing drive signal received via the communication serial port, reads a device identifier stored in the cleaning device, including: The cleaning device responds to the pairing drive signal and enters a preset test mode; In the test mode, a system information reading command is executed to obtain the device identifier.

[0011] In some embodiments, sending the device identifier of the cleaning device to the base station via the communication serial port includes: The device identifier is encapsulated according to a preset communication protocol frame format; The encapsulated data frame is sent to the base station through the communication serial port.

[0012] In some embodiments, after determining that the cleaning device has been paired with the base station, the method further includes: In response to the received shutdown command, perform the shutdown operation.

[0013] In some embodiments, after determining that the cleaning device has been paired with the base station, the method further includes: A successful pairing record is generated, the record containing at least the binding relationship between the device identifier of the cleaning device and the device identifier of the base station; The successful pairing record is sent to the host computer system corresponding to the cleaning system.

[0014] Secondly, this application provides a pairing device for a cleaning system, applied to the cleaning system, the system including cleaning equipment and a base station, the cleaning equipment being provided with a communication serial port, the pairing device being disposed on the cleaning equipment, the device comprising: The reading module is used to enable the cleaning device to read the device identifier stored in the cleaning device in response to a pairing drive signal received through the communication serial port; The sending module is configured to enable the cleaning device to respond to a base station access signal received through the communication serial port and send the device identifier of the cleaning device to the base station through the communication serial port, so that the base station stores the device identifier of the cleaning device as its own device identifier; The verification module is used to compare and verify the device identifier of the cleaning device and the device identifier of the base station when both the cleaning device and the base station are powered on, and to obtain the identification verification result. The pairing determination module is used to determine that the cleaning device and the base station have been paired if the identification verification results are consistent.

[0015] Thirdly, this application provides a computer-readable storage medium having a computer program stored thereon, characterized in that the computer program, when executed by a processor, implements the method as described in any one of the first aspects.

[0016] According to the specific embodiments provided in this application, the following technical effects are disclosed: The solution provided in this application allows for pre-pairing of the cleaning equipment with the base station via wired communication during the production stage before the equipment leaves the factory. Specifically, this application achieves rapid pairing by directly writing the MAC address of the cleaning equipment into the base station. First, the cleaning equipment responds to the drive signal received through the communication serial port, reads its own MAC address, and directly writes it into the base station via a wired connection. This avoids the time-consuming signal search and handshake negotiation steps in traditional wireless pairing, effectively reducing pairing time and improving the success rate. The cleaning equipment and base station are already bound at the factory, so users do not need to perform any manual pairing operations upon receiving the product and can directly use the cleaning equipment for cleaning work, improving user experience. Furthermore, the address verification step included in this application's solution ensures pairing accuracy, and the entire device identification code writing and pairing process can be performed offline, unaffected by wireless interference in the production environment, thereby effectively improving production efficiency and product delivery quality.

[0017] Of course, any product implementing this application does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A flowchart of a pairing method for a cleaning system provided in an embodiment of this application.

[0020] Figure 2 The flowchart illustrates the process of determining that the cleaning equipment and the base station have been paired in the pairing method of the cleaning system provided in this application embodiment.

[0021] Figure 3 The flowchart illustrates the process of obtaining the identification verification result in the pairing method of the cleaning system provided in this application embodiment.

[0022] Figure 4 Another flowchart illustrating the process of obtaining the identification verification result in the pairing method of the cleaning system provided in this application embodiment.

[0023] Figure 5 A schematic block diagram of a pairing device for a cleaning system provided in an embodiment of this application.

[0024] Figure 6 A schematic block diagram of a control device provided in an embodiment of this application. Detailed Implementation

[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0026] The terminology used in the embodiments of this invention is for the purpose of describing particular embodiments only and is not intended to limit the invention. The singular forms “a,” “the,” and “the” as used in the embodiments of this invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0027] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0028] Depending on the context, the word "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection." Similarly, depending on the context, the phrase "if determination" or "if detection (of the stated condition or event)" can be interpreted as "when determination," "in response to determination," "when detection (of the stated condition or event)," or "in response to detection (of the stated condition or event)."

[0029] In existing technologies, the pre-shipment testing of cleaning equipment such as robotic vacuum cleaners requires initial pairing between the equipment and a base station to enable functions such as automatic recharging and dust collection. Traditional methods rely on wireless communication technology for device pairing, necessitating the placement of the cleaning equipment within the base station's signal coverage area. Pairing is completed through wireless signal broadcasting, scanning, and handshake protocols. However, the complex electromagnetic environment of a workshop makes wireless signals susceptible to interference, leading to fluctuations in pairing success rates. Furthermore, the need for wireless communication to wait for automatic device pairing extends production line cycle time, becoming a key bottleneck restricting production efficiency improvements.

[0030] To address the aforementioned issues, the inventors of this application discovered that the inherent signal attenuation and channel contention characteristics of wireless communication are ill-suited to the demands of industrial scenarios. Through analysis of the production testing process, it was found that the cleaning equipment and the base station have a physical connection at fixed workstations on the production line. An attempt was made to change the communication method from wireless to wired transmission. Based on a unique device identifier identification mechanism, a method is proposed to directly transmit the device identifier via a communication serial port, establishing an identity binding relationship based on the physical connection. Through the active writing of the device identifier and a dual verification mechanism, a stable and reliable pairing verification system is constructed.

[0031] Therefore, refer to Figure 1 , Figure 1 A flowchart of the pairing method for the cleaning system provided in the embodiments of this application; as follows: Figure 1 As shown, this application proposes a pairing method for a cleaning system. The system includes a cleaning device and a base station. The cleaning device is equipped with a communication serial port. The method includes, but is not limited to, the following steps: Step 101: In response to the pairing drive signal received via the communication serial port, the cleaning device reads the device identifier stored in the cleaning device. Step 102: The cleaning device responds to the base station access signal received through the communication serial port. The base station access signal indicates that the base station is connected to the communication serial port through the data transmission line and sends the device identifier of the cleaning device to the base station through the communication serial port, so that the base station stores the device identifier of the cleaning device as its own device identifier. Step 103: With both the cleaning equipment and the base station powered on, compare and verify the device identifiers of the cleaning equipment and the base station to obtain the identifier verification result. Step 104: If the identification verification result indicates that the device identifier of the cleaning device and the device identifier of the base station are consistent, it is determined that the cleaning device and the base station have been paired.

[0032] Based on steps 101 to 104 above, the solution provided in this application embodiment can pre-pair the cleaning equipment with the base station via wired communication during the production stage before the equipment leaves the factory. Specifically, this application achieves rapid pairing by directly writing the MAC address of the cleaning equipment into the base station. First, the cleaning equipment responds to the drive signal received through the communication serial port to read its own MAC address and writes it directly into the base station via a wired connection. This avoids the time-consuming signal search and handshake negotiation steps in traditional wireless pairing, effectively reducing pairing time and improving the success rate. This ensures that the cleaning equipment and base station are already bound when the product leaves the factory, and users can directly use the cleaning equipment for cleaning work without any manual pairing operation after receiving the product, thus improving user experience. Furthermore, the address verification step included in this application solution ensures the accuracy of pairing, and the entire device identification code writing and pairing process can be performed offline, unaffected by wireless interference in the production environment, thereby effectively improving production efficiency and product delivery quality.

[0033] It is understood that the cleaning system in this application consists of cleaning equipment and a base station, and its stable operation hinges on establishing a precise and reliable pairing relationship between the two. The cleaning equipment can include intelligent devices with automatic recharging capabilities, such as robotic vacuum cleaners, robotic mops, and robotic lawnmowers. By achieving a unique "one-to-one" pairing between the base station and the cleaning equipment, it can be ensured that when the device executes a recharging command, it can accurately identify and return to the specific base station it is paired with. This effectively avoids signal interference and misidentification in multi-device environments, thereby guaranteeing the accuracy of the recharging process, the reliability of task execution, and the long-term stability of the entire system.

[0034] The pairing drive signal is the control command that triggers the cleaning equipment to enter the pairing preparation state. It can be triggered by a physical button or sent by the host computer system to activate the device identifier reading process. The communication serial port is the physical interface for wired data transmission, which can use RS-232, USB, or TTL level interfaces to establish a point-to-point communication link between the cleaning equipment and the base station. The device identifier is the unique coded information that identifies the device, which can be generated using a MAC address, serial number, or custom encoding rules to distinguish different devices. The comparison and verification process is the logical judgment process for verifying data consistency. It can be implemented through byte-by-byte comparison or hash value calculation to ensure that the device identifiers of the master station and the slave station completely match.

[0035] Understandably, when the cleaning equipment at the production line test station receives an externally triggered pairing command via the communication serial port, it immediately retrieves the pre-stored unique device code from its internal memory. When the base station is detected connecting to the communication serial port via a data cable, the cleaning equipment transmits its own identifier to the base station via the serial communication protocol. The base station receives this identifier and writes it into its own storage unit. In dual-device power supply mode, the system reads the original identifier stored in the cleaning equipment and the received identifier stored in the base station, verifying their consistency through bit-by-bit comparison or hash calculation. When the verification result confirms that both identifiers are identical, the system determines that the devices have been successfully paired and generates an confirmation signal.

[0036] Compared to existing technologies, this solution uses physical connections instead of wireless communication, avoiding pairing failures caused by electromagnetic interference in the workshop. By actively writing device identifiers instead of passive signal matching, pairing waiting time is shortened. A dual verification mechanism ensures the accuracy of device identity binding, preventing erroneous pairings from flowing into subsequent processes. The hard-wired transmission of device identifiers makes the pairing process completely controllable, significantly improving the stability of production testing.

[0037] Through the above technical solution, this application effectively solves the reliability problem of wireless pairing in production environments, ensuring that the device pairing success rate remains stable within a controllable range. The pairing process time is reduced from tens of seconds required for wireless negotiation to milliseconds for wired transmission, significantly improving production line testing efficiency. The physical connection method eliminates environmental interference factors, allowing the device pairing process to be precisely integrated into automated production line workflows, providing reliable technical support for large-scale industrial production.

[0038] refer to Figure 2 , Figure 2 The flowchart for determining that the cleaning equipment and the base station have been paired in the pairing method of the cleaning system provided in the embodiments of this application; for example Figure 2 As shown, this application further proposes that after obtaining the identifier verification result, the method includes at least the following steps: Step 201: Read the batch identification information of the cleaning equipment from the cleaning equipment and read the batch identification information of the base station from the base station; Step 202: Compare the batch identification information of the cleaning equipment with the batch identification information of the base station to obtain the batch verification result; Step 203: If the batch verification result indicates that the batch identification information of the cleaning equipment is consistent with the batch identification information of the base station, and the identification verification result indicates that the device identifier of the cleaning equipment is consistent with the device identifier of the base station, then it is determined that the cleaning equipment and the base station have been paired.

[0039] The cleaning equipment batch identification information refers to the data used to identify the production batch to which the cleaning equipment belongs. This can be implemented using a production date code, batch serial number, or firmware version number, and is used to distinguish cleaning equipment from different production cycles or configurations. Similarly, the base station batch identification information refers to the data used to identify the production batch to which the base station belongs. This can be implemented using a hardware version code, manufacturing batch label, or software compatibility identifier, and is used to ensure that the base station and cleaning equipment production batches match.

[0040] Understandably, after completing the device identifier comparison and verification, the batch identification information of the cleaning equipment and the base station is further obtained. For example, the batch identification information of the cleaning equipment can be obtained by reading the preset storage area in the cleaning equipment firmware, and the batch identification information of the base station can be obtained by parsing the configuration data uploaded by the base station. By comparing the batch identification information of the two, it can be determined whether the cleaning equipment and the base station belong to the same production batch. When the device identifiers and batch identification information are consistent, the pairing is considered successful. If the batch identification information is inconsistent, even if the device identifiers are consistent, pairing cannot be completed.

[0041] Compared to existing technologies, which rely solely on device identifier verification and fail to consider functional compatibility issues that may arise from differences in production batches, this solution addresses these risks by incorporating batch identification information for comparison. This proactive approach can eliminate compatibility issues caused by batch differences, reducing subsequent maintenance costs.

[0042] Through the above technical solution, this application solves the problem of abnormal function after pairing caused by hardware or software differences between equipment from different production batches, ensures the reliability of paired equipment in terms of compatibility, and avoids communication errors or performance degradation caused by batch mismatch.

[0043] This application further proposes that when the batch verification result indicates that the batch identification information of the cleaning equipment is inconsistent with the batch identification information of the base station, a clearing command is sent to the base station to make the base station delete the equipment identifier already stored in the base station, and when the cleaning equipment receives the base station access signal again through the communication serial port, the equipment identifier of the cleaning equipment is sent to the base station through the communication serial port so that the base station stores it as its own equipment identifier.

[0044] The clear command is a command used to trigger the base station to perform data deletion operations. It can be implemented using a preset format control command, such as a serial communication protocol frame containing a specific function code. This command forcibly clears invalid or erroneous device identifiers stored by the base station during previous pairing processes, providing a clean storage environment for re-pairing. The base station access signal is a signal indicating that the base station and the cleaning device have established a communication connection via a physical cable. It can be implemented using level transition signals or handshake protocol completion signals, such as a hardware interrupt signal triggered when a data transmission line is inserted into a communication serial port. The device identifier is coded data used to uniquely identify the device. It can be implemented using a serial number pre-written at the factory or a hash value generated based on hardware information, such as a hexadecimal string assigned by the production testing system during the device initialization phase.

[0045] Understandably, when the batch identification information of the cleaning device and the base station is inconsistent, it indicates that they may belong to different production batches or pose a compatibility risk. In this case, the cleaning device sends a clearing command to the base station, triggering an erase operation in the base station's internal storage area to delete the original device identifier. After the base station completes data erasure, the cleaning device retransmits its own device identifier via a communication serial port, allowing the base station to receive and store this identifier as its own identifier. This process ensures data transmission reliability through a physical connection, avoiding signal interference issues in wireless communication environments, and simultaneously ensures that erroneous identifiers do not remain in the base station through a forced clearing mechanism.

[0046] Compared to existing technologies, traditional wireless pairing methods typically terminate the pairing process directly when encountering batch mismatches, requiring manual intervention to replace or reset the devices. This solution, however, utilizes an automatic identifier clearing and retransmission mechanism to automatically execute an error recovery process upon detecting batch mismatches. Identifier rewriting can be completed without manual intervention, effectively reducing equipment rework rates on the production line.

[0047] Through the above technical solution, this application can automatically handle pairing failures caused by inconsistent batch information. By forcibly clearing erroneous identifiers and re-establishing pairing relationships, it ensures that the cleaning equipment and the base station can quickly synchronize identifiers while physically connected. This not only improves the pairing success rate in the production testing phase but also shortens the testing time for a single device by reducing manual intervention, adapting to the cycle time requirements of high-density production environments.

[0048] refer to Figure 3 , Figure 3 A flowchart illustrating the identification verification result in the pairing method of the cleaning system provided in this application embodiment; as shown... Figure 3As shown, this application further proposes that when comparing and verifying the device identifiers of the cleaning equipment and the base station while both the cleaning equipment and the base station are powered on, the process includes at least the following steps: Step 301: Convert the device identifier of the cleaning equipment and the device identifier of the base station into the same data format to obtain the first string corresponding to the device identifier of the cleaning equipment and the second string corresponding to the device identifier of the base station. Step 302: Compare the first string and the second string byte by byte to obtain the identifier verification result.

[0049] In this context, "same data format" refers to uniformly converting device identifiers with different encoding formats or storage structures into a standardized data format. This can be achieved using ASCII or UTF-8 encoding, eliminating comparison errors caused by differences in data formats between different devices. The first string and the second string refer to the converted device identifier text sequences, which can be generated through hexadecimal conversion or binary transcoding to form directly comparable string data. Byte-by-byte comparison refers to sequentially comparing the values ​​of each byte in the string to ensure consistency. This can be implemented using loop traversal algorithms or memory comparison functions, ensuring the accuracy and completeness of the comparison process.

[0050] Understandably, after the cleaning equipment and the base station complete the transmission of device identifiers via a wired connection, the storage formats of the device identifiers may differ. For example, the cleaning equipment identifier might be stored in binary format, while the base station identifier might be stored as a hexadecimal string. By converting both to ASCII encoded strings, a first string and a second string are generated. Then, the ASCII values ​​of each character are compared byte by byte. If all byte values ​​are exactly the same, the device identifier is considered to have matched successfully; if any byte values ​​differ, a verification failure result is generated.

[0051] Compared to existing technologies, traditional wireless pairing methods rely on signal strength to determine device compatibility, failing to accurately verify the actual content of device identifiers. This solution establishes a physical connection through wired transmission, combining data format standardization and a byte-by-byte comparison mechanism to avoid misjudgments caused by wireless signal interference, while ensuring the absolute accuracy of device identifier verification.

[0052] Through the above technical solution, this application effectively solves the pairing failure problem caused by inconsistent equipment identifier formats or transmission errors on the production line, significantly improving the reliability of equipment identifier verification. By forcibly converting the format and comparing byte by byte, data parsing differences are eliminated, ensuring that the cleaning equipment and the base station can quickly and accurately pair under physical connection, shortening the production testing cycle.

[0053] refer to Figure 4 , Figure 4 Another flowchart illustrating the pairing method for the cleaning system provided in this application to obtain the identification verification result; such as Figure 4 As shown, the application further proposes that when comparing and verifying the device identifiers of the cleaning equipment and the base station while both the cleaning equipment and the base station are powered on, the process includes: Step 401: Calculate the first hash value of the device identifier of the cleaning equipment and the second hash value of the device identifier of the base station, respectively. Step 401: Compare whether the first hash value and the second hash value are consistent to obtain the identifier verification result.

[0054] The hash value refers to the mapping of input data of arbitrary length to a fixed-length output value through a hash function. This can be implemented using algorithms such as MD5 or SHA-256. This feature is used to convert device identifiers into irreversible fixed-length data, reducing the amount of data involved in the verification process. Device identifier comparison and verification processing determines whether two device identifiers are identical by comparing their hash values. This can be achieved by calling a preset hash algorithm interface. This feature avoids directly transmitting the original device identifier data, improving verification efficiency.

[0055] Understandably, after the cleaning equipment and base station complete the transmission of the device identifier, the system automatically triggers the hash calculation module. The cleaning equipment's processor calls its built-in hash algorithm library, using the stored device identifier as input to generate a 128-bit first hash value. The base station's controller synchronously executes the same algorithm, generating a corresponding second hash value for the received device identifier. The two hash values ​​are transmitted to the verification unit via serial communication for comparison. If the two values ​​match completely, the device identifiers are determined to be identical. For example, when the device identifier is a 32-bit string, after processing with the SHA-256 algorithm, a 256-bit hash value is generated. The verification system only needs to compare the 256 bits of binary data to complete the verification operation.

[0056] Compared to existing technologies, traditional production lines use wireless transmission of original device identifiers for byte-by-byte comparison, requiring the complete transmission of data that can be hundreds of bytes long, and the verification process involves matching each character individually. This solution compresses the data to a fixed length through hash value conversion; for example, when using the MD5 algorithm, only 128 bits of data need to be processed, significantly reducing the communication transmission load. At the same time, the uniqueness of the hash value ensures the accuracy of the verification results, avoiding misjudgments caused by data truncation or transmission errors.

[0057] Through the above technical solution, this application effectively solves the problem of verification failure caused by incomplete data transmission under electromagnetic interference environment of production line. The irreversible nature of the hash algorithm prevents the device identifier from being intercepted and tampered with during transmission. The verification process time is reduced from seconds in the traditional method to milliseconds. For example, when the device identifier length is 256 bytes, the hash verification time can be shortened to less than 15% of the original verification time, greatly improving the pairing efficiency of the production line.

[0058] This application further proposes that, after determining that the cleaning equipment and the base station have been paired, a target cleaning equipment and a target base station are selected from the multiple paired cleaning equipment and multiple base stations based on a preset sampling strategy; a communication link test based on the device identifier is performed on the target cleaning equipment and the target base station to obtain the communication test result; if the communication test result indicates that the communication link test has failed, the device identifier comparison and verification process is re-performed on the multiple paired cleaning equipment and multiple base stations.

[0059] The preset sampling strategy refers to the pre-defined rules for selecting test objects, which can be implemented using random sampling or batch-interval sampling. Its purpose is to balance test coverage and resource consumption. Communication link testing verifies the data transmission capability between devices based on device identifiers. This is specifically achieved by sending test commands and detecting response latency or data integrity, and is used to test the stability of actual communication functions after pairing. Comparison and verification processing involves performing secondary matching verification on the device identifiers, which can be implemented using string comparison or hash value verification methods. This is used to eliminate pairing failures caused by temporary interference.

[0060] Understandably, after the initial pairing of the cleaning equipment and the base station, the system dynamically selects a subset of devices from the paired equipment group as test targets according to preset rules. For example, at regular intervals, a group of cleaning equipment and a base station are randomly selected from the current pairing queue, and a test command containing the device identifier is sent to them. If the target device fails to return a correct response within the specified time or the returned data does not match expectations, the communication link test is deemed to have failed. At this point, the system triggers a global re-verification process, re-performing the identifier comparison operation on all paired devices to eliminate abnormal pairing states caused by electromagnetic interference or data transmission errors.

[0061] Compared to existing technologies, current production lines rely solely on single pairing verification and lack dynamic monitoring mechanisms, making it impossible to detect communication anomalies caused by environmental interference during subsequent operation. This solution proactively detects the communication status of paired devices through periodic sampling tests and automatically initiates a full verification when an anomaly is detected, forming a closed-loop error correction mechanism.

[0062] Through the above technical solution, this application can detect and repair pairing failures caused by electromagnetic interference in the workshop or temporary equipment failures in real time, avoid quality defects in batch production where paired devices cannot communicate normally, and improve the overall yield and testing efficiency of the production line.

[0063] This application further proposes that the cleaning device enters a preset test mode in response to a pairing drive signal, and executes a system information reading instruction to obtain the device identifier in the test mode.

[0064] Among them, the pairing drive signal refers to the control signal triggered by an external device or operation command to initiate the device identifier reading process. It can be implemented using level signals, serial port commands, or button triggering methods to activate the specific response mechanism of the cleaning equipment. The test mode refers to an isolated environment dedicated to production testing within the cleaning equipment's operating state. It can be implemented by switching internal register states or loading an independent firmware partition to shield unnecessary functions and ensure the stability of the identifier reading process. The system information reading command refers to the low-level operation command that extracts the device identifier from the storage medium. It can be implemented using direct memory access or calling preset interface functions to bypass the conventional communication protocol layer and reduce data acquisition latency.

[0065] Understandably, when the cleaning device receives the pairing drive signal, its internal controller will perform a mode switching operation, entering test mode. In test mode, the cleaning device's regular functional modules are temporarily suspended, with only the hardware resources related to device identifier reading remaining active. Subsequently, a system information read command is sent to the non-volatile memory storing the device identifier, and data retrieval is completed by directly accessing the specified address or calling a preset application programming interface. This process avoids the initialization and protocol interaction of the wireless communication module, ensuring that the device identifier can be quickly obtained after the physical connection is established.

[0066] Compared to existing technologies, traditional methods rely on the automatic discovery mechanism of wireless communication modules, requiring the device to complete network scanning and protocol handshake. This solution, however, directly activates the identifier reading process through a preset test mode, eliminating the effects of wireless signal transmission delays and electromagnetic interference in the workshop. Simultaneously, the functional isolation mechanism in the test mode prevents other background processes from preempting resources for identifier reading operations, improving the reliability of data acquisition.

[0067] Through the above technical solution, this application solves the problem of low pairing efficiency caused by unstable wireless communication on the production line, and realizes fast and accurate reading of device identifiers. The activation of the test mode allows the cleaning equipment to immediately enter a dedicated working state after the physical connection is established, avoiding random waiting time during the wireless pairing process, thereby significantly shortening the overall pairing cycle and improving the stability of the production line cycle time.

[0068] This application further proposes sending the device identifier of the cleaning equipment to the base station via a communication serial port, including encapsulating the device identifier according to a preset communication protocol frame format and sending the encapsulated data frame to the base station via the communication serial port.

[0069] The communication protocol frame format refers to a predefined data transmission structure, which can be implemented using a combination of start bits, data bits, parity bits, and stop bits. For example, the start bit might be a fixed 1-byte identifier, the data bits might contain the binary encoding of the device identifier, and the parity bit might use a cyclic redundancy check (CRC) code. Encapsulation refers to converting the device identifier into a transmittable byte sequence according to the frame format. This can be achieved by adding a frame header, frame trailer, and checksum before and after the device identifier. For example, adding 0xAA before the data bits as a frame header and adding a CRC16 checksum after the data bits.

[0070] Understandably, when cleaning equipment needs to send a device identifier to the base station, it first encodes the device identifier according to a preset frame format. For example, if the device identifier is a 32-bit string, it can be split into four 8-bit bytes, with a start bit 0x55 added before each byte. Then, the XOR value of the four bytes is calculated as a checksum. After encapsulation, the cleaning equipment sends the data frame bit by bit to the base station's RX pin at a specific baud rate via the TX pin of the serial port. Upon receiving the data frame, the base station parses the frame header and checksum. If the checksum passes, it extracts and stores the device identifier from the data bits.

[0071] Compared to existing technologies, which rely on the broadcast and handshake mechanisms of wireless communication protocols and require data encapsulation to follow complex network protocol stacks, resulting in low transmission efficiency and susceptibility to interference, this solution uses a preset fixed frame format for data encapsulation and transmits directly via serial port. This avoids the instability of wireless signals and simplifies the data parsing process. For example, existing Wi-Fi transmission requires packetization and reassembly using the TCP / IP protocol, while this solution reduces data fragmentation and retransmission probability through single, complete transmission of serial port frames.

[0072] Through the above technical solution, this application can achieve efficient and reliable transmission of device identifiers, ensuring data consistency between cleaning equipment and base stations. The use of fixed frame format encapsulation reduces data transmission error rates, while the physical direct connection method of serial communication avoids the impact of workshop electromagnetic interference on the pairing process, thereby improving the pairing success rate and production efficiency on the production line.

[0073] This application further proposes that, after determining that the cleaning equipment and the base station have been paired, the application also includes performing a shutdown operation in response to a received shutdown command.

[0074] The shutdown command is a control signal that triggers the device to enter the shutdown process. It can be implemented using a pre-formatted serial communication message, which includes a device type identifier and a shutdown operation code. Receiving and processing this command ensures that the device promptly enters a safe shutdown state after the pairing process is completed, avoiding energy waste caused by continuous standby. Performing the shutdown operation means cutting off the device's main power supply or entering a low-power standby mode, which can be achieved by controlling the enable pin level of the power management chip. This operation forms a closed-loop control with the pairing process, ensuring that the production line equipment automatically enters the preset state after completing the necessary functions, reducing the need for manual intervention.

[0075] Understandably, once the cleaning equipment and the base station have completed the device identifier comparison and verification and confirmed successful pairing, the system continuously monitors the input signals of the communication serial port. If a specific data frame containing a shutdown command is received, the main control unit will parse the command content and trigger the shutdown process. For example, in a production line testing scenario, the host computer system can send a hexadecimal shutdown command code to the cleaning equipment via the communication serial port. After verifying the validity of the command, the cleaning equipment immediately cuts off its own power supply and simultaneously forwards a synchronous shutdown command to the base station via the communication serial port, achieving coordinated shutdown of the paired devices.

[0076] In some specific implementations, the trigger condition for the power-off command can be set to a preset waiting time after successful pairing. For example, if no new command is received for 10 seconds after pairing confirmation, an internal power-off signal is automatically generated. Furthermore, the power-off operation may include a data saving phase, such as writing the pairing record to non-volatile memory before performing the power-off operation.

[0077] Compared to existing technologies, current production line equipment requires manual power-off after pairing, resulting in redundant operation steps and the risk of misoperation. This solution integrates the power-off operation into the pairing process, allowing the equipment to automatically enter a shutdown state after completing its core functions. This effectively reduces operational steps on the production line and avoids energy consumption and signal interference caused by prolonged standby.

[0078] Through the above technical solution, this application achieves seamless integration of the pairing process and equipment status management. While improving the automation level of the production line, it eliminates the impact of manual operation delays on the production cycle and ensures that the equipment quickly enters a stable state after completing the necessary functions, creating a clean electromagnetic environment for subsequent production processes.

[0079] This application further proposes to generate a pairing success record after determining that the cleaning equipment and the base station have been paired. The record shall at least contain the binding relationship between the equipment identifier of the cleaning equipment and the equipment identifier of the base station, and send the pairing success record to the host computer system corresponding to the cleaning system.

[0080] Among them, the successful pairing record refers to structured data containing the binding relationship between the cleaning equipment and the base station equipment identifier. It can be implemented in the form of a database table or log file and is used to track the pairing status in subsequent production processes. The host computer system refers to the management platform that communicates with the cleaning system. It can use a wired network or wireless communication module to realize data transmission and is used for centralized storage and analysis of pairing records.

[0081] Understandably, once the cleaning equipment and the base station complete the comparison and verification of their device identifiers and confirm successful pairing, the system automatically generates a record containing the binding relationship between the device identifiers of both parties. This record is transmitted to the host computer system via a preset communication interface. The host computer system receives and stores the record so that production managers can monitor the pairing status in real time. For example, in a production line environment, if a pairing anomaly occurs, the problematic equipment can be quickly located by querying the record in the host computer system, avoiding the efficiency loss caused by manual troubleshooting.

[0082] Compared to existing technologies, which rely on wireless communication to complete pairing but lack a mechanism for recording pairing results, making it difficult to trace the root cause of subsequent communication anomalies. This solution generates and uploads pairing records, enabling the production line to obtain equipment pairing status in real time and reducing the risk of production interruptions due to pairing failures.

[0083] Through the above technical solution, this application achieves traceability of the pairing process, reduces manual intervention, improves the efficiency of the production line in handling pairing anomalies, and provides data support for subsequent equipment maintenance.

[0084] refer to Figure 5 , Figure 5 This is a schematic block diagram of a pairing device for a cleaning system provided in an embodiment of this application. In some embodiments, this application provides a pairing device 500 for a cleaning system, applied to a cleaning system including a cleaning device and a base station. The cleaning device is provided with a communication serial port, and the pairing device is disposed on the cleaning device. The device includes: a reading module 501, used to cause the cleaning device to read the device identifier stored in the cleaning device in response to a pairing drive signal received through the communication serial port; a sending module 502, used to cause the cleaning device to send the device identifier of the cleaning device to the base station through the communication serial port in response to a base station access signal received through the communication serial port, so that the base station stores the device identifier of the cleaning device as its own device identifier; a verification module 503, used to compare and verify the device identifier of the cleaning device and the device identifier of the base station when both the cleaning device and the base station are powered on, to obtain an identification verification result; and a pairing determination module 504, used to determine that the cleaning device and the base station have been paired if the identification verification results are consistent.

[0085] In addition, embodiments of this application also provide a control device, including: One or more processors; and A memory associated with one or more processors, the memory being used to store program instructions that, when read and executed by one or more processors, perform the steps of any of the methods in the foregoing method embodiments.

[0086] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the methods in the foregoing method embodiments.

[0087] in, Figure 6 An exemplary architecture of the control device is shown, which may include a processor 610, a video display adapter 611, a disk drive 612, an input / output interface 613, a network interface 614, and a memory 620. The processor 610, video display adapter 611, disk drive 612, input / output interface 613, network interface 614, and memory 620 can communicate with each other via a communication bus 630.

[0088] The processor 610 can be implemented using a general-purpose CPU, microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits to execute relevant programs and implement the technical solution provided in this application.

[0089] The memory 620 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 620 can store the operating system 621 for controlling the operation of the device 600, and the basic input / output system (BIOS) 622 for controlling the low-level operations of the device 600. Additionally, it can store a web browser 623, a data storage management system 624, and a pairing device 500 for the cleaning system, etc. The pairing device 500 for the cleaning system can be the application program that specifically implements the aforementioned steps in this embodiment. In summary, when the technical solution provided in this application is implemented through software or firmware, the relevant program code is stored in the memory 620 and executed by the processor 610.

[0090] Input / output interface 613 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.

[0091] Network interface 614 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0092] Bus 630 includes a pathway for transmitting information between various components of the device, such as processor 610, video display adapter 611, disk drive 612, input / output interface 613, network interface 614, and memory 620.

[0093] It should be noted that although the above-described device only shows the processor 610, video display adapter 611, disk drive 612, input / output interface 613, network interface 614, memory 620, bus 630, etc., in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the solution of this application, and does not necessarily include all the components shown in the figures.

[0094] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer program product. This computer program product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of the embodiments of this application.

[0095] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A pairing method for a cleaning system, characterized in that, The method is applied to the cleaning system, which includes cleaning equipment and a base station, wherein the cleaning equipment is equipped with a communication serial port. The cleaning device responds to the pairing drive signal received through the communication serial port and reads the device identifier stored in the cleaning device; The cleaning device responds to a base station access signal received through the communication serial port. The base station access signal indicates that the base station is connected to the communication serial port through a data transmission line. The cleaning device sends its device identifier to the base station through the communication serial port, so that the base station stores the cleaning device's device identifier as its own device identifier. When both the cleaning device and the base station are powered on, the device identifier of the cleaning device and the device identifier of the base station are compared and verified to obtain the identifier verification result. If the identification verification result indicates that the device identifier of the cleaning device and the device identifier of the base station are consistent, it is determined that the cleaning device and the base station have been paired.

2. The method according to claim 1, characterized in that, After obtaining the identifier verification result, the process also includes: Read the cleaning equipment batch identification information from the cleaning equipment, and read the base station batch identification information from the base station; The batch identification information of the cleaning equipment is compared with the batch identification information of the base station to obtain the batch verification result; Determining that the cleaning device and the base station are paired when the identification verification result indicates that the device identifier of the cleaning device and the device identifier of the base station are consistent includes: determining that the cleaning device and the base station are paired when the batch verification result indicates that the batch identification information of the cleaning device and the batch identification information of the base station are consistent, and the identification verification result indicates that the device identifier of the cleaning device and the device identifier of the base station are consistent.

3. The method according to claim 2, characterized in that, After obtaining the identifier verification result, the process also includes: If the batch verification result indicates that the batch identification information of the cleaning equipment is inconsistent with the batch identification information of the base station, a clearing command is sent to the base station so that the base station deletes the equipment identifier stored in the base station. In response to receiving a base station access signal again via the communication serial port, the cleaning device sends its device identifier to the base station via the communication serial port, so that the base station stores the cleaning device's device identifier as its own device identifier.

4. The method according to claim 1, characterized in that, The step of comparing and verifying the device identifier of the cleaning equipment and the device identifier of the base station to obtain the identifier verification result includes: The device identifier of the cleaning equipment and the device identifier of the base station are converted into the same data format to obtain a first string corresponding to the device identifier of the cleaning equipment and a second string corresponding to the device identifier of the base station. The first string and the second string are compared byte by byte to obtain the identifier verification result.

5. The method according to claim 1, characterized in that, The comparison and verification process between the device identifier of the cleaning equipment and the device identifier of the base station to obtain the identifier verification result includes: Calculate the first hash value of the device identifier of the cleaning device and the second hash value of the device identifier of the base station, respectively; The identifier verification result is obtained by comparing whether the first hash value and the second hash value are consistent.

6. The method according to claim 1, characterized in that, After determining that the cleaning device and the base station have been paired, the method further includes: Based on a preset sampling strategy, a target cleaning device and a target base station are selected from the multiple paired cleaning devices and multiple base stations. A communication link test based on device identifiers is performed on the target cleaning device and the target base station to obtain the communication test results; If the communication test results indicate that the communication link test has failed, the device identifier comparison and verification process is re-performed for the paired cleaning devices and the paired base stations.

7. The method according to claim 1, characterized in that, The cleaning device, in response to a pairing drive signal received via the communication serial port, reads the device identifier stored in the cleaning device, including: The cleaning device responds to the pairing drive signal and enters a preset test mode; In the test mode, a system information reading command is executed to obtain the device identifier.

8. The method according to claim 1, characterized in that, Sending the device identifier of the cleaning equipment to the base station via the communication serial port includes: The device identifier is encapsulated according to a preset communication protocol frame format; The encapsulated data frame is sent to the base station through the communication serial port.

9. The method according to claim 1, characterized in that, After determining that the cleaning device and the base station have been paired, the method further includes: In response to the received shutdown command, perform the shutdown operation.

10. The method according to claim 1, characterized in that, After determining that the cleaning device and the base station have been paired, the method further includes: A successful pairing record is generated, the record containing at least the binding relationship between the device identifier of the cleaning device and the device identifier of the base station; The successful pairing record is sent to the host computer system corresponding to the cleaning system.

11. A pairing device for a cleaning system, characterized in that, The system is applied to the cleaning system, which includes cleaning equipment and a base station. The cleaning equipment is equipped with a communication serial port, and the pairing device is disposed on the cleaning equipment. The device includes: The reading module is used to enable the cleaning device to read the device identifier stored in the cleaning device in response to a pairing drive signal received through the communication serial port; The sending module is configured to enable the cleaning device to respond to a base station access signal received through the communication serial port and send the device identifier of the cleaning device to the base station through the communication serial port, so that the base station stores the device identifier of the cleaning device as its own device identifier; The verification module is used to compare and verify the device identifier of the cleaning device and the device identifier of the base station when both the cleaning device and the base station are powered on, and to obtain the identification verification result. The pairing determination module is used to determine that the cleaning device and the base station have been paired if the identification verification results are consistent.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 10.