CN110753330B - Bluetooth pairing method and Bluetooth headset - Google Patents

Bluetooth pairing method and Bluetooth headset Download PDF

Info

Publication number
CN110753330B
CN110753330B CN201910975234.0A CN201910975234A CN110753330B CN 110753330 B CN110753330 B CN 110753330B CN 201910975234 A CN201910975234 A CN 201910975234A CN 110753330 B CN110753330 B CN 110753330B
Authority
CN
China
Prior art keywords
bluetooth
pairing information
external
bluetooth device
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.)
Active
Application number
CN201910975234.0A
Other languages
Chinese (zh)
Other versions
CN110753330A (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.)
Hefei Xingkong Iot Information Technology Co ltd
Original Assignee
Hefei Xingkong Iot Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Xingkong Iot Information Technology Co ltd filed Critical Hefei Xingkong Iot Information Technology Co ltd
Priority to CN201910975234.0A priority Critical patent/CN110753330B/en
Publication of CN110753330A publication Critical patent/CN110753330A/en
Application granted granted Critical
Publication of CN110753330B publication Critical patent/CN110753330B/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
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User 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/72412User 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing 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)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (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 classical Bluetooth connection with external Bluetooth equipment; acquiring first pairing information paired with the external Bluetooth device in a preset mode through the classical Bluetooth connection, and broadcasting the first pairing information so that when the external Bluetooth device scans the first pairing information, a low-power consumption Bluetooth pairing request is sent to the Bluetooth headset; and establishing low-power Bluetooth connection with the external Bluetooth device. On the basis of classical bluetooth connection, through the setting of first pairing information, guarantee the identity that bluetooth headset classical bluetooth connects and bluetooth low energy connects.

Description

Bluetooth pairing method and Bluetooth headset
Technical Field
The invention relates to the technical field of wireless Bluetooth headphones, in particular to a Bluetooth pairing method and a Bluetooth headphone.
Background
In the related art, the Bluetooth headset is more convenient and faster than the traditional wired Bluetooth headset, so that the Bluetooth headset is more and more favored by markets and users.
Before using the bluetooth headset, the bluetooth headset needs to be connected and paired with a device such as a mobile phone. Meanwhile, the Bluetooth headset with the two parts of the classical Bluetooth (Classic Bluetooth) and the low-power Bluetooth (Bluetooth Low Energy, BLE for short) is easy to generate the condition that the classical Bluetooth and the low-power Bluetooth are respectively connected to different external Bluetooth devices when external Bluetooth devices such as mobile phones are connected, and the traditional connection pairing mode cannot guarantee the identity of the connection of the classical Bluetooth and the low-power Bluetooth of the Bluetooth headset.
Disclosure of Invention
The embodiment of the invention aims to provide a Bluetooth pairing method and a Bluetooth headset, so that the identity of classical Bluetooth and low-power-consumption 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, applied to a bluetooth headset, where the method includes:
establishing classical Bluetooth connection with external Bluetooth equipment;
acquiring first pairing information paired with the external Bluetooth device in a preset mode through the classical Bluetooth connection, and broadcasting the first pairing information so that when the external Bluetooth device scans the first pairing information, a low-power consumption Bluetooth pairing request is sent to the Bluetooth headset;
and establishing low-power Bluetooth connection with the external Bluetooth device.
Optionally, the obtaining, according to a preset manner, first pairing information paired with the external bluetooth device includes:
acquiring second pairing information from the external Bluetooth device;
checking the second pairing information;
and if the verification is successful, the second pairing information is encoded according to a preset first encoding algorithm, and first pairing information paired with the external Bluetooth device is obtained.
Optionally, acquiring 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 coding 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 at intervals of a preset time, and the external bluetooth device stops sending the third pairing information after the bluetooth low energy connection is successfully established with the bluetooth headset.
Optionally, the obtaining, according to a preset manner, first pairing information paired with the external bluetooth device includes:
when the volume set by the external Bluetooth device is detected, acquiring a target volume value set by the external Bluetooth device, wherein the target volume value is calculated by the external Bluetooth device according to a preset volume value algorithm;
and encoding the target volume value according to a preset third encoding algorithm to obtain first pairing information paired with the external Bluetooth device.
Optionally, after establishing the bluetooth low energy connection with the external bluetooth device, the method further includes:
exchanging verification information with the external Bluetooth device to carry out identity verification;
and the identity verification is successful, and the low-power consumption Bluetooth connection established with the external Bluetooth equipment is maintained.
Optionally, the method further comprises: and the identity verification fails, and the low-power Bluetooth connection is disconnected with the external Bluetooth device.
Optionally, the method further comprises: and under the condition that the establishment of the low-power-consumption Bluetooth connection with the external Bluetooth device fails, returning to execute the classical Bluetooth connection, acquiring first pairing information paired with the external Bluetooth device 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 capable of running on the processor, where the steps of any one of the bluetooth pairing methods described above are implemented when the processor executes the embedded program.
According to the Bluetooth pairing method and the Bluetooth headset, on the basis of classical Bluetooth connection, the identity of the classical Bluetooth connection and the low-power Bluetooth connection of the Bluetooth headset is guaranteed through the arrangement of the first pairing information. And through the transformation of multiple pairing information for the connection between bluetooth headset and the external bluetooth equipment is safer, thereby ensures bluetooth headset classical bluetooth and low energy and connects the identity.
Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a first bluetooth pairing method according to an embodiment of the invention;
fig. 2 is a schematic diagram of a second flow of a bluetooth pairing method according to an embodiment of the invention;
fig. 3 is a schematic diagram of a third flow of a bluetooth pairing method according to an embodiment of the 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 following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the related art, when connecting bluetooth headset and external bluetooth equipment such as the cell-phone, produce the condition that classical bluetooth and bluetooth with low energy are connected to different external bluetooth equipment respectively easily, traditional connection pairing mode can't guarantee bluetooth headset's classical bluetooth and bluetooth with low energy's identity of connection. In order to solve the technical problem, the embodiment of the invention provides a Bluetooth pairing method and a Bluetooth headset.
When the Bluetooth technology supports short-distance communication of equipment and performs communication in a Bluetooth mode, one equipment is generally used as a master equipment, the other equipment is used as a slave equipment, the master equipment is used for searching, pairing is initiated, connection is established, and after connection is successful, both parties can receive and transmit data, such as voice data. In the embodiment of the invention, the Bluetooth headset is used as the slave device, and the external Bluetooth device is used as the master device to realize Bluetooth pairing, namely, the Bluetooth headset is connected to the same external Bluetooth device through classical Bluetooth connection and low-power consumption Bluetooth connection. The external bluetooth device may be a mobile phone or a computer.
Referring to fig. 1, a bluetooth pairing method provided by an embodiment of the present invention is applied to a bluetooth headset, and the method includes:
s101, establishing classical Bluetooth connection with external Bluetooth equipment.
The Bluetooth headset and the external Bluetooth device both support classical Bluetooth and low-power consumption Bluetooth, and classical Bluetooth connection is established between the Bluetooth headset and the external Bluetooth device, so that the basic functions of the Bluetooth headset can be realized, such as hearing the voice of the external Bluetooth device through the Bluetooth headset, voice communication, volume setting and the like.
S102, acquiring first pairing information paired with external Bluetooth equipment in a preset mode through classical Bluetooth connection, and broadcasting the first pairing information 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 performs verification on the first pairing information, which may be information for verification pre-stored locally, or may be information for verification obtained by other information according to a predetermined coding algorithm, and the verification is completed by judging whether the information for verification matches with the first pairing information or not, if yes, the information for verification is consistent with the first pairing information.
The external bluetooth device sends a bluetooth low energy pairing request to the bluetooth headset, specifically may call a bluetooth low energy interface of the external bluetooth device, and send a connection request to the bluetooth low energy interface of the bluetooth headset.
In one implementation manner of the embodiment of the present invention, in S102, the obtaining, according to a preset manner, first pairing information paired with an external bluetooth device may be implemented in the following manner:
(1) And acquiring second pairing information from the external Bluetooth device.
(2) And checking the second pairing information.
(3) And if the verification is successful, the second pairing information is encoded according to a preset first encoding algorithm, and the first pairing information paired with the external Bluetooth device is obtained.
Further, the obtaining the second pairing information from the external bluetooth device may include:
(1) And 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.
Wherein the third pairing information is audio data. The third pairing information is sent by the external bluetooth device at intervals of preset time, and the external bluetooth device can stop sending the third pairing information after the bluetooth low energy connection is successfully established with the bluetooth headset. Of course, in other embodiments, it may also be sent at a preset point in time.
(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 coding algorithm to obtain second pairing information.
When the external Bluetooth device scans the first pairing information, the external Bluetooth device checks the first pairing information, and encodes the third pairing information according to a preset first encoding algorithm to obtain information for checking the first pairing information. 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 one implementation manner of the embodiment of the present invention, in S102, the first pairing information paired with the external bluetooth device is obtained according to a preset manner, which may also be implemented by the following manners:
when the volume set by the external Bluetooth device is detected, a target volume value set by the external Bluetooth device is obtained, wherein the target volume value is calculated by the external Bluetooth device according to a preset volume value algorithm.
And encoding the target volume value according to a preset third encoding algorithm to obtain first pairing information paired with the external Bluetooth device.
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, and for example, amplifies the current volume value by a preset number of times in a volume adjustable range to obtain the target volume value. The external bluetooth device adjusts the current volume to the target volume value.
In S102, the first pairing information paired with the external bluetooth device is obtained according to a preset manner, which may also be implemented by the following manner:
the mobile terminal APP obtains local information, such as a mobile phone UUID (Universally UniqueIdentifier: universal unique identification code), codes the local information into special audio for playing.
When the earphone detects that the audio played by the external device through the classical Bluetooth link comprises a special mark, decoding the audio to obtain first pairing information paired with the external Bluetooth device.
The encoding method can be realized by the following ways:
a batch of different audio data is preset, the preset audio frequency corresponds to 36 pieces of the audio data from 0 to 9 and 36 pieces of the audio data from a to-be-coded file, and the file is converted into a section of audio frequency through a table look-up mode.
S103, establishing low-power-consumption Bluetooth connection with 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.
The identity verification is successful, and the low-power consumption Bluetooth connection established with the external Bluetooth device is maintained.
If the identity verification fails, disconnecting the low-power-consumption Bluetooth connection with the external Bluetooth device.
It should be noted that, the bluetooth low energy connection established with the external bluetooth device and the bluetooth low energy connection disconnected with the external bluetooth device can be 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 establishment of the low-power consumption Bluetooth connection with the external Bluetooth device fails, returning to the S102, namely acquiring first pairing information paired with the external Bluetooth device in a preset mode through classical Bluetooth connection, and broadcasting the first pairing information. This makes it possible to attempt multiple connections, improving the success rate of the connection.
On the basis of classical bluetooth connection, through the setting of first pairing information, guarantee the identity that bluetooth headset classical bluetooth connects and bluetooth low energy connects. And through the transformation of multiple pairing information for the connection between bluetooth headset and the external bluetooth equipment is safer, thereby ensures bluetooth headset classical bluetooth and low energy and connects the identity.
When the mobile phone is specifically applied, the Bluetooth headset is firstly connected with classical Bluetooth of external Bluetooth equipment, then APP (Application program) installed on the external Bluetooth equipment transmits voice containing second pairing information, namely third pairing information, through classical Bluetooth, the Bluetooth headset decodes and extracts the second pairing information contained in the voice data after receiving the voice data, then Bluetooth broadcast with first pairing information is generated according to the second pairing information, and the mobile phone APP is connected after scanning broadcast containing the second pairing information. After the BLE connection, i.e. the low-power Bluetooth connection is successful, the two parties can further exchange authentication information to perform identity verification. Finally, pairing is achieved and the identity of classical Bluetooth and BLE connection is guaranteed. The second pairing information, the first pairing information and the verification information can be transmitted in an encrypted mode, and the corresponding receiving end is required to decrypt according to a preset mode.
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 classical Bluetooth; s202, the mobile phone encodes the connection information A into music and plays the music, S203, the Bluetooth headset acquires the encoded music data, decodes and extracts the connection information A, S204, the Bluetooth headset generates the connection information B and sends the connection information B in a broadcast packet, S205, the mobile phone scans the broadcast packet containing the information B to carry out low-power Bluetooth connection, S206, after the low-power Bluetooth connection is completed, the mobile phone and the Bluetooth headset further exchange information C to carry out identity verification, S207, if the low-power Bluetooth connection is wrong, the low-power Bluetooth connection process is executed again, S208, and finally the connection is completed.
Specifically, connect the classical bluetooth of equipment such as bluetooth headset and cell-phone earlier, then cell-phone APP sends the pronunciation that contains connection pairing information A through classical bluetooth, and bluetooth headset decodes and draws information A that contains therein after receiving this speech data, produces the bluetooth broadcast that has special information B according to this information A again, connects after cell-phone APP scans the broadcast that contains this special information B. After the BLE connection is successful, the two parties further exchange information C for verification. Finally, pairing is achieved and the identity of classical Bluetooth and BLE connection is guaranteed. The information A, B, C may be transmitted in an encrypted form, which requires the corresponding receiver to decrypt in a predetermined manner.
Further, after the step of verifying the matching data broadcasted by the bluetooth headset scanned by the mobile phone with the matching data of the mobile phone, the method further comprises the following steps: when the mobile phone scanning time exceeds the preset time and is not successfully matched with the Bluetooth headset, prompting a user to perform classical Bluetooth connection through a mobile phone APP; or when the mobile phone scanning time exceeds the preset time and is not successfully matched with the Bluetooth headset, prompting the user to reset the setting of the Bluetooth headset and then carrying out classical Bluetooth connection.
After the mobile phone opens the corresponding APP, the mobile phone starts to send the audio data containing the information codes at fixed time. And stopping sending the audio data after the mobile phone and the Bluetooth headset BLE are successfully connected.
For example two, 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 a Bluetooth headset classical Bluetooth, S302, the mobile phone calculates a new volume value according to the current volume and sets the new volume value, S303, the Bluetooth headset obtains the new volume value, generates coded information W according to the new volume value, and puts the coded information W into a broadcast packet to be sent, S304, the mobile phone scans the broadcast 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 BLE connection is wrong, the BLE connection process is executed again, and S307, connection is finally completed.
Specifically, the classical bluetooth of the devices such as bluetooth earphone and mobile phone is connected first, then mobile phone APP obtains the volume of the current mobile phone and calculates a new volume value according to a certain algorithm, and the volume of the mobile phone is set to the volume value. The Bluetooth headset connected with the pairing acquires the event that the mobile phone sets the volume, starts to transmit the broadcast, and places the volume value as a parameter in a broadcast packet for transmission. The mobile phone APP scans the broadcast packet containing the information to connect. After BLE connection, namely the low-power consumption Bluetooth connection is successful, the two parties further exchange information for verification. Finally, pairing is achieved, the identity of classical Bluetooth and BLE connection, namely low-power consumption Bluetooth connection, is guaranteed, and user experience is improved.
Further, after the step of verifying the matching data broadcasted by the bluetooth headset scanned by the mobile phone with the matching data of the mobile phone, the method further comprises the following steps: when the mobile phone scanning time exceeds the preset time and is not successfully matched with the Bluetooth headset, prompting a user to perform classical Bluetooth connection through a mobile phone APP; or when the mobile phone scanning time exceeds the preset time and is not successfully matched with the Bluetooth headset, prompting the user to reset the setting of the Bluetooth headset and then carrying out classical Bluetooth connection.
Based on the same inventive concept as the above method embodiment, the embodiment of the present invention further provides a bluetooth pairing device, referring to fig. 4, including:
a first pairing module 41, configured to establish a classical bluetooth connection with an external bluetooth device.
The obtaining module 42 is configured to obtain, through a 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.
A second pairing module 44 for establishing a bluetooth low energy connection with an external bluetooth device.
In one implementation 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 device.
And the verification unit is used for verifying the second pairing information.
And the obtaining unit is used for encoding the second pairing information according to a preset first encoding algorithm when the verification unit is successful in verification, so as to obtain first pairing information paired with the external Bluetooth device.
Further, from the acquisition unit, it 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 encoding the second pairing information by the external bluetooth device according to a preset second encoding algorithm.
And the second receiving subunit is used for receiving the third pairing information sent by the external Bluetooth device.
And the obtaining subunit is used for decoding the third pairing information according to a decoding algorithm corresponding to the second coding algorithm to obtain second pairing information.
When the external Bluetooth device scans the first pairing information, the external Bluetooth device checks the first pairing information, and encodes the third pairing information according to a preset first encoding algorithm to obtain information for checking the first pairing information. 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 one implementation of the embodiment of the present invention, the obtaining module 42 may include:
the target volume value obtaining unit is used for obtaining a target volume value after the external Bluetooth device is set when the external Bluetooth device is detected to set the volume, 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 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 device.
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, and for example, amplifies the current volume value by a preset number in a volume adjustable range to obtain the target volume value. 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 the external Bluetooth equipment to carry out 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, a bluetooth headset according to an embodiment of the present invention includes a memory 51, a processor 52, and an embedded program stored in the memory 51 and capable of running on the processor 52, where the steps of any of the above methods are implemented when the processor 52 executes the embedded program. The bluetooth headset may further comprise a communication interface and a communication bus, wherein the processor 52, the communication interface, and the memory 51 communicate with each other via the communication bus.
Note that, the communication bus mentioned for the above-mentioned electronic device may be a PCI (PeripheralComponent Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Industry StandardArchitecture ) bus, or the like. Communication buses may be classified as address buses, data buses, control buses, etc. The communication interface is used for communication between the electronic device and other devices. The memory may include RAM (Random Access Memory ) or may include 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 aforementioned processor. The processor may be a general-purpose processor, including: CPU, NP (Network Processor ), etc.; but also DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the apparatus, system, telephony terminal, computer-readable storage medium, computer program product, and computer program embodiment, the description is relatively simple, and relevant places are referred to in the section of the description of the method embodiment, since they are substantially similar to the method embodiment.
The foregoing is merely illustrative of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (9)

1. A bluetooth pairing method applied to a bluetooth headset, the method comprising:
establishing classical Bluetooth connection with external Bluetooth equipment;
acquiring first pairing information paired with the external Bluetooth device in a preset mode through the classical Bluetooth connection, and broadcasting the first pairing information so that when the external Bluetooth device scans the first pairing information, a low-power consumption Bluetooth pairing request is sent to the Bluetooth headset;
establishing a low-power Bluetooth connection with the external Bluetooth device;
the obtaining, according to a preset manner, first pairing information paired with the external bluetooth device includes:
when the volume set by the external Bluetooth device is detected, acquiring a target volume value set by the external Bluetooth device, wherein the target volume value is calculated by the external Bluetooth device according to a preset volume value algorithm; the external Bluetooth equipment detects the current volume, and amplifies the current volume value by a preset number to obtain a target volume value;
and encoding the target volume value according to a preset third encoding algorithm to obtain first pairing information paired with the external Bluetooth device.
2. The method according to claim 1, wherein the obtaining, in a preset manner, first pairing information paired with the external bluetooth device includes:
acquiring second pairing information from the external Bluetooth device;
checking the second pairing information;
and if the verification is successful, the second pairing information is encoded according to a preset first encoding algorithm, and first pairing information paired with the external Bluetooth device is obtained.
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 coding algorithm to obtain second pairing information.
4. A method according to claim 3, wherein the third pairing information is audio data.
5. The method of claim 3, wherein the third pairing information is transmitted by the external bluetooth device at intervals of a preset time, and the external bluetooth device stops transmitting the third pairing information after successful establishment of a bluetooth low energy connection with the bluetooth headset.
6. The method of any of claims 1-5, wherein after establishing a bluetooth low energy connection with the external bluetooth device, the method further comprises:
exchanging verification information with the external Bluetooth device to carry out identity verification;
and the identity verification is successful, and the low-power consumption Bluetooth connection established with the external Bluetooth equipment is maintained.
7. The method of claim 6, wherein the method further comprises: and the identity verification fails, and the low-power Bluetooth connection is disconnected with the external Bluetooth device.
8. The method according to any one of claims 1-5, further comprising: and under the condition that the establishment of the low-power-consumption Bluetooth connection with the external Bluetooth device fails, returning to execute the classical Bluetooth connection, acquiring first pairing information paired with the external Bluetooth device according to a preset mode, and broadcasting the first pairing information.
9. A bluetooth headset comprising a memory, a processor and an embedded program stored in said memory and executable on said processor, said processor implementing the steps of the method according to claims 1 to 8 when said embedded program is executed by said processor.
CN201910975234.0A 2019-10-14 2019-10-14 Bluetooth pairing method and Bluetooth headset Active CN110753330B (en)

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 CN110753330A (en) 2020-02-04
CN110753330B true 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)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
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
CN111294737B (en) * 2020-02-28 2020-11-10 深圳市中科蓝讯科技股份有限公司 Method and system for generating and transmitting BLE broadcast packet through classic Bluetooth
CN112040459B (en) * 2020-09-07 2021-08-31 深圳市蓝蜂时代实业有限公司 Bluetooth headset voice interactive communication method based on BLE
CN113038442B (en) * 2021-03-16 2023-07-25 北京百瑞互联技术有限公司 Low-power consumption Bluetooth equipment matched connection method, device and system
CN114025338B (en) * 2021-11-09 2024-02-13 深圳万兴软件有限公司 Method and device for improving reverse control Bluetooth connection efficiency and related components
CN116233807A (en) * 2021-12-03 2023-06-06 Oppo广东移动通信有限公司 Bluetooth connection method and device, and Bluetooth address configuration method and device
CN116489818A (en) * 2022-01-14 2023-07-25 Oppo广东移动通信有限公司 Device connection method, device connection apparatus, device storage medium and chip
CN114449503A (en) * 2022-03-01 2022-05-06 维沃移动通信有限公司 Bluetooth connection method and Bluetooth connection device
CN117880782A (en) * 2022-09-30 2024-04-12 Oppo广东移动通信有限公司 Device connection method and device, bluetooth device and storage medium
CN117833963A (en) * 2024-03-04 2024-04-05 慧翰微电子股份有限公司 Classical Bluetooth audio data transmission method, system and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
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
KR20150095124A (en) * 2014-02-12 2015-08-20 엘지전자 주식회사 Mobile terminal and control method for the mobile terminal
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9380059B2 (en) * 2013-10-16 2016-06-28 Spotify Ab Systems and methods for configuring an electronic device
US10681479B2 (en) * 2015-01-30 2020-06-09 Cassia Networks Inc. Methods, devices and systems for bluetooth audio transmission
CN105930691B (en) * 2016-04-14 2019-01-08 卓荣集成电路科技有限公司 Music license play system and method based on bluetooth
US10268444B2 (en) * 2016-11-30 2019-04-23 Microsoft Technology Licensing, Llc Bluetooth identity binding for volume control

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
KR20150095124A (en) * 2014-02-12 2015-08-20 엘지전자 주식회사 Mobile terminal and control method for the mobile terminal
CN109075820A (en) * 2016-10-25 2018-12-21 华为技术有限公司 A kind of Bluetooth pairing methods and terminal device
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)

* Cited by examiner, † Cited by third party
Title
基于Android与BLE的蓝牙通信系统的实现;万燕;李丽丽;;科技创新与应用(第16期);全文 *

Also Published As

Publication number Publication date
CN110753330A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
CN110753330B (en) Bluetooth pairing method and Bluetooth headset
EP2761910B1 (en) Method and system for pairing devices
EP2362986B1 (en) Method and apparatus for wireless communication using an acoustic signal
CN101095318B (en) Method and device for bluetooth pairing
CN105682253A (en) Method and equipment for communication establishment, terminal and computer readable storage medium
US20100227549A1 (en) Apparatus and Method for Pairing Bluetooth Devices by Acoustic Pin Transfer
CN110944312B (en) Method for carrying out dual-mode Bluetooth pairing by utilizing audio data and Bluetooth device
CA2450631A1 (en) System and method for processing encoded messages for exchange with a mobile data communication device
KR20160143333A (en) Method for Double Certification by using Double Channel
KR20080038946A (en) Apparatus for offering information using short message service in portable terminal and method thereof
CN104427471A (en) Method for automatically establishing connection of mobile network and terminal
US20200213844A1 (en) Communication method, communication apparatus and electronic device
CN111356117A (en) Voice interaction method and Bluetooth device
CN104869570A (en) Speaking terminal confirmation method based on language channel
CN109040050B (en) Data interaction method and related product
JP5369920B2 (en) Wireless communication apparatus and wireless communication method
CN107070659B (en) Authentication of base station and headset
CN112714009A (en) Network distribution method, network equipment to be distributed and network equipment
JP5332928B2 (en) Wireless communication apparatus and wireless communication method
CN103973442A (en) Verification code transmitting and acquiring methods, mobile phone and electronic equipment
CN109660988B (en) Communication authentication processing method and device and electronic equipment
CN112040057B (en) Device control method, device, electronic device, control system and storage medium
CN113115153A (en) Processing method, Bluetooth headset and management platform
CN105635431A (en) Incoming call processing method, incoming call processing apparatus and terminal
CN112118610A (en) Wireless intelligent device network distribution method and system

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