Air conditioner bluetooth connection method, device and medium

By broadcasting non-directional broadcast packets during the Bluetooth connection process between the air conditioner and the mobile device, parsing and verifying device information, generating verification codes, recording device addresses, and issuing specific flags, the problems of Bluetooth connection pairing time and interference are solved, and a highly efficient and stable Bluetooth connection is achieved.

CN116017381BActive Publication Date: 2026-02-17GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211559862.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-06
Publication Date
2026-02-17
Estimated Expiration
2042-12-06

AI Technical Summary

Technical Problem

Bluetooth pairing can be time-consuming and prone to malicious interference, especially in the field of air conditioning control, where it is difficult to guarantee normal pairing and use between mobile devices and air conditioners.

Method used

By broadcasting connectable non-directional broadcast packets at preset time intervals, parsing and verifying the address information and verification code of the mobile device, randomly generating a verification code, recording the address of the verified device, and sending a broadcast packet with a specific connectable flag, a Bluetooth connection is finally established.

Benefits of technology

It implements adaptive connection authentication, avoids resource consumption caused by unauthorized connection operations, improves the efficiency and stability of Bluetooth connections, and ensures fast connection of normal devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116017381B_ABST
    Figure CN116017381B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of Internet of Things, and provides a kind of air conditioner bluetooth connection method, equipment and medium, by air conditioner periodic broadcast connectable non-directional broadcast package, second connectable non-directional broadcast package sent by mobile device is analyzed and verified, and verification code is randomly generated, after receiving and verifying third connectable non-directional broadcast package sent by mobile device, fourth connectable non-directional broadcast package with the specific connectable mark of air conditioner is sent, when receiving the connection request package of mobile device, bluetooth connection is established with mobile device, and then it can be connected in the adaptive connection authentication of non-connecting stage using connectable non-directional broadcast in broadcast stage, avoid the resource occupation caused by illegal connection operation of other equipment, improve bluetooth connection pairing efficiency and stability.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of Internet of Things, and in particular to an air conditioner Bluetooth connection method, device and medium. BACKGROUND

[0002] With the Internet of Things of air conditioners, more and more air conditioner devices are equipped with Bluetooth modules, and the demand for mobile device control developed based on Bluetooth communication is also growing. However, the Bluetooth connection pairing itself has the disadvantage of long time consumption. If there is a mobile device connecting and pairing with a Bluetooth device, it is difficult for other mobile devices to successfully connect and pair with the Bluetooth device.

[0003] In the field of air conditioner control, this disadvantage is particularly obvious. If other mobile devices maliciously connect and pair with the air conditioner Bluetooth, it is difficult to ensure the connection and pairing between the normal mobile device and the air conditioner and the normal use on the existing Bluetooth connection pairing process. SUMMARY

[0004] In view of the above, it is necessary to provide an air conditioner Bluetooth connection method, device and medium, aiming to solve the interference problem of Bluetooth connection between the air conditioner and the mobile device.

[0005] An air conditioner Bluetooth connection method, the air conditioner Bluetooth connection method comprising:

[0006] Broadcasting a first connectable non-directional broadcast packet every preset time interval;

[0007] When a second connectable non-directional broadcast packet sent by the mobile device to the first connectable non-directional broadcast packet is received, a second analysis result is obtained by analyzing the second connectable non-directional broadcast packet;

[0008] Verifying the second analysis result, generating a verification code randomly after the second analysis result is verified, and displaying the generated verification code;

[0009] When a third connectable non-directional broadcast packet sent by the mobile device based on the verification code is received, a third analysis result is obtained by analyzing the third connectable non-directional broadcast packet;

[0010] Verifying the third analysis result, recording the address information of the mobile device in the third analysis result after the third analysis result is verified, and sending a fourth connectable non-directional broadcast packet with an air conditioner specific connectable flag;

[0011] When a connection request packet sent by the mobile device based on the fourth connectable non-directional broadcast packet is received, a Bluetooth connection is established between the connection request packet and the mobile device.

[0012] According to the preferred embodiment of the present application, the first connectable non-directional broadcast packet comprises an air conditioner specific connectable verification mark and address information of the air conditioner.

[0013] According to the preferred embodiment of the present application, the verification of the second resolution result comprises:

[0014] When the second resolution result shows that the address information included in the second connectable non-directional broadcast packet is the same as the address information of the air conditioner, and the second connectable non-directional broadcast packet comprises the air conditioner specific connectable verification mark, it is determined that the second resolution result passes the verification; or

[0015] When the second resolution result shows that the address information included in the second connectable non-directional broadcast packet is not the same as the address information of the air conditioner, and / or the second connectable non-directional broadcast packet does not comprise the air conditioner specific connectable verification mark, it is determined that the second resolution result fails the verification.

[0016] According to the preferred embodiment of the present application, the verification of the third resolution result comprises:

[0017] When the third resolution result shows that the address information included in the third connectable non-directional broadcast packet is the same as the address information of the air conditioner, and the verification code included in the third connectable non-directional broadcast packet is the same as the verification code generated by the air conditioner, it is determined that the third resolution result passes the verification; or

[0018] When the third resolution result shows that the address information included in the third connectable non-directional broadcast packet is not the same as the address information of the air conditioner, and / or the verification code included in the third connectable non-directional broadcast packet is not the same as the verification code generated by the air conditioner, it is determined that the third resolution result fails the verification.

[0019] According to the preferred embodiment of the present application, the establishment of the Bluetooth connection between the connection request packet and the mobile device comprises:

[0020] Obtaining sender address information corresponding to the connection request packet;

[0021] Comparing the sender address information with recorded address information;

[0022] When the sender address information is the same as the recorded address information, the Bluetooth connection with the mobile device is allowed to be established; or

[0023] When the sender address information is not the same as the recorded address information, the Bluetooth connection with the mobile device is refused to be established.

[0024] A kind of air conditioner Bluetooth connection method, applied to mobile device, the mobile device is communicated with air conditioner, the air conditioner Bluetooth connection method includes:

[0025] When receiving the first connectable non-directional broadcast package broadcasted by the air conditioner, the first connectable non-directional broadcast package is parsed to obtain a first parsing result;

[0026] The first parsing result is verified, and after the first parsing result is verified, a second connectable non-directional broadcast package is sent to the air conditioner according to the first parsing result;

[0027] When detecting that there is a verification code input, a third connectable non-directional broadcast package is sent according to the verification code;

[0028] When receiving the fourth connectable non-directional broadcast package with air conditioner specific connectable mark sent by the air conditioner, a connection request package is sent to the air conditioner.

[0029] According to the preferred embodiment of the application, the first parsing result is verified, comprising:

[0030] When the first parsing result shows that the first connectable non-directional broadcast package includes air conditioner specific connectable verification mark, it is determined that the first parsing result is verified;Or

[0031] When the first parsing result shows that the first connectable non-directional broadcast package does not include the air conditioner specific connectable verification mark, it is determined that the first parsing result is not verified.

[0032] According to the preferred embodiment of the application, the second connectable non-directional broadcast package is sent to the air conditioner according to the first parsing result, comprising:

[0033] The air conditioner specific connectable verification mark and the address information of the air conditioner are obtained from the first parsing result;

[0034] The address information of the mobile device is obtained;

[0035] The second connectable non-directional broadcast package is generated according to the air conditioner specific connectable verification mark, the address information of the air conditioner and the address information of the mobile device;

[0036] The second connectable non-directional broadcast package is sent to the air conditioner.

[0037] A kind of air conditioner Bluetooth connection device, runs in air conditioner, the air conditioner is communicated with mobile device, the air conditioner Bluetooth connection device includes:

[0038] Broadcasting unit, for broadcasting first connectable non-directional broadcast package every preset time interval;

[0039] a parsing unit, configured to parse a second connectable non-directional broadcast packet sent by the mobile device for the first connectable non-directional broadcast packet to obtain a second parsing result;

[0040] a verifying unit, configured to verify the second parsing result, and generate a verification code randomly after the second parsing result passes the verification, and display the generated verification code;

[0041] The parsing unit is further configured to parse a third connectable non-directional broadcast packet sent by the mobile device based on the verification code to obtain a third parsing result when the third connectable non-directional broadcast packet is received.

[0042] The verifying unit is further configured to verify the third parsing result, and record address information of the mobile device in the third parsing result after the third parsing result passes the verification, and send a fourth connectable non-directional broadcast packet with an air conditioner specific connectable flag.

[0043] a connecting unit, configured to establish a Bluetooth connection with the mobile device according to a connection request packet sent by the mobile device based on the fourth connectable non-directional broadcast packet when the connection request packet is received.

[0044] An air conditioner Bluetooth connection system running on a mobile device, the mobile device being in communication with an air conditioner, the air conditioner Bluetooth connection system comprising:

[0045] a parsing module, configured to parse a first connectable non-directional broadcast packet broadcast by the air conditioner to obtain a first parsing result when the first connectable non-directional broadcast packet is received;

[0046] a verifying module, configured to verify the first parsing result, and send a second connectable non-directional broadcast packet to the air conditioner according to the first parsing result after the first parsing result passes the verification;

[0047] a sending module, configured to send a third connectable non-directional broadcast packet according to a verification code when it is detected that the verification code is inputted;

[0048] a connecting module, configured to send a connection request packet to the air conditioner when a fourth connectable non-directional broadcast packet with an air conditioner specific connectable flag sent by the air conditioner is received.

[0049] A computer device, comprising:

[0050] a memory, storing at least one instruction; and

[0051] a processor, executing the instruction stored in the memory to implement the air conditioner Bluetooth connection method.

[0052] A computer readable storage medium has at least one instruction stored therein, and the at least one instruction is executed by a processor in a computer device to implement the air conditioner Bluetooth connection method.

[0053] From the above technical solutions, it can be seen that the present application can use the connectable non-directional broadcast in the broadcast phase to realize the adaptive connection authentication in the non-connection phase, avoid resource occupation caused by illegal connection operations of other devices, and improve the Bluetooth connection pairing efficiency and stability. BRIEF DESCRIPTION OF DRAWINGS

[0054] Figure 1 is a flowchart of a preferred embodiment of the air conditioner Bluetooth connection method of the present application.

[0055] Figure 2 is a flowchart of another preferred embodiment of the air conditioner Bluetooth connection method of the present application.

[0056] Figure 3 is a functional module diagram of a preferred embodiment of the air conditioner Bluetooth connection device of the present application.

[0057] Figure 4 is a functional module diagram of a preferred embodiment of the air conditioner Bluetooth connection system of the present application.

[0058] Figure 5 is a structural schematic diagram of a computer device for implementing a preferred embodiment of the air conditioner Bluetooth connection method of the present application. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described in detail below in combination with the drawings and specific embodiments.

[0060] As shown in Figure 1 is a flowchart of a preferred embodiment of the air conditioner Bluetooth connection method of the present application. The order of steps in the flowchart can be changed according to different needs, and some steps can be omitted.

[0061] The air conditioner Bluetooth connection method is applied to one or more computer devices, and the computer device is a device capable of automatically performing numerical calculation and / or information processing according to pre-set or stored instructions. The hardware thereof includes but is not limited to microprocessors, application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0062] The computer device can be any electronic product that can interact with a user, such as a personal computer, a tablet computer, a smartphone, a personal digital assistant (PDA), a game console, an interactive Internet Protocol Television (IPTV), a smart wearable device, etc.

[0063] The computer device can also include a network device and / or a user device. The network device includes, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud composed of a large number of hosts or network servers based on cloud computing.

[0064] The server can be a standalone server, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms, etc.

[0065] Artificial intelligence (AI) is the use of digital computers or computer-controlled machines to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0066] Artificial intelligence basic technologies generally include technologies such as sensors, special artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. Artificial intelligence software technology mainly includes computer vision technology, robot technology, biometric technology, speech processing technology, natural language processing technology, and machine learning / deep learning, etc.

[0067] The network in which the computer device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.

[0068] The air conditioner Bluetooth connection method is applied to an air conditioner, the air conditioner communicates with a mobile device, and the method includes:

[0069] S10, broadcast a first connectable non-directional broadcast packet every preset time interval.

[0070] For example, the Bluetooth device A periodically sends broadcast data to other devices in the environment, the non-directional broadcast data is used to inform the Bluetooth device receiving the data that the Bluetooth device A can be connected, and the Bluetooth device A receives any connection. That is, the Bluetooth device A sends a broadcast to the outside, and the content of the broadcast is mainly to inform other Bluetooth devices receiving the broadcast that they can be connected to the Bluetooth device A.

[0071] In the embodiment, the address information of the sender is further included in each connectable non-directional broadcast packet to indicate the identity of the sender.

[0072] In the embodiment, the preset time interval can be customized.

[0073] In the embodiment, the air conditioner refers to an air conditioner device with Bluetooth function.

[0074] In the embodiment, the first connectable non-directional broadcast packet includes an air conditioner specific connectable verification flag and address information of the air conditioner.

[0075] The air conditioner specific connectable verification flag is a flag information which needs to be formulated by both parties. The air conditioner specific connectable verification flag can be a number, a letter, binary data, etc., and finally appears as byte data of the communication bottom layer.

[0076] The address information of the air conditioner refers to the MAC (Media Access Control) address of the air conditioner.

[0077] S11, when the second connectable non-directional broadcast packet sent by the mobile device for the first connectable non-directional broadcast packet is received, the second connectable non-directional broadcast packet is parsed to obtain a second parsing result.

[0078] In the embodiment, the second parsing result includes information carried by the second connectable non-directional broadcast packet, such as address information, flag information, etc.

[0079] S12, verifying the second parsing result, randomly generating a verification code after the second parsing result passes the verification, and displaying the generated verification code.

[0080] In the embodiment, the verification of the second parsing result includes:

[0081] When the second parsing result shows that the address information included in the second connectable non-directional broadcast packet is the same as the address information of the air conditioner, and the air conditioner specific connectable verification flag is included in the second connectable non-directional broadcast packet, it is determined that the second parsing result passes the verification; or

[0082] When the second analysis result shows that the address information included in the second connectable non-directional broadcast packet is not the same as the address information of the air conditioner, and / or the air conditioner-specific connectable verification flag is not included in the second connectable non-directional broadcast packet, it is determined that the second analysis result fails to pass verification.

[0083] In this embodiment, the verification code can be two digits, and the number of digits of the verification code can be configured according to the display screen capacity of the air conditioner.

[0084] After the verification code is randomly generated, the verification code can be displayed on the display panel of the air conditioner for viewing.

[0085] S13, when the third connectable non-directional broadcast packet issued by the mobile device based on the verification code is received, the third connectable non-directional broadcast packet is analyzed to obtain a third analysis result.

[0086] In this embodiment, the third analysis result includes information carried by the third connectable non-directional broadcast packet, such as the verification code, the address information of the mobile device, etc.

[0087] S14, verifying the third analysis result, and after the third analysis result passes verification, recording the address information of the mobile device in the third analysis result, and issuing a fourth connectable non-directional broadcast packet with an air conditioner-specific connectable flag.

[0088] In this embodiment, the verification of the third analysis result includes:

[0089] When the third analysis result shows that the address information included in the third connectable non-directional broadcast packet is the same as the address information of the air conditioner, and the verification code included in the third connectable non-directional broadcast packet is the same as the verification code generated by the air conditioner, it is determined that the third analysis result passes verification; or

[0090] When the third analysis result shows that the address information included in the third connectable non-directional broadcast packet is not the same as the address information of the air conditioner, and / or the verification code included in the third connectable non-directional broadcast packet is not the same as the verification code generated by the air conditioner, it is determined that the third analysis result fails to pass verification.

[0091] Further, when the third analysis result passes verification, the address information of the mobile device in the third analysis result is recorded, so as to subsequently perform Bluetooth connection with the designated mobile device according to the recorded address information.

[0092] Further, a fourth connectable non-directional broadcast packet with an air conditioner-specific connectable flag is issued.

[0093] The air conditioner specific connectable flag is also a kind of flag information, which can be a number, a letter, binary data, etc., and finally appears as byte data of a communication bottom layer.

[0094] S15, when receiving the connection request packet sent by the mobile device based on the fourth connectable non-directional broadcast packet, establishing a Bluetooth connection with the mobile device according to the connection request packet.

[0095] In this embodiment, the connection request packet is a connection request initiated by an initiator to a specified broadcaster.

[0096] In this embodiment, establishing a Bluetooth connection with the mobile device according to the connection request packet includes:

[0097] Obtaining the sender address information corresponding to the connection request packet;

[0098] Comparing the sender address information with the recorded address information;

[0099] When the sender address information is the same as the recorded address information, allowing the Bluetooth connection with the mobile device; or

[0100] When the sender address information is different from the recorded address information, refusing to establish a Bluetooth connection with the mobile device.

[0101] By comparing the sender address information with the recorded address information, the Bluetooth connection can be realized specifically, avoiding resource occupation caused by illegal connection of other devices to the air conditioner, and thus improving the efficiency and stability of the air conditioner Bluetooth connection.

[0102] For example, after the air conditioner turns on the Bluetooth broadcast, there are multiple other mobile devices in the environment, but the connection request initiated by the other mobile devices after receiving the air conditioner Bluetooth broadcast will be ignored by the air conditioner immediately, only the mobile device supporting the air conditioner control (i.e., the address recorded by the air conditioner) can be connected and paired, and the connection process is fast and not disturbed by the connection of other mobile devices.

[0103] As can be seen from the above technical solution, the present application can use the connectable non-directional broadcast in the broadcast stage to realize the adaptive connection authentication in the non-connection stage, avoid resource occupation caused by illegal connection operation of other devices, and improve the Bluetooth connection and pairing efficiency and stability.

[0104] As shown in FIG. Figure 2 Another preferred embodiment of the air conditioner Bluetooth connection method of the present application is shown in the flowchart. According to different needs, the order of steps in the flowchart can be changed, and some steps can be omitted.

[0105] The air conditioner Bluetooth connection method is applied to a mobile device in communication with an air conditioner, and the method comprises the following steps:

[0106] S20, when receiving the first connectable non-directional broadcast packet broadcast by the air conditioner, parsing the first connectable non-directional broadcast packet to obtain a first parsing result.

[0107] In this embodiment, the first parsing result can include information carried by the first connectable non-directional broadcast packet, such as an air conditioner specific connectable verification flag and address information of the air conditioner.

[0108] S21, verifying the first parsing result, and after the first parsing result passes the verification, sending a second connectable non-directional broadcast packet to the air conditioner according to the first parsing result.

[0109] In this embodiment, the verification of the first parsing result comprises:

[0110] When the first parsing result shows that the first connectable non-directional broadcast packet includes the air conditioner specific connectable verification flag, it is determined that the first parsing result passes the verification; or

[0111] When the first parsing result shows that the first connectable non-directional broadcast packet does not include the air conditioner specific connectable verification flag, it is determined that the first parsing result does not pass the verification.

[0112] In this embodiment, the sending of the second connectable non-directional broadcast packet to the air conditioner according to the first parsing result comprises:

[0113] Obtaining the air conditioner specific connectable verification flag and the address information of the air conditioner from the first parsing result;

[0114] Obtaining address information of the mobile device;

[0115] Generating the second connectable non-directional broadcast packet according to the air conditioner specific connectable verification flag, the address information of the air conditioner, and the address information of the mobile device;

[0116] Sending the second connectable non-directional broadcast packet to the air conditioner.

[0117] The address information of the mobile device can be a MAC (Media Access Control) address of the mobile device.

[0118] The second connectable non-directional broadcast packet includes the air conditioner specific connectable verification flag, the address information of the air conditioner, and the address information of the mobile device, so that the Bluetooth connection between the air conditioner and the specified mobile device can be established through the connectable non-directional broadcast packet.

[0119] S22, when detecting that there is a code input, issuing a third connectable non-directional broadcast packet according to the code.

[0120] In this embodiment, the third connectable non-directional broadcast packet includes the code.

[0121] S23, when receiving the fourth connectable non-directional broadcast packet with the air conditioner specific connectable flag issued by the air conditioner, sending a connection request packet to the air conditioner.

[0122] The air conditioner specific connectable flag is used to indicate that the specified mobile device establishes a Bluetooth connection with the air conditioner.

[0123] The connection request packet is a connection request initiated by the initiator to the specified broadcaster.

[0124] From the above technical solution, it can be seen that the present application can use connectable non-directional broadcast in the broadcast phase to realize adaptive connection authentication in the non-connection phase, avoid resource occupation caused by illegal connection operation of other devices, and improve the Bluetooth connection pairing efficiency and stability.

[0125] As shown in Figure 3 The air conditioner Bluetooth connection device 11 includes a broadcast unit 110, an analysis unit 111, a verification unit 112, and a connection unit 113. The modules / units referred to in the present application are a series of computer program segments that can be executed by a processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module / unit will be described in detail in the subsequent embodiments.

[0126] The air conditioner Bluetooth connection device 11 runs on the air conditioner, and the air conditioner communicates with the mobile device, including:

[0127] The broadcast unit 110 is configured to broadcast a first connectable non-directional broadcast packet at a preset time interval.

[0128] For example, the Bluetooth device A periodically broadcasts data to other devices in the environment. The non-directional broadcast data is used to notify the Bluetooth device receiving the data that it can initiate a connection to the Bluetooth device A, and the Bluetooth device A will receive any connection. That is, the Bluetooth device A broadcasts to the outside, and the main purpose of the broadcast content is to notify other Bluetooth devices receiving the broadcast that they can connect to the Bluetooth device A.

[0129] In this embodiment, the address information of the sender is also included in each connectable non-directional broadcast packet to indicate the sender's identity.

[0130] In the embodiment, the preset time interval can be customized.

[0131] In the embodiment, the air conditioner refers to an air conditioner device with Bluetooth function.

[0132] In the embodiment, the first connectable non-directional broadcast packet includes an air conditioner specific connectable verification flag and address information of the air conditioner.

[0133] The air conditioner specific connectable verification flag is a flag information which needs to be formulated by both parties. The air conditioner specific connectable verification flag can be a number, a letter, binary data, etc., and finally appears as byte data of the communication bottom layer.

[0134] The address information of the air conditioner refers to the MAC (Media Access Control) address of the air conditioner.

[0135] The analysis unit 111 is configured to analyze the second connectable non-directional broadcast packet to obtain a second analysis result when the second connectable non-directional broadcast packet is received.

[0136] In the embodiment, the second analysis result includes information carried by the second connectable non-directional broadcast packet, such as address information, flag information, etc.

[0137] The verification unit 112 is configured to verify the second analysis result, randomly generate a verification code after the second analysis result passes the verification, and display the generated verification code.

[0138] In the embodiment, the verification unit 112 verifies the second analysis result, including:

[0139] When the second analysis result shows that the address information included in the second connectable non-directional broadcast packet is the same as the address information of the air conditioner, and the air conditioner specific connectable verification flag is included in the second connectable non-directional broadcast packet, it is determined that the second analysis result passes the verification; or

[0140] When the second analysis result shows that the address information included in the second connectable non-directional broadcast packet is not the same as the address information of the air conditioner, and / or the air conditioner specific connectable verification flag is not included in the second connectable non-directional broadcast packet, it is determined that the second analysis result does not pass the verification.

[0141] In the embodiment, the verification code can be two digits, and the number of digits of the verification code can be configured according to the display screen capacity of the air conditioner.

[0142] After the verification code is randomly generated, the verification code can be displayed on the display panel of the air conditioner for viewing.

[0143] The parsing unit 111 is further configured to parse the third connectable non-directional broadcast packet to obtain a third parsing result when the third connectable non-directional broadcast packet is received.

[0144] In this embodiment, the third parsing result includes information carried by the third connectable non-directional broadcast packet, such as the verification code, the address information of the mobile device, and the like.

[0145] The verification unit 112 is further configured to verify the third parsing result, and record the address information of the mobile device in the third parsing result when the third parsing result passes the verification, and send a fourth connectable non-directional broadcast packet with an air conditioner specific connectable flag.

[0146] In this embodiment, the verification unit 112 verifies the third parsing result, including:

[0147] When the third parsing result shows that the address information included in the third connectable non-directional broadcast packet is the same as the address information of the air conditioner, and the verification code included in the third connectable non-directional broadcast packet is the same as the verification code generated by the air conditioner, it is determined that the third parsing result passes the verification; or

[0148] When the third parsing result shows that the address information included in the third connectable non-directional broadcast packet is not the same as the address information of the air conditioner, and / or the verification code included in the third connectable non-directional broadcast packet is not the same as the verification code generated by the air conditioner, it is determined that the third parsing result does not pass the verification.

[0149] Further, when the third parsing result passes the verification, the address information of the mobile device in the third parsing result is recorded, so as to subsequently establish a Bluetooth connection with the specified mobile device according to the recorded address information.

[0150] Further, a fourth connectable non-directional broadcast packet with an air conditioner specific connectable flag is sent.

[0151] The air conditioner specific connectable flag is also a kind of flag information, which can be a number, a letter, binary data, etc., and finally appears as byte data of a communication bottom layer.

[0152] The connection unit 113 is configured to establish a Bluetooth connection with the mobile device according to a connection request packet sent by the mobile device based on the fourth connectable non-directional broadcast packet when the connection request packet is received.

[0153] In the embodiment, the connection request packet is a connection request initiated by an initiator to a specified broadcaster.

[0154] In the embodiment, the connection unit 113 establishes a Bluetooth connection with the mobile device according to the connection request packet comprises:

[0155] Obtaining the sender address information corresponding to the connection request packet;

[0156] Comparing the sender address information with the recorded address information;

[0157] When the sender address information is the same as the recorded address information, the Bluetooth connection with the mobile device is allowed; or

[0158] When the sender address information is not the same as the recorded address information, the Bluetooth connection with the mobile device is refused.

[0159] By comparing the sender address information with the recorded address information, the Bluetooth connection can be realized specifically, the resource occupation caused by the illegal connection of other devices to the air conditioner which is not recorded by the air conditioner can be avoided, and the efficiency and stability of the Bluetooth connection of the air conditioner are improved.

[0160] For example, after the air conditioner opens the Bluetooth broadcast, there are multiple other mobile devices in the environment, but the connection request initiated by the other mobile devices after receiving the Bluetooth broadcast of the air conditioner will be ignored by the air conditioner immediately, only the mobile device supporting the control of the air conditioner (i.e. the address recorded by the air conditioner) can be connected and paired, and the connection process is fast and is not disturbed by the connection of other mobile devices.

[0161] As can be seen from the above technical solutions, the air conditioner Bluetooth connection system can realize the adaptive connection authentication in the non-connection stage by using the connectable non-directional broadcast in the broadcast stage, avoid the resource occupation caused by the illegal connection operation of other devices, and improve the efficiency and stability of the Bluetooth connection and pairing.

[0162] As shown in FIG. 2, it is a functional module diagram of the preferred embodiment of the air conditioner Bluetooth connection system. The air conditioner Bluetooth connection system 22 comprises an analysis module 220, a verification module 221, an issuing module 222, and a connection module 223. The module / unit referred to in the present application is a series of computer program segments which can be executed by a processor and can complete a fixed function, and is stored in a memory. In the embodiment, the functions of each module / unit will be described in detail in the subsequent embodiments. Figure 4 The air conditioner Bluetooth connection system 22 runs on a mobile device, and the mobile device communicates with the air conditioner, comprising:

[0163]

[0164] ​The parsing module 220 is configured to parse the first connectable non-directional broadcast packet to obtain a first parsing result when the first connectable non-directional broadcast packet of the air conditioner is received.

[0165] In this embodiment, the first parsing result can include information carried by the first connectable non-directional broadcast packet, such as an air conditioner specific connectable verification flag and address information of the air conditioner.

[0166] The verification module 221 is configured to verify the first parsing result, and send a second connectable non-directional broadcast packet to the air conditioner according to the first parsing result when the first parsing result passes the verification.

[0167] In this embodiment, the verification module 221 verifies the first parsing result by:

[0168] When the first parsing result shows that the first connectable non-directional broadcast packet includes the air conditioner specific connectable verification flag, it is determined that the first parsing result passes the verification; or

[0169] When the first parsing result shows that the first connectable non-directional broadcast packet does not include the air conditioner specific connectable verification flag, it is determined that the first parsing result does not pass the verification.

[0170] In this embodiment, the verification module 221 sends a second connectable non-directional broadcast packet to the air conditioner according to the first parsing result by:

[0171] Obtaining the air conditioner specific connectable verification flag and the address information of the air conditioner from the first parsing result;

[0172] Obtaining address information of the mobile device;

[0173] Generating the second connectable non-directional broadcast packet according to the air conditioner specific connectable verification flag, the address information of the air conditioner and the address information of the mobile device;

[0174] Sending the second connectable non-directional broadcast packet to the air conditioner.

[0175] The address information of the mobile device can be a MAC (Media Access Control) address of the mobile device.

[0176] The second connectable non-directional broadcast packet includes the air conditioner specific connectable verification flag, the address information of the air conditioner and the address information of the mobile device, so that a Bluetooth connection between the air conditioner and the specified mobile device can be established through the connectable non-directional broadcast packet.

[0177] The sending module 222 is configured to send a third connectable non-directional broadcast packet according to the verification code when detecting that the verification code is input.

[0178] In the embodiment, the third connectable non-directional broadcast packet includes the verification code.

[0179] The connecting module 223 is configured to send a connection request packet to the air conditioner when receiving a fourth connectable non-directional broadcast packet sent by the air conditioner and carrying an air conditioner specific connectable flag.

[0180] The air conditioner specific connectable flag is used to indicate that the designated mobile device establishes a Bluetooth connection with the air conditioner.

[0181] The connection request packet is a connection request initiated by an initiator to a designated broadcaster.

[0182] As can be seen from the above technical solutions, the application can realize adaptive connection authentication in the non-connection stage by using the connectable non-directional broadcast in the broadcast stage, avoid resource occupation caused by illegal connection operations of other devices, and improve the Bluetooth connection pairing efficiency and stability.

[0183] As shown in Figure 5 Fig. 1 is a structural schematic diagram of a computer device according to a preferred embodiment of the air conditioner Bluetooth connection method of the application.

[0184] The computer device 1 can include a memory 12, a processor 13 and a bus, and can further include a computer program, such as an air conditioner Bluetooth connection program, stored in the memory 12 and executable on the processor 13.

[0185] Those skilled in the art can understand that the schematic diagram is only an example of the computer device 1 and does not limit the computer device 1, which can be a bus type structure or a star type structure, and the computer device 1 can further include more or less other hardware or software or different component arrangements, such as the computer device 1 can further include an input / output device, a network access device, etc.

[0186] It should be noted that the computer device 1 is only an example, and other existing or future electronic products, such as those adaptable to the application, should also be included in the protection scope of the application and included herein by reference.

[0187] The memory 12 includes at least one type of readable storage medium, such as a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 12 can be an internal storage unit of the computer device 1, such as a mobile hard disk of the computer device 1. In other embodiments, the memory 12 can also be an external storage device of the computer device 1, such as a plug-in mobile hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory 12 can include both an internal storage unit and an external storage device of the computer device 1. The memory 12 can be used to store application software and various data installed in the computer device 1, such as the code of the air conditioner Bluetooth connection program, etc., and can also be used to temporarily store data that has been output or will be output.

[0188] The processor 13 can be composed of an integrated circuit in some embodiments, such as a single packaged integrated circuit or a plurality of packaged integrated circuits with the same or different functions, including one or more combinations of a central processing unit (CPU), a microprocessor, a digital processing chip, a graphics processor, and various control chips, etc. The processor 13 is a control unit of the computer device 1, which connects various components of the computer device 1 through various interfaces and lines, executes programs or modules stored in the memory 12 (such as the air conditioner Bluetooth connection program, etc.), and calls data stored in the memory 12 to perform various functions and process data of the computer device 1.

[0189] The processor 13 executes an operating system and various application programs installed in the computer device 1. The processor 13 executes the application programs to implement the steps in each of the above air conditioner Bluetooth connection method embodiments, such as Figures 1-2 the steps shown above.

[0190] The computer program can be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to complete the present application. The one or more modules / units can be a series of computer readable instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program in the computer device 1. For example, the computer program can be divided into a broadcasting unit 110, a parsing unit 111, a verification unit 112, a connection unit 113, and / or a parsing module 220, a verification module 221, an issuing module 222, and a connection module 223.

[0191] The integrated units in the form of software function modules described above can be stored in a computer readable storage medium. The software function modules described above are stored in a storage medium, including a plurality of instructions for causing a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to execute part of the air conditioner Bluetooth connection method described in various embodiments of the present application.

[0192] The modules / units integrated in the computer device 1, if implemented in the form of software function modules and sold or used as independent products, can be stored in a computer readable storage medium. Based on this understanding, the present application can also be implemented by a computer program to instruct related hardware devices to complete all or part of the processes in the above-mentioned embodiments. The computer program can be stored in a computer readable storage medium, and when the processor executes the computer program, the steps of the above-mentioned various method embodiments can be implemented.

[0193] The computer program includes computer program code, which can be in the form of source code, object code, executable files, or some intermediate forms, etc. The computer readable medium can include any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory, etc.

[0194] Further, the computer readable storage medium can mainly include a storage program area and a storage data area, wherein the storage program area can store an operating system, at least one application required by a function, etc.; and the storage data area can store data created according to the use of the blockchain node, etc.

[0195] The blockchain referred to in the present application is a new application mode of distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm and other computer technologies. Blockchain, in essence, is a decentralized database, which is a series of data blocks associated using cryptographic methods, each data block contains a batch of network transaction information, used to verify the validity of the information (anti-fake) and generate the next block. The blockchain can include a blockchain underlying platform, a platform product service layer, and an application service layer, etc.

[0196] The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one straight line is used in Figure 5 , but it does not mean that there is only one bus or one type of bus. The bus is arranged to realize the connection and communication between the memory 12, the at least one processor 13, etc.

[0197] Although not shown, the computer device 1 can also include a power supply (such as a battery) for powering the various components. Preferably, the power supply can be logically connected to the at least one processor 13 through a power management device, so that the power management device can realize functions such as charge management, discharge management, and power consumption management. The power supply can also include one or more direct current or alternating current power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The computer device 1 can also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described here.

[0198] Further, the computer device 1 can also include a network interface, which can optionally include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used to establish a communication connection between the computer device 1 and other computer devices.

[0199] Optionally, the computer device 1 can further comprise a user interface, which can be a display, an input unit such as a keyboard, and optionally a standard wired interface, a wireless interface. Optionally, in some embodiments, the display can be an LED display, a liquid crystal display, a touch liquid crystal display, an OLED touch screen, etc. The display can also be appropriately referred to as a display screen or a display unit, for displaying information processed in the computer device 1 and for displaying a visualized user interface.

[0200] It should be understood that the embodiments are only for illustration and do not limit the scope of the patent application.

[0201] Figure 5 Only the computer device 1 with components 12-13 is shown, and those skilled in the art can understand that, Figure 5 The structure shown does not constitute a limitation on the computer device 1, and can include fewer or more components than shown, or combine certain components, or different component arrangements.

[0202] In combination Figure 1 The memory 12 in the computer device 1 stores a plurality of instructions to implement an air conditioner Bluetooth connection method, and the processor 13 can execute the plurality of instructions to implement:

[0203] Broadcast a first connectable non-directional broadcast packet at every preset time interval;

[0204] When a second connectable non-directional broadcast packet issued by the mobile device for the first connectable non-directional broadcast packet is received, the second connectable non-directional broadcast packet is parsed to obtain a second parsing result;

[0205] The second parsing result is verified, and a verification code is randomly generated after the second parsing result passes the verification, and the generated verification code is displayed;

[0206] When a third connectable non-directional broadcast packet issued by the mobile device based on the verification code is received, the third connectable non-directional broadcast packet is parsed to obtain a third parsing result;

[0207] The third parsing result is verified, and the address information of the mobile device in the third parsing result is recorded after the third parsing result passes the verification, and a fourth connectable non-directional broadcast packet with an air conditioner specific connectable flag is issued;

[0208] When receiving the connection request packet sent by the mobile device based on the fourth connectable non-directional broadcast packet, a Bluetooth connection is established between the mobile device and the mobile device according to the connection request packet.

[0209] In combination Figure 2 The memory 12 in the computer device 1 stores a plurality of instructions to implement an air conditioner Bluetooth connection method, and the processor 13 can execute the plurality of instructions to implement:

[0210] When receiving the first connectable non-directional broadcast packet broadcast by the air conditioner, a first analysis result is obtained by analyzing the first connectable non-directional broadcast packet;

[0211] The first analysis result is verified, and when the first analysis result passes the verification, a second connectable non-directional broadcast packet is sent to the air conditioner according to the first analysis result;

[0212] When detecting that a verification code is input, a third connectable non-directional broadcast packet is sent according to the verification code;

[0213] When receiving the fourth connectable non-directional broadcast packet sent by the air conditioner, a connection request packet is sent to the air conditioner.

[0214] Specifically, the specific implementation method of the processor 13 to the above instructions can refer to Figures 1-2 The description of related steps in the corresponding embodiments will not be repeated here.

[0215] It should be noted that the data involved in the case are all legally obtained.

[0216] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the above-described device embodiments are only schematic, for example, the division of the modules is only a logical function division, and there can be another division way in actual implementation.

[0217] The present application can be applied in numerous general purpose or special purpose computer system environments or configurations. Examples of well-known computing systems, environments, and / or configurations that can be suitable for use with the application include personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application can be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, and the like, that perform particular tasks or implement particular abstract data types. The application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including memory storage devices.

[0218] The modules described as separate components can or can not be physically separate, and the components shown as modules can or can not be physical units, i.e. can be located in one place, or can be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purposes of the embodiments.

[0219] In addition, each functional module in each embodiment of the application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of hardware plus software functional modules.

[0220] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and the present application can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application.

[0221] Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting, and the scope of the present application is defined by the appended claims rather than the above description, and therefore all changes falling within the meaning and scope of the equivalent elements of the claims are intended to be included in the present application. Any additional reference signs in the claims should not be considered as limiting the claims involved.

[0222] Furthermore, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. The plurality of units or devices stated in the present application can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names and not to indicate any particular order.

[0223] Finally, it should be noted that the above examples are merely intended to illustrate the technical solutions of the present application and not to limit the present application. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be modified or equivalently replaced without departing from the spirit and scope of the present application.

Claims

1. A Bluetooth connection method for an air conditioner, applied to an air conditioner, wherein the air conditioner communicates with a mobile device, characterized in that, The air conditioner Bluetooth connection method comprises the following steps: Broadcasting a first connectable non-directional broadcast packet every preset time interval; wherein, the first connectable non-directional broadcast packet comprises an air conditioner specific connectable verification mark and address information of the air conditioner, and the air conditioner specific connectable verification mark is formulated by both parties; When a second connectable non-directional broadcast packet sent by the mobile device to the first connectable non-directional broadcast packet is received, a second analysis result of the second connectable non-directional broadcast packet is obtained; Verifying the second analysis result, and generating a verification code randomly and displaying the generated verification code after the second analysis result is verified; When a third connectable non-directional broadcast packet sent by the mobile device based on the verification code is received, a third analysis result of the third connectable non-directional broadcast packet is obtained; Verifying the third analysis result, and recording address information of the mobile device in the third analysis result and sending a fourth connectable non-directional broadcast packet with an air conditioner specific connectable mark after the third analysis result is verified; According to the connection request packet, Bluetooth connection with the mobile device is established.

2. The air conditioner Bluetooth connection method of claim 1, wherein, The verification of the second analysis result comprises: When the second analysis result shows that the address information included in the second connectable non-directional broadcast packet is the same as the address information of the air conditioner, and the air conditioner specific connectable verification mark is included in the second connectable non-directional broadcast packet, it is determined that the second analysis result is verified; or When the second analysis result shows that the address information included in the second connectable non-directional broadcast packet is not the same as the address information of the air conditioner, and / or the air conditioner specific connectable verification mark is not included in the second connectable non-directional broadcast packet, it is determined that the second analysis result is not verified. 3.The air conditioner Bluetooth connection method of claim 1, wherein, The verification of the third analysis result comprises: When the third analysis result shows that the address information included in the third connectable non-directional broadcast packet is the same as the address information of the air conditioner, and the verification code included in the third connectable non-directional broadcast packet is the same as the verification code generated by the air conditioner, it is determined that the third analysis result is verified; or When the third analysis result shows that the address information included in the third connectable non-directional broadcast packet is not the same as the address information of the air conditioner, and / or the verification code included in the third connectable non-directional broadcast packet is not the same as the verification code generated by the air conditioner, it is determined that the third analysis result is not verified. 4.The air conditioner Bluetooth connection method of claim 1, wherein, According to the connection request packet, Bluetooth connection with the mobile device is established. Obtaining sender address information corresponding to the connection request packet; Comparing the sender address information with the recorded address information; When the sender address information is the same as the recorded address information, Bluetooth connection with the mobile device is allowed; or When the sender address information is not the same as the recorded address information, Bluetooth connection with the mobile device is refused.

5. A method for connecting a mobile device to an air conditioner via Bluetooth, the method comprising: receiving a Bluetooth signal from the air conditioner; and transmitting a Bluetooth signal to the air conditioner, wherein the Bluetooth signal is transmitted in response to the received Bluetooth signal. The air conditioner Bluetooth connection method comprises the following steps: When receiving the first connectable non-directional broadcast packet of the air conditioner broadcast, a first parsing result is obtained by parsing the first connectable non-directional broadcast packet; The first parsing result is verified, and when the first parsing result passes the verification, a second connectable non-directional broadcast packet is sent to the air conditioner according to the first parsing result; When detecting that a verification code is input, a third connectable non-directional broadcast packet is sent according to the verification code; When receiving the fourth connectable non-directional broadcast packet with the air conditioner specific connectable flag sent by the air conditioner, a connection request packet is sent to the air conditioner. 6.The air conditioner Bluetooth connection method of claim 5, wherein, The verification of the first parsing result comprises: When the first parsing result shows that the first connectable non-directional broadcast packet includes the air conditioner specific connectable verification flag, it is determined that the first parsing result passes the verification; or When the first parsing result shows that the first connectable non-directional broadcast packet does not include the air conditioner specific connectable verification flag, it is determined that the first parsing result does not pass the verification. 7.The air conditioner Bluetooth connection method of claim 6, wherein, The sending of the second connectable non-directional broadcast packet to the air conditioner according to the first parsing result comprises: The air conditioner specific connectable verification flag and the address information of the air conditioner are obtained from the first parsing result; The address information of the mobile device is obtained; The second connectable non-directional broadcast packet is generated according to the air conditioner specific connectable verification flag, the address information of the air conditioner and the address information of the mobile device; The second connectable non-directional broadcast packet is sent to the air conditioner.

8. A computer device, characterized by The computer device comprises: a memory for storing at least one instruction; and a processor for executing the instruction stored in the memory to implement the air conditioner Bluetooth connection method according to any one of claims 1 to 4 and / or the air conditioner Bluetooth connection method according to any one of claims 5 to 7.

9. A computer-readable storage medium, characterized in that: The computer readable storage medium stores at least one instruction, and the at least one instruction is executed by the processor in the computer device to implement the air conditioner Bluetooth connection method according to any one of claims 1 to 4 and / or the air conditioner Bluetooth connection method according to any one of claims 5 to 7.

Citation Information

Patent Citations

  • Equipment network distribution method and system, electronic equipment and storage medium

    CN115297458A

  • Air conditioner Bluetooth connection method, system, equipment and medium

    CN115866604A

  • Method for establishing wireless communication connection, and related devices

    WO2020191570A1