Clothes airing machine Bluetooth pairing method and system and storage medium
Through Bluetooth pairing technology and connection whitelist verification, the problem of high cost and poor stability of Bluetooth fast binding of electric clothes dryers is solved, and the rapid, stable connection and efficient pairing between devices are achieved, improving user experience and system security.
Patent Information
- Application Number
- CN202411301850.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-01-17
AI Technical Summary
The Bluetooth fast binding method of existing electric clothes dryers has the problems of high cost and poor stability. The traditional NFC module increases costs and has poor operation ease. QR code matching depends on printing quality and is easy to damage, resulting in poor user experience.
Using Bluetooth pairing technology, the Bluetooth master and slave enter the scanning and broadcast state when powered on, determine the pairing information and adjust the pairing logo, combine the signal strength and device name matching to achieve fast and stable connection between devices, and connect to white List and MAC address verification ensures security.
It realizes fast, stable and low-cost connection between clothes drying equipment, improves the accuracy and efficiency of pairing, enhances the stability and security of the system, reduces the complexity of user operations, and improves the user experience.
Smart Images

Figure CN119325076A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a clothes drying machine Bluetooth pairing method, system and storage medium. Background Art
[0002] With the rapid development of smart home technology, electric clothes drying rods, as a convenient living tool in modern families, have become the focus of consumers' attention for their intelligence and convenience. In early designs, wired connections were generally used between the clothes drying rod and the host, which was not only cumbersome to install, but also limited the choice of installation location for the clothes drying rod and seriously affected the overall aesthetics of the home environment. In order to solve these problems, wireless connection technology has gradually been introduced and applied to the field of electric clothes drying rods. Among them, wireless communication technologies represented by Bluetooth and WiFi are favored due to their advantages such as stable transmission and low power consumption.
[0003] In the application of Bluetooth wireless connection technology, the quick binding mechanism has become a key link to improve user experience. There are two main traditional Bluetooth quick binding methods: one is to use NFC (near field communication) technology to achieve automatic recognition and pairing between devices through simple proximity operations. Although this method is easy to operate, the additional NFC module significantly increases the product cost; the other is to scan the QR code on the clothes-drying pole and complete the binding in the supporting APP. Although this method avoids the increase in hardware costs, the precise matching of the QR code information and the printing quality have become new challenges. Once the QR code is damaged or the QR code is inconsistent with the Bluetooth address information on the clothes-drying pole, the binding will fail, increasing the complexity and inconvenience of user use.
[0004] It can be seen that the quick-binding method between the clothes drying rod and the main machine of the electric clothes drying machine in the prior art has the problems of high cost and poor stability. Summary of the invention
[0005] The purpose of the present application is to provide a clothes drying machine Bluetooth pairing method, system and storage medium to solve the problems of high cost and poor stability of the quick binding method between the clothes drying rod and the host of the electric clothes drying machine in the prior art.
[0006] In order to achieve the above purpose, the technical solution adopted in this application is as follows:
[0007] According to one aspect of an embodiment of the present application, a Bluetooth pairing method for a clothes dryer is provided, which is applied to a clothes dryer, wherein the clothes dryer includes a Bluetooth host and a Bluetooth slave respectively arranged on a first device and a second device of the clothes dryer, and the method includes: when the clothes dryer is powered on, controlling the Bluetooth host and the Bluetooth slave to enter a scanning state and a broadcasting state respectively; determining whether pairing information is received during a pairing period, and if so, adjusting the pairing flag in the broadcast information of the Bluetooth slave to pairing; determining whether there is a Bluetooth slave meeting preset conditions through the broadcast information scanned by the Bluetooth host, and if so, initiating a pairing and connection request to the Bluetooth slave meeting the preset conditions through the Bluetooth host.
[0008] According to the above technical means, by adopting Bluetooth pairing technology to replace the traditional high-cost and poorly stable quick binding method, a fast, stable and low-cost connection between the first device and the second device of the clothes drying machine is achieved. After power-on, the pairing process is automatically entered to ensure instant communication between devices. At the same time, through flexible pairing state adjustment and pairing condition filtering, the accuracy and efficiency of pairing are improved, effectively solving the problems of high cost and poor stability in the prior art.
[0009] Further, the broadcast information scanned by the Bluetooth host is used to determine whether there is a Bluetooth slave machine that meets the preset conditions, including: determining whether the pairing identifier in the Bluetooth slave machine broadcast information is currently pairable; determining whether the binding identifier in the Bluetooth slave machine broadcast information is unbound; determining whether the device name in the Bluetooth slave machine broadcast information is a preset device name; if all three determination results are yes, then it is determined that the corresponding Bluetooth slave machine meets the preset conditions, otherwise, it is determined that the corresponding Bluetooth slave machine does not meet the preset conditions.
[0010] According to the above technical means, by refining the screening mechanism in the Bluetooth pairing process, the accuracy and security of the clothes drying machine Bluetooth connection are significantly improved. By simultaneously checking whether the pairing identifier of the Bluetooth slave is pairable, whether the device is unbound, and whether the device name matches the preset, it is ensured that only Bluetooth slaves that meet specific conditions can successfully pair with the Bluetooth host. This method not only prevents unauthorized devices from accessing, but also enhances the stability of the system and user experience, and realizes a more intelligent and efficient Bluetooth pairing function for clothes drying machines.
[0011] Furthermore, determining whether there is a Bluetooth slave machine that meets the preset conditions through the broadcast information scanned by the Bluetooth host also includes: if a candidate Bluetooth slave machine that meets the preset conditions is currently scanned, the candidate Bluetooth slave machine is the target Bluetooth slave machine that meets the preset conditions; if multiple candidate Bluetooth slave machines that meet the preset conditions are currently scanned, the signal strength of the scanned Bluetooth slave machine is used as the preset condition, and the target Bluetooth slave machine that meets the preset conditions is selected according to the signal strength information.
[0012] According to the above technical means, by introducing signal strength as a preset condition, the accuracy and efficiency of the clothes drying machine Bluetooth pairing are further optimized. When there are multiple candidate Bluetooth slaves that meet the preset conditions, by selecting the one with the strongest signal strength as the pairing target, the problem of unstable connection caused by signal interference or long distance is effectively avoided. This design not only simplifies the user's pairing process, but also ensures that a more stable and reliable communication connection can be established between the clothes drying machine and the Bluetooth slave, thereby improving the overall system performance and user experience.
[0013] Furthermore, after pairing and connection are successful and a connection is established between the first device and the second device, it includes: when using pre-stored verification data to verify the legitimacy of the connection, saving the MAC address information in the Bluetooth slave broadcast information in the connection whitelist of the first device, and adjusting the binding flag in the Bluetooth slave broadcast information to bound.
[0014] According to the above technical means, the security and management efficiency of the clothes drying machine Bluetooth connection are significantly enhanced by implementing the connection verification and status update mechanism. After the pairing and connection are successful, the legitimacy of the connection is verified using the pre-stored verification data, ensuring that only authorized devices can establish a stable communication connection. At the same time, the MAC address of the Bluetooth slave is saved in the connection whitelist of the Bluetooth host to facilitate subsequent rapid identification and connection, and adjusting the device binding status of the Bluetooth slave to bound effectively prevents repeated pairing and unauthorized access, further improving the security of the system and user experience.
[0015] Further, when the second device is in a bound state, it includes: if the connection is disconnected and reconnected, the Bluetooth host determines whether the first device and the second device can establish a connection again based on the MAC address information and the connection whitelist in the broadcast information; and when the re-established connection is verified to be legal using pre-stored verification data, the re-established connection is maintained.
[0016] According to the above technical means, by introducing the connection whitelist and MAC address verification mechanism, the rapid recovery and security of the connection between the clothes drying machine devices are achieved when the Bluetooth slave is bound. When the connection is disconnected and attempts to reconnect, the Bluetooth host can quickly match the MAC address in the broadcast information with the connection whitelist to confirm the legitimacy of the device, thereby quickly restoring the connection. At the same time, the pre-stored verification data is used again to verify the legitimacy of the connection to ensure the security of the connection. This mechanism not only improves the user experience and reduces the inconvenience caused by disconnection, but also enhances the stability and security of the system.
[0017] Further, determining whether pairing information is received during the pairing period includes: when the first device and the second device are connected for the first time, or when either the first device and the second device needs to be reconnected after the device is replaced, determining whether a pairing instruction sent by an external terminal is received; if a pairing instruction sent by an external terminal is received, determining that the pairing information is received during the pairing period, otherwise, determining that the pairing information is not received during the pairing period.
[0018] According to the above technical means, by clarifying the receiving conditions and triggering mechanism of pairing information, the operation process of Bluetooth pairing of clothes drying machine is further refined, and the convenience and flexibility of user use are improved. This design enables users to flexibly control the pairing process according to their needs, while also enhancing the intelligence and adaptability of the system and improving the user experience.
[0019] Further, the first device and the second device correspond to a clothes drying machine host and a clothes drying machine rod, respectively, or correspond to a clothes drying machine rod and a clothes drying machine host, respectively.
[0020] According to another aspect of the embodiment of the present application, a clothes drying machine Bluetooth pairing system is also provided, including a first controller, a Bluetooth host, a second controller and a Bluetooth slave; the first controller and the Bluetooth host are arranged on the first device of the clothes drying machine; the first controller is connected to the Bluetooth host, and is used to control the Bluetooth host to enter a scanning state when the clothes drying machine is powered on, and determine whether there is a Bluetooth slave that meets preset conditions based on the broadcast information scanned by the Bluetooth host; and is used to initiate a pairing and connection request to the Bluetooth slave that meets the preset conditions through the Bluetooth host; the second controller and the Bluetooth slave are arranged on the second device of the clothes drying machine; the second controller is connected to the Bluetooth slave, and is used to control the Bluetooth slave to enter a broadcast state when the clothes drying machine is powered on, and adjust the pairing flag in the Bluetooth slave broadcast information to pairable when pairing information is received during the pairing period.
[0021] According to the above technical means, by integrating the first controller with the Bluetooth host, and the second controller with the Bluetooth slave, efficient and intelligent pairing between the internal devices of the clothes drying machine is achieved. The system automatically starts the pairing process after power-on. The first controller controls the Bluetooth host to enter the scanning state to find a qualified Bluetooth slave, while the second controller enables the Bluetooth slave to enter the broadcast state and prepare to receive pairing information. Once the pairing conditions are met, the system can quickly complete the pairing and connection without manual intervention, greatly improving the user experience. At the same time, the pairing identification adjustment mechanism within the system ensures the accuracy and security of the pairing.
[0022] Furthermore, after pairing and connection are successful and a connection is established between the first device and the second device, the first controller is also used to: save the MAC address information in the Bluetooth slave broadcast information in the connection whitelist of the first device when using pre-stored verification data to verify the legitimacy of the connection; the second controller is also used to: adjust the binding flag in the Bluetooth slave broadcast information to bound.
[0023] According to the above technical means, the security and management efficiency of the clothes drying machine Bluetooth pairing system are further enhanced by implementing a series of verification and status update operations after pairing and connection are successful. After the connection is successfully established, the system uses the pre-stored verification data to verify the legitimacy of the connection to ensure that only authorized devices can establish stable communication. At the same time, the first controller saves the MAC address of the Bluetooth slave in the connection whitelist to facilitate quick identification and connection in the future, while the second controller is responsible for adjusting the device binding status of the Bluetooth slave to bound, preventing repeated pairing and unauthorized access. This series of operations not only improves the user experience, but also enhances the overall security and stability of the system.
[0024] Furthermore, when the second device is in a bound state and the connection between the first device and the second device is disconnected and then reconnected, the first controller is also used to: determine whether there is a Bluetooth slave device that meets the reconnection conditions based on the broadcast information scanned by the Bluetooth host and the connection whitelist; and to re-establish a connection with the Bluetooth slave device that meets the reconnection conditions through the Bluetooth host; and maintain the re-established connection when the pre-stored verification data is used to verify that the re-established connection is legal.
[0025] According to the above technical means, when the connection is disconnected and attempts to reconnect, the first controller can intelligently determine whether there is a Bluetooth slave that meets the reconnection conditions based on the broadcast information scanned by the Bluetooth host and the connection whitelist. Once a qualified device is found, the system automatically initiates a reconnection request and ensures the legitimacy of the connection through pre-stored verification data. This process not only simplifies the user's operating process, but also greatly improves the success rate and efficiency of reconnection, and enhances the stability and user experience of the clothes drying machine Bluetooth pairing system.
[0026] Furthermore, the clothes drying machine Bluetooth pairing system also includes: an external terminal, which is equipped with a sending module, and the external terminal is used to: send a pairing instruction to the second device through the sending module when the first device and the second device are connected for the first time, or when either end of the first device and the second device needs to be reconnected after the device is replaced; a receiving module is also installed on the second device, and the second controller is also used to: after receiving the pairing instruction through the receiving module, adjust the pairing identifier in the Bluetooth slave broadcast information to pairable.
[0027] According to the above technical means, when the first connection is made or the device needs to be reconnected after replacement, the user can send a pairing instruction through the external terminal. After the instruction is received by the second device through the receiving module, the second controller immediately adjusts the pairing flag of the Bluetooth slave to a pairing state, thereby starting the pairing process. By introducing the external terminal and its sending module, as well as the receiving module on the second device, a more flexible and convenient pairing triggering method is provided for the clothes drying machine Bluetooth pairing system. This design not only enhances the convenience of user operation, but also makes the pairing process more intelligent and automated, further improving the user experience and overall performance of the clothes drying machine Bluetooth pairing system.
[0028] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; wherein the memory is used to store computer programs; and the processor is used to execute the steps of the clothes drying machine Bluetooth pairing method in any of the above embodiments by running the computer program stored in the memory.
[0029] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of the clothes drying machine Bluetooth pairing method in any of the above embodiments when running.
[0030] Beneficial effects of this application:
[0031] This application uses Bluetooth pairing technology to replace the traditional high-cost, poorly stable quick binding method, and realizes a fast, stable and low-cost connection between the first device (such as the clothes drying machine host) and the second device (such as the clothes drying machine rod). After power-on, it automatically enters the pairing process to ensure instant communication between devices. At the same time, through flexible pairing state adjustment and pairing condition filtering, the accuracy and efficiency of pairing are improved, effectively solving the problems of high cost and poor stability in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0034] Figure 1This is a structural block diagram of a clothes drying machine Bluetooth pairing system provided in an embodiment of the present application;
[0035] Figure 2 It is a flowchart of an optional clothes drying machine Bluetooth pairing method provided in an embodiment of the present application;
[0036] Figure 3 is a structural block diagram of an optional electronic device provided in an embodiment of the present application;
[0037] Figure 4-6 It is a flowchart of an optional method for pairing a clothes drying machine host and a clothes drying rod under different circumstances provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0039] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0040] With the rapid development of smart home technology, electric clothes drying rods have become a convenient tool for modern families. With the development of technology, wireless connection technology has gradually been introduced and applied to the field of electric clothes drying rods. Among them, wireless communication technologies represented by Bluetooth and WiFi are favored due to their advantages such as stable transmission and low power consumption. In the application of Bluetooth wireless connection technology, the fast binding (fast binding) mechanism has become a key link to improve user experience. There are two main traditional Bluetooth fast binding methods: one is to use NFC (near field communication) technology to achieve automatic recognition and pairing between devices through simple proximity operations. Although this method is easy to operate, the additional NFC module significantly increases the product cost; the other is to scan the QR code on the clothes drying rod and complete the binding in the supporting APP. Although this method avoids the increase in hardware costs, the accurate matching of the QR code information and the printing quality have become new challenges. Once the QR code is damaged or the QR code is inconsistent with the Bluetooth address information on the clothes drying rod, the binding will fail, which increases the complexity and inconvenience of user use.
[0041] To solve the above problems, according to one aspect of the embodiments of the present application, a clothes drying machine Bluetooth pairing system is provided. Figure 1 , Figure 1 : is a structural block diagram of a clothes drying machine Bluetooth pairing system provided in an embodiment of the present application, such as Figure 1 As shown, the clothes drying machine includes: a clothes drying rod 101 and a clothes drying machine host 102, one of the clothes drying rod 101 and the clothes drying machine host 102 is a first device, and the other is a second device; a first controller and a Bluetooth host are provided on the first device, the first controller is connected to the Bluetooth host, and is used to control the Bluetooth host to enter a scanning state when the clothes drying machine is powered on, and determine whether there is a qualified Bluetooth slave according to the broadcast information scanned by the Bluetooth host; and is used to initiate a pairing and connection request to a Bluetooth slave that meets preset conditions through the Bluetooth host; a second controller and a Bluetooth slave are provided on the second device, the second controller is connected to the Bluetooth slave, and is used to control the Bluetooth slave to enter a broadcast state when the clothes drying machine is powered on, and adjust the pairing mark in the Bluetooth slave broadcast information to pairable when pairing information is received during the pairing period. Figure 1 In the figure, the solid line represents a wired connection, the dotted line represents a wireless connection, and the arrow direction represents the data flow direction.
[0042] As an optional embodiment, the first device and the second device correspond to the clothes drying machine host 102 and the clothes drying rod 101, or correspond to the clothes drying rod 101 and the clothes drying machine host 102, respectively. It should be noted that the clothes drying rod 101 and the clothes drying machine host 102 are respectively installed with Bluetooth modules. When the Bluetooth module installed on the clothes drying rod 101 is set as a Bluetooth host, and the Bluetooth module installed on the clothes drying machine host 102 is set as a Bluetooth slave, the clothes drying rod 101 is the first device, and the clothes drying machine host 102 is the second device. When the Bluetooth module installed on the clothes drying rod 101 is set as a Bluetooth slave, and the Bluetooth module installed on the clothes drying machine host 102 is set as a Bluetooth host, the clothes drying rod 101 is the second device, and the clothes drying machine host 102 is the first device. Figure 1 1 is a structural block diagram of a clothes drying machine Bluetooth pairing system with a clothes drying rod 101 as a first device and a clothes drying machine host 102 as a second device.
[0043] After the power is turned on, the Bluetooth slave on the second device is configured to be in a broadcast state, and its broadcast message contains a MAC address, a device name, a pairing identifier, and a binding identifier. The MAC address is the address of the Bluetooth slave; the device name is the name of the Bluetooth slave; the pairing identifier indicates the current pairing state of the Bluetooth slave, and the pairing identifier can be pairable or unpairable; the binding identifier indicates the current binding state of the second device where the Bluetooth slave is located, and the binding identifier can be unbound or bound. After the power is turned on, the Bluetooth host on the first device is configured to be in a scanning state, scanning a specific Bluetooth slave, and actively pairing, binding, and connecting.
[0044] In this embodiment, the Bluetooth device installed on the clothes drying rod 101 and the clothes drying machine host 102 may be a device with a built-in Bluetooth module supporting the Bluetooth communication protocol. In this embodiment, the specific method for setting the Bluetooth module as a host or a slave is not specifically limited.
[0045] In actual application, when the clothes drying rod 101 and the clothes drying machine host 102 are powered on, the Bluetooth slave automatically broadcasts a message to the outside. At this time, the pairing mark in the broadcast message is unpairable and the binding mark is unbound. When the Bluetooth slave is in a pairable state, a broadcast message is sent, in which the pairing mark is pairable and the binding mark is unbound. The Bluetooth host decides whether to initiate active pairing, binding and connection based on the broadcast message of the scanned Bluetooth slave. Specifically, the first device receives the broadcast message through the Bluetooth host; parses the broadcast message to obtain the device information of the second device, wherein the device information includes MAC address information, device name, pairing mark and binding mark; when it is determined that the Bluetooth slave meets the preset conditions according to the device information of the second device, a pairing request is sent to the Bluetooth slave; after the second device receives the pairing request through the Bluetooth slave, a connection between the first device and the second device is established.
[0046] As an optional embodiment, after pairing and connection are successful and a connection is established between the first device and the second device, it includes: when using pre-stored verification data to verify the legitimacy of the connection, the first controller is also used to: save the MAC address information in the Bluetooth slave broadcast information in the connection whitelist of the first device, and the second controller is also used to: adjust the binding flag in the Bluetooth slave broadcast information to bound.
[0047] It is understandable that, when the pre-stored verification data is used to verify the legality of the connection, the second device adjusts the binding flag in the broadcast message of the Bluetooth slave to the bound state, and the first device saves the MAC address in the broadcast message in the connection whitelist of the host. In actual applications, if the Bluetooth connection is verified to be legal, the Bluetooth connection is maintained, and both the slave and the host will issue an audible and visual indication of a successful connection; if the Bluetooth connection is verified to be illegal, the Bluetooth connection is disconnected, and the host will issue an audible and visual indication of a failed connection, such as a light indication or a buzzer indication.
[0048] In specific practice, pre-stored verification data is used to verify whether the connection is legal. Random numbers can be stored in the clothes drying machine host 102 and the clothes drying rod 101 respectively. When verifying the legitimacy of the Bluetooth connection, the pre-stored random numbers are sent to the other party through the Bluetooth communication protocol, and then the received random numbers are encrypted, and the encrypted random numbers are sent to the other party through the Bluetooth communication protocol. Both parties decrypt the encrypted data and verify whether the decrypted random numbers are the same as the random numbers sent before. If both parties pass the verification, the connection is legal.
[0049] It is understandable that by implementing a series of verification and status update operations after pairing and connection are successful, the security and management efficiency of the clothes drying machine Bluetooth pairing system are further enhanced. After the connection is successfully established, the system uses the pre-stored verification data to verify the legitimacy of the connection to ensure that only authorized devices can establish stable communication. At the same time, the first controller saves the MAC address of the Bluetooth slave in the connection whitelist to facilitate quick identification and connection in the future, while the second controller is responsible for adjusting the device binding status of the Bluetooth slave to bound, preventing repeated pairing and unauthorized access. This series of operations not only improves the user experience, but also enhances the overall security and stability of the system.
[0050] As an optional embodiment, when the second device is in a bound state and the connection between the first device and the second device is disconnected and then reconnected, it includes: the first controller is also used to: determine whether there is a Bluetooth slave device that meets the reconnection conditions based on the broadcast information scanned by the Bluetooth host and the connection whitelist; be used to re-establish a connection with the Bluetooth slave device that meets the reconnection conditions through the Bluetooth host; and maintain the re-established connection when using pre-stored verification data to verify that the re-established connection is legal.
[0051] In specific practice, when the second device is in a bound state, the pairing mark in the Bluetooth slave broadcast message is unpairable and the binding mark is bound. If the connection between the first device and the second device is disconnected at this time, it is necessary to reconnect. When reconnecting, the Bluetooth slave broadcasts a broadcast message, in which the pairing mark is unpairable and the binding mark is bound; the first device receives the broadcast message through the Bluetooth host; the broadcast message is parsed to obtain the device information of the second device; when the Bluetooth slave that meets the reconnection conditions is determined according to the MAC address information in the device information of the second device and the connection whitelist, the Bluetooth connection between the first device and the second device is established again; when the pre-stored verification data is used to verify that the re-established connection is legal, the re-established connection is maintained. In this embodiment, the connection between the first device and the second device is disconnected and the need to reconnect includes: after the Bluetooth pairing and binding of the first device and the second device, the first device and the second device are reconnected after power off, or the connection between the first device and the second device is disconnected and reconnected.
[0052] It is understandable that when the connection is disconnected and attempts to reconnect, the first controller can intelligently determine whether there is a Bluetooth slave that meets the reconnection conditions based on the broadcast information scanned by the Bluetooth host and the connection whitelist. Once a qualified device is found, the system automatically initiates a reconnection request and ensures the legitimacy of the connection through pre-stored verification data. This process not only simplifies the user's operating process, but also greatly improves the success rate and efficiency of reconnection, and enhances the stability and user experience of the clothes drying machine Bluetooth pairing system.
[0053] As an optional embodiment, Figure 1 As shown, the clothes drying machine Bluetooth pairing system also includes: an external terminal 103, the external terminal 103 is equipped with a sending module, and the external terminal 103 is used to: when the first device and the second device are connected for the first time, or when the first device and the second device need to be reconnected after the device is replaced at either end, send a pairing instruction to the second device through the sending module; the second device is also equipped with a receiving module, and the second controller is also used to: after receiving the pairing instruction through the receiving module, adjust the pairing identifier in the Bluetooth slave broadcast information to a pairing state.
[0054] In practical applications, the external terminal 103 includes an APP of a smartphone, a remote controller, etc. The receiving module may be a 433 receiving module, and the sending module may be a 433 sending module. The above two modules are usually used together to form a 433 module group, which refers to a combination of wireless communication modules operating in the 433MHz frequency band.
[0055] It is understandable that when the first connection is made or the device needs to be reconnected after replacement, the user can send a pairing instruction through the external terminal. After the instruction is received by the second device through the receiving module, the second controller immediately adjusts the pairing flag of the Bluetooth slave to a pairing state, thereby starting the pairing process. By introducing an external terminal and its sending module, as well as a receiving module on the second device, a more flexible and convenient pairing triggering method is provided for the clothes drying machine Bluetooth pairing system. This design not only enhances the convenience of user operation, but also makes the pairing process more intelligent and automated, further improving the user experience and overall performance of the clothes drying machine Bluetooth pairing system.
[0056] According to another aspect of the embodiment of the present application, a clothes drying machine Bluetooth pairing method applied to a clothes drying machine is also provided, wherein the clothes drying machine includes a Bluetooth host and a Bluetooth slave respectively correspondingly arranged on a first device and a second device of the clothes drying machine. The clothes drying machine Bluetooth pairing method in this embodiment can be applied to a communication scenario between a clothes drying machine host and a clothes drying rod, wherein the Bluetooth host and the Bluetooth slave are respectively correspondingly arranged on the clothes drying machine host and the clothes drying rod, or respectively correspondingly arranged on the clothes drying rod and the clothes drying machine host. For the clothes drying machine Bluetooth pairing method provided in this embodiment, please refer to Figure 2 , Figure 2 is a flow chart of an optional clothes drying machine Bluetooth pairing method provided in an embodiment of the present application, such as Figure 2 As shown, the clothes drying machine Bluetooth pairing method of the embodiment of the present application specifically includes the following steps:
[0057] Step S201, when the clothes drying machine is powered on, the Bluetooth host and the Bluetooth slave are controlled to enter the scanning state and the broadcasting state respectively;
[0058] Step S202, determining whether pairing information is received during the pairing period, and if so, adjusting the pairing flag in the Bluetooth slave broadcast information to pairing;
[0059] Step S203: determine whether there is a Bluetooth slave device that meets the preset conditions through the broadcast information scanned by the Bluetooth host. If yes, initiate a pairing and connection request to the Bluetooth slave device that meets the preset conditions through the Bluetooth host.
[0060] Through the above steps S201 to S203, the Bluetooth pairing technology is used to replace the traditional high-cost and poorly stable quick binding method, so as to achieve a fast, stable and low-cost connection between the first device (such as the main unit of the clothes drying machine) and the second device (such as the clothes drying rod). After power-on, the pairing process is automatically entered to ensure instant communication between devices. At the same time, through flexible pairing state adjustment and pairing condition filtering, the accuracy and efficiency of pairing are improved, and the problems of high cost and poor stability in the prior art are effectively solved.
[0061] Combine the following Figure 2The Bluetooth pairing method of the clothes drying machine in the embodiment of the present application is explained.
[0062] In the technical solution of step S201, when the clothes drying machine is powered on, the Bluetooth host and the Bluetooth slave are controlled to enter the scanning state and the broadcasting state respectively.
[0063] In actual application, when the clothes drying machine is powered on, the Bluetooth host on the first device enters the scanning state, and the Bluetooth slave on the second device enters the broadcast state, automatically broadcasting messages to the outside. At this time, the pairing mark in the broadcast message is unpairable, and the binding mark is unbound. The pairing mark is used to indicate the current pairing state of the Bluetooth slave, and the binding mark is used to indicate the current binding state of the second device where the Bluetooth slave is located. The first device receives the broadcast message through the Bluetooth host. When the Bluetooth slave is in a pairable state, the pairing mark in the broadcast message is pairable, and the binding mark is unbound.
[0064] In the technical solution of step S202, it is determined whether pairing information is received during the pairing period. If so, the pairing flag in the Bluetooth slave broadcast information is adjusted to pairing.
[0065] In this embodiment, the pairing information is used to modify the pairing state of the second device where the Bluetooth slave is located. The clothes drying machine changes the pairing state of the second device where the Bluetooth slave is located to a pairable state only when the pairing information is received. In specific practice, the pairing information is the pairing instruction sent by the external terminal. When the first device and the second device need to be connected, the external terminal sends the pairing instruction to the second device. After receiving the pairing instruction, the second device adjusts the pairing flag in the broadcast information of the Bluetooth slave to pairable. At this time, the second device where the Bluetooth slave is located enters the pairable state.
[0066] As an optional embodiment, determining whether pairing information is received during the pairing period includes: when the first device and the second device are connected for the first time, or when either the first device and the second device needs to be reconnected after the device is replaced, determining whether a pairing instruction sent by an external terminal is received; if a pairing instruction sent by the external terminal is received, it is determined that the pairing information is received during the pairing period, otherwise, it is determined that the pairing information is not received during the pairing period.
[0067] In specific practice, the external terminal includes a smartphone APP, a remote controller, etc. In actual application, when the first device and the second device are connected for the first time, or when either of the first device and the second device needs to be reconnected after the device is replaced, it is assumed that the user presses the pairing button of the remote controller within 10 seconds after the clothes dryer is powered on, or presses the pairing button in the smartphone APP to send a pairing instruction to the second device, and the second device configures the pairing identifier in the broadcast message as pairable. At this time, the pairing state of the second device is set to the pairable state.
[0068] It is understandable that by clarifying the receiving conditions and triggering mechanism of pairing information, the operation process of Bluetooth pairing of clothes drying machine is further refined, and the convenience and flexibility of user use are improved. This design allows users to flexibly control the pairing process according to their needs, while also enhancing the intelligence and adaptability of the system and improving the user experience.
[0069] In the technical solution of step S203, the broadcast information scanned by the Bluetooth host determines whether there is a Bluetooth slave that meets the preset conditions. If so, the Bluetooth host initiates a pairing and connection request to the Bluetooth slave that meets the preset conditions. The Bluetooth slave that meets the preset conditions can be regarded as a candidate Bluetooth slave that can be scanned, and the candidate Bluetooth slave can be one or more. The Bluetooth slave that meets the preset conditions can be regarded as a target Bluetooth slave that can be paired and connected among the candidate Bluetooth slaves.
[0070] As an optional embodiment, determining whether there is a Bluetooth slave machine that meets preset conditions through the broadcast information scanned by the Bluetooth host includes: determining whether the pairing identifier in the Bluetooth slave machine broadcast information is currently pairable; determining whether the binding identifier in the Bluetooth slave machine broadcast information is unbound; determining whether the device name in the Bluetooth slave machine broadcast information is a preset device name; if all three determination results are yes, then determining that the corresponding Bluetooth slave machine meets the preset conditions, otherwise, determining that the corresponding Bluetooth slave machine does not meet the preset conditions.
[0071] In specific practice, the preset condition specifically refers to the pairing identifier in the broadcast message of the Bluetooth slave being pairable, the binding identifier being unbound, and the device name being the preset device name. The preset device name refers to a specific name of Bluetooth that is preset. When the pairing identifier, binding identifier, and device name in the broadcast message of the Bluetooth slave all meet the preset conditions, it is determined that the corresponding Bluetooth slave meets the preset conditions; otherwise, it is determined that the corresponding Bluetooth slave does not meet the preset conditions. A Bluetooth slave that meets the preset conditions is called a candidate Bluetooth slave.
[0072] It is understandable that by refining the screening mechanism in the Bluetooth pairing process, the accuracy and security of the clothes drying machine Bluetooth connection have been significantly improved. By simultaneously checking whether the pairing identifier of the Bluetooth slave is pairable, whether the device is unbound, and whether the device name matches the preset, it is ensured that only Bluetooth slaves that meet specific conditions can successfully pair with the Bluetooth host. This method not only prevents unauthorized devices from accessing, but also enhances the stability of the system and user experience, and realizes a more intelligent and efficient Bluetooth pairing function for clothes drying machines.
[0073] Since the candidate Bluetooth slave devices that meet the preset conditions scanned by the Bluetooth host may be one or more, when multiple candidate Bluetooth slave devices are scanned, the preset conditions also include signal strength information of the candidate Bluetooth slave devices.
[0074] As an optional embodiment, determining whether there is a Bluetooth slave machine that meets the preset conditions through the broadcast information scanned by the Bluetooth host also includes: if a candidate Bluetooth slave machine that meets the preset conditions is currently scanned, the candidate Bluetooth slave machine is the target Bluetooth slave machine that meets the preset conditions; if multiple candidate Bluetooth slave machines that meet the preset conditions are currently scanned, the signal strength of the scanned Bluetooth slave machine is used as the preset condition, and the target Bluetooth slave machine that meets the preset conditions is selected according to the signal strength information. The target Bluetooth slave machine is selected according to the signal strength information, that is, all the candidate Bluetooth slave machines are sorted according to the size of the signal strength, and the candidate Bluetooth slave machine with the strongest signal strength is determined as the target Bluetooth slave machine.
[0075] It is understandable that by introducing signal strength as a preset condition, the accuracy and efficiency of the clothes drying machine Bluetooth pairing are further optimized. When there are multiple candidate Bluetooth slaves that meet the preset conditions, by selecting the one with the strongest signal strength as the pairing target, the problem of unstable connection caused by signal interference or long distance is effectively avoided. This design not only simplifies the user's pairing process, but also ensures that a more stable and reliable communication connection can be established between the clothes drying machine and the Bluetooth slave, thereby improving the overall system performance and user experience.
[0076] As an optional embodiment, after pairing and connection are successful and a connection is established between the first device and the second device, it includes: while using pre-stored verification data to verify the legitimacy of the connection, saving the MAC address information in the Bluetooth slave broadcast information in the connection whitelist of the first device, and adjusting the binding flag in the Bluetooth slave broadcast information to bound.
[0077] In specific practice, pre-stored verification data is used to verify whether the connection is legal. Random numbers can be stored in the first device and the second device respectively. When verifying the legitimacy of the Bluetooth connection, the pre-stored random numbers are sent to the other party through the Bluetooth communication protocol, and then the received random numbers are encrypted, and the encrypted random numbers are sent to the other party through the Bluetooth communication protocol. The two parties decrypt the encrypted data respectively and verify whether the decrypted random numbers are the same as the random numbers sent previously. If both parties pass the verification, the Bluetooth connection is legal.
[0078] In actual application, if the connection is verified to be legal, the connection is maintained, and the first device and the second device send out an audible and visual indication of successful connection; if the connection is verified to be illegal, the connection is disconnected, and the first device sends out an audible and visual indication of failed connection. In this embodiment, the audible and visual indication is a light indication or a buzzer indication.
[0079] It is understandable that by implementing the connection verification and status update mechanism, the security and management efficiency of the clothes drying machine's Bluetooth connection are significantly enhanced. After pairing and connection are successful, the pre-stored verification data is used to verify the legitimacy of the connection, ensuring that only authorized devices can establish a stable communication connection. At the same time, the MAC address of the Bluetooth slave is saved in the connection whitelist of the Bluetooth host to facilitate subsequent rapid identification and connection, and adjusting the device binding status of the Bluetooth slave to bound effectively prevents repeated pairing and unauthorized access, further improving the security of the system and user experience.
[0080] As an optional embodiment, when the second device is in a bound state, it includes: if the connection is disconnected and reconnected, the Bluetooth host determines whether the first device and the second device can establish a connection again based on the MAC address information and the connection whitelist in the broadcast information; when the re-established connection is verified to be legal using pre-stored verification data, the re-established connection is maintained.
[0081] The connection whitelist stores the MAC address information of the paired and bound Bluetooth slaves. Therefore, when reconnecting, the connection whitelist is directly used as the reconnection condition to verify whether the first device and the second device can establish a connection again. If the connection between the first device and the second device is disconnected and needs to be reconnected, when reconnecting, the pairing mark in the broadcast message broadcasted by the Bluetooth slave is unpairable and the binding mark is bound; the first device determines whether the first device and the second device are connected again according to the MAC address information in the device information of the second device and the connection whitelist; when the pre-stored verification data is used to verify that the re-established connection is legal, the re-established connection is maintained. For example, the second device of the previously bound Bluetooth slave is no longer there, and now it is necessary to re-establish the connection between the new second device and the first device. The Bluetooth host scanning time of the first device lasts for more than 3 seconds and enters the state of scanning and binding new devices. After the connection between the new Bluetooth slave is verified to be legal, the old MAC address information in the connection whitelist of the first device is deleted, and the new MAC address information is saved in the connection whitelist. At the same time, the first device makes an audible and visual indication of successful connection, such as a light indication or a buzzer indication.
[0082] It is understandable that by introducing the connection whitelist and MAC address verification mechanism, the rapid recovery and security of the connection between the clothes drying machine devices are achieved when the Bluetooth slave is bound. When the connection is disconnected and an attempt is made to reconnect, the Bluetooth host can quickly match the MAC address in the broadcast information with the connection whitelist to confirm the legitimacy of the device, thereby quickly restoring the connection. At the same time, the pre-stored verification data is used again to verify the legitimacy of the connection, ensuring the security of the connection. This mechanism not only improves the user experience and reduces the inconvenience caused by disconnection, but also enhances the stability and security of the system.
[0083] As an optional embodiment, the Bluetooth host determines whether the first device and the second device can establish a connection again based on the MAC address information and the connection whitelist in the broadcast information, including: querying the MAC address information in the connection whitelist; if the MAC address information can be queried in the connection whitelist, it is determined that the first device and the second device can establish a connection again, otherwise, it is determined that the first device and the second device cannot establish a connection again.
[0084] It is understandable that by querying the MAC address in the connection whitelist to determine whether the slave side meets the second connection condition, this practice greatly improves the security and efficiency of the connection. It can quickly verify the identity of the slave side, ensuring that only previously authorized devices can re-establish the connection, effectively preventing the access of illegal devices. At the same time, this verification process also simplifies the user's operation, and a fast and secure reconnection can be achieved without a complicated pairing process.
[0085] In actual applications, the Bluetooth pairing method for clothes drying machines is to establish a connection between the clothes drying machine host and the clothes drying rod, which can be divided into three situations: 1. The clothes drying machine host and the clothes drying rod are paired and bound for the first time; 2. After the clothes drying machine host and the clothes drying rod are paired and bound, the Bluetooth connection is disconnected and needs to be reconnected; 3. The clothes drying machine host and the clothes drying rod have been paired and bound, but after a device is replaced with a new device, the clothes drying machine host and the clothes drying rod are re-paired and bound again.
[0086] For the first case: When the clothes drying machine host and the clothes drying rod are paired and bound for the first time, please refer to the specific pairing and binding process between the clothes drying machine host and the clothes drying rod. Figure 4 , Figure 4 The clothes drying machine host is the second device where the Bluetooth slave is located, that is, the slave end, and the clothes drying rod is the first device where the Bluetooth host is located, that is, the pairing and binding process of the host end, in which the external terminal is the remote control. Figure 4As shown, when the clothes drying machine host and the clothes drying rod are powered on at the same time, the Bluetooth slave on the clothes drying machine host enters the broadcast state, and the pairing mark in its broadcast message is unpairable, and the binding mark is unbound; the Bluetooth host on the clothes drying rod enters the scanning state. At this time, the user presses the pairing button of the remote control within 10 seconds after the clothes drying machine host is powered on, and sends a pairing instruction to the clothes drying machine host. After receiving the pairing instruction, the clothes drying machine host sets the pairing mark in the broadcast message to pairable. When the Bluetooth host scans a Bluetooth slave that meets the first connection condition, meeting the first connection condition means that the broadcast message contains a specific device name and the pairing mark is pairable. If only one Bluetooth slave that meets the first connection condition is scanned, the pairing, binding and connection process is immediately initiated; if multiple Bluetooth slaves that meet the first connection condition are scanned, the Bluetooth slave with the strongest signal strength is selected to initiate active pairing, binding and connection. After the connection is successful, the clothes drying machine host and the clothes drying rod verify the legitimacy of the Bluetooth connection through the pre-set verification data. If the connection is legal, the clothes drying machine host sets the binding flag in the broadcast message to bound, and the clothes drying rod saves the MAC address information of the currently connected peer device in the connection whitelist. The clothes drying machine host and the clothes drying rod controller will indicate the successful connection at this time, such as light indication or buzzer indication. If the connection is illegal, the connection will be disconnected, and the clothes drying rod will make an audible and visual indication of connection failure. The user needs to power off the clothes drying machine host and the clothes drying rod, and then re-execute this process to continue to complete the initial pairing and binding.
[0087] For the second case: After the clothes drying machine host and the clothes drying rod are paired and bound, the Bluetooth connection is disconnected and needs to be reconnected. For the specific pairing and binding process between the clothes drying machine host and the clothes drying rod, please refer to Figure 5 , Figure 5 In the figure, the clothes drying machine host is the second device where the Bluetooth slave is located, that is, the slave end, and the clothes drying rod is the first device where the Bluetooth host is located, that is, the pairing and binding process of the host end, in which the external terminal is the remote control. Figure 5 As shown in the figure, when the clothes drying machine host and the clothes drying rod are powered off and then powered on, or when they are disconnected and reconnected, the Bluetooth slave on the clothes drying machine host enters the broadcast state, and the pairing mark in its broadcast message is unpairable, and the binding mark is bound; the Bluetooth host on the clothes drying rod enters the scanning state, and the Bluetooth host immediately initiates a connection as soon as it scans a Bluetooth slave that meets the second connection condition. Meeting the second connection condition means that the MAC address information in the broadcast message exists in the connection whitelist, and after the connection is successful, the Bluetooth connection legitimacy verification is performed to ensure that the device is connected normally. In actual applications, the reconnection process can usually be completed within 3 seconds.
[0088] For the third case, it specifically involves replacing the Bluetooth slave while the original Bluetooth host remains unchanged, or replacing the Bluetooth host while the original Bluetooth slave remains unchanged. When the Bluetooth host is replaced while the original Bluetooth slave remains unchanged, the specific pairing and binding process between the clothes drying machine host and the clothes drying rod is the same as the pairing and binding process in the first case above, and will not be repeated here.
[0089] When the Bluetooth slave is replaced and the original Bluetooth host remains unchanged, please refer to the specific pairing and binding process between the clothes drying machine host and the clothes drying rod. Figure 6 , Figure 6 In the figure, the clothes drying machine host is the second device where the Bluetooth slave is located, that is, the slave end, and the clothes drying rod is the first device where the Bluetooth host is located, that is, the pairing and binding process of the host end, in which the external terminal is the remote control. Figure 6 As shown, when the clothes drying machine host and the clothes drying rod are powered on at the same time, the Bluetooth slave on the clothes drying machine host enters the broadcast state, and the pairing mark in its broadcast message is unpairable and the binding mark is unbound; the Bluetooth host on the clothes drying rod enters the scanning state. Since the previously bound Bluetooth slave no longer exists, when the scanning time lasts for more than 3 seconds, the Bluetooth host enters the state of scanning and binding new devices. At this time, the user presses the pairing button of the remote control within 10 seconds after the clothes drying machine host is powered on, and sends a pairing instruction to the clothes drying machine host. After receiving the pairing instruction, the clothes drying machine host sets the pairing mark in the broadcast message to pairable. When the Bluetooth host scans a Bluetooth slave that meets the first connection condition, it executes a new round of pairing and binding process. After the connection is successful, the clothes drying machine host and the clothes drying rod verify the legitimacy of the Bluetooth connection through the pre-set verification data. If the connection is legal, the clothes drying machine host sets the binding mark in the broadcast message to bound, and the clothes drying rod deletes the old MAC address information saved in the connection whitelist, and saves the new MAC address information in the connection whitelist. At the same time, the clothes drying machine host and the clothes drying rod controller indicate that the connection is successful.
[0090] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0091] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM (Read-Only Memory) / RAM (Random Access Memory), a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0092] According to another aspect of the embodiments of the present application, an electronic device for implementing the above-mentioned clothes drying machine Bluetooth pairing method is also provided. The electronic device can be a server, a terminal, or a combination thereof.
[0093] According to another embodiment of the present application, an electronic device is also provided. Figure 3 , Figure 3 is a structural block diagram of an optional electronic device provided in an embodiment of the present application, such as Figure 3 As shown, the electronic device may include: a processor 1501 , a communication interface 1502 , a memory 1503 and a communication bus 1504 , wherein the processor 1501 , the communication interface 1502 , and the memory 1503 communicate with each other via the communication bus 1504 .
[0094] Memory 1503, used for storing computer programs;
[0095] The processor 1501, when used to execute the program stored in the memory 1503, can implement the following steps:
[0096] Step S201, when the clothes drying machine is powered on, the Bluetooth host and the Bluetooth slave are controlled to enter the scanning state and the broadcasting state respectively;
[0097] Step S202, determining whether pairing information is received during the pairing period, and if so, adjusting the pairing flag in the Bluetooth slave broadcast information to pairing;
[0098] Step S203: determine whether there is a Bluetooth slave device that meets the preset conditions through the broadcast information scanned by the Bluetooth host. If yes, initiate a pairing and connection request to the Bluetooth slave device that meets the preset conditions through the Bluetooth host.
[0099] It is understood that the technical solution provided by this embodiment, the processor of the electronic device, by adopting Bluetooth pairing technology to replace the traditional high-cost, poorly stable quick binding method, realizes a fast, stable and low-cost connection between the first device (such as the clothes drying machine host) and the second device (such as the clothes drying machine rod). After power-on, it automatically enters the pairing process to ensure instant communication between devices. At the same time, through flexible pairing state adjustment and pairing condition filtering, the accuracy and efficiency of pairing are improved, effectively solving the problems of high cost and poor stability in the prior art.
[0100] Optionally, in this embodiment, the above-mentioned communication bus can be a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used for communication between the above-mentioned electronic device and other devices.
[0101] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0102] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0103] An embodiment of the present application further provides a computer-readable storage medium, the storage medium including a stored program, wherein the method steps of the above method embodiment are executed when the program is run.
[0104] Optionally, in this embodiment, the storage medium may include but is not limited to: a U disk, a ROM, a RAM, a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0105] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0106] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods of each embodiment of the present application.
[0107] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0108] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0109] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.
[0110] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0111] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A clothes drying machine Bluetooth pairing method, applied to the clothes drying machine, characterized in that: The clothes drying machine comprises a Bluetooth host and a Bluetooth slave respectively arranged on a first device and a second device of the clothes drying machine, and the method comprises: When the clothes drying machine is powered on, the Bluetooth host and Bluetooth slave are controlled to enter the scanning state and the broadcasting state respectively; Determine whether pairing information is received during the pairing period, and if so, adjust the pairing flag in the Bluetooth slave broadcast information to pairing; The broadcast information scanned by the Bluetooth host determines whether there is a Bluetooth slave device that meets the preset conditions. If so, the Bluetooth host initiates a pairing and connection request to the Bluetooth slave device that meets the preset conditions.
2. The clothes drying machine Bluetooth pairing method according to claim 1, characterized in that: The method of determining whether there is a Bluetooth slave device that meets preset conditions based on the broadcast information scanned by the Bluetooth host includes: Determine whether the pairing flag in the Bluetooth slave broadcast information is currently pairable; Determine whether the binding flag in the Bluetooth slave broadcast information is unbound; Determine whether the device name in the Bluetooth slave broadcast information is the preset device name; If the three determination results are all yes, it is determined that the corresponding Bluetooth slave meets the preset condition; otherwise, it is determined that the corresponding Bluetooth slave does not meet the preset condition.
3. The clothes drying machine Bluetooth pairing method according to claim 2, characterized in that: The method of determining whether there is a Bluetooth slave device that meets the preset conditions through the broadcast information scanned by the Bluetooth host also includes: If a candidate Bluetooth slave device that meets the preset conditions is currently scanned, the candidate Bluetooth slave device is the target Bluetooth slave device that meets the preset conditions; If multiple candidate Bluetooth slaves meeting the preset conditions are currently scanned, the signal strength of the scanned Bluetooth slaves is used as the preset condition, and a target Bluetooth slave meeting the preset condition is selected according to the signal strength information.
4. The clothes drying machine Bluetooth pairing method according to claim 1, characterized in that: After pairing and connection are successful, the connection between the first device and the second device is established, including: When the pre-stored verification data is used to verify the legitimacy of the connection, the MAC address information in the Bluetooth slave broadcast information is saved in the connection whitelist of the first device, and the binding flag in the Bluetooth slave broadcast information is adjusted to bound.
5. The clothes drying machine Bluetooth pairing method according to claim 1, characterized in that: When the second device is in a bound state, the method includes: If the connection is disconnected and reconnected, the Bluetooth host determines whether the first device and the second device can establish a connection again based on the MAC address information and the connection whitelist in the broadcast information; When the pre-stored verification data is used to verify that the re-established connection is legitimate, the re-established connection is maintained.
6. The clothes drying machine Bluetooth pairing method according to claim 1, characterized in that: The determining whether pairing information is received during the pairing period includes: When the first device and the second device are connected for the first time, or when either the first device or the second device needs to be reconnected after the device is replaced, determining whether a pairing instruction sent by an external terminal is received; If the pairing instruction sent by the external terminal is received, it is determined that the pairing information is received during the pairing period; otherwise, it is determined that the pairing information is not received during the pairing period.
7. The clothes drying machine Bluetooth pairing method according to any one of claims 1 to 6, characterized in that: The first device and the second device correspond to a clothes drying machine host and a clothes drying machine rod, respectively, or correspond to a clothes drying machine rod and a clothes drying machine host, respectively.
8. A clothes drying machine Bluetooth pairing system, characterized in that: It includes a first controller, a Bluetooth host, a second controller and a Bluetooth slave; The first controller and the Bluetooth host are arranged on a first device of the clothes drying machine; The first controller is connected to the Bluetooth host, and is used to control the Bluetooth host to enter a scanning state when the clothes drying machine is powered on, and to determine whether there is a Bluetooth slave that meets the preset conditions according to the broadcast information scanned by the Bluetooth host; and is used to initiate a pairing and connection request to the Bluetooth slave that meets the preset conditions through the Bluetooth host; The second controller and the Bluetooth slave are arranged on a second device of the clothes drying machine; The second controller is connected to the Bluetooth slave, and is used to control the Bluetooth slave to enter the broadcast state when the clothes drying machine is powered on, and adjust the pairing identifier in the Bluetooth slave broadcast information to pairable when receiving pairing information during the pairing period.
9. The clothes drying machine Bluetooth pairing system according to claim 8, characterized in that: The clothes drying machine Bluetooth pairing system also includes: An external terminal, wherein the external terminal is equipped with a sending module, and the external terminal is used to: when the first device and the second device are connected for the first time, or when the first device and the second device need to be reconnected after either end of the first device and the second device is replaced, send a pairing instruction to the second device through the sending module; The second device is also equipped with a receiving module, and the second controller is further used for: after receiving the pairing instruction through the receiving module, adjusting the pairing mark in the Bluetooth slave broadcast information to pairable.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the clothes drying machine Bluetooth pairing method described in any one of claims 1 to 7 when running.