CN110753330A - Bluetooth pairing method and Bluetooth headset - Google Patents
Bluetooth pairing method and Bluetooth headset Download PDFInfo
- Publication number
- CN110753330A CN110753330A CN201910975234.0A CN201910975234A CN110753330A CN 110753330 A CN110753330 A CN 110753330A CN 201910975234 A CN201910975234 A CN 201910975234A CN 110753330 A CN110753330 A CN 110753330A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- pairing information
- external
- pairing
- external bluetooth
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention provides a Bluetooth pairing method and a Bluetooth headset, wherein the method is applied to the Bluetooth headset and comprises the following steps: establishing a classic Bluetooth connection with an external Bluetooth device; acquiring first pairing information paired with the external Bluetooth equipment according to a preset mode through the classic Bluetooth connection, and broadcasting the first pairing information so as to send a low-power Bluetooth pairing request to the Bluetooth headset when the external Bluetooth equipment scans the first pairing information; and establishing a low-power Bluetooth connection with the external Bluetooth equipment. On the basis of classic bluetooth connection, through the setting of first pairing information, guarantee the identity that bluetooth headset classic bluetooth is connected and the bluetooth low energy is connected.
Description
Technical Field
The invention relates to the technical field of wireless Bluetooth headsets, in particular to a Bluetooth pairing method and a Bluetooth headset.
Background
In the related art, the bluetooth headset is more convenient and faster than the traditional wired bluetooth headset, and therefore, the bluetooth headset is more and more popular with the market and users.
Before using the bluetooth headset, the bluetooth headset needs to be connected and paired with a device such as a mobile phone. Have Classic Bluetooth (Classic Bluetooth) and Bluetooth Low Energy (BLE for short) two parts's Bluetooth headset simultaneously, when connecting outside Bluetooth equipment like the cell-phone, produce the condition that Classic Bluetooth and Bluetooth Low Energy are connected to different outside Bluetooth equipment respectively easily, traditional connection pairing mode can't guarantee the identity that Bluetooth headset's Classic Bluetooth and Bluetooth Low Energy are connected.
Disclosure of Invention
The embodiment of the invention aims to provide a Bluetooth pairing method and a Bluetooth headset, so that the identity of classic Bluetooth and low-power Bluetooth connection of the Bluetooth headset is ensured. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a bluetooth pairing method, which is applied to a bluetooth headset, and the method includes:
establishing a classic Bluetooth connection with an external Bluetooth device;
acquiring first pairing information paired with the external Bluetooth equipment according to a preset mode through the classic Bluetooth connection, and broadcasting the first pairing information so as to send a low-power Bluetooth pairing request to the Bluetooth headset when the external Bluetooth equipment scans the first pairing information;
and establishing a low-power Bluetooth connection with the external Bluetooth equipment.
Optionally, the obtaining first pairing information paired with the external bluetooth device according to a preset manner includes:
acquiring second pairing information from the external Bluetooth device;
verifying the second pairing information;
and if the verification is successful, encoding the second pairing information according to a preset first encoding algorithm to obtain first pairing information paired with the external Bluetooth equipment.
Optionally, obtaining second pairing information from the external bluetooth device includes:
receiving third pairing information sent by the external Bluetooth device, wherein the third pairing information is obtained by encoding the second pairing information by the external Bluetooth device according to a preset second encoding algorithm;
receiving the third pairing information sent by the external Bluetooth device;
and decoding the third pairing information according to a decoding algorithm corresponding to the second encoding algorithm to obtain second pairing information.
Optionally, the third pairing information is audio data.
Optionally, the third pairing information is sent by the external bluetooth device every preset time, and the external bluetooth device stops sending the third pairing information after successfully establishing a bluetooth low energy connection with the bluetooth headset.
Optionally, the obtaining first pairing information paired with the external bluetooth device according to a preset manner includes:
when detecting that the external Bluetooth equipment sets the volume, acquiring a target volume value set by the external Bluetooth equipment, wherein the target volume value is obtained by calculating the volume value before the external Bluetooth equipment sets the volume value according to a preset volume value algorithm;
and coding the target volume value according to a preset third coding algorithm to obtain first pairing information paired with the external Bluetooth equipment.
Optionally, after establishing the bluetooth low energy connection with the external bluetooth device, the method further includes:
exchanging authentication information with the external Bluetooth equipment to carry out identity verification;
and the identity verification is successful, and the low-power Bluetooth connection established with the external Bluetooth equipment is kept.
Optionally, the method further includes: and if the identity verification fails, disconnecting the low-power Bluetooth connection with the external Bluetooth equipment.
Optionally, the method further includes: and under the condition that the low-power-consumption Bluetooth connection with the external Bluetooth equipment fails, returning to execute the classic Bluetooth connection, acquiring first pairing information paired with the external Bluetooth equipment according to a preset mode, and broadcasting the first pairing information.
In a second aspect, an embodiment of the present invention provides a bluetooth headset, including a memory, a processor, and an embedded program stored in the memory and executable on the processor, where the processor implements any of the steps of the bluetooth pairing method when executing the embedded program.
According to the Bluetooth pairing method and the Bluetooth headset provided by the embodiment of the invention, on the basis of classic Bluetooth connection, the identity of classic Bluetooth connection and low-power Bluetooth connection of the Bluetooth headset is ensured through the setting of the first pairing information. And through the transform of multiple pairing information, make the connection between bluetooth headset and the outside bluetooth equipment safer, thereby ensure the identity that bluetooth headset classic bluetooth is connected and the low-power consumption is connected.
Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a first flowchart of a bluetooth pairing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a bluetooth pairing method according to an embodiment of the present invention;
fig. 3 is a third flowchart illustrating a bluetooth pairing method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a first structure of a bluetooth headset according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a second structure of a bluetooth headset according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the related art, when connecting a bluetooth headset with an external bluetooth device such as a mobile phone, the situation that classic bluetooth and bluetooth low energy are connected to different external bluetooth devices respectively is easily generated, and the traditional connection pairing mode cannot ensure the connection identity of the classic bluetooth and the bluetooth low energy of the bluetooth headset. In order to solve the technical problem, embodiments of the present invention provide a bluetooth pairing method and a bluetooth headset.
The bluetooth technology supports short-distance communication of devices, when communication is performed in a bluetooth mode, generally, one device is used as a master device, the other device is used as a slave device, searching is performed through the master device, pairing is initiated, connection is established, and after the connection is successful, both sides can receive and transmit data, for example, voice data is transmitted. In the embodiment of the invention, the Bluetooth headset is used as the slave equipment, and the external Bluetooth equipment is used as the master equipment to realize Bluetooth pairing, namely, the Bluetooth headset is connected to the same external Bluetooth equipment through classical Bluetooth connection and low-power Bluetooth connection. The external Bluetooth device can be a mobile phone or a computer.
Referring to fig. 1, a bluetooth pairing method provided in an embodiment of the present invention is applied to a bluetooth headset, and the method includes:
s101, establishing a classic Bluetooth connection with an external Bluetooth device.
Classic bluetooth and bluetooth low energy are all supported to bluetooth headset and outside bluetooth equipment, establish classic bluetooth earlier between bluetooth headset and the outside bluetooth equipment and be connected, can realize bluetooth headset's basic function like this, like listen the pronunciation of outside bluetooth equipment through bluetooth headset, voice conversation sets up volume etc..
S102, through classical Bluetooth connection, first pairing information paired with external Bluetooth equipment is obtained according to a preset mode, and the first pairing information is broadcasted, so that when the external Bluetooth equipment scans the first pairing information, a low-power-consumption Bluetooth pairing request is sent to a Bluetooth headset.
The external bluetooth device checks the first pairing information, and may use locally pre-stored information for checking, or use other information to obtain information for checking according to a predetermined coding algorithm, and completes the checking by judging whether the information for checking matches the first pairing information, if so, whether the information for checking matches the first pairing information.
The external bluetooth device sends a bluetooth low energy pairing request to the bluetooth headset, specifically, the bluetooth low energy pairing request may be a connection request sent to a bluetooth low energy interface of the bluetooth headset by calling the bluetooth low energy interface of the external bluetooth device.
In an implementation manner of the embodiment of the present invention, in S102, obtaining first pairing information paired with an external bluetooth device according to a preset manner may be implemented by:
(1) and acquiring second pairing information from the external Bluetooth device.
(2) And verifying the second pairing information.
(3) And if the verification is successful, encoding the second pairing information according to a preset first encoding algorithm to obtain first pairing information paired with the external Bluetooth equipment.
Further, acquiring the second pairing information from the external bluetooth device may include:
(1) and receiving third pairing information sent by the external Bluetooth equipment, wherein the third pairing information is obtained by the external Bluetooth equipment by coding the second pairing information according to a preset second coding algorithm.
Wherein the third pairing information is audio data. The third pairing information is sent by the external Bluetooth device every preset time, and the external Bluetooth device can stop sending the third pairing information after successfully establishing the low-power Bluetooth connection with the Bluetooth headset. Of course, in other embodiments, the transmission may also be performed at a preset time point.
(2) And receiving third pairing information sent by the external Bluetooth device.
(3) And decoding the third pairing information according to a decoding algorithm corresponding to the second encoding algorithm to obtain second pairing information.
When the external Bluetooth device scans the first pairing information, the first pairing information is verified, and the external Bluetooth device codes the third pairing information according to a preset first coding algorithm to obtain information for verifying the first pairing information. And if the first pairing information is consistent with the information for checking the first pairing information, the checking is successful, a low-power-consumption Bluetooth pairing request is sent to the Bluetooth headset, and if not, the checking is failed.
In an implementation manner of the embodiment of the present invention, in S102, the first pairing information paired with the external bluetooth device is obtained in a preset manner, which may also be implemented in the following manner:
when the external Bluetooth device is detected to set the volume, a target volume value set by the external Bluetooth device is obtained, wherein the target volume value is obtained by calculating the volume value before the external Bluetooth device is set according to a preset volume value algorithm.
And coding the target volume value according to a preset third coding algorithm to obtain first pairing information paired with the external Bluetooth equipment.
The external Bluetooth device detects the current volume, calculates a target volume value according to the current volume value according to a preset volume value algorithm, for example, amplifies the current volume value by a preset number times within a volume adjustable range to obtain the target volume value. And the external Bluetooth device adjusts the current volume to the target volume value.
In S102, first pairing information paired with the external bluetooth device is obtained in a preset manner, which may also be implemented in the following manner:
the mobile terminal APP acquires local information, such as a mobile phone UUID (Universal unique identifier), and codes the local information into a special audio to play.
The earphone detects that the audio played by the external equipment through the classical Bluetooth link comprises a special mark, and then the audio is decoded to obtain first pairing information paired with the external Bluetooth equipment.
The encoding method can be realized by the following modes:
presetting a batch of different audio data, wherein the preset audio corresponds to 36 audio data of 0-9 and a-z, and converting the document to be coded into a section of audio by a table look-up mode.
And S103, establishing low-power-consumption Bluetooth connection with the external Bluetooth equipment.
Further, after establishing the bluetooth low energy connection with the external bluetooth device, the bluetooth pairing method further includes:
and exchanging authentication information with external Bluetooth equipment to perform identity verification.
And the identity verification is successful, and the low-power Bluetooth connection established with the external Bluetooth equipment is kept.
And if the identity verification fails, disconnecting the low-power Bluetooth connection with the external Bluetooth equipment.
It should be noted that, the bluetooth low energy connection established with the external bluetooth device is maintained, and the bluetooth low energy connection disconnected with the external bluetooth device is actively initiated by the external bluetooth device, and the bluetooth headset is passively executed.
The Bluetooth pairing method further comprises the following steps: and under the condition that the low-power-consumption Bluetooth connection with the external Bluetooth equipment fails, returning to execute S102, namely, acquiring first pairing information paired with the external Bluetooth equipment according to a preset mode through classical Bluetooth connection, and broadcasting the first pairing information. This makes it possible to try a plurality of connections and to increase the success rate of the connection.
On the basis of classic bluetooth connection, through the setting of first pairing information, guarantee the identity that bluetooth headset classic bluetooth is connected and the bluetooth low energy is connected. And through the transform of multiple pairing information, make the connection between bluetooth headset and the outside bluetooth equipment safer, thereby ensure the identity that bluetooth headset classic bluetooth is connected and the low-power consumption is connected.
During specific Application, the classical bluetooth of the bluetooth headset and the external bluetooth device is connected firstly, then, the APP (Application program) installed on the external bluetooth device sends the voice containing the second pairing information, namely, the third pairing information, through the classical bluetooth, the bluetooth headset receives the voice data and decodes the voice data and extracts the second pairing information contained in the voice data, then, the bluetooth broadcast with the first pairing information is generated according to the second pairing information, and the mobile phone APP scans the broadcast containing the second pairing information and then is connected. After the BLE connection, namely the low-power Bluetooth connection, is successful, the two parties can further exchange verification information to perform identity verification. Eventually pairing is achieved and the identity of the classic bluetooth and BLE connections is guaranteed. The second pairing information, the first pairing information and the verification information can be encrypted for transmission, and the corresponding receiving end is required to decrypt according to a predetermined mode.
In an example, taking a bluetooth headset and a mobile phone as an example, referring to fig. 2, the bluetooth pairing method includes: s201, connecting a mobile phone with a Bluetooth headset classic Bluetooth; s202, the mobile phone codes the connection information A into music and plays the music, S203, the Bluetooth headset obtains the coded music data, the connection information A is decoded and extracted, S204, the Bluetooth headset generates connection information B and sends the connection information B contained in a broadcast packet, S205, the mobile phone scans the broadcast packet containing the information B and performs low-power Bluetooth connection, S206 and the Bluetooth headset further exchange information C to perform identity verification after the low-power Bluetooth connection is completed, S207, if the low-power connection is wrong, the low-power connection process is re-executed, and S208, the connection is finally completed.
Specifically, connect the classic bluetooth of equipment such as bluetooth headset and cell-phone earlier, then cell-phone APP sends the pronunciation that contains the connection pairing information A through the classic bluetooth, and the bluetooth headset receives decoding and draws the information A that wherein contains behind this speech data, produces the bluetooth broadcast that has special information B according to this information A again, and cell-phone APP scans and connects after the broadcast that contains this special information B. After the BLE connection is successful, the two parties further exchange information C for verification. Eventually pairing is achieved and the identity of the classic bluetooth and BLE connections is guaranteed. The message A, B, C may be encrypted for transmission, which requires decryption by the corresponding receiver according to a predetermined scheme.
Further, after the step of verifying the matching data broadcasted by the bluetooth headset scanned by the mobile phone and the matching data of the mobile phone, the method further includes: when the mobile phone scanning time length exceeds the preset time length and the Bluetooth earphone is not successfully matched, prompting a user to carry out classical Bluetooth connection through a mobile phone APP; or when the mobile phone scanning time length exceeds the preset time length and the Bluetooth headset is not successfully matched, prompting the user to reset the Bluetooth headset and then carry out classical Bluetooth connection.
And starting to send the audio data containing the information codes at regular time after the mobile phone opens the corresponding APP. And stopping sending the audio data after the connection between the mobile phone and the Bluetooth headset BLE is successful.
Taking a bluetooth headset and a mobile phone as an example, referring to fig. 3, the bluetooth pairing method includes: s301, the mobile phone is connected with Bluetooth headset classic Bluetooth, S302, the mobile phone calculates a new volume value according to the current volume value and sets the volume value, S303, the Bluetooth headset acquires the new volume value, generates coding information W according to the new volume value and puts the coding information W into a broadcasting packet to be sent, S304, the mobile phone scans the broadcasting packet containing the information W to carry out low-power Bluetooth connection, namely BLE connection, after BEL connection is completed, S305, the mobile phone and the Bluetooth headset further exchange information Y to carry out identity verification, S306, if the BLE connection is wrong, the BLE connection process is carried out again, S307, and connection is finally completed.
Specifically, the classical bluetooth of devices such as a bluetooth headset and a mobile phone is connected first, then the mobile phone APP acquires the current volume of the mobile phone and calculates a new volume value according to a certain algorithm and sets the mobile phone volume to the volume value. And the Bluetooth headset connected with the pair acquires the event of the volume set by the mobile phone, starts to transmit the broadcast, and puts the volume value as a parameter in a broadcast packet for transmission. And the mobile phone APP scans the broadcast packet containing the information for connection. And after the BLE connection, namely the low-power Bluetooth connection, is successful, the two parties further exchange information for verification. Finally, the pairing is achieved, the connection of classic Bluetooth and BLE, namely the connection of low-power Bluetooth, is guaranteed, and the user experience is improved.
Further, after the step of verifying the matching data broadcasted by the bluetooth headset scanned by the mobile phone and the matching data of the mobile phone, the method further includes: when the mobile phone scanning time length exceeds the preset time length and the Bluetooth earphone is not successfully matched, prompting a user to carry out classical Bluetooth connection through a mobile phone APP; or when the mobile phone scanning time length exceeds the preset time length and the Bluetooth headset is not successfully matched, prompting the user to reset the Bluetooth headset and then carry out classical Bluetooth connection.
Based on the same inventive concept as the method embodiment, an embodiment of the present invention further provides a bluetooth pairing apparatus, and with reference to fig. 4, the apparatus includes:
a first pairing module 41 for establishing a classic bluetooth connection with an external bluetooth device.
The obtaining module 42 is configured to obtain, through classical bluetooth connection, first pairing information paired with an external bluetooth device according to a preset manner.
The broadcasting module 43 broadcasts the first pairing information, so that when the external bluetooth device scans the first pairing information, a bluetooth low energy pairing request is sent to the bluetooth headset.
And a second pairing module 44, configured to establish a bluetooth low energy connection with an external bluetooth device.
In an implementation manner of the embodiment of the present invention, the obtaining module 42 may include:
and the acquisition unit is used for acquiring the second pairing information from the external Bluetooth equipment.
And the checking unit is used for checking the second pairing information.
And the obtaining unit is used for coding the second pairing information according to a preset first coding algorithm when the verification of the verification unit is successful, and obtaining first pairing information paired with the external Bluetooth equipment.
Further, the slave acquiring unit may include:
the first receiving subunit is configured to receive third pairing information sent by the external bluetooth device, where the third pairing information is obtained by the external bluetooth device by encoding the second pairing information according to a preset second encoding algorithm.
And the second receiving subunit is used for receiving third pairing information sent by the external Bluetooth device.
And the obtaining subunit is configured to decode the third pairing information according to a decoding algorithm corresponding to the second encoding algorithm, so as to obtain second pairing information.
When the external Bluetooth device scans the first pairing information, the first pairing information is verified, and the external Bluetooth device codes the third pairing information according to a preset first coding algorithm to obtain information for verifying the first pairing information. And if the first pairing information is consistent with the information for checking the first pairing information, the checking is successful, a low-power-consumption Bluetooth pairing request is sent to the Bluetooth headset, and if not, the checking is failed.
In an implementation manner of the embodiment of the present invention, the obtaining module 42 may include:
and the target volume value acquisition unit is used for acquiring a target volume value set by the external Bluetooth device when detecting that the external Bluetooth device sets the volume, wherein the target volume value is obtained by calculating the volume value before the external Bluetooth device sets according to a preset volume value algorithm.
And the target volume value coding unit is used for coding the target volume value according to a preset third coding algorithm to obtain first pairing information paired with the external Bluetooth equipment.
The external Bluetooth device detects the current volume, calculates a target volume value according to the current volume according to a preset volume value algorithm, for example, amplifies the current volume value by a preset number times within a volume adjustable range to obtain the target volume value. And the external Bluetooth device adjusts the current volume to the target volume value.
Further, after establishing the bluetooth low energy connection with the external bluetooth device, the apparatus further includes:
and the identity verification module is used for exchanging verification information with external Bluetooth equipment to perform identity verification.
And the pairing maintaining module is used for maintaining the low-power-consumption Bluetooth connection established with the external Bluetooth equipment if the identity verification is successful.
And the pairing disconnection module is used for disconnecting the low-power-consumption Bluetooth connection with the external Bluetooth equipment if the identity verification fails. Referring to fig. 5, an embodiment of the present invention provides a bluetooth headset, which includes a memory 51, a processor 52 and an embedded program stored in the memory 51 and executable on the processor 52, wherein when the processor 52 executes the embedded program, the steps of any of the above methods are implemented. The bluetooth headset may further comprise a communication interface and a communication bus, wherein the processor 52, the communication interface and the memory 51 are configured to communicate with each other via the communication bus.
It should be noted that the communication bus mentioned in the electronic device may be a PCI (peripheral component interconnect) bus, an EISA (Extended industrial standard architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. The communication interface is used for communication between the electronic equipment and other equipment. The Memory may include a RAM (Random Access Memory) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor. The processor described above may be a general purpose processor comprising: CPU, NP (Network Processor), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, the system, the telephony terminal, the computer-readable storage medium, the computer program product, and the computer program embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and it is sufficient to refer to the partial description of the method embodiment for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. A Bluetooth pairing method is applied to a Bluetooth headset, and is characterized by comprising the following steps:
establishing a classic Bluetooth connection with an external Bluetooth device;
acquiring first pairing information paired with the external Bluetooth equipment according to a preset mode through the classic Bluetooth connection, and broadcasting the first pairing information so as to send a low-power Bluetooth pairing request to the Bluetooth headset when the external Bluetooth equipment scans the first pairing information;
and establishing a low-power Bluetooth connection with the external Bluetooth equipment.
2. The method according to claim 1, wherein the obtaining the first pairing information paired with the external bluetooth device according to the preset manner comprises:
acquiring second pairing information from the external Bluetooth device;
verifying the second pairing information;
and if the verification is successful, encoding the second pairing information according to a preset first encoding algorithm to obtain first pairing information paired with the external Bluetooth equipment.
3. The method of claim 2, wherein obtaining second pairing information from the external Bluetooth device comprises:
receiving third pairing information sent by the external Bluetooth device, wherein the third pairing information is obtained by encoding the second pairing information by the external Bluetooth device according to a preset second encoding algorithm;
receiving the third pairing information sent by the external Bluetooth device;
and decoding the third pairing information according to a decoding algorithm corresponding to the second encoding algorithm to obtain second pairing information.
4. The method of claim 3, wherein the third pairing information is audio data.
5. The method of claim 3, wherein the third pairing information is sent by the external Bluetooth device every preset time, and the external Bluetooth device stops sending the third pairing information after successfully establishing a Bluetooth Low energy connection with the Bluetooth headset.
6. The method according to claim 1, wherein the obtaining the first pairing information paired with the external bluetooth device according to the preset manner comprises:
when detecting that the external Bluetooth equipment sets the volume, acquiring a target volume value set by the external Bluetooth equipment, wherein the target volume value is obtained by calculating the volume value before the external Bluetooth equipment sets the volume value according to a preset volume value algorithm;
and coding the target volume value according to a preset third coding algorithm to obtain first pairing information paired with the external Bluetooth equipment.
7. The method of any of claims 1-6, wherein after establishing the Bluetooth Low energy connection with the external Bluetooth device, the method further comprises:
exchanging authentication information with the external Bluetooth equipment to carry out identity verification;
and the identity verification is successful, and the low-power Bluetooth connection established with the external Bluetooth equipment is kept.
8. The method of claim 7, further comprising: and if the identity verification fails, disconnecting the low-power Bluetooth connection with the external Bluetooth equipment.
9. The method of claims 1-6, further comprising: and under the condition that the low-power-consumption Bluetooth connection with the external Bluetooth equipment fails, returning to execute the classic Bluetooth connection, acquiring first pairing information paired with the external Bluetooth equipment according to a preset mode, and broadcasting the first pairing information.
10. A bluetooth headset comprising a memory, a processor and an embedded program stored in the memory and executable on the processor, the processor implementing the steps of the method according to claims 1 to 9 when executing the embedded program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910975234.0A CN110753330B (en) | 2019-10-14 | 2019-10-14 | Bluetooth pairing method and Bluetooth headset |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910975234.0A CN110753330B (en) | 2019-10-14 | 2019-10-14 | Bluetooth pairing method and Bluetooth headset |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110753330A true CN110753330A (en) | 2020-02-04 |
CN110753330B CN110753330B (en) | 2023-08-15 |
Family
ID=69278250
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910975234.0A Active CN110753330B (en) | 2019-10-14 | 2019-10-14 | Bluetooth pairing method and Bluetooth headset |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110753330B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110944312A (en) * | 2019-11-14 | 2020-03-31 | 合肥星空物联信息科技有限公司 | Method for performing dual-mode Bluetooth pairing by using audio data and Bluetooth device |
CN111294737A (en) * | 2020-02-28 | 2020-06-16 | 深圳市中科蓝讯科技股份有限公司 | Method and system for generating and transmitting BLE broadcast packet through classic Bluetooth |
CN112040459A (en) * | 2020-09-07 | 2020-12-04 | 深圳市蓝蜂时代实业有限公司 | Bluetooth headset voice interactive communication method based on BLE |
CN113038442A (en) * | 2021-03-16 | 2021-06-25 | 北京百瑞互联技术有限公司 | Method, device and system for matching and connecting low-power-consumption Bluetooth equipment |
CN114025338A (en) * | 2021-11-09 | 2022-02-08 | 深圳万兴软件有限公司 | Method and device for improving reverse control Bluetooth connection efficiency and related components |
WO2023098423A1 (en) * | 2021-12-03 | 2023-06-08 | Oppo广东移动通信有限公司 | Bluetooth connection method and apparatus, and bluetooth address configuration method and apparatus |
WO2023134386A1 (en) * | 2022-01-14 | 2023-07-20 | Oppo广东移动通信有限公司 | Device connection method and apparatus, and device, storage medium and chip |
WO2023165418A1 (en) * | 2022-03-01 | 2023-09-07 | 维沃移动通信有限公司 | Bluetooth connection method and bluetooth connection device |
WO2024066688A1 (en) * | 2022-09-30 | 2024-04-04 | Oppo广东移动通信有限公司 | Device connection method and apparatus, bluetooth device, and storage medium |
CN117833963A (en) * | 2024-03-04 | 2024-04-05 | 慧翰微电子股份有限公司 | Classical Bluetooth audio data transmission method, system and electronic equipment |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103391121A (en) * | 2013-07-31 | 2013-11-13 | 北京爱德发科技有限公司 | Method for pairing and connecting multiple devices and Bluetooth device |
CN103716072A (en) * | 2013-12-20 | 2014-04-09 | 天地融科技股份有限公司 | Bluetooth device connection method, master bluetooth device and slave bluetooth device |
US20150106887A1 (en) * | 2013-10-16 | 2015-04-16 | Spotify Ab | Systems and methods for configuring an electronic device |
KR20150095124A (en) * | 2014-02-12 | 2015-08-20 | 엘지전자 주식회사 | Mobile terminal and control method for the mobile terminal |
US20160227319A1 (en) * | 2015-01-30 | 2016-08-04 | Cassia Networks Inc. | Methods, devices and systems for bluetooth audio transmission |
US20170303075A1 (en) * | 2016-04-14 | 2017-10-19 | Buildwin International (Zhuhai) Limited | System and method for playing licensed music based on bluetooth communication cross-reference to related application |
US20180150277A1 (en) * | 2016-11-30 | 2018-05-31 | Microsoft Technology Licensing, Llc | Bluetooth identity binding for volume control |
CN108551670A (en) * | 2018-03-30 | 2018-09-18 | 深圳市冠旭电子股份有限公司 | A kind of Bluetooth connecting method, device and intelligent terminal |
CN108738008A (en) * | 2018-07-10 | 2018-11-02 | 深圳市闻耀电子科技有限公司 | Bluetooth pairing methods and system |
CN108924805A (en) * | 2018-07-13 | 2018-11-30 | 杭州网易云音乐科技有限公司 | Bluetooth connecting method, medium and the first, second electronic equipment and calculating equipment |
CN109075820A (en) * | 2016-10-25 | 2018-12-21 | 华为技术有限公司 | A kind of Bluetooth pairing methods and terminal device |
-
2019
- 2019-10-14 CN CN201910975234.0A patent/CN110753330B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103391121A (en) * | 2013-07-31 | 2013-11-13 | 北京爱德发科技有限公司 | Method for pairing and connecting multiple devices and Bluetooth device |
US20150106887A1 (en) * | 2013-10-16 | 2015-04-16 | Spotify Ab | Systems and methods for configuring an electronic device |
CN103716072A (en) * | 2013-12-20 | 2014-04-09 | 天地融科技股份有限公司 | Bluetooth device connection method, master bluetooth device and slave bluetooth device |
KR20150095124A (en) * | 2014-02-12 | 2015-08-20 | 엘지전자 주식회사 | Mobile terminal and control method for the mobile terminal |
US20160227319A1 (en) * | 2015-01-30 | 2016-08-04 | Cassia Networks Inc. | Methods, devices and systems for bluetooth audio transmission |
US20170303075A1 (en) * | 2016-04-14 | 2017-10-19 | Buildwin International (Zhuhai) Limited | System and method for playing licensed music based on bluetooth communication cross-reference to related application |
CN109075820A (en) * | 2016-10-25 | 2018-12-21 | 华为技术有限公司 | A kind of Bluetooth pairing methods and terminal device |
US20180150277A1 (en) * | 2016-11-30 | 2018-05-31 | Microsoft Technology Licensing, Llc | Bluetooth identity binding for volume control |
CN108551670A (en) * | 2018-03-30 | 2018-09-18 | 深圳市冠旭电子股份有限公司 | A kind of Bluetooth connecting method, device and intelligent terminal |
CN108738008A (en) * | 2018-07-10 | 2018-11-02 | 深圳市闻耀电子科技有限公司 | Bluetooth pairing methods and system |
CN108924805A (en) * | 2018-07-13 | 2018-11-30 | 杭州网易云音乐科技有限公司 | Bluetooth connecting method, medium and the first, second electronic equipment and calculating equipment |
Non-Patent Citations (1)
Title |
---|
万燕;李丽丽;: "基于Android与BLE的蓝牙通信系统的实现", 科技创新与应用, no. 16 * |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110944312B (en) * | 2019-11-14 | 2023-08-25 | 合肥星空物联信息科技有限公司 | Method for carrying out dual-mode Bluetooth pairing by utilizing audio data and Bluetooth device |
CN110944312A (en) * | 2019-11-14 | 2020-03-31 | 合肥星空物联信息科技有限公司 | Method for performing dual-mode Bluetooth pairing by using audio data and Bluetooth device |
CN111294737A (en) * | 2020-02-28 | 2020-06-16 | 深圳市中科蓝讯科技股份有限公司 | Method and system for generating and transmitting BLE broadcast packet through classic Bluetooth |
CN111294737B (en) * | 2020-02-28 | 2020-11-10 | 深圳市中科蓝讯科技股份有限公司 | Method and system for generating and transmitting BLE broadcast packet through classic Bluetooth |
CN112040459A (en) * | 2020-09-07 | 2020-12-04 | 深圳市蓝蜂时代实业有限公司 | Bluetooth headset voice interactive communication method based on BLE |
CN112040459B (en) * | 2020-09-07 | 2021-08-31 | 深圳市蓝蜂时代实业有限公司 | Bluetooth headset voice interactive communication method based on BLE |
CN113038442A (en) * | 2021-03-16 | 2021-06-25 | 北京百瑞互联技术有限公司 | Method, device and system for matching and connecting low-power-consumption Bluetooth equipment |
CN114025338A (en) * | 2021-11-09 | 2022-02-08 | 深圳万兴软件有限公司 | Method and device for improving reverse control Bluetooth connection efficiency and related components |
CN114025338B (en) * | 2021-11-09 | 2024-02-13 | 深圳万兴软件有限公司 | Method and device for improving reverse control Bluetooth connection efficiency and related components |
WO2023098423A1 (en) * | 2021-12-03 | 2023-06-08 | Oppo广东移动通信有限公司 | Bluetooth connection method and apparatus, and bluetooth address configuration method and apparatus |
WO2023134386A1 (en) * | 2022-01-14 | 2023-07-20 | Oppo广东移动通信有限公司 | Device connection method and apparatus, and device, storage medium and chip |
WO2023165418A1 (en) * | 2022-03-01 | 2023-09-07 | 维沃移动通信有限公司 | Bluetooth connection method and bluetooth connection device |
WO2024066688A1 (en) * | 2022-09-30 | 2024-04-04 | Oppo广东移动通信有限公司 | Device connection method and apparatus, bluetooth device, and storage medium |
CN117833963A (en) * | 2024-03-04 | 2024-04-05 | 慧翰微电子股份有限公司 | Classical Bluetooth audio data transmission method, system and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110753330B (en) | 2023-08-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110753330B (en) | Bluetooth pairing method and Bluetooth headset | |
US9894059B2 (en) | Device association | |
US9628585B2 (en) | Systems and methods for cross-layer secure connection set up | |
CN106792493B (en) | Bluetooth device pairing method and device and Bluetooth device | |
CN110944312B (en) | Method for carrying out dual-mode Bluetooth pairing by utilizing audio data and Bluetooth device | |
US20130265857A1 (en) | Device Association | |
US11671825B2 (en) | Method and system for authenticating a device | |
CN108667699B (en) | Method and device for interconnecting terminal equipment and gateway equipment | |
WO2013071209A1 (en) | Method and system for pairing devices | |
WO2011106956A1 (en) | Mobile terminal and a data-share method for the mobile terminal | |
CN104144058A (en) | Information verification method based on sound wave pairing | |
WO2015032196A1 (en) | Method for mobile network to automatically establish connection, and terminal | |
KR20160143333A (en) | Method for Double Certification by using Double Channel | |
CN110636485A (en) | Bluetooth automatic connection method and method for initiating Bluetooth connection | |
US20200213844A1 (en) | Communication method, communication apparatus and electronic device | |
CN104869570A (en) | Speaking terminal confirmation method based on language channel | |
TW201539429A (en) | A smart phone paired with a Bluetooth headset for voice data encryption and decryption | |
CN107070659B (en) | Authentication of base station and headset | |
KR20120061022A (en) | Method and System for Authenticating Caller of Voice Network using Data Network, Caller Side Device, Receiver Device and Program | |
JP5332928B2 (en) | Wireless communication apparatus and wireless communication method | |
KR20070010955A (en) | Method and system for accessing data on received calls and message and mobile communication terminal therefor | |
CN109660988B (en) | Communication authentication processing method and device and electronic equipment | |
CN111988110B (en) | Wireless charging method and device | |
CN113099453A (en) | Authentication method, device and equipment for access server and readable storage medium | |
CN113691964A (en) | Connection method and device of Bluetooth equipment and storage medium |
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 |