CN111818499B - Quick pairing method, device, equipment and computer readable storage medium - Google Patents

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

Info

Publication number
CN111818499B
CN111818499B CN202010741087.3A CN202010741087A CN111818499B CN 111818499 B CN111818499 B CN 111818499B CN 202010741087 A CN202010741087 A CN 202010741087A CN 111818499 B CN111818499 B CN 111818499B
Authority
CN
China
Prior art keywords
bluetooth
terminal
broadcast data
pairing
bluetooth broadcast
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.)
Active
Application number
CN202010741087.3A
Other languages
Chinese (zh)
Other versions
CN111818499A (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.)
Maxeye Smart Technologies Co ltd
Original Assignee
Maxeye Smart Technologies 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 Maxeye Smart Technologies Co ltd filed Critical Maxeye Smart Technologies 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

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

Abstract

The application 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 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 strength corresponding to the Bluetooth broadcast data is greater than a preset threshold; and if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal strength is greater than the preset threshold value, the second terminal is paired with the second terminal. According to the application, when the first terminal approaches the second terminal, bluetooth connection between the first terminal and the second terminal is automatically established, so that the problem of complicated operation process in a mode of manually connecting the writing book and the mobile terminal is solved, and the use experience of a user is improved.

Description

Quick pairing method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a rapid pairing method, apparatus, device, and computer readable storage medium.
Background
In the prior art, a mode of manually connecting a writing book with a mobile terminal is adopted, the process of manually connecting the writing book with the mobile terminal needs to open the Bluetooth of the writing book and the Bluetooth of the mobile terminal, then a Bluetooth setting page is opened on the mobile terminal, the Bluetooth name of the writing book is searched in the Bluetooth setting page, and then the Bluetooth name of the writing book is clicked to finish connecting the writing book with the Bluetooth of the mobile terminal. Therefore, the mode of manually connecting the notebook with the mobile terminal through Bluetooth has the problem of complicated operation process, so that the use experience of a user is reduced.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present application and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The application mainly aims to provide a rapid pairing method, a rapid pairing device, rapid pairing equipment and a computer readable storage medium, and aims to solve the technical problem that the operation process of a mode of manually connecting Bluetooth is complicated in the prior art.
In order to achieve the above object, the present application provides a quick pairing method, which is applied to a first terminal, comprising the steps of:
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 strength corresponding to the Bluetooth broadcast data is greater than a preset threshold;
and if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal strength is greater than the preset threshold value, the second terminal is paired with the second terminal.
Optionally, the step of determining whether the bluetooth broadcast data meets 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 stored in the first terminal in advance 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 pairing state includes:
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;
and determining whether the second terminal is in a pairing state or not based on the pairing state identification.
Optionally, the pairing state identifier occupies one byte of the vendor data field.
Optionally, the step of determining whether the bluetooth broadcast data meets a preset format, determining whether the second terminal corresponding to the bluetooth broadcast data is in a pairing state, and determining whether the 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 the 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 according to any sequence.
Optionally, the third terminal broadcasts the bluetooth broadcast data based on a preset period, wherein the third terminal includes a second terminal.
In addition, in order to achieve the above object, the present application also provides a quick pairing device, 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 or not, and determining whether the Bluetooth signal strength corresponding to the Bluetooth broadcast data is larger than a preset threshold value or not;
and the pairing module is used for pairing with the second terminal if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal strength is greater than the preset threshold.
In addition, to achieve the above object, the present application also provides a quick pairing apparatus including: the quick pairing method comprises a memory, a processor and a quick pairing program stored in the memory and capable of running on the processor, wherein the quick pairing program realizes the steps of the quick pairing method when being executed by the processor.
In addition, to achieve the above object, the present application 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 application receives the Bluetooth broadcast data when monitoring the Bluetooth broadcast data; 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 strength corresponding to the Bluetooth broadcast data is greater than a preset threshold; and if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal strength is greater than the preset threshold value, the second terminal is paired with the second terminal. In this embodiment, when the first terminal monitors bluetooth broadcast data broadcast 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 strength of the second terminal is greater than a preset threshold. When the Bluetooth broadcast data satisfies the preset format and the second terminal is in the pairing state and the Bluetooth signal strength of the second terminal is greater than the preset threshold, a Bluetooth connection between the first terminal and the second terminal is established. Therefore, when the distance between the first terminal and the second terminal is relatively short, the first terminal and the second terminal are automatically paired, bluetooth connection between the first terminal and the second terminal is established, namely, bluetooth connection between the first terminal and the second terminal is automatically established when the first terminal is close to the second terminal, the problem that the mode of manually connecting the mobile terminal with the first terminal is complex in operation process is solved, and therefore the use experience of a user is improved.
Drawings
FIG. 1 is a schematic diagram of a rapid pairing device structure of a hardware operating environment according to an embodiment of the present application;
FIG. 2 is a flow chart of a first embodiment of the rapid pairing method according to the application;
fig. 3 is a schematic diagram of an application scenario of the rapid pairing method according to the application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
As shown in fig. 1, fig. 1 is a schematic diagram of a rapid pairing device structure of a hardware running environment according to an embodiment of the present application.
The rapid pairing device of the embodiment of the application can be a PC, and also can be mobile terminal devices with display functions, such as a smart phone, a tablet personal computer, an electronic book reader, an MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio layer 4) player, a portable computer and the like.
As shown in fig. 1, the quick pairing device 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 the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further 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 stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the quick-pairing device may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among other sensors, such as light sensors, motion sensors, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or backlight when the quick-mate device moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the gravity sensor is stationary, and the gravity acceleration sensor can be used for identifying the application of the gesture of the rapid pairing equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration identification related functions (such as pedometer and knocking) and the like; of course, the rapid pairing device may also be configured with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., and will not be described herein.
Those skilled in the art will appreciate that the quick-mate device structure shown in fig. 1 is not limiting of the quick-mate device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a quick pairing program may be included in a memory 1005 as one type of computer storage medium.
In the rapid 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 the processor 1001 may be used to invoke the quick pairing procedure stored in the memory 1005.
In this embodiment, the quick pairing device includes: the processor 1001 includes a memory 1005, a processor 1001, and a quick pairing program stored in the memory 1005 and executable on the processor 1001, wherein when the processor 1001 calls the quick pairing program stored in the memory 1005, the following operations are performed:
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 strength corresponding to the Bluetooth broadcast data is greater than a preset threshold;
and if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal strength is greater than the preset threshold value, the second terminal is paired with the second terminal.
Further, the processor 1001 may call the quick pairing program stored in the memory 1005, and further 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 stored in the first terminal in advance 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 quick pairing program stored in the memory 1005, and further perform the following operations:
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;
and determining whether the second terminal is in a pairing state or not based on the pairing state identification.
The application also provides a rapid pairing method, referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the rapid pairing method of the application.
In this embodiment, the rapid pairing method includes the following steps:
step S10, when the Bluetooth broadcast data is monitored, receiving the Bluetooth broadcast data;
as shown in fig. 3, the present application is applied to a system architecture, where the system architecture includes a first terminal and a second terminal, and the first terminal is a mobile terminal at least provided with a bluetooth module, such as a smart phone, a tablet computer, or a portable computer; the second terminal is intelligent writing book, and intelligent writing book is an intelligent electronic device special for education and study, and the second terminal also at least comprises a Bluetooth module. The intelligent book is usually matched with the electronic touch pen, and 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 writing book, enters the Bluetooth pairing mode after starting the Bluetooth module, the second terminal broadcasts Bluetooth broadcasting data outwards according to a preset period, namely the second terminal broadcasts the Bluetooth broadcasting data outwards according to a preset time interval, and the broadcasting of the Bluetooth broadcasting data lasts for a preset duration. The preset time interval may be 0.5s or 1s, and the preset duration may be 10s or 20s, which is not specifically limited in this embodiment.
The method comprises the steps that a first terminal runs a preset application program, a Bluetooth module in the first terminal is started to enter a Bluetooth pairing mode, and when the Bluetooth module of the first terminal monitors Bluetooth broadcast data, the Bluetooth broadcast data are received to detect the received Bluetooth broadcast data. When the first terminal is located in the Bluetooth receiving range of the Bluetooth broadcasting data of the second terminal, the Bluetooth broadcasting 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 bluetooth connection.
Step S20, 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 strength corresponding to the Bluetooth broadcast data is greater than a preset threshold;
and when the first terminal receives the Bluetooth broadcast data, analyzing the Bluetooth broadcast data to perform device verification based on the Bluetooth broadcast data. When the first terminal receives the Bluetooth broadcast data, whether the Bluetooth broadcast data meets a preset format or not is detected based on a preset application program, whether the second terminal is in a pairing state or a pairing mode is detected based on the preset application program, and whether the Bluetooth signal intensity of the Bluetooth broadcast data is larger than a preset threshold value is detected.
It should be noted that, whether the terminal device corresponding to the bluetooth broadcast data is matched with the first terminal is determined by detecting whether the bluetooth broadcast data meets a preset format through the preset application program, that is, if the bluetooth broadcast data meets the preset format (the first preset format), the terminal device corresponding to the bluetooth broadcast data is matched with the first terminal; 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 terminal equipment corresponding to the Bluetooth broadcast data is in a pairing state, 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; 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 equipment 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 equipment corresponding to the Bluetooth broadcast data is in a certain range corresponding to the Bluetooth signal intensity of the preset threshold value; if the Bluetooth signal intensity corresponding to the Bluetooth broadcast data is smaller than or equal to the preset threshold value, 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, and the Bluetooth broadcast data is directly discarded.
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 pairing 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 according to any sequence, 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 the bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold, and finally determine whether the second terminal corresponding to the bluetooth broadcast data is in a pairing state; or, the first terminal determines whether the second terminal corresponding to the bluetooth broadcast data is in a pairing state, then determines whether the bluetooth broadcast data meets a preset format, and finally determines whether the bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold value, and the like, and other execution sequences are the same, which are not described in detail herein.
Step S30, if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal strength is greater than the preset threshold, the second terminal is paired.
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 meets the second preset format, the terminal equipment corresponding to the Bluetooth broadcast data is in a pairing state; if the Bluetooth signal intensity corresponding to the Bluetooth broadcast data is larger than the preset threshold, the second terminal corresponding to the Bluetooth broadcast data is in the range specified by the Bluetooth signal intensity of the preset threshold. 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 strength corresponding to the bluetooth broadcast data is greater than a preset threshold, pairing is performed on the basis of the bluetooth broadcast data and a second terminal corresponding to the bluetooth broadcast data so as 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 strength corresponding to the Bluetooth broadcast data is greater than a preset threshold; and if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal strength is greater than the preset threshold value, the second terminal is paired with the second terminal. In this embodiment, when the first terminal monitors bluetooth broadcast data broadcast 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 strength of the second terminal is greater than a preset threshold. When the Bluetooth broadcast data satisfies the preset format and the second terminal is in the pairing state and the Bluetooth signal strength of the second terminal is greater than the preset threshold, a Bluetooth connection between the first terminal and the second terminal is established. Therefore, when the distance between the first terminal and the second terminal is relatively short, the first terminal and the second terminal are automatically paired, bluetooth connection between the first terminal and the second terminal is established, namely, bluetooth connection between the first terminal and the second terminal is automatically established when the first terminal is close to the second terminal, the problem that the mode of manually connecting the mobile terminal with the first terminal is complex in operation process is solved, and therefore the use experience of a user is improved.
Based on the first embodiment, a second embodiment of the method of the present application is presented, 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 with a preset fixed value stored in the first terminal in advance according to a preset rule to obtain a combined code;
step S203, determining whether the bluetooth broadcast data meets a preset format based on the combination code and the bluetooth identification code.
The Bluetooth broadcasting data comprises manufacturer data of the equipment terminal and Bluetooth identification codes, wherein the manufacturer data field comprises hardware address information of the second terminal. Further, the vendor data field may further include a device model number, a MAC address, or a device name of the second terminal.
When the first terminal receives Bluetooth broadcast data, analyzing the Bluetooth broadcast data to obtain manufacturer data fields and Bluetooth identification codes of equipment terminals corresponding to the Bluetooth broadcast data; and 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; if the combination code is inconsistent with the Bluetooth identification code, the Bluetooth broadcasting data does not meet the preset format, and the Bluetooth broadcasting data is discarded.
Specifically, the step of combining the hardware address information with a pre-stored preset fixed value 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 an embodiment, the hardware address information occupies 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 pairing 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, whether the second terminal is in a pairing state is determined.
The Bluetooth broadcasting data also comprises a pairing state identifier of the second terminal. When the first terminal receives the Bluetooth broadcast data, the Bluetooth broadcast data is analyzed to obtain the pairing state identification of the equipment terminal corresponding to the Bluetooth broadcast data. If the pairing state identifier is the pairing permission identifier, 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; if the pairing state identifier is the 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 the pairing state, and the Bluetooth broadcast data is discarded.
Further, in an embodiment, the pairing state identifier occupies one byte of the vendor data field.
Further, in an embodiment, the step of determining whether the bluetooth broadcast data meets a preset format, determining whether the second terminal corresponding to the bluetooth broadcast data is in a pairing state, and determining whether the 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 the 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 according to any sequence.
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 pairing 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 sequentially according to any sequence, which is not particularly 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 the bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold, and finally determine whether the second terminal corresponding to the bluetooth broadcast data is in a pairing state; or, the first terminal determines whether the second terminal corresponding to the bluetooth broadcast data is in a pairing state, then determines whether the bluetooth broadcast data meets a preset format, and finally determines whether the bluetooth signal strength corresponding to the bluetooth broadcast data is greater than a preset threshold value, and the like, and other execution sequences are the same, which are not described in detail herein.
Further, in an embodiment, the third terminal broadcasts the bluetooth broadcast data based on a preset period, wherein the third terminal includes a second terminal.
In addition, the embodiment of the application also provides a rapid pairing device, which 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 or not, and determining whether the Bluetooth signal strength corresponding to the Bluetooth broadcast data is larger than a preset threshold value or not;
and the pairing module is used for pairing with the second terminal if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal strength is greater than the preset threshold.
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 stored in the first terminal in advance 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 further 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.
In addition, an embodiment of the present application further proposes a computer readable storage medium, on which a rapid pairing procedure is stored, the rapid pairing procedure implementing the steps of the rapid pairing method as described in any one of the above when being executed by a processor.
The specific embodiments of the computer readable storage medium of the present application are substantially the same as the embodiments of the rapid 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 one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. A quick pairing method, wherein the quick pairing method is applied to a first terminal, and the quick pairing method comprises the following steps:
receiving Bluetooth broadcast data when the Bluetooth broadcast data is monitored;
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 a second terminal corresponding to the Bluetooth broadcast data;
combining the hardware address information with a preset fixed value stored in the first terminal in advance according to a preset rule to obtain a combined code;
determining whether the Bluetooth broadcast data meets a preset format or not based on the combined code and the Bluetooth identification code;
determining whether a second terminal corresponding to the Bluetooth broadcast data is in a pairing state or not, and determining whether the Bluetooth signal strength corresponding to the Bluetooth broadcast data is greater than a preset threshold value or not;
if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal strength is greater than the preset threshold value, the second terminal is paired with the second terminal;
the second terminal is an intelligent writing book, and the intelligent writing book is in communication connection with the electronic touch pen and converts handwriting input data into electronic output; the intelligent writing book is used for broadcasting Bluetooth broadcasting data outwards according to a preset time interval, broadcasting the Bluetooth broadcasting data lasts for a preset time period, the preset time interval is 0.5s or 1s, the preset time period is 10s or 20s, and the step of receiving the Bluetooth broadcasting data when the Bluetooth broadcasting data is monitored comprises the following steps:
running a preset application program, and starting a Bluetooth module to enter a Bluetooth pairing mode;
and when the Bluetooth module monitors the Bluetooth broadcast data, receiving the Bluetooth broadcast data.
2. The quick pairing method as defined in claim 1, wherein the hardware address information occupies six consecutive bytes of the vendor data field.
3. The quick pairing method as defined in 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 further 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.
4. The quick pairing method as defined in claim 3, wherein the pairing status identifier occupies one byte of the vendor data field.
5. The rapid pairing method according to claim 1, further comprising:
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 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 according to any sequence.
6. A quick-mate apparatus, the quick-mate apparatus comprising:
the receiving module is used for receiving the Bluetooth broadcast data when the Bluetooth broadcast data is monitored;
the detection module is used for 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; the hardware address information is also used for combining the hardware address information with a preset fixed value stored in the first terminal in advance according to a preset rule to obtain a combined code; the Bluetooth broadcasting module is also used for determining whether the Bluetooth broadcasting data meets a preset format or not based on the combined code and the Bluetooth identification code; the method is also used for determining whether a second terminal corresponding to the Bluetooth broadcast data is in a pairing state or not and determining whether the Bluetooth signal strength corresponding to the Bluetooth broadcast data is larger than a preset threshold value or not;
the pairing module is used for pairing with the second terminal if the Bluetooth broadcast data meets a preset format, the second terminal is in a pairing state, and the Bluetooth signal strength is greater than the preset threshold;
the second terminal is an intelligent writing book, and the intelligent writing book is in communication connection with the electronic touch pen and converts handwriting input data into electronic output; the intelligent writing book is used for broadcasting Bluetooth broadcasting data outwards according to a preset time interval, the broadcasting Bluetooth broadcasting data lasts for a preset time period, the preset time interval is 0.5s or 1s, the preset time period is 10s or 20s, and the receiving module is further used for:
running a preset application program, and starting a Bluetooth module to enter a Bluetooth pairing mode;
and when the Bluetooth module monitors the Bluetooth broadcast data, receiving the Bluetooth broadcast data.
7. A quick-pairing device, characterized in that it comprises: memory, a processor and a quick-pairing program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the quick-pairing method according to any one of claims 1 to 5.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a quick pairing procedure, which when executed by a processor, implements the steps of the quick pairing method according to any one of claims 1 to 5.
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 CN111818499A (en) 2020-10-23
CN111818499B true 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)

Families Citing this family (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
CN113518336A (en) * 2021-07-16 2021-10-19 Oppo广东移动通信有限公司 Bluetooth connection prompting method, device, terminal and storage medium
CN114726949B (en) * 2022-04-18 2022-11-22 深圳市丰禾原电子科技有限公司 Incoming call answering method and Bluetooth headset

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 connecting method, device, readable storage medium storing program for executing 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 connecting method, device, readable storage medium storing program for executing and mobile device

Also Published As

Publication number Publication date
CN111818499A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
CN111107667B (en) Bluetooth headset pairing method and device and readable storage medium
CN111818499B (en) Quick pairing method, device, equipment and computer readable storage medium
CN109284144B (en) Fast application processing method and mobile terminal
CN109032491B (en) Data processing method and device and mobile terminal
CN109215640B (en) Speech recognition method, intelligent terminal and computer readable storage medium
CN110035181B (en) Method and terminal for setting theme of quick application card
CN108009031B (en) Application program control method and mobile terminal
CN108629863B (en) Method for automatically signing in application program, mobile terminal and readable storage medium
CN108196663B (en) Face recognition method and mobile terminal
CN111427644B (en) Target behavior identification method and electronic equipment
CN111966373A (en) APN resetting method, terminal equipment and storage medium
CN111931155A (en) Verification code input method, verification code input equipment and storage medium
CN110831114A (en) Connection method with wireless device, terminal and readable storage medium
CN109164951B (en) Mobile terminal operation method and mobile terminal
CN111026454A (en) Function starting method and terminal equipment
CN108076200B (en) Mobile terminal restart positioning method, mobile terminal and computer readable storage medium
CN108170360B (en) Control method of gesture function and mobile terminal
CN108304709B (en) Face unlocking method and related product
CN108228423B (en) Mobile terminal restart positioning method, mobile terminal and computer readable storage medium
CN107844203B (en) Input method candidate word recommendation method and mobile terminal
CN108702410B (en) Contextual model control method and mobile terminal
CN113099513B (en) Base station selection method, electronic terminal and computer readable storage medium
CN106535229B (en) WiFi signal receiving sensitivity testing method and mobile terminal
CN108710789B (en) Unlocking method and terminal equipment
CN109413276B (en) Information 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