CN111818499A - Rapid pairing method, device, equipment and computer readable storage medium - Google Patents

Rapid pairing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111818499A
CN111818499A CN202010741087.3A CN202010741087A CN111818499A CN 111818499 A CN111818499 A CN 111818499A CN 202010741087 A CN202010741087 A CN 202010741087A CN 111818499 A CN111818499 A CN 111818499A
Authority
CN
China
Prior art keywords
broadcast data
terminal
bluetooth
bluetooth broadcast
pairing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010741087.3A
Other languages
Chinese (zh)
Other versions
CN111818499B (en
Inventor
李林
王江南
钟洪耀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Qianfenyi Intelligent Technology Co Ltd
Original Assignee
Shenzhen Qianfenyi Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Qianfenyi Intelligent Technology Co Ltd filed Critical Shenzhen Qianfenyi Intelligent Technology Co Ltd
Priority to CN202010741087.3A priority Critical patent/CN111818499B/en
Publication of CN111818499A publication Critical patent/CN111818499A/en
Application granted granted Critical
Publication of CN111818499B publication Critical patent/CN111818499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a quick pairing method, a device, equipment and a computer readable storage medium, wherein the quick pairing method is applied to a first terminal, and the method comprises the following steps: receiving Bluetooth broadcast data when the Bluetooth broadcast data is monitored; determining whether the Bluetooth broadcast data meets a preset format, determining whether a second terminal corresponding to the Bluetooth broadcast data is in a pairing state, and determining whether the Bluetooth signal intensity corresponding to the Bluetooth broadcast data is greater than a preset threshold value; and if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal intensity is greater than the preset threshold value, the second terminal is paired. According to the invention, the Bluetooth connection between the first terminal and the second terminal is automatically established when the first terminal approaches the second terminal, so that the problem that the operation process is complicated in the way of manually connecting the handwriting book and the mobile terminal with the Bluetooth is solved, and the use experience of a user is improved.

Description

Rapid pairing method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for fast pairing.
Background
In the prior art, the mode that the handwriting book and the mobile terminal are connected with the Bluetooth adopts a manual connection mode, the process of manually connecting the handwriting book Bluetooth and the mobile terminal Bluetooth needs to firstly open the Bluetooth of the handwriting book and open the Bluetooth of the mobile terminal, then the Bluetooth setting page is opened on the mobile terminal, the Bluetooth name of the handwriting book is searched in the Bluetooth setting page, and then the Bluetooth name of the handwriting book is clicked, so that the connection between the handwriting book Bluetooth and the mobile terminal Bluetooth can be completed. Therefore, the method for manually connecting the notebook and the mobile terminal to the Bluetooth has the problem of complicated operation process, which leads to reduction of user experience.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a quick pairing method, a quick pairing device, quick pairing equipment and a computer readable storage medium, and aims to solve the technical problem that in the prior art, the operation process of a manual Bluetooth connection mode is complicated.
In order to achieve the above object, the present invention provides a fast pairing method, which is applied to a first terminal, and includes the following steps:
receiving Bluetooth broadcast data when the Bluetooth broadcast data is monitored;
determining whether the Bluetooth broadcast data meets a preset format, determining whether a second terminal corresponding to the Bluetooth broadcast data is in a pairing state, and determining whether the Bluetooth signal intensity corresponding to the Bluetooth broadcast data is greater than a preset threshold value;
and if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal intensity is greater than the preset threshold value, the second terminal is paired.
Optionally, the step of determining whether the bluetooth broadcast data satisfies a preset format includes:
analyzing the Bluetooth broadcast data to obtain a manufacturer data field and a Bluetooth identification code, wherein the manufacturer data field comprises hardware address information of the second terminal;
combining the hardware address information with a preset fixed value prestored in the first terminal according to a preset rule to obtain a combined code;
and determining whether the Bluetooth broadcast data meets a preset format or not based on the combined code and the Bluetooth identification code.
Optionally, the hardware address information occupies six consecutive bytes of the vendor data field.
Optionally, the step of determining whether the second terminal corresponding to the bluetooth broadcast data is in a paired state includes:
analyzing the Bluetooth broadcast data to obtain a manufacturer data field, wherein the manufacturer data field also comprises a pairing state identifier of the second terminal;
and determining whether the second terminal is in a pairing state or not based on the pairing state identification.
Optionally, the pairing status identification occupies one byte of the vendor data field.
Optionally, the determining whether the bluetooth broadcast data satisfies a preset format, determining whether a second terminal corresponding to the bluetooth broadcast data is in a paired state, and determining whether a bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold includes:
the step of determining whether the bluetooth broadcast data meets a preset format, the step of determining whether a second terminal corresponding to the bluetooth broadcast data is in a pairing state, and the step of determining whether the bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold are performed in any order.
Optionally, the third terminal broadcasts the bluetooth broadcast data based on a preset period, where the third terminal includes the second terminal.
In addition, to achieve the above object, the present invention also provides a rapid pairing apparatus, including:
the receiving module is used for receiving the Bluetooth broadcast data when the Bluetooth broadcast data is monitored;
the detection module is used for determining whether the Bluetooth broadcast data meets a preset format, determining whether a second terminal corresponding to the Bluetooth broadcast data is in a pairing state, and determining whether the Bluetooth signal intensity corresponding to the Bluetooth broadcast data is greater than a preset threshold value;
and the pairing module is used for pairing the second terminal if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal intensity is greater than the preset threshold value.
In addition, to achieve the above object, the present invention also provides a rapid pairing apparatus, including: a memory, a processor and a fast pairing program stored on the memory and executable on the processor, the fast pairing program when executed by the processor implementing the steps of the fast pairing method as described above.
Further, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a quick pairing program, which when executed by a processor, implements the steps of the quick pairing method according to any one of claims 1 to 7.
The method comprises the steps of receiving Bluetooth broadcast data when the Bluetooth broadcast data are monitored; determining whether the Bluetooth broadcast data meets a preset format, determining whether a second terminal corresponding to the Bluetooth broadcast data is in a pairing state, and determining whether the Bluetooth signal intensity corresponding to the Bluetooth broadcast data is greater than a preset threshold value; and if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal intensity is greater than the preset threshold value, the second terminal is paired. In this embodiment, when the first terminal monitors the bluetooth broadcast data broadcasted by the second terminal, the first terminal receives the bluetooth broadcast data, and detects the bluetooth broadcast data, including detecting whether the bluetooth broadcast data satisfies a preset format, detecting whether the second terminal is in a pairing state, and detecting whether the bluetooth signal intensity of the second terminal is greater than a preset threshold. And when the Bluetooth broadcast data meets the preset format and the second terminal is in a pairing state and the Bluetooth signal intensity of the second terminal is greater than a preset threshold value, establishing Bluetooth connection between the first terminal and the second terminal. Therefore, when the distance between the first terminal and the second terminal is short, the first terminal and the second terminal are automatically paired, the Bluetooth connection between the first terminal and the second terminal is established, namely the Bluetooth connection between the first terminal and the second terminal is automatically established when the first terminal is close to the second terminal, and the problem that the operation process is complex in the manual Bluetooth connection mode between the handwriting book and the mobile terminal is solved, so that the use experience of a user is improved.
Drawings
FIG. 1 is a schematic diagram of a fast pairing device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a fast pairing method according to a first embodiment of the present invention;
fig. 3 is a schematic view of an application scenario of the fast pairing method of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic diagram of a fast pairing device structure of a hardware operating environment according to an embodiment of the present invention.
The rapid pairing device in the embodiment of the present invention may be a PC, or may be a mobile terminal device having a display function, such as a smart phone, a tablet computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4) player, a portable computer, and the like.
As shown in fig. 1, the fast pairing apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the fast pairing device may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. In particular, the light sensor may include an ambient light sensor that adjusts the brightness of the display screen based on the ambient light level and a proximity sensor that turns off the display screen and/or backlight when the quick pairing device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the device is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for identifying the attitude of a fast paired device, and related functions (such as pedometer and tapping) for vibration identification; of course, the fast pairing device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the configuration of the rapid pairing device shown in fig. 1 does not constitute a limitation of the rapid pairing device and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a quick pairing program.
In the fast pairing device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and processor 1001 may be used to invoke a quick pairing procedure stored in memory 1005.
In this embodiment, the quick pairing apparatus includes: a memory 1005, a processor 1001, and a fast pairing program stored on the memory 1005 and executable on the processor 1001, wherein the processor 1001, when calling the fast pairing program stored in the memory 1005, performs the following operations:
receiving Bluetooth broadcast data when the Bluetooth broadcast data is monitored;
determining whether the Bluetooth broadcast data meets a preset format, determining whether a second terminal corresponding to the Bluetooth broadcast data is in a pairing state, and determining whether the Bluetooth signal intensity corresponding to the Bluetooth broadcast data is greater than a preset threshold value;
and if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal intensity is greater than the preset threshold value, the second terminal is paired.
Further, the processor 1001 may call the fast pairing procedure stored in the memory 1005, and also perform the following operations:
analyzing the Bluetooth broadcast data to obtain a manufacturer data field and a Bluetooth identification code, wherein the manufacturer data field comprises hardware address information of the second terminal;
combining the hardware address information with a preset fixed value prestored in the first terminal according to a preset rule to obtain a combined code;
and determining whether the Bluetooth broadcast data meets a preset format or not based on the combined code and the Bluetooth identification code.
Further, the processor 1001 may call the fast pairing procedure stored in the memory 1005, and also perform the following operations:
analyzing the Bluetooth broadcast data to obtain a manufacturer data field, wherein the manufacturer data field also comprises a pairing state identifier of the second terminal;
and determining whether the second terminal is in a pairing state or not based on the pairing state identification.
The invention also provides a rapid pairing method, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the rapid pairing method of the invention.
In this embodiment, the fast pairing method includes the following steps:
step S10, when monitoring the Bluetooth broadcast data, receiving the Bluetooth broadcast data;
as shown in fig. 3, the present invention is applied to a system architecture, which includes a first terminal and a second terminal, where the first terminal is a mobile terminal at least having a bluetooth module, such as a smart phone, a tablet computer, or a portable computer; the second terminal is the intelligence writing book, and the intelligence writing book is a special intelligent electronic equipment who is used for educational learning, and the second terminal also contains bluetooth module at least. The intelligent writing book is usually matched with an electronic touch pen for use, and the intelligent writing book can be in communication connection with the electronic touch pen, so that the functions of handwriting input and electronic output are realized. The first terminal establishes Bluetooth connection with the second terminal through the Bluetooth module, and the Bluetooth connection established between the first terminal and the second terminal is used for communication, including sharing data or transmitting data and the like.
When the second terminal, namely the intelligent book, starts the Bluetooth module and enters the Bluetooth pairing mode, the second terminal broadcasts the Bluetooth broadcast data outwards according to a preset period, namely the second terminal broadcasts the Bluetooth broadcast data outwards according to a preset time interval, and the broadcast Bluetooth broadcast data lasts for a preset time. The preset time interval may be 0.5s or 1s, and the preset duration may be 10s or 20s, and in this embodiment, the preset time interval is not particularly limited.
The first terminal runs a preset application program, starts a Bluetooth module in the first terminal to enter a Bluetooth pairing mode, and receives Bluetooth broadcast data when the Bluetooth module of the first terminal monitors the Bluetooth broadcast data so as to detect the received Bluetooth broadcast data. When the first terminal is located within the bluetooth receiving range of the bluetooth broadcast data of the second terminal, the bluetooth broadcast data of the second terminal can be monitored. It should be noted that, a preset application program is pre-installed in the first terminal, and the first terminal is paired with the second terminal based on the preset application program to establish the bluetooth connection.
Step S20, determining whether the bluetooth broadcast data satisfies a preset format, determining whether a second terminal corresponding to the bluetooth broadcast data is in a paired state, and determining whether a bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold;
when receiving the Bluetooth broadcast data, the first terminal analyzes the Bluetooth broadcast data so as to perform equipment verification based on the Bluetooth broadcast data. When receiving the Bluetooth broadcast data, the first terminal detects whether the Bluetooth broadcast data meets a preset format based on a preset application program, detects whether the second terminal is in a pairing state or a pairing mode based on the preset application program, and detects whether the Bluetooth signal intensity of the Bluetooth broadcast data is greater than a preset threshold value.
It should be noted that, whether the terminal device corresponding to the bluetooth broadcast data matches the first terminal is determined by detecting whether the bluetooth broadcast data satisfies the preset format through the preset application program, that is, if the bluetooth broadcast data satisfies the preset format (the first preset format), the terminal device corresponding to the bluetooth broadcast data matches the first terminal; and if the Bluetooth broadcast data does not meet the preset format, the terminal equipment corresponding to the Bluetooth broadcast data is not matched with the first terminal, and the Bluetooth broadcast data is directly discarded. Detecting whether the Bluetooth broadcast data meets a second preset format or not through a preset application program, and detecting whether the terminal equipment corresponding to the Bluetooth broadcast data is in a pairing state or not, namely, if the Bluetooth broadcast data meets the second preset format, the terminal equipment corresponding to the Bluetooth broadcast data is in the pairing state; and if the Bluetooth broadcast data does not meet the second preset format, the terminal equipment corresponding to the Bluetooth broadcast data is not in a pairing state, and the Bluetooth broadcast data is directly discarded. Determining whether the terminal device corresponding to the bluetooth broadcast data is in a range corresponding to the bluetooth signal intensity of the preset threshold value by detecting whether the bluetooth signal intensity corresponding to the bluetooth broadcast data is greater than the preset threshold value, that is, if the bluetooth signal intensity corresponding to the bluetooth broadcast data is greater than the preset threshold value, the terminal device corresponding to the bluetooth broadcast data is in a certain range corresponding to the bluetooth signal intensity of the preset threshold value; and if the Bluetooth signal intensity corresponding to the Bluetooth broadcast data is smaller than or equal to the preset threshold value, directly discarding the Bluetooth broadcast data if the terminal equipment corresponding to the Bluetooth broadcast data is out of the range specified by the Bluetooth signal intensity of the preset threshold value.
Further, the step of determining whether the bluetooth broadcast data meets a preset format, the step of determining whether the second terminal corresponding to the bluetooth broadcast data is in a paired state, and the step of determining whether the bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold may be performed in any order, which is not specifically limited in this application. For example, the first terminal may first determine whether the bluetooth broadcast data meets a preset format, then determine whether a bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold, and finally determine whether a second terminal corresponding to the bluetooth broadcast data is in a paired state; or, the first terminal determines whether a second terminal corresponding to the bluetooth broadcast data is in a paired state, then determines whether the bluetooth broadcast data satisfies a preset format, and finally determines whether the bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold, and so on, and other execution sequences are analogized, which is not described herein again.
Step S30, if the bluetooth broadcast data satisfies a preset format, the second terminal is in a pairing state, and the bluetooth signal strength is greater than the preset threshold, then pairing with the second terminal.
If the Bluetooth broadcast data meets a preset format (a first preset format), a second terminal corresponding to the Bluetooth broadcast data is matched with the first terminal; if the Bluetooth broadcast data meet the second preset format, the terminal equipment corresponding to the Bluetooth broadcast data is in a pairing state; and if the Bluetooth signal intensity corresponding to the Bluetooth broadcast data is greater than the preset threshold value, the second terminal corresponding to the Bluetooth broadcast data is within the range specified by the Bluetooth signal intensity of the preset threshold value. If the bluetooth broadcast data meets a preset format (a first preset format), the bluetooth broadcast data meets a second preset format, and the bluetooth signal intensity corresponding to the bluetooth broadcast data is greater than a preset threshold value, the bluetooth broadcast data is paired with a second terminal corresponding to the bluetooth broadcast data to establish bluetooth connection with the second terminal.
According to the rapid pairing method provided by the embodiment, when the Bluetooth broadcast data is monitored, the Bluetooth broadcast data is received; determining whether the Bluetooth broadcast data meets a preset format, determining whether a second terminal corresponding to the Bluetooth broadcast data is in a pairing state, and determining whether the Bluetooth signal intensity corresponding to the Bluetooth broadcast data is greater than a preset threshold value; and if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal intensity is greater than the preset threshold value, the second terminal is paired. In this embodiment, when the first terminal monitors the bluetooth broadcast data broadcasted by the second terminal, the first terminal receives the bluetooth broadcast data, and detects the bluetooth broadcast data, including detecting whether the bluetooth broadcast data satisfies a preset format, detecting whether the second terminal is in a pairing state, and detecting whether the bluetooth signal intensity of the second terminal is greater than a preset threshold. And when the Bluetooth broadcast data meets the preset format and the second terminal is in a pairing state and the Bluetooth signal intensity of the second terminal is greater than a preset threshold value, establishing Bluetooth connection between the first terminal and the second terminal. Therefore, when the distance between the first terminal and the second terminal is short, the first terminal and the second terminal are automatically paired, the Bluetooth connection between the first terminal and the second terminal is established, namely the Bluetooth connection between the first terminal and the second terminal is automatically established when the first terminal is close to the second terminal, and the problem that the operation process is complex in the manual Bluetooth connection mode between the handwriting book and the mobile terminal is solved, so that the use experience of a user is improved.
Based on the first embodiment, a second embodiment of the method of the present invention is provided, in which step S20 includes:
step S201, analyzing the Bluetooth broadcast data to obtain a manufacturer data field and a Bluetooth identification code, wherein the manufacturer data field comprises hardware address information of the second terminal;
step S202, combining the hardware address information and a preset fixed value prestored in the first terminal according to a preset rule to obtain a combined code;
step S203, determining whether the bluetooth broadcast data satisfies a preset format based on the combination code and the bluetooth identification code.
The Bluetooth broadcast data comprises manufacturer data and a Bluetooth identification code of the equipment terminal, wherein a manufacturer data field comprises hardware address information of the second terminal. Further, the vendor data field may further include a device model, a MAC address, a device name, or the like of the second terminal.
When receiving the Bluetooth broadcast data, the first terminal analyzes the Bluetooth broadcast data to obtain a manufacturer data field and a Bluetooth identification code of the equipment terminal corresponding to the Bluetooth broadcast data; and then combining the hardware address information with a pre-stored preset fixed value according to a preset rule to obtain a combined code. If the combined code is consistent with the Bluetooth identification code, the Bluetooth broadcast data meets a preset format; and if the combination code is not consistent with the Bluetooth identification code, the Bluetooth broadcast data does not meet the preset format, and the Bluetooth broadcast data is discarded.
Specifically, the step of combining the hardware address information with a preset fixed value stored in advance according to a preset rule to obtain a combined code includes:
and adding the hardware address information and a pre-stored preset fixed value to obtain the sum of the hardware address information and the pre-stored preset fixed value, wherein the sum of the hardware address information and the pre-stored preset fixed value is the combined code.
Further, in one embodiment, the hardware address information comprises six consecutive bytes of the vendor data field.
Further, in an embodiment, the step of determining whether the second terminal corresponding to the bluetooth broadcast data is in a paired state includes:
step S203, analyzing the Bluetooth broadcast data to obtain a manufacturer data field, wherein the manufacturer data field further comprises a pairing state identifier of the second terminal;
step S204, based on the pairing state identification, determining whether the second terminal is in a pairing state.
The bluetooth broadcast data further comprises a pairing state identifier of the second terminal. When receiving the Bluetooth broadcast data, the first terminal analyzes the Bluetooth broadcast data to obtain a pairing state identifier of the equipment terminal corresponding to the Bluetooth broadcast data. If the pairing state identifier is an identifier allowing pairing, the Bluetooth broadcast data meets a second preset format, and a second terminal corresponding to the Bluetooth broadcast data is in a pairing state or a pairing mode; and if the pairing state identifier is a pairing rejection identifier, the Bluetooth broadcast data does not meet a second preset format, and the second terminal corresponding to the Bluetooth broadcast data is not in a pairing state, and the Bluetooth broadcast data is discarded.
Further, in one embodiment, the pairing status identifier occupies one byte of the vendor data field.
Further, in an embodiment, the determining whether the bluetooth broadcast data satisfies a preset format, determining whether a second terminal corresponding to the bluetooth broadcast data is in a paired state, and determining whether a bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold includes:
the step of determining whether the bluetooth broadcast data meets a preset format, the step of determining whether a second terminal corresponding to the bluetooth broadcast data is in a pairing state, and the step of determining whether the bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold are performed in any order.
The step of determining whether the bluetooth broadcast data meets a preset format, the step of determining whether the second terminal corresponding to the bluetooth broadcast data is in a paired state, and the step of determining whether the bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold may be performed in any order, which is not specifically limited in the present application. For example, the first terminal may first determine whether the bluetooth broadcast data meets a preset format, then determine whether a bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold, and finally determine whether a second terminal corresponding to the bluetooth broadcast data is in a paired state; or, the first terminal determines whether a second terminal corresponding to the bluetooth broadcast data is in a paired state, then determines whether the bluetooth broadcast data satisfies a preset format, and finally determines whether the bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold, and so on, and other execution sequences are analogized, which is not described herein again.
Further, in an embodiment, the third terminal broadcasts the bluetooth broadcast data based on a preset period, where the third terminal includes the second terminal.
In addition, an embodiment of the present invention further provides a rapid pairing device, where the rapid pairing device includes:
the receiving module is used for receiving the Bluetooth broadcast data when the Bluetooth broadcast data is monitored;
the detection module is used for determining whether the Bluetooth broadcast data meets a preset format, determining whether a second terminal corresponding to the Bluetooth broadcast data is in a pairing state, and determining whether the Bluetooth signal intensity corresponding to the Bluetooth broadcast data is greater than a preset threshold value;
and the pairing module is used for pairing the second terminal if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal intensity is greater than the preset threshold value.
Further, the detection module is further configured to:
analyzing the Bluetooth broadcast data to obtain a manufacturer data field and a Bluetooth identification code, wherein the manufacturer data field comprises hardware address information of the second terminal;
combining the hardware address information with a preset fixed value prestored in the first terminal according to a preset rule to obtain a combined code;
and determining whether the Bluetooth broadcast data meets a preset format or not based on the combined code and the Bluetooth identification code.
Further, the detection module is further configured to:
analyzing the Bluetooth broadcast data to obtain a manufacturer data field, wherein the manufacturer data field also comprises a pairing state identifier of the second terminal;
and determining whether the second terminal is in a pairing state or not based on the pairing state identification.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a fast pairing program is stored, and when executed by a processor, the fast pairing program implements the steps of the fast pairing method as described in any one of the above.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the fast pairing method described above, and will not be described in detail herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A quick pairing method is applied to a first terminal, and is characterized by comprising the following steps:
receiving Bluetooth broadcast data when the Bluetooth broadcast data is monitored;
determining whether the Bluetooth broadcast data meets a preset format, determining whether a second terminal corresponding to the Bluetooth broadcast data is in a pairing state, and determining whether the Bluetooth signal intensity corresponding to the Bluetooth broadcast data is greater than a preset threshold value;
and if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal intensity is greater than the preset threshold value, the second terminal is paired.
2. The fast pairing method of claim 1, wherein the step of determining whether the bluetooth broadcast data satisfies a preset format comprises:
analyzing the Bluetooth broadcast data to obtain a manufacturer data field and a Bluetooth identification code, wherein the manufacturer data field comprises hardware address information of the second terminal;
combining the hardware address information with a preset fixed value prestored in the first terminal according to a preset rule to obtain a combined code;
and determining whether the Bluetooth broadcast data meets a preset format or not based on the combined code and the Bluetooth identification code.
3. The rapid pairing method of claim 2 wherein the hardware address information occupies six consecutive bytes of the vendor data field.
4. The fast pairing method of claim 1, wherein the step of determining whether the second terminal corresponding to the bluetooth broadcast data is in a paired state comprises:
analyzing the Bluetooth broadcast data to obtain a manufacturer data field, wherein the manufacturer data field also comprises a pairing state identifier of the second terminal;
and determining whether the second terminal is in a pairing state or not based on the pairing state identification.
5. The rapid pairing method of claim 4 wherein the pairing status identification occupies one byte of the vendor data field.
6. The fast pairing method of claim 1, wherein the determining whether the bluetooth broadcast data satisfies a preset format, determining whether a second terminal corresponding to the bluetooth broadcast data is in a paired state, and determining whether the bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold value comprises:
the step of determining whether the bluetooth broadcast data meets a preset format, the step of determining whether a second terminal corresponding to the bluetooth broadcast data is in a pairing state, and the step of determining whether the bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold are performed in any order.
7. The fast pairing method of any one of claims 1 to 6, wherein the third terminal broadcasts the Bluetooth broadcast data based on a preset period, wherein the third terminal comprises the second terminal.
8. A quick pairing device, characterized in that it comprises:
the receiving module is used for receiving the Bluetooth broadcast data when the Bluetooth broadcast data is monitored;
the detection module is used for determining whether the Bluetooth broadcast data meets a preset format, determining whether a second terminal corresponding to the Bluetooth broadcast data is in a pairing state, and determining whether the Bluetooth signal intensity corresponding to the Bluetooth broadcast data is greater than a preset threshold value;
and the pairing module is used for pairing the second terminal if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal intensity is greater than the preset threshold value.
9. A fast pairing device, characterized in that the fast pairing device comprises: memory, processor and a fast pairing program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the fast pairing method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a fast pairing program, which when executed by a processor implements the steps of the fast pairing method of any one of claims 1 to 7.
CN202010741087.3A 2020-07-27 2020-07-27 Quick pairing method, device, equipment and computer readable storage medium Active CN111818499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010741087.3A CN111818499B (en) 2020-07-27 2020-07-27 Quick pairing method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010741087.3A CN111818499B (en) 2020-07-27 2020-07-27 Quick pairing method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111818499A true CN111818499A (en) 2020-10-23
CN111818499B CN111818499B (en) 2023-09-22

Family

ID=72863178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010741087.3A Active CN111818499B (en) 2020-07-27 2020-07-27 Quick pairing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111818499B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113180617A (en) * 2021-04-20 2021-07-30 歌尔股份有限公司 Health data sharing method, terminal and computer readable storage medium
CN114726949A (en) * 2022-04-18 2022-07-08 深圳市丰禾原电子科技有限公司 Incoming call answering method and Bluetooth headset
WO2023284454A1 (en) * 2021-07-16 2023-01-19 Oppo广东移动通信有限公司 Bluetooth connection prompting method and apparatus, device, storage medium, and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469482A (en) * 2014-12-19 2015-03-25 乐视致新电子科技(天津)有限公司 Control method and device for connection of intelligent terminal and Bluetooth devices
CN105516896A (en) * 2015-12-02 2016-04-20 惠州Tcl移动通信有限公司 Bluetooth interconnection method and system for wearable device and mobile terminal
CN107277754A (en) * 2017-07-12 2017-10-20 深圳市冠旭电子股份有限公司 The method and Bluetooth peripheral of a kind of bluetooth connection
CN109862549A (en) * 2019-03-28 2019-06-07 南昌黑鲨科技有限公司 Bluetooth connection method and device, readable storage medium and mobile device
CN110602671A (en) * 2018-10-17 2019-12-20 深圳市文鼎创数据科技有限公司 Bluetooth search result display method and device, terminal equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469482A (en) * 2014-12-19 2015-03-25 乐视致新电子科技(天津)有限公司 Control method and device for connection of intelligent terminal and Bluetooth devices
CN105516896A (en) * 2015-12-02 2016-04-20 惠州Tcl移动通信有限公司 Bluetooth interconnection method and system for wearable device and mobile terminal
CN107277754A (en) * 2017-07-12 2017-10-20 深圳市冠旭电子股份有限公司 The method and Bluetooth peripheral of a kind of bluetooth connection
CN110602671A (en) * 2018-10-17 2019-12-20 深圳市文鼎创数据科技有限公司 Bluetooth search result display method and device, terminal equipment and storage medium
CN109862549A (en) * 2019-03-28 2019-06-07 南昌黑鲨科技有限公司 Bluetooth connection method and device, readable storage medium and mobile device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113180617A (en) * 2021-04-20 2021-07-30 歌尔股份有限公司 Health data sharing method, terminal and computer readable storage medium
WO2023284454A1 (en) * 2021-07-16 2023-01-19 Oppo广东移动通信有限公司 Bluetooth connection prompting method and apparatus, device, storage medium, and program product
CN114726949A (en) * 2022-04-18 2022-07-08 深圳市丰禾原电子科技有限公司 Incoming call answering method and Bluetooth headset

Also Published As

Publication number Publication date
CN111818499B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
CN111107667B (en) Bluetooth headset pairing method and device and readable storage medium
EP3232715A1 (en) Method and apparatus for accessing wireless access point
CN111818499B (en) Quick pairing method, device, equipment and computer readable storage medium
CN109032491B (en) Data processing method and device and mobile terminal
CN110035181B (en) Method and terminal for setting theme of quick application card
CN109284144B (en) Fast application processing method and mobile terminal
US20170068527A1 (en) Device control method and apparatus
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
CN110070654B (en) Electronic lock unlocking method, system, terminal, electronic lock and computer storage medium
CN109215640B (en) Speech recognition method, intelligent terminal and computer readable storage medium
CN109062634B (en) Application starting method and mobile terminal
CN111867000A (en) Equipment network distribution method and device and computer readable storage medium
CN110096203B (en) Screenshot method and mobile terminal
CN108009031B (en) Application program control method and mobile terminal
CN111867003A (en) Equipment network distribution method, device, equipment and computer readable storage medium
CN109857673B (en) Control identification method and device
CN108629863B (en) Method for automatically signing in application program, mobile terminal and readable storage medium
CN110784394A (en) Prompting method and electronic equipment
CN114741292A (en) Test script management method and device, electronic equipment and storage medium
CN110831114A (en) Connection method with wireless device, terminal and readable storage medium
CN111931155A (en) Verification code input method, verification code input equipment and storage medium
CN108710789B (en) Unlocking method and terminal equipment
CN111966373A (en) APN resetting method, terminal equipment and storage medium
CN111026454A (en) Function starting method and terminal equipment
CN110888572A (en) Message display method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant