CN108811182B - Wireless earphone pairing method and device and wireless earphone - Google Patents

Wireless earphone pairing method and device and wireless earphone Download PDF

Info

Publication number
CN108811182B
CN108811182B CN201810613242.6A CN201810613242A CN108811182B CN 108811182 B CN108811182 B CN 108811182B CN 201810613242 A CN201810613242 A CN 201810613242A CN 108811182 B CN108811182 B CN 108811182B
Authority
CN
China
Prior art keywords
pairing
wireless
earphone
information
terminal
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
CN201810613242.6A
Other languages
Chinese (zh)
Other versions
CN108811182A (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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201810613242.6A priority Critical patent/CN108811182B/en
Priority to PCT/CN2018/100355 priority patent/WO2019237491A1/en
Publication of CN108811182A publication Critical patent/CN108811182A/en
Application granted granted Critical
Publication of CN108811182B publication Critical patent/CN108811182B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a wireless earphone pairing method, relates to the technical field of portable listening equipment, and is used for solving the problems that the user participation degree is low and the pairing progress cannot be solved in the existing wireless earphone pairing process. The method comprises the following steps: when the first wireless earphone detects a preset event triggering pairing operation, starting BLE pairing broadcast; when a BLE connection request sent by a terminal according to BLE pairing broadcast is received, establishing BLE connection with the terminal; pairing interaction information sent by a receiving terminal through BLE connection; the pairing interaction information comprises wireless addresses of the two wireless earphones; performing pairing operation by using the pairing interaction information; in the method, the user can participate in the process of pairing the wireless earphones through the terminal, and further can know the pairing process through the terminal, so that the user participation degree is improved. The invention also discloses a wireless earphone pairing device, a wireless earphone and a computer readable storage medium, which have the beneficial effects.

Description

Wireless earphone pairing method and device and wireless earphone
Technical Field
The present invention relates to the field of portable listening devices, and in particular, to a method and an apparatus for pairing wireless earphones, a wireless earphone, and a computer-readable storage medium.
Background
Tws (true Wireless stereo) headsets are becoming more and more popular due to their convenience of use. Wherein, the TWS earphone is composed of a first wireless earphone and a second wireless earphone. The existing TWS earphone transmits an audio signal of a mobile phone to a first wireless earphone through a Bluetooth link by a Bluetooth technology, and the first wireless earphone transmits audio data to a second wireless earphone so as to achieve the purpose of simultaneous playing of two ears.
The existing TWS headset wants to realize binaural simultaneous playing, and first of all, a pairing operation between ears is required. For two paired wireless earphones, because connection information of the pair of ears exists, the connection between the pair of ears can be directly carried out when the pair of wireless earphones are used again. However, since the TWS headset is a pure wireless headset, if one of the TWS headset is lost and a new headset is purchased as an accessory, or if several pairs of wireless headsets are mixed up, a re-pairing operation between the headsets is required. In the prior art, the charging box usually initiates the action of the re-pairing and interacts the content of the pairing information. However, such a re-pairing method generally prevents the user from being aware of the pairing process and participating in the pairing process, thereby reducing the user participation.
Disclosure of Invention
The invention aims to provide a wireless earphone pairing method, a wireless earphone pairing device, a wireless earphone and a computer readable storage medium, which can enable a user to participate in the wireless earphone pairing process through a terminal, further enable the user to know the pairing process through the terminal and improve the user participation degree.
In order to solve the above technical problem, the present invention provides a method for pairing wireless headsets, comprising:
when the first wireless earphone detects a preset event triggering pairing operation, starting BLE pairing broadcast;
when a BLE connection request sent by a terminal according to the BLE pairing broadcast is received, establishing BLE connection with the terminal;
receiving pairing interaction information sent by the terminal through the BLE connection; wherein the pairing interaction information includes wireless addresses of the first wireless headset and a second wireless headset paired with the first wireless headset;
and executing pairing operation by using the pairing interaction information.
Optionally, the method for pairing wireless headsets further includes:
the preset event is detected by scanning to initiate a pairing broadcast.
Optionally, the detecting the preset event by scanning to start pairing broadcast includes:
the preset event is detected by scanning for a start pairing broadcast initiated by the charging device.
Optionally, performing pairing operation by using the pairing interaction information includes:
acquiring a wireless address and corresponding role information of the first wireless earphone and a wireless address and corresponding role information of the second wireless earphone by analyzing the pairing interaction information;
identifying role information for the first wireless headset;
if the role information of the first wireless earphone is the slave earphone, starting a pairing connection broadcast;
and if the role information of the first wireless earphone is the main earphone, establishing pairing connection with the second wireless earphone when the pairing connection broadcast sent by the second wireless earphone is scanned.
Optionally, after the wireless address and the corresponding role information of the first wireless headset and the wireless address and the corresponding role information of the second wireless headset are obtained, the method further includes:
sending pairing accuracy ready information to the terminal;
and when receiving a pairing operation execution command sent by the terminal, executing a step of identifying the role information of the first wireless earphone.
The invention also provides a wireless earphone pairing device, which comprises:
the BLE pairing broadcast module is used for starting BLE pairing broadcast when the first wireless earphone detects a preset event triggering pairing operation;
the BLE connection module is used for establishing BLE connection with the terminal when a BLE connection request sent by the terminal according to the BLE pairing broadcast is received;
the receiving module is used for receiving pairing interaction information sent by the terminal through the BLE connection; wherein the pairing interaction information includes wireless addresses of the first wireless headset and a second wireless headset paired with the first wireless headset;
and the pairing module is used for executing pairing operation by utilizing the pairing interaction information.
Optionally, the apparatus for pairing wireless headphones further includes:
and the preset event detection module is used for detecting the preset event by scanning to start the pairing broadcast.
Optionally, the pairing module includes:
the analysis unit is used for acquiring the wireless address and the corresponding role information of the first wireless earphone and the wireless address and the corresponding role information of the second wireless earphone by analyzing the pairing interaction information;
an identification unit for identifying character information of the first wireless headset;
the pairing unit is used for starting pairing connection broadcast if the role information of the first wireless earphone is the slave earphone; and if the role information of the first wireless earphone is the main earphone, establishing pairing connection with the second wireless earphone when the pairing connection broadcast sent by the second wireless earphone is scanned.
Optionally, the pairing module further includes:
the sending unit is used for sending pairing accuracy ready information to the terminal;
the identification unit is specifically configured to identify the role information of the first wireless headset when receiving a pairing operation execution command sent by the terminal.
The present invention also provides a wireless headset comprising: communication interface, memorizer, processor; wherein the memory is configured to store a computer program, and the processor is configured to implement the steps of the method for pairing wireless headsets as described above when executing the computer program.
The invention also provides a wireless earphone pairing method, which comprises the following steps:
when the terminal scans BLE pairing broadcast of each wireless earphone, determining a first wireless earphone and a second wireless earphone which need to be paired according to input selection information;
initiating a BLE connection request to the first wireless headset and the second wireless headset respectively according to the BLE pairing broadcast, and establishing a BLE connection;
acquiring wireless addresses of the first wireless earphone and the second wireless earphone, and establishing pairing interaction information according to the wireless addresses;
and sending the pairing interaction information to the first wireless earphone and the second wireless earphone respectively by using the BLE connection so as to enable the first wireless earphone and the second wireless earphone to complete pairing operation.
Optionally, acquiring the wireless addresses of the first wireless headset and the second wireless headset, and establishing pairing interaction information according to the wireless addresses, includes:
extracting wireless addresses of the first wireless headset and the second wireless headset in the BLE paired broadcast;
determining role information of the first wireless earphone and the second wireless earphone according to the sequence of the selected information;
and forming pairing interaction information by the wireless address, the role information and the pairing command information.
Optionally, the method for pairing wireless headsets further includes:
and when the pairing completion information sent by the first wireless earphone and the second wireless earphone is received, outputting the pairing completion information.
The invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of wireless headset pairing as described above.
The invention provides a wireless earphone pairing method, which comprises the following steps: when the first wireless earphone detects a preset event triggering pairing operation, starting BLE pairing broadcast; when a BLE connection request sent by a terminal according to BLE pairing broadcast is received, establishing BLE connection with the terminal; pairing interaction information sent by a receiving terminal through BLE connection; the pairing interaction information comprises wireless addresses of a first wireless earphone and a second wireless earphone paired with the first wireless earphone; and performing pairing operation by using the pairing interaction information.
Therefore, in the method, a user can determine the wireless headset which needs BLE connection for pairing through the terminal, and determine pairing interaction information through the terminal; namely, the user can participate in the determination of the pairing interaction information through the terminal; therefore, the user can participate in the process of pairing the wireless earphones through the terminal, and further can know the process of pairing the wireless earphones through the participation process, so that the participation degree of the user is improved. The invention also provides a wireless earphone pairing device, a wireless earphone and a computer readable storage medium, which have the beneficial effects and are not described herein again.
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 embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for pairing wireless headsets according to an embodiment of the invention;
FIG. 2 is a flowchart illustrating a pairing operation performed by using pairing interaction information according to an embodiment of the present invention;
fig. 3 is a block diagram of a wireless headset pairing apparatus according to an embodiment of the present invention;
fig. 4 is a flowchart of another wireless headset pairing method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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 prior art, when wireless earphones are paired, the charging boxes initiate pairing actions and interact the content of pairing information. The charging box serves as a bridge of two wireless earphones needing to be paired, and pairing actions and interactive pairing information are initiated to command the two wireless earphones to complete pairing operation; and both wireless headsets that need to be paired must be placed in a charging box that completes the pairing of the two wireless headsets. Through the above description, it can be seen that the user cannot participate in the process of pairing the wireless headset, and meanwhile, the user cannot know the process of pairing the wireless headset, so that the user has a low participation feeling and poor experience. In this embodiment, a user can participate in the process of pairing the wireless headset through the terminal, and further can know the process of pairing the wireless headset, so as to improve the participation degree of the user. Referring to fig. 1 in detail, fig. 1 is a flowchart of a wireless headset pairing method according to an embodiment of the present invention; the method comprises the following steps:
s100, when the first wireless earphone detects a preset event triggering pairing operation, starting BLE pairing broadcast.
The executing body of this embodiment is the first wireless headset, wherein any one of the wireless headsets to be paired may be the first wireless headset, and it can be understood that the second wireless headset in this application may also execute the steps in this embodiment. For example, when the TWS headset includes a master wireless headset and a slave wireless headset, the master wireless headset may be the first wireless headset, and the slave wireless headset may be the first wireless headset. The second wireless headset is the wireless headset paired with the first wireless headset.
The present embodiment does not limit the preset event, and the user can set the preset event according to the actual situation. For example, may be scan to initiate pairing broadcast; or the first wireless earphone is started; or the first wireless headset does not have pairing information of the paired wireless headset. Further, the embodiment does not limit the detection method of the preset event, and the user may perform corresponding setting according to the set preset event. For example, when the preset event is that the pairing broadcast is started by scanning, the corresponding detection method of the preset event may be to start BLE scanning of the first wireless headset and determine whether the pairing broadcast is started (e.g., the pairing BLE broadcast is started). For example, when the preset event is the turning on of the first wireless headset, the detection method of the corresponding preset event may be to detect whether the turn-on key of the first wireless headset is located at the turn-on position to determine the preset event. Or by determining a change in the first wireless headset from an inactive state to an active state.
Further, in order to improve the user engagement, the pairing operation is performed only when the user determines that pairing is necessary. The pairing operation may be triggered by the initiation of a pairing broadcast as a preset event. Specifically, the preset event is detected by scanning to initiate a pairing broadcast. The present embodiment does not limit the originator who starts the paired broadcast. For example, it may be a terminal or a charging device. Generally, a wireless headset simultaneously placed in a charging device (e.g., a charging box) is a wireless headset that needs to be paired. Therefore, when the wireless earphones needing to be paired are placed in the charging device, the charging device can initiate the starting pairing broadcast, and when the wireless earphones needing to be paired (namely the first wireless earphone and the second wireless earphone) scan the starting pairing broadcast initiated by the charging device, a preset event is detected. The embodiment does not limit the condition for triggering the charging device to initiate the pairing broadcast, and the user can set the condition according to the actual situation. For example, it may be that a preset key of the charging device is pressed. When the charging device initiates a pairing broadcast, a wireless headset (e.g., a first wireless headset) that needs to be paired needs to scan the pairing broadcast, and a scanning function must be activated. Therefore, in order to ensure that the first wireless headset and the second wireless headset can scan the start pairing broadcast in time, the scanning function may be turned on before the charging device initiates the start pairing broadcast. In this embodiment, the timing for starting the scanning function of the first wireless headset and the second wireless headset is not limited, and the scanning function may be started only before the charging device initiates starting of the pairing broadcast, for example, the scanning function is directly started when the wireless headset to be paired detects that the charging device is opened. The embodiment does not limit the method for detecting whether the charging device is opened or not by the wireless headset. For example, the wireless headset may determine whether the charging device is uncapped by whether the wireless headset is charging. Specifically, when the charging device Vbus5V pin is pulled high. The charging device is in a charging state where the charging device is not uncapped.
The following describes the process by taking a charging device as an example:
the first wireless headset and the second wireless headset which need to be paired are both placed in the charging device, the charging device is opened, and the two wireless headsets detect that the charging device opens the box cover and perform BLE scanning for a period of time (for example, 10s, this embodiment does not limit this time); when the time that the charging device presses the key exceeds a preset value (this embodiment does not limit the trigger condition), the charging device notifies the wireless headset to perform pairing by starting a pairing BLE broadcast (for example, 5s, this embodiment does not limit the time); when the wireless earphone scans the start pairing BLE broadcast, the BLE scanning is stopped, and the BLE pairing broadcast is carried out.
The BLE pairing broadcast needs to be turned on when the first wireless headset detects a predetermined event that triggers the pairing operation. The purpose is in order to establish BLE connection with the terminal, and then can accept the pairing command of terminal, accomplishes whole pairing operation.
The specific content of the BLE pairing broadcast is not limited in the present embodiment, and may be set as needed. Generally, a field requesting a BLE connection needs to be included because a BLE connection needs to be established with the terminal subsequently (the specific field content may refer to parameters required for the BLE connection in the prior art). Of course, parameters that must be included for subsequent pairings, such as a wireless address (e.g., a bluetooth address, i.e., a BT address), may also be included.
And S110, when a BLE connection request sent by the terminal according to the BLE pairing broadcast is received, establishing BLE connection with the terminal.
Specifically, when the first wireless headset receives a BLE connection request sent by the terminal according to BLE pairing broadcast, it is described that the terminal selects a wireless headset to be paired according to the content of the received BLE pairing broadcast (for example, information that the identity of the wireless headset can be identified, such as the name of the wireless headset), and at this time, the first wireless headset and the second wireless headset are the wireless headset selected by the user and required to be paired. That is, the user can select the wireless headset he wishes to pair through the terminal. That is, the user can participate in the wireless headset pairing process (selecting the wireless headset to be paired). The present embodiment does not limit the user selection operation, and may be, for example, voice or click. Further, the wireless earphones needing to be paired at the same moment can establish BLE connection with the terminal. That is to say, the terminal may establish BLE connection with multiple wireless headsets at the same time, but the terminal may establish BT connection with only one wireless headset at the same time, so that this embodiment needs the wireless headset to establish BLE connection with the terminal in the process of implementing pairing of the wireless headsets.
In this embodiment, the number of wireless headsets to be paired is not limited, for example, a user may select four wireless headsets to be paired, where one of the four wireless headsets is a master headset, and the remaining three wireless headsets are slave headsets. At this time, the terminal sends the data to the master earphone, and the master earphone can forward the data to the three slave earphones, so that two persons can use the data synchronously and hear the synchronous data (for example, listen to the same song simultaneously).
The following describes the process by taking a mobile phone as an example:
the user opens the cell phone, clicks the BLE scanning button to scan the BLE, selects the wireless earphone needing to be paired according to the name of the wireless earphone in the scanned BLE pairing broadcast, and then clicks the connection button to send a BLE connection request.
The present embodiment is not limited to the execution main body that executes the BLE connection establishment operation with the terminal after the first wireless headset receives the BLE connection request. For example, it may be that the first wireless headset first issues a first operation to the terminal to start establishing a BLE connection; it is of course also possible that the terminal issues the first operation to the first wireless headset to start establishing a BLE connection. The specific procedure for establishing a BLE connection is not limited in this embodiment, and reference may be made to the current specific procedure for establishing a BLE connection.
The embodiment does not limit the terminal, for example, the terminal may be a mobile terminal such as a mobile phone, a notebook computer, a tablet, or a fixed terminal such as a computer. The terminal needs to have a BLE function because the terminal needs to establish a BLE connection with the wireless headset to realize data interaction; and since the user needs to participate in the wireless headset pairing process through the terminal, it needs to have input and output functions (e.g., a display screen). A terminal having the above functions and a certain processing capability may be understood as a terminal in the present embodiment.
S120, connecting pairing interaction information sent by a receiving terminal through BLE; the pairing interaction information comprises wireless addresses of the first wireless earphone and a second wireless earphone paired with the first wireless earphone.
The embodiment does not limit the specific content of the pairing interaction information, as long as the wireless headset to be paired can implement pairing operation according to the pairing interaction information. The content of which can refer to the parameters that the existing pairing operation needs to use. For example, an address parameter, such as the wireless addresses of the first wireless headset and the second wireless headset; there may also be a pairing command, such as whether it is necessary to return pairing progress, or whether it is necessary to return information of success or failure of pairing, or when to start performing pairing operation, etc.; there may also be a master-slave relationship of the wireless headsets to be paired, for example, the wireless headset selected by the user first is the master headset (which subsequently performs the operation corresponding to the master headset in the pairing process), and the remaining wireless headsets are the slave headsets (which subsequently performs the operation corresponding to the slave headset in the pairing process). The user may participate in the determination of the content of the pairing interaction information. For example, the user may determine the master-slave relationship of the wireless headset to be paired, or the user may determine the specific content of the pairing command, set when to generate the pairing interaction information, and so on.
The following describes the generation process of pairing interaction information by taking a mobile phone as an example:
according to the sequence of the wireless earphones needing to be paired selected by a user, determining master-slave role information of the wireless earphones needing to be paired, connecting the wireless earphones needing to be paired by the terminal according to BLE to obtain respective wireless addresses or determining the wireless addresses of the wireless earphones needing to be paired according to BLE pairing broadcast, determining a required pairing command (for example, selecting a pairing command which needs to return information about successful or failed pairing) according to the pairing degree which the user wants to participate in, and finally, establishing pairing interaction information by the terminal so that the wireless earphones can execute corresponding pairing operation according to the pairing interaction information.
And S130, executing pairing operation by using the pairing interaction information.
Specifically, after receiving the pairing interaction information, the first wireless headset executes pairing operation according to the requirement of the pairing interaction information, thereby completing the pairing process of the wireless headset. In this embodiment, the terminal establishes connection with the wireless headset to be paired through BLE, and performs operations such as issuing of a pairing command to the wireless headset to be paired, so that the user participation degree in the pairing process of the wireless headset is high, and the adaptability and reliability of the pairing of the wireless headset are improved.
Optionally, referring to fig. 2, performing the pairing operation using the pairing interaction information may include:
s200, acquiring a wireless address and corresponding role information of the first wireless earphone and a wireless address and corresponding role information of the second wireless earphone by analyzing the pairing interaction information.
Specifically, the wireless address and the corresponding role information of the first wireless headset and the wireless address and the corresponding role information of the second wireless headset can be obtained by analyzing the pairing interaction information. Further, the wireless address of the second wireless headset may be stored for subsequent interaction, or for convenience of a reconnection again, for example in a flash. The role information of the wireless headset is not only related to the judgment of the initiator of the related execution action of the subsequent pairing operation, but also related to the determination of the role of the subsequent data interaction with the terminal. The character information of the first wireless headset and the second wireless headset may be stored. For example, the character information of the first wireless headset and the second wireless headset is stored in the flash.
S210, identifying role information of the first wireless earphone.
And S220, if the role information of the first wireless earphone is the slave earphone, starting the pairing connection broadcast.
And S230, if the role information of the first wireless earphone is the main earphone, when the pairing connection broadcast sent by the second wireless earphone is scanned, establishing pairing connection with the second wireless earphone.
In particular, by determining the role of the first wireless headset, the pairing actions that the first wireless headset needs to perform subsequently can be determined. Specifically, when the role information of the first wireless earphone is the slave earphone, starting the pairing connection broadcast; and when the role information of the first wireless earphone is the main earphone and the pairing connection broadcast sent by the second wireless earphone is scanned, establishing pairing connection with the second wireless earphone. The present embodiment does not limit the execution main body that executes the establishment of the pairing connection with the second wireless headset. For example, the first wireless headset first sends a first operation to the second wireless headset to start establishing a pairing connection; it is of course also possible that the second wireless headset first issues the first operation to the first wireless headset to start establishing the pairing connection. The embodiment does not limit the specific process of establishing the pairing connection, and may refer to the current specific process of establishing the pairing connection.
Preferably, in order to improve the user experience, the present embodiment may further send pairing completion information to the terminal when the first wireless headset completes the pairing operation. The present embodiment does not limit the specific content of the pairing completion information, as long as the user can know that the pairing operation is completed according to the pairing completion information. For example, the first wireless headset has successfully paired with the second wireless headset. The present embodiment also does not limit the transmission timing of the pairing completion information, and for example, the pairing completion information may be transmitted after the first wireless headset completes the last pairing operation, or may be transmitted after receiving the pairing completion information transmitted by the second wireless headset.
Further, in order to improve the degree of the user participating in the wireless headset pairing process, preferably, after acquiring the wireless address and the corresponding role information of the first wireless headset and the wireless address and the corresponding role information of the second wireless headset, the method may further include:
sending pairing accuracy ready information to a terminal;
and when receiving a pairing operation execution command sent by the terminal, executing the step of identifying the role information of the first wireless earphone.
Specifically, the present embodiment does not limit the specific content of the pairing accuracy ready information, as long as the user can know that the pairing operation can be started according to the pairing accuracy ready information. For example, the first wireless headset is ready. The sending time of the pairing accuracy ready information is not limited in this embodiment, and for example, the pairing accuracy ready information may be sent after the first wireless headset completes analysis of the pairing interaction information, or may be sent after the pairing interaction information sent by the second wireless headset is received.
After receiving the pairing accuracy ready information, the terminal can determine whether to send a pairing operation execution command and when to send the pairing operation execution command according to the user input information. Therefore, the present embodiment does not limit the time and conditions for executing the pairing operation command generation. For example, only when the user clicks a button for performing the pairing operation, a command for performing the pairing operation is generated and immediately transmitted to the wireless headset to be paired.
Then, a mobile phone APP is used for issuing an ear pairing command and a Bluetooth address by connecting a pair of wireless earphones, so that wireless earphone pairing is realized; the specific process can be as follows:
1. charging box uncap and button 2s back, inform the wireless headset that needs mate through BLE and carry out BLE scanning, then charging box notifies above-mentioned earphone through BLE and pairs the ear, this earphone stops BLE scanning and begins BLE and pairs the broadcast after receiving this message, prepares to carry out the BLE with the cell-phone and is connected.
2. Open cell-phone APP, click BLE scanning button and carry out BLE scanning, after the earphone is scanned, click the wireless earphone that equipment name selection needs to mate, then send BLE connection request to the earphone that needs mate, establish BLE with the earphone that needs mate and be connected, connect the success back, click "begin to pair the ear" button, APP sends to every earphone that needs mate at this moment and pairs mutual information, contains the bluetooth address of two earphones, principal and subordinate roles etc..
3. The earphone analyzes the pairing interaction information sent by the mobile phone, detects that one Bluetooth address is the Bluetooth address of the earphone, saves the other Bluetooth address as the Bluetooth address of the opposite ear to be paired with the Bluetooth address in a flash, saves respective role information, and then sends a ready message to the mobile phone;
4. the mobile phone APP informs the earphones needing to be paired to start pairing operation;
5. after receiving an ear pairing starting command sent by the mobile phone, the earphones needing to be paired perform pairing operation, and after the pairing is completed, the earphones inform the mobile phone APP, and the mobile phone APP displays a pairing completion message; thereby completing the wireless headset pairing process.
Based on the technical scheme, in the method for pairing the wireless earphones, a user can determine the wireless earphones needing BLE connection for pairing through a terminal, and determine pairing interaction information through the terminal, namely the user can participate in the determination of the pairing interaction information through the terminal; therefore, the user can participate in the process of pairing the wireless earphones through the terminal, and further can know the process of pairing the wireless earphones through the participation process, so that the participation degree of the user is improved.
The wireless headset pairing apparatus, the wireless headset and the computer readable storage medium according to the embodiments of the present invention are described below, and the wireless headset pairing apparatus, the wireless headset and the computer readable storage medium described below and the wireless headset pairing method described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a block diagram of a wireless headset pairing apparatus according to an embodiment of the present invention; the apparatus may include:
a BLE pairing broadcast module 100, configured to start a BLE pairing broadcast when the first wireless headset detects a preset event that triggers a pairing operation;
a BLE connection module 200, configured to establish a BLE connection with a terminal when a BLE connection request sent by the terminal according to a BLE pairing broadcast is received;
a receiving module 300, configured to connect to receive pairing interaction information sent by a terminal through BLE; the pairing interaction information comprises wireless addresses of a first wireless earphone and a second wireless earphone paired with the first wireless earphone;
a pairing module 400 configured to perform pairing operation using the pairing interaction information.
Based on the above embodiment, the apparatus may further include:
and the preset event detection module is used for detecting the preset event by scanning to start the pairing broadcast.
Based on any of the above embodiments, the pairing module 400 may include:
the analysis unit is used for acquiring the wireless address and the corresponding role information of the first wireless earphone and the wireless address and the corresponding role information of the second wireless earphone by analyzing the pairing interaction information;
an identifying unit for identifying character information of the first wireless headset;
the pairing unit is used for starting pairing connection broadcast if the role information of the first wireless earphone is the slave earphone; and if the role information of the first wireless earphone is the main earphone, establishing pairing connection with the second wireless earphone when the pairing connection broadcast sent by the second wireless earphone is scanned.
Based on the above embodiments, the pairing module 400 may include:
the sending unit is used for sending pairing accuracy ready information to the terminal;
the identification unit is specifically configured to identify role information of the first wireless headset when receiving a pairing operation execution command sent by the terminal.
It should be noted that, based on any of the above embodiments, the apparatus may be implemented based on a programmable logic device, where the programmable logic device includes an FPGA, a CPLD, a single chip, and the like. The programmable logic devices may be disposed in the first wireless headset.
An embodiment of the present invention further provides a wireless headset, including: communication interface, memorizer, processor; wherein the memory is configured to store a computer program, and the processor is configured to implement the steps of the method for pairing wireless headsets described in any of the above embodiments when the computer program is executed. Enabling a BLE pairing broadcast if the processor is used for executing the computer program and the first wireless earphone detects a preset event triggering pairing operation; when a BLE connection request sent by a terminal according to BLE pairing broadcast is received, establishing BLE connection with the terminal; pairing interaction information sent by a receiving terminal through BLE connection; the pairing interaction information comprises wireless addresses of a first wireless earphone and a second wireless earphone paired with the first wireless earphone; and performing pairing operation by using the pairing interaction information.
Referring to fig. 4, fig. 4 is a flowchart illustrating another wireless headset pairing method according to an embodiment of the present invention; the method can comprise the following steps:
s300, when the terminal scans BLE pairing broadcast of each wireless earphone, the first wireless earphone and the second wireless earphone which need to be paired are determined according to the input selection information.
The embodiment does not limit the timing of the terminal to start scanning, and for example, the terminal may be controlled to start scanning when the user wants to perform wireless headset pairing.
The present embodiment does not limit the number of the first wireless headset and the second wireless headset, for example, when the first wireless headset is a master headset, there may be at least one second wireless headset.
The specific form of the selection information is not limited in this embodiment, for example, the wireless headset to be paired may be determined by voice selection information (the user inputs the first two wireless headsets in the selection list as the wireless headsets to be paired), and certainly, the user may also click information, and the user determines the selected wireless headset to be paired by clicking a terminal screen.
And S310, initiating a BLE connection request to the first wireless earphone and the second wireless earphone respectively according to the BLE pairing broadcast, and establishing BLE connection.
Further, in order to improve the user participation, when a transmission instruction sent by the user is received, a BLE connection request may be initiated to the first wireless headset and the second wireless headset, respectively, to establish a BLE connection.
S320, acquiring wireless addresses of the first wireless earphone and the second wireless earphone, and establishing pairing interaction information according to the wireless addresses.
Of course, in this embodiment, the pairing interaction information may also be created according to the wireless address when a creation instruction sent by the user is received. Specifically, acquiring the wireless addresses of the first wireless headset and the second wireless headset, and establishing pairing interaction information according to the wireless addresses may include:
extracting wireless addresses of a first wireless headset and a second wireless headset in BLE pairing broadcast;
determining role information of the first wireless earphone and the second wireless earphone according to the sequence of the selected information;
and forming pairing interaction information by the wireless address, the role information and the pairing command information.
Of course, the terminal may also acquire the wireless addresses of the first wireless headset and the second wireless headset through the BLE connection.
S330, respectively sending pairing interaction information to the first wireless earphone and the second wireless earphone by utilizing BLE connection so that the first wireless earphone and the second wireless earphone complete pairing operation.
Based on the above embodiment, in order to enable the user to know that the pairing operation is completed in time, the embodiment may further include: and when the pairing completion information sent by the first wireless earphone and the second wireless earphone is received, outputting the pairing completion information.
Of course, the pairing completion information may be output only when the pairing completion information transmitted by any one of the wireless headsets is received.
Further, the embodiment does not limit the output form of the pairing completion information, and for example, the pairing completion information may be output by voice, text, or an indicator light.
The present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of wireless headset pairing as described in any of the embodiments above. Enabling a BLE pairing broadcast if the computer program is executed by the processor to enable the first wireless headset to detect a preset event triggering pairing operation; when a BLE connection request sent by a terminal according to BLE pairing broadcast is received, establishing BLE connection with the terminal; pairing interaction information sent by a receiving terminal through BLE connection; the pairing interaction information comprises wireless addresses of a first wireless earphone and a second wireless earphone paired with the first wireless earphone; and performing pairing operation by using the pairing interaction information. And/or, when the computer program is executed by the processor, the terminal scans BLE pairing broadcast of each wireless earphone, and determines a first wireless earphone and a second wireless earphone which need to be paired according to the input selection information; according to the BLE pairing broadcast, respectively initiating a BLE connection request to the first wireless earphone and the second wireless earphone, and establishing BLE connection; acquiring wireless addresses of a first wireless earphone and a second wireless earphone, and establishing pairing interaction information according to the wireless addresses; and respectively sending pairing interaction information to the first wireless earphone and the second wireless earphone by utilizing BLE connection so as to enable the first wireless earphone and the second wireless earphone to complete pairing operation.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above detailed description describes a wireless headset pairing method, a wireless headset pairing device, a wireless headset, and a computer-readable storage medium according to the present invention. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (14)

1. A method of wireless headset pairing, comprising:
when the first wireless earphone detects a preset event triggering pairing operation, starting BLE pairing broadcast;
when a BLE connection request sent by a terminal according to the BLE pairing broadcast is received, establishing BLE connection with the terminal;
receiving pairing interaction information sent by the terminal through the BLE connection; the pairing interaction information comprises wireless addresses of the first wireless earphone and a second wireless earphone paired with the first wireless earphone, and a pairing command, wherein the pairing command comprises information of pairing progress returned to the terminal, pairing success or failure returned to the terminal, time for starting pairing operation, or master-slave relation of wireless earphones needing pairing; the pairing interaction information is determined by a user through a terminal; the first wireless earphone and the second wireless earphone are wireless earphones which are selected by a user and need to be paired;
and executing pairing operation by using the pairing interaction information.
2. The method of wireless headset pairing of claim 1, further comprising:
the preset event is detected by scanning to initiate a pairing broadcast.
3. The method of claim 2, wherein detecting the predetermined event by scanning to initiate a pairing broadcast comprises:
the preset event is detected by scanning for a start pairing broadcast initiated by the charging device.
4. The method of claim 1, wherein performing pairing operations using the pairing interaction information comprises:
acquiring a wireless address and corresponding role information of the first wireless earphone and a wireless address and corresponding role information of the second wireless earphone by analyzing the pairing interaction information;
identifying role information for the first wireless headset;
if the role information of the first wireless earphone is the slave earphone, starting a pairing connection broadcast;
and if the role information of the first wireless earphone is the main earphone, establishing pairing connection with the second wireless earphone when the pairing connection broadcast sent by the second wireless earphone is scanned.
5. The method of claim 4, wherein after obtaining the wireless address and corresponding role information of the first wireless headset and the wireless address and corresponding role information of the second wireless headset, further comprising:
sending pairing accuracy ready information to the terminal;
and when receiving a pairing operation execution command sent by the terminal, executing a step of identifying the role information of the first wireless earphone.
6. An apparatus for wireless headset pairing, comprising:
the BLE pairing broadcast module is used for starting BLE pairing broadcast when the first wireless earphone detects a preset event triggering pairing operation;
the BLE connection module is used for establishing BLE connection with the terminal when a BLE connection request sent by the terminal according to the BLE pairing broadcast is received;
the receiving module is used for receiving pairing interaction information sent by the terminal through the BLE connection; the pairing interaction information comprises wireless addresses of the first wireless earphone and a second wireless earphone paired with the first wireless earphone, and a pairing command, wherein the pairing command comprises information of pairing progress returned to the terminal, pairing success or failure returned to the terminal, time for starting pairing operation, or master-slave relation of wireless earphones needing pairing; the pairing interaction information is determined by a user through a terminal; the first wireless earphone and the second wireless earphone are wireless earphones which are selected by a user and need to be paired;
and the pairing module is used for executing pairing operation by utilizing the pairing interaction information.
7. The apparatus of claim 6, further comprising:
and the preset event detection module is used for detecting the preset event by scanning to start the pairing broadcast.
8. The apparatus of claim 6, wherein the pairing module comprises:
the analysis unit is used for acquiring the wireless address and the corresponding role information of the first wireless earphone and the wireless address and the corresponding role information of the second wireless earphone by analyzing the pairing interaction information;
an identification unit for identifying character information of the first wireless headset;
the pairing unit is used for starting pairing connection broadcast if the role information of the first wireless earphone is the slave earphone; and if the role information of the first wireless earphone is the main earphone, establishing pairing connection with the second wireless earphone when the pairing connection broadcast sent by the second wireless earphone is scanned.
9. The apparatus of claim 8, wherein the pairing module further comprises:
the sending unit is used for sending pairing accuracy ready information to the terminal;
the identification unit is specifically configured to identify the role information of the first wireless headset when receiving a pairing operation execution command sent by the terminal.
10. A wireless headset, comprising: communication interface, memorizer, processor; wherein the memory is adapted to store a computer program and the processor is adapted to carry out the steps of the method of wireless headset pairing of any one of claims 1 to 5 when executing the computer program.
11. A method of wireless headset pairing, comprising:
when the terminal scans BLE pairing broadcast of each wireless earphone, determining a first wireless earphone and a second wireless earphone which need to be paired according to input selection information;
initiating a BLE connection request to the first wireless headset and the second wireless headset respectively according to the BLE pairing broadcast, and establishing a BLE connection; the first wireless earphone and the second wireless earphone are wireless earphones which are selected by a user and need to be paired;
acquiring wireless addresses of the first wireless earphone and the second wireless earphone, and establishing pairing interaction information according to the wireless addresses and a pairing command, wherein the pairing command comprises information of pairing progress returned to the terminal, pairing success or failure returned to the terminal, time for starting to execute pairing operation or master-slave relation of wireless earphones needing pairing; the pairing interaction information is determined by a user through a terminal;
and sending the pairing interaction information to the first wireless earphone and the second wireless earphone respectively by using the BLE connection so as to enable the first wireless earphone and the second wireless earphone to complete pairing operation.
12. The method of claim 11, wherein obtaining wireless addresses of the first wireless headset and the second wireless headset and establishing pairing interaction information according to the wireless addresses comprises:
extracting wireless addresses of the first wireless headset and the second wireless headset in the BLE paired broadcast;
determining role information of the first wireless earphone and the second wireless earphone according to the sequence of the selected information;
and forming pairing interaction information by the wireless address, the role information and the pairing command information.
13. The method of wireless headset pairing of claim 11, further comprising:
and when the pairing completion information sent by the first wireless earphone and the second wireless earphone is received, outputting the pairing completion information.
14. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of wireless headset pairing according to any one of claims 1 to 5; and/or the computer program when being executed by a processor realizes the steps of the method of wireless headset pairing according to any of the claims 11 to 13.
CN201810613242.6A 2018-06-14 2018-06-14 Wireless earphone pairing method and device and wireless earphone Active CN108811182B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810613242.6A CN108811182B (en) 2018-06-14 2018-06-14 Wireless earphone pairing method and device and wireless earphone
PCT/CN2018/100355 WO2019237491A1 (en) 2018-06-14 2018-08-14 Wireless earphone pairing method and device and wireless earphones

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810613242.6A CN108811182B (en) 2018-06-14 2018-06-14 Wireless earphone pairing method and device and wireless earphone

Publications (2)

Publication Number Publication Date
CN108811182A CN108811182A (en) 2018-11-13
CN108811182B true CN108811182B (en) 2020-11-24

Family

ID=64085877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810613242.6A Active CN108811182B (en) 2018-06-14 2018-06-14 Wireless earphone pairing method and device and wireless earphone

Country Status (2)

Country Link
CN (1) CN108811182B (en)
WO (1) WO2019237491A1 (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109561414B (en) * 2018-12-21 2022-10-11 歌尔科技有限公司 Wireless earphone pairing method and device and wireless earphone
CN109600694B (en) * 2019-01-16 2020-08-11 歌尔科技有限公司 Wireless earphone pairing method and device, terminal and charging box
CN110149620B (en) * 2019-05-17 2022-11-08 北京增强智能科技有限公司 Control method and device of intelligent earphone, intelligent earphone and storage medium
CN112449328B (en) * 2019-08-30 2023-08-22 华为技术有限公司 Bluetooth searching method, system and related device
CN110809243B (en) * 2019-10-30 2022-03-25 歌尔科技有限公司 Wireless earphone, wireless earphone pairing method, terminal and system
CN110933616B (en) * 2019-11-21 2022-05-17 昆山泰芯微电子有限公司 Wireless earphone pairing method and system
CN110891261A (en) * 2019-12-10 2020-03-17 湖南国声声学科技股份有限公司 Bluetooth headset pairing method and system, Bluetooth headset and computer readable storage medium
CN111132116B (en) * 2019-12-31 2022-03-25 联想(北京)有限公司 Control method and device
CN111882846B (en) * 2020-03-05 2021-07-06 珠海市杰理科技股份有限公司 Wireless control method and device, BLE equipment, chip and storage medium
CN111885501B (en) * 2020-03-05 2022-07-22 珠海市杰理科技股份有限公司 Bluetooth technology-based equipment control method and related equipment
CN111464993B (en) * 2020-04-08 2023-05-02 昆山泰芯微电子有限公司 Bluetooth headset pairing method and wireless headset for Bluetooth headset
WO2021253221A1 (en) * 2020-06-16 2021-12-23 深圳市大疆创新科技有限公司 Role control method, apparatus and device
CN112020048B (en) * 2020-09-04 2022-06-21 歌尔科技有限公司 Bluetooth device pairing method, device and storage medium
CN112105010B (en) * 2020-09-22 2024-04-26 深圳市汇顶科技股份有限公司 Method for address exchange among Bluetooth devices, communication system and Bluetooth headset
CN115022957B (en) * 2022-05-31 2024-04-09 歌尔科技有限公司 State synchronization method and device of earphone device, earphone device and storage medium
CN117319975A (en) * 2022-06-23 2023-12-29 Oppo广东移动通信有限公司 Bluetooth device configuration method and device, electronic device and storage medium
CN117062254A (en) * 2023-06-27 2023-11-14 广州源动智慧体育科技有限公司 Device connection method, device, system and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017185339A1 (en) * 2016-04-29 2017-11-02 高翔 Wireless connection method, apparatus and system
CN106028264B (en) * 2016-05-20 2019-05-03 珠海市杰理科技股份有限公司 Electronic equipment Bluetooth pairing methods and system
CN106792493B (en) * 2017-03-09 2020-09-01 北京小米移动软件有限公司 Bluetooth device pairing method and device and Bluetooth device
CN107257516A (en) * 2017-07-17 2017-10-17 湖南海翼电子商务股份有限公司 Wireless headset and its matching method
CN107809697B (en) * 2017-11-30 2019-12-20 成都必盛科技有限公司 Earphone box for establishing interaction with wireless earphone
CN107809696B (en) * 2017-11-30 2019-12-20 成都必盛科技有限公司 Wireless earphone capable of establishing interaction with earphone box

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Bluetooth Adaptor for interoperability between Bluetooth and heterogeneous networks;Hyung-Jun Yim;《IEEE》;20110303;全文 *
基于近场通信技术的蓝牙配对模块的研发;张立坤;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160531;全文 *

Also Published As

Publication number Publication date
WO2019237491A1 (en) 2019-12-19
CN108811182A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN108811182B (en) Wireless earphone pairing method and device and wireless earphone
CN109600694B (en) Wireless earphone pairing method and device, terminal and charging box
US11368777B2 (en) Method and system for upgrading program of TWS headset, and TWS headset
WO2018054356A1 (en) Method for displaying information and terminal
CN108810697B (en) Wireless earphone pairing method and device and wireless earphone
CN109547897B (en) Wireless earphone connection method, device and system and wireless earphone box
CN108874421B (en) TWS earphone, upgrading method and device thereof, and storage medium
CN112492442A (en) Connection switching method, device, equipment and storage medium of Bluetooth headset
WO2017166464A1 (en) Information interaction method and terminal
CN108449746B (en) BT connection establishing method, wireless earphone and TWS earphone
CN111132111B (en) BLE-based audio sharing method, system and computer readable storage medium
CN111586662A (en) Sharing method and audio output device
CN110602683B (en) Bluetooth control method, device, mobile terminal and storage medium
CN113271376B (en) Communication control method, electronic equipment and earphone
RU2670096C2 (en) Method and device for ending video communication
CN108513216B (en) Information processing method and wire-controlled earphone
CN114500730A (en) Popup window function control method, device and computer readable storage medium
WO2018201943A1 (en) Device control method, device and system
CN111988693B (en) Earphone control method and system based on earphone charging box and readable storage medium
US9485458B2 (en) Data processing method and device
CN107896283B (en) Positioning connection method, device and system and wearable device
CN115665671A (en) Audio data sharing method and device, electronic equipment and storage medium
CN110825713B (en) Information processing method and related product
CN114268935A (en) Device connection method, terminal and storage medium
CN114257922A (en) Earphone mixed loading identification method, system, equipment and computer readable 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