CN114866896A - Earphone pairing method, equipment and computer readable storage medium - Google Patents

Earphone pairing method, equipment and computer readable storage medium Download PDF

Info

Publication number
CN114866896A
CN114866896A CN202210453920.3A CN202210453920A CN114866896A CN 114866896 A CN114866896 A CN 114866896A CN 202210453920 A CN202210453920 A CN 202210453920A CN 114866896 A CN114866896 A CN 114866896A
Authority
CN
China
Prior art keywords
earphone
box
pairing
state
binaural
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.)
Pending
Application number
CN202210453920.3A
Other languages
Chinese (zh)
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 Inc
Original Assignee
Goertek Inc
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 Inc filed Critical Goertek Inc
Priority to CN202210453920.3A priority Critical patent/CN114866896A/en
Publication of CN114866896A publication Critical patent/CN114866896A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04R1/1025Accumulators or arrangements for charging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive loop type
    • 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
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Headphones And Earphones (AREA)

Abstract

The invention discloses a method, equipment and a computer readable storage medium for pairing earphones, wherein the method is applied to a first earphone box and comprises the following steps: if a double-ear pairing operation request is detected when the first earphone box is in communication connection with the second earphone box, detecting whether the first earphone box is in a box state of an earphone; and if the first earphone box is detected to be in the box-shaped state of the earphone and the second earphone box is determined to be in the box-shaped state of the earphone, sending a double-ear pairing message to the first earphone in the first earphone box so that the first earphone can be paired with the second earphone in the second earphone box based on the double-ear pairing message. The invention provides the separable earphone boxes, earphone pairing is realized based on communication connection among the separable earphone boxes, and the requirement that a user needs to store earphones separately is met.

Description

Earphone pairing method, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of headset technologies, and in particular, to a headset pairing method and device, and a computer-readable storage medium.
Background
With the development and maturity of wireless headset technology, the wireless headset is more widely used, and the functional requirements and the experience requirements of users on the wireless headset are higher and higher. The earphone box for placing the wireless earphones is designed for facilitating storage and charging of the wireless earphones (the earphone box can be called as a charging box when having a charging function), however, the existing earphone box is designed for a pair of earphones, namely two earphones are placed in the same earphone box, and the requirement that a user needs to separately store the earphones cannot be met.
Disclosure of Invention
The present invention provides a method and an apparatus for pairing earphones, and a computer readable storage medium, and aims to provide a detachable earphone box and an earphone pairing scheme based on the detachable earphone box, so as to meet the requirement of a user for separately storing earphones.
In order to achieve the above object, the present invention provides an earphone pairing method, which is applied to a first earphone box, and comprises the following steps:
if a double-ear pairing operation request is detected when the first earphone box is in communication connection with the second earphone box, detecting whether the first earphone box is in a box state;
and if the first earphone box is detected to be in a box state of the earphone and the second earphone box is determined to be in the box state of the earphone through the communication connection with the second earphone box, sending a double-ear pairing message to the first earphone in the first earphone box so that the first earphone can be paired with the second earphone in the second earphone box based on the double-ear pairing message.
Optionally, after the step of detecting whether the first headphone box is in a headphone-in-box state if a binaural pairing operation request is detected while being in communication connection with the second headphone box, the method further includes:
and if the first earphone box is detected to be in a box state of the earphone, forwarding the double-ear pairing operation request to the second earphone box so that the second earphone box can detect whether the second earphone box is in the box state of the earphone according to the double-ear pairing operation request and return a detection result.
Optionally, after the step of detecting whether the first earphone box is in an earphone-in-box state, the method further includes:
if the first earphone box is detected not to be in a box state of the earphones, outputting first prompt information for indicating that the double-ear pairing is failed;
if the first earphone box is detected to be in a box state of the earphone, the binaural pairing operation request is forwarded to the second earphone box, so that the second earphone box detects whether the second earphone box is in the box state of the earphone according to the binaural pairing operation request and returns a detection result, and the method further includes:
and if the second earphone box is determined not to be in the box state of the earphone based on the detection result, outputting the first prompt message.
Optionally, after the step of sending a binaural pairing message to the first headphone in the first headphone box, if it is detected that the first headphone box is in a box-shaped state and it is determined that the second headphone box is in a box-shaped state through the communication connection with the second headphone box, the method further includes:
and if the first earphone is detected to be in a successful binaural matching state and the second earphone is determined to be in the successful binaural matching state through the communication connection with the second earphone box, outputting second prompt information for indicating that binaural matching is successful.
Optionally, before the step of outputting second prompt information indicating that binaural pairing is successful if it is detected that the first headphone is in a binaural pairing success state and it is determined that the second headphone is in a binaural pairing success state through the communication connection with the second headphone case, the method further includes:
when receiving a feedback message sent by the first earphone and indicating that the first earphone enters a pairing mode, sending an earphone state inquiry message to the first earphone, so that the first earphone feeds back a message used for indicating whether the first earphone is in a binaural pairing success state to the first earphone box;
and sending an earphone state query message to the second earphone box so that the second earphone box can send the earphone state query message to the second earphone and send a message for indicating whether the second earphone is in a successful binaural pairing state to the first earphone box.
Optionally, the method further comprises:
if the first earphone box is determined to be in a box state when the device pairing operation request is detected, detecting whether the first earphone in the first earphone box is in a double-ear connection state;
if the first earphone is determined not to be in a binaural connection state, sending a first equipment pairing message to the first earphone so as to pair the first earphone and user equipment;
and if the first earphone is determined to be in a double-ear connection state, sending a second equipment pairing message to the first earphone so that the first earphone and an opposite ear establishing double-ear connection with the first earphone can be paired with the user equipment by the main earphone after the main earphone is determined.
Optionally, a pairing operation module is disposed in the first earphone box, and the method further includes:
when the pairing operation module detects pairing operation triggered by a user, detecting whether the first earphone box is in communication connection with the second earphone box;
if the first earphone box is determined to be in communication connection with the second earphone box, triggering the double-ear pairing operation request;
and if the first earphone box and the second earphone box are determined not to be in communication connection, triggering the equipment pairing operation request.
Optionally, if it is detected that the first earphone box is in a box state, and it is determined that the second earphone box is in a box state through the communication connection with the second earphone box, the step of sending a binaural pairing message to the first earphone in the first earphone box includes:
if the first earphone box is detected to be in the earphone box state and the second earphone box is determined to be in the earphone box state through the communication connection with the second earphone box, receiving pairing address information of the second earphone sent by the second earphone box;
and carrying the pairing address information in a binaural pairing message and sending the binaural pairing address information to the first earphone so that the first earphone can be paired with the second earphone based on the pairing address information.
To achieve the above object, the present invention also provides an earphone pairing device, including: a memory, a processor and a headset pairing program stored on the memory and executable on the processor, the headset pairing program when executed by the processor implementing the steps of the headset pairing method as above.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, on which a headset pairing program is stored, and the headset pairing program implements the steps of the headset pairing method as above when executed by a processor.
In the invention, if a double-ear pairing operation request is detected when the first earphone box is in communication connection with the second earphone box, whether the first earphone box is in a box state of an earphone is detected; and if the first earphone box is detected to be in the box-shaped state of the earphone and the second earphone box is determined to be in the box-shaped state of the earphone through the communication connection with the second earphone box, sending a double-ear pairing message to the first earphone in the first earphone box so that the first earphone can be paired with the second earphone in the second earphone box based on the double-ear pairing message. The invention provides the separable earphone boxes, and the earphone pairing is realized through the communication connection between the separable earphone boxes, so that the requirement that a user needs to separately store earphones is met.
Drawings
Fig. 1 is a schematic flowchart of a first embodiment of a headset pairing method according to the present invention;
fig. 2 is a schematic diagram of a binaural pairing process according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of pairing an earphone and a VR according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a headset pairing method according to a first embodiment of the present invention.
Embodiments of the present invention provide embodiments of a headset pairing method, and it should be noted that although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown or described herein. In this embodiment, the earphone pairing method is applied to the first earphone box. In this embodiment, the headset pairing method includes:
step S10, if a binaural pairing operation request is detected while in communicative connection with the second headphone box, detecting whether the first headphone box is in a headphone-in-box state;
in the present embodiment, a separable earphone box is provided. Specifically, each earphone box is designed to be capable of containing one earphone, communication connection can be established between the earphone boxes in a wired or wireless mode, and pairing between the earphones in the two earphone boxes can be achieved based on the communication connection, so that the earphones in the two earphone boxes can be used as a pair of earphones by a user. In a specific embodiment, the user may separate or combine the two earphone boxes according to the requirement (i.e. make the two earphone boxes communicatively connected in a wired or wireless manner, etc.). Since the two earphone cases for storing a pair of earphones are separable, hereinafter, for convenience of description, the earphone case is referred to as a separable earphone case for distinction, and when the two separable earphone cases are used as a pair, they are referred to as a pair of separable earphone cases.
In an embodiment, a physical contact point may be designed in each earphone box, so that two earphone boxes can establish a communication connection through the contact between the physical contact points. In a specific embodiment, when the earphone is placed in the separable earphone box, information interaction may also be performed through the established communication connection through contact between a physical contact point in the earphone and a physical contact point provided inside the separable earphone box. The physical contact points in the separable earphone box and the earphone may be implemented in various manners, and any manner may be used as long as the communication connection can be established due to the contact of the physical contact points, which is not limited in this embodiment. For the avoidance of ambiguity, the physical contact points mentioned below refer to physical contact points provided in the detachable earphone box for communicating with other detachable earphone boxes, not physical contact points for communicating with earphones.
Further, in an embodiment, a pair of separable earphone boxes can be provided with a clamping piece, and two earphone boxes are clamped together by the clamping piece to ensure the contact between the physical contact points, so that the user is not required to ensure the contact between the physical contact points by manually controlling the two earphone boxes all the time. There are many ways to implement the clip, and the implementation is not limited in this embodiment.
Further, in an embodiment, a device for fixing the separable earphone box may be disposed in the head-mounted device, and two sides of the head-mounted device are respectively provided with one place, so that a user may fix a pair of separable earphones on two sides of the head-mounted device.
In this embodiment, the earphone pairing method is applied to the separable earphone boxes, so that for the convenience of distinguishing, the specific embodiment is described from the perspective of the first earphone box, and other separable earphone boxes related to the earphone pairing method performed by the first earphone box are all referred to as second earphone boxes.
When the first earphone box is in communication connection with the second earphone box, for example, when connection is established through contact between physical contact points, if a binaural pairing operation request is detected, it may be detected whether the first earphone box is in a box state of an earphone. The first earphone box is detected whether to be in a box state of the earphones, that is, whether to place the earphones in the first earphone box is detected, and the specific detection mode is various, which is not limited in this embodiment.
In a specific embodiment, the binaural pairing operation request may be received by the first headphone box from another device, for example, received by a user device in communication connection with the first headphone box, or triggered by a user operating the first headphone box, for example, by long-pressing a physical key in the first headphone box, or sent to the first headphone box by the second headphone box, which is not limited in this embodiment.
Further, in an embodiment, each separable headphone box may be provided with a pairing operation module for detecting a pairing operation of a user, and when the separable headphone box is in communication connection with other separable headphone boxes, if the pairing operation triggered by the user is detected based on the pairing operation module of the separable headphone box, a binaural pairing operation request may be triggered, and then whether the separable headphone box is in a box state is detected, and the binaural pairing operation request may be forwarded to another separable headphone box connected to the separable headphone box, so that the another separable headphone box detects whether the separable headphone box is in a box state according to the binaural pairing operation request. In another embodiment, the pairing operation module may be provided in only one earphone box (hereinafter referred to as a master earphone box) of a pair of separable earphone boxes, so that, for the other slave earphone box, the other slave earphone box can only obtain a binaural pairing operation request from the master earphone box, and further detect whether the slave earphone box is in a box state of the earphone or not according to the binaural pairing operation request. The pairing operation module may detect whether the user triggers the pairing operation by monitoring a trigger event of a physical key, a touch key, or other interaction devices in the headset device, for example, when the physical key is pressed by the user, a pressing event is triggered, and when the pairing operation module monitors the pressing event, it may be determined that the user triggers the pairing operation.
Step S20, if it is detected that the first earphone box is in a box state, and it is determined that the second earphone box is in the box state through the communication connection with the second earphone box, sending a binaural pairing message to a first earphone in the first earphone box, so that the first earphone can pair with a second earphone in the second earphone box based on the binaural pairing message.
If it is detected that the first earphone box is in a box state, and it is determined that the second earphone box is in a box state through communication connection with the second earphone box, the first earphone box may send a binaural pairing message to an earphone in the first earphone box (hereinafter, referred to as a first earphone to distinguish). Wherein the binaural pairing message is a message for instructing the first headphone to turn on the pairing mode for binaural pairing operation. In a specific embodiment, the pairing may refer to bluetooth pairing, and certainly may also refer to pairing in other wireless communication manners, and correspondingly, the communication connection established based on the paired information after the pairing may also refer to bluetooth connection or other wireless communication connections.
After receiving the binaural pairing message, the first earphone can start the pairing mode, and then pair with the second earphone in the second earphone box. In a specific embodiment, the first earphone may use, as the second earphone in the second earphone box, an earphone closest to the searched earphones (the earphone with the strongest signal may be the earphone closest to the searched earphones), and further pair with the second earphone; or the first earphone box sends the pairing address information of the second earphone to the first earphone, so that the first earphone locks the second earphone from the searched earphones according to the pairing address information, and then the first earphone is paired with the second earphone.
Further, in an embodiment, the first headset may set to actively connect back the successfully paired headset each time the first headset leaves the box, and then, after receiving the binaural pairing message, the first headset may empty the information of the previously stored paired device and then start the pairing mode to pair with the second headset. In a specific application scenario, when two earphones are required to be used as a pair of earphones for the first time, a user can place the two earphones in two separable earphone boxes, the two separable earphone boxes are combined, and then pairing of the two earphones is completed by triggering a double-ear pairing operation request in the earphone boxes, so that communication connection is quickly established based on information of paired equipment in subsequent use.
Further, in an embodiment, after the first headset is successfully paired with the second headset, the first headset may directly establish a communication connection with the second headset, or establish a communication connection with the second headset based on information of paired devices each time the first headset and the second headset are detected to be out of the box.
It should be noted that there are many ways for the first earphone box to determine that the second earphone box is in the earphone box state through the communication connection with the second earphone box, and this embodiment is not limited thereto. For example, in an embodiment, after the second earphone box detects whether the second earphone box is in a box state of an earphone, the second earphone box sends a detection result to the first earphone box, so that the first earphone box knows whether the second earphone box is in the box state of the earphone according to the detection result. For another example, in another embodiment, the separable headset box may be configured to forward the binaural pairing operation request to another separable headset box in communication connection when detecting that the headset is in a box state based on the detection of the binaural pairing operation request by the pairing operation module of the separable headset box; then, when the binaural pairing operation request detected by the first headphone box is sent by the second headphone box, the first headphone box may determine that the second headphone box is in a box-like state when detecting the binaural pairing operation request.
Further, in an embodiment, the step S20 includes:
step S201, if the first earphone box is detected to be in a box state of an earphone, and the second earphone box is determined to be in the box state of the earphone through the communication connection with the second earphone box, receiving pairing address information of the second earphone sent by the second earphone box;
in this embodiment, if it is detected that the first earphone box is in a box state of the earphone and it is determined that the second earphone box is in the box state of the earphone through the communication connection with the second earphone box, the first earphone box may receive the pairing address information of the second earphone sent by the second earphone box. The second earphone box can acquire the pairing address information of the second earphone from the second earphone when the second earphone is placed in the second earphone box. It should be noted that, in the present embodiment, the specific time when the second earphone box acquires the pairing address information of the second earphone from the second earphone and the specific time when the second earphone box sends the pairing address information to the first earphone box are not limited. For example, in an embodiment, when the separable headphone box detects a binaural pairing operation request, if it detects that the separable headphone box is in a box state, the separable headphone box may acquire pairing address information of the currently placed headphone, and transmit the pairing address information to another separable headphone box that is communicatively connected to the separable headphone box.
Step S202, the pairing address information is carried in a binaural pairing message and sent to the first earphone, so that the first earphone pairs with the second earphone based on the pairing address information.
The first earphone box carries the pairing address information of the second earphone in the double-ear pairing message and sends the pairing address information to the first earphone, so that the first earphone can find the second earphone according to the pairing address information and then is paired with the second earphone.
In this embodiment, if the first headphone box detects a binaural pairing operation request while being in communication connection with the second headphone box, it is detected whether the first headphone box is in a box state of a headphone; and if the first earphone box is detected to be in the box-shaped state of the earphone and the second earphone box is determined to be in the box-shaped state of the earphone through the communication connection with the second earphone box, sending a double-ear pairing message to the first earphone in the first earphone box so that the first earphone can be paired with the second earphone in the second earphone box based on the double-ear pairing message. In this embodiment, by providing a detachable earphone box and realizing earphone pairing through communication connection between the detachable earphone boxes, the requirement that a user needs to separately store earphones is met.
Further, based on the first embodiment, a second embodiment of the headset pairing method of the present invention is provided, and in this embodiment, after step S10, the method further includes:
step S30, if it is detected that the first headphone box is in a box state of a headphone, forwarding the binaural pairing operation request to the second headphone box, so that the second headphone box detects whether the second headphone box is in a headphone box state according to the binaural pairing operation request, and returns a detection result.
If the first earphone box detects that the first earphone box is in a box state of the earphone, the first earphone box can forward the double-ear pairing operation request to the second earphone box. After receiving the binaural pairing operation request, the second headphone box may detect whether the second headphone box is in a headphone-in-box state, and return a detection result to the first headphone box, and then the first headphone box may determine whether the second headphone box is in a headphone-in-box state according to the detection result.
Further, in a specific embodiment, when the binaural pairing operation request received by the first headphone box is not sent by the second headphone box, or when the first headphone box serves as a main headphone box, if the first headphone box detects that the first headphone box is in a box state of a headphone, the binaural pairing operation request may be forwarded to the second headphone box.
Further, in an embodiment, when the first earphone box receives the binaural pairing operation request forwarded by the second earphone box, it may be detected whether the first earphone box is in a box state of an earphone, and a detection result may be sent to the second earphone box.
Further, in an embodiment, after the step S10, the method further includes:
step S40, if the first earphone box is not in a box state, outputting first prompt information for indicating that the binaural matching fails;
if the first earphone box detects that the first earphone box is not in a box state of the earphone, the double-ear pairing message can not be sent, namely, the earphone cannot be indicated to carry out double-ear pairing because the earphone is not placed in the first earphone box.
Further, in an embodiment, if the first headphone box detects that the first headphone box is not in a box state, a prompt message indicating that binaural pairing has failed (hereinafter referred to as a first prompt message) may be output, so that a user may know that binaural pairing has failed. There are many ways to output the second prompt message, and there are many ways to output the first prompt message, which is not limited in this embodiment. For example, in an embodiment, an indicator lamp may be disposed in the separable headphone box, or an indicator lamp may be disposed in a main headphone box of the pair of separable headphone boxes, the first headphone box may output the first prompt information through the indicator lamp, and the first prompt information may be represented in the form of a flashing frequency or a flashing number of the indicator lamp, for example, the indicator lamp flashes twice to indicate that the binaural pairing has failed.
Further, in an embodiment, after the step S30, the method further includes:
step S50, if it is determined based on the detection result that the second earphone box is not in a box state, outputting the first prompt information.
If the first earphone box determines that the second earphone box is not in a box state of the earphone based on a detection result returned by the second earphone box, the double-ear pairing message can not be sent, that is, the second earphone box cannot indicate the earphone to carry out double-ear pairing because the earphone is not placed in the second earphone box.
Further, in an embodiment, if it is determined that the second headphone box is not in a box state based on the detection result, first prompt information may be output, so that the user may know that the binaural pairing has failed.
Further, in an embodiment, after the step S10, the method further includes:
step S60, if it is detected that the first headphone is in a successful binaural pairing state and it is determined that the second headphone is in a successful binaural pairing state through the communication connection with the second headphone box, outputting second prompt information indicating that binaural pairing is successful.
If the first headphone box detects that the first headphone is in a successful binaural pairing state and determines that the second headphone is in a successful binaural pairing state through communication connection with the second headphone box, it may be determined that prompt information (hereinafter referred to as second prompt information) indicating successful binaural pairing is output. The specific implementation of outputting the second prompt information may refer to the above specific implementation of outputting the first prompt information, which is not described herein again.
There are various ways for the first earphone box to detect that the first earphone is in the successful binaural pairing state, which is not limited in this embodiment. For example, in an embodiment, after receiving the binaural pairing message and starting the pairing mode for successful pairing, the first headphone may feed back a feedback message indicating that it is in a binaural pairing successful state to the first headphone box.
There are various ways for the first earphone box to determine that the second earphone is in the successful binaural pairing state through the communication connection with the second earphone box, which is not limited in this embodiment. For example, in an embodiment, after the binaural pairing is successful, the second headphone may feed back a feedback message indicating that it is in a binaural pairing successful state to the second headphone box, and the second headphone box may send the feedback message to the first headphone box.
Further, in an embodiment, before the step S60, the method further includes:
step S70, when receiving a feedback message sent by the first earphone and indicating that the first earphone has entered the pairing mode, sending an earphone status query message to the first earphone, so that the first earphone feeds back a message indicating whether the first earphone is in a successful binaural pairing state to the first earphone box;
in this embodiment, after entering the pairing mode according to the binaural pairing message, the first headphone may send a feedback message to the first headphone box, the feedback message indicating that the first headphone has entered the pairing mode. After receiving the feedback message sent by the first earphone, the first earphone box may send an earphone status query message to the first earphone to query the status of the first earphone.
The first headphone may perform feedback to the first headphone box after receiving the headphone state query message, and specifically may feedback a message indicating whether the first headphone is in a successful binaural pairing state. In a specific embodiment, the first earphone may send a message to the first earphone box after the binaural pairing is successful, where the sent message indicates that the first earphone is already in a binaural pairing successful state, or the first earphone may also feed back the current state to the first earphone box after receiving the earphone state query message, where the current state may be that the first earphone is already in a binaural pairing successful state, or may not be in a binaural pairing successful state.
Step S80, sending an earphone status query message to the second earphone box, so that the second earphone box sends an earphone status query message to the second earphone, and sends a message indicating whether the second earphone is in a successful binaural pairing state to the first earphone box.
The first earphone box may send an earphone status query message to the second earphone box based on the communication connection with the second earphone box, where the earphone status query message is a message used to instruct the second earphone box to query the earphone status of the second earphone, and the specific message content may be different from the content of the earphone status query message sent by the first earphone box to the first earphone. The second earphone box sends an earphone state query message to the second earphone after receiving the earphone state query message sent by the first earphone box, wherein the earphone state query message is used for indicating the second earphone to feed back the earphone state of the second earphone, and the specific message content may be different from the content of the earphone state query message sent by the first earphone box to the first earphone. The second headphone may perform feedback to the second headphone box after receiving the headphone state query message, and specifically may feedback a message indicating whether the second headphone is in a successful binaural pairing state. In a specific embodiment, the second headphone may send a message to the second headphone box after the binaural pairing is successful, where the sent message indicates that the second headphone is in a binaural pairing successful state, or the second headphone may feed back the current state to the second headphone box after receiving the headphone state query message, where the current state may be that the second headphone is in a binaural pairing successful state, or may not be in a binaural pairing successful state. The second headphone box may determine whether the second headphone is in a successful binaural pairing state according to a message fed back by the second headphone, and the second headphone box may further feed back to the first headphone box, and specifically may send a message indicating whether the second headphone is in the successful binaural pairing state to the first headphone box.
The first earphone box can determine whether the first earphone and the second earphone are in a successful binaural matching state according to the information fed back by the first earphone and the second earphone box, and when the first earphone box determines that the two earphones are in the successful binaural matching state, the first earphone box can output second prompt information.
Further, based on the first and/or second embodiments, a third embodiment of the headset pairing method of the present invention is provided, in which the method further includes:
step A10, if it is determined that the first earphone box is in a box state when the device pairing operation request is detected, detecting whether the first earphone in the first earphone box is in a binaural connection state;
when the first earphone box detects that the device pairing operation request determines that the first earphone box is in a box state, whether the first earphone in the first earphone box is in a double-ear connection state or not can be detected. In a specific embodiment, the device pairing operation request may be received by the first earphone box from a user device in communication connection with the first earphone box, or may be triggered by a user operating the first earphone box, for example, by long-pressing a physical key in the first earphone box, where a triggering manner of the device pairing operation request is not limited in this embodiment. The device pairing operation request is a request for instructing the first earphone box to control the first earphone in the first earphone box to perform communication connection with the user device. The user device may be a mobile phone, a head-mounted device, a computer, and the like, which is not limited in this embodiment. The binaural connection state refers to a state in which two earphones establish communication connection.
In a specific embodiment, the first earphone box may detect whether the first earphone box is in a box state of an earphone after detecting the device pairing operation request, or may detect whether there is a device pairing operation request only when detecting that the first earphone box is in the box state of the earphone.
In a specific embodiment, the detecting, by the first headphone box, whether the first headphone is in the binaural connection state may be that the first headphone sends information indicating a current state of the first headphone to the first headphone box, so that the first headphone box knows whether the first headphone is in the binaural connection state.
Step A20, if it is determined that the first earphone is not in a binaural connection state, sending a first device pairing message to the first earphone for pairing the first earphone with a user device;
if it is determined that the first headphone is not in the binaural connection state, the first headphone box may transmit a device pairing message (hereinafter, referred to as a first device pairing message to distinguish) to the first headphone. The first device pairing message is a message for instructing the first headset to start a pairing mode for pairing with the user device.
After receiving the device pairing message, the first headset may start a pairing mode, and then pair with the user device. In a specific embodiment, the first headset may use a device closest to the searched devices as a user device, and further pair with the user device; or the user can select the device information of the first earphone from the pair-capable earphones searched when the user device starts the pairing mode, so that the user device actively sends a pairing request to the first earphone, and the first earphone is paired with the user device according to the pairing request sent by the user device.
It should be noted that the first earphone not being in the binaural connection state may be an earphone that has not been successfully paired, or may be an earphone that has been successfully paired but is in the sleep mode or spaced from the first earphone by a distance exceeding the communication distance range.
In a specific embodiment, the earphone may be configured to disconnect a communication connection with another device (earphone or user equipment) and enter a sleep mode when the earphone is placed in the separable earphone box, and then, when the first earphone box detects a device pairing operation request and determines that the first earphone box is in a box state, the first earphone may be waken up first, and then it is determined whether the first earphone is in a binaural connection state.
Further, in a specific embodiment, the first earphone may directly establish a communication connection with the user equipment after pairing with the user equipment is successful, or may establish a communication connection with the user equipment after receiving the indication message sent by the first earphone box, or may establish a communication connection with the user equipment after receiving a connection request sent by the user equipment.
Further, in an embodiment, after the first headset is connected to the user equipment, if another headset successfully paired with the first headset wakes up from the sleep mode or enters a communication distance range with the first headset, the first headset and the second headset may perform a loopback connection based on the paired information.
Step a30, if it is determined that the first earphone is in a binaural connection state, sending a second device pairing message to the first earphone, so that the first earphone and an opposite ear establishing binaural connection with the first earphone are paired with the user device by the main earphone after determining the main earphone.
If it is determined that the first earphone is in a binaural connection state, the first earphone box may transmit a device pairing message (hereinafter, referred to as a second device pairing message to distinguish) to the first earphone. The second device pairing message is a message used for indicating that the first earphone and the opposite ear establishing the binaural connection with the first earphone are paired with the user device by the main earphone after the main earphone is determined.
In an embodiment, when the first earphone establishes a binaural connection with the other earphone, if the first earphone is the master earphone, the first earphone may start the pairing mode to pair with the user equipment, and if the other earphone is the master earphone, the first earphone may send an instruction to the other earphone, so that the other earphone starts the pairing mode to pair with the user equipment.
In another embodiment, when the first earphone is in binaural connection with another earphone, if the first earphone is the master earphone, the first earphone may start the pairing mode to pair with the user equipment, and if the other earphone is the master earphone, the first earphone and the other earphone may negotiate to determine that the first earphone serves as the master earphone, and then the first earphone starts the pairing mode to pair with the user equipment.
Further, in an embodiment, the method further comprises:
step A40, when the pairing operation module detects the pairing operation triggered by the user, detecting whether the first earphone box establishes communication connection with the second earphone box;
a pairing operation module may be disposed in the first headphone box, and the pairing operation module is configured to detect whether a user triggers a pairing operation, and determine whether to trigger a binaural pairing operation request or a device pairing operation request based on the pairing operation based on a connection condition between the first headphone box and the second headphone box.
Specifically, when the pairing operation triggered by the user is detected through the pairing operation module, the first earphone box may detect whether it is in communication connection with the second earphone box, for example, whether the first earphone box establishes communication connection with the second earphone box through contact between physical contact points.
Step A50, if the first earphone box is determined to be in communication connection with the second earphone box, triggering the binaural pairing operation request;
if the first earphone box determines that the first earphone box is in communication connection with the second earphone box, the intention that the user triggers the pairing operation can be considered to be that the first earphone box is paired with earphones in the second earphone box, at the moment, the first earphone box can trigger the double-ear pairing operation, so that when the first earphone box detects that the first earphone and the second earphone are both in the corresponding earphone boxes, the first earphone box indicates the two earphones to be paired, and the user is helped to complete the earphone pairing operation. In a specific application scenario, when two earphones need to be used as a pair, a user can put the two earphones into the corresponding separable earphone boxes respectively, make contact with physical contact points of the two separable earphone boxes, and then trigger pairing operation on the first earphone box, so that the pairing operation module can detect the pairing operation, and further the first earphone box executes a process of pairing the two earphones.
Step a60, if it is determined that the first earphone box and the second earphone box do not establish a communication connection, triggering the device pairing operation request.
If it is determined that the first earphone box and the second earphone box do not establish communication connection, it may be considered that the intention of the user to trigger the pairing operation is to pair the earphone in the first earphone box with the user equipment alone, or pair the earphone in the first earphone box with the user equipment when the earphone is in a binaural connection state, at this time, the first earphone box may trigger an equipment pairing operation request, so that when the first earphone box detects that the first earphone is in the first earphone box, the first earphone is controlled to be paired with the user equipment, or the first earphone and a main earphone in a connection object thereof are paired with the user equipment. In a specific application scenario, when a user needs to use one earphone alone, the user puts the earphone into a separable earphone box, and then triggers a pairing operation on a first earphone box, so that a pairing operation module can detect the pairing operation, and the first earphone box executes a process of controlling the earphone to be paired with user equipment; or, when the user needs to use a pair of connected earphones, one of the connected earphones can be put into the separable earphone box, and then pairing operation is triggered on the first earphone box, so that the pairing operation module can detect the pairing operation, and the first earphone box executes a process of controlling the main earphone of the two earphones to be paired with the user equipment.
Further, in an embodiment, the user can bind the two separable charging boxes and the earphone on both sides of the VR, and also can combine the two separable charging boxes together.
1. The main charging box is provided with a physical key for a user to operate the earphone to enter a pairing mode or restore factory settings;
2. the bottom of the two charging boxes is provided with a physical contact point for synchronizing information when the two charging boxes are combined together.
3. There is a physical contact point between the two charging boxes and the headset, which can be used for communication between the headset and the charging boxes when the headset is in the box.
When the separable charging boxes are combined together, the method of operating the earphones to restore factory settings and performing binaural pairing may be as shown in fig. 2:
the double ears are in a box-shaped state, the two charging boxes are combined together, and the keys of the main charging box are pressed for a long time. The master charging box recognizes the long press action, information is synchronized to the slave charging box through charging box communication, the master charging box and the slave charging box respectively send messages for restoring factory settings to the left ear and the right ear, the left ear and the right ear return ACK to the charging boxes after receiving the messages, and if both ears receive correct ACK, the LED indicator lamp indicates that the factory settings and the ears are successfully matched.
When detachable charging box is in the disconnect-type state, the operation owner charges the box, and the earphone gets into the mode of pairing, can pair with cell-phone or VR, as shown in fig. 3:
according to the design idea of the separable charging box, after the earphone is placed into the box, the two ears are disconnected, and the earphone enters a sleep mode. The user presses the key of the main charging box for a long time, the charging box awakens the dormant earphone through the physical contact point, and detects that the earphone is in the disconnection state, so that the earphone enters the pairing mode. The user can operate the VR and earphone pairing, when the user takes out the two ears for use, the two ears exit the sleep mode, automatically return to the sleep mode, and then connect the VR. And if the earphone detects that the opposite ear is in a non-disconnected state and the earphone is the slave ear, switching the earphone into the master ear, and entering a pairing mode to pair with equipment such as the mobile phone VR and the like.
In addition, an embodiment of the present invention further provides an earphone pairing device, and in this embodiment, the earphone pairing device may be the first earphone box in the above embodiment. The first earphone box can comprise a structural shell, a main control module, a memory and the like. The main control module can comprise a microprocessor, an audio decoding unit, a power supply and power supply management unit, a sensor and other active or passive devices required by the system and the like (which can be replaced, deleted or added according to actual functions), so that the wireless audio receiving and playing functions are realized. The memory of the headset case may store a headset pairing program, and the microprocessor may be configured to call the headset pairing program stored in the memory and perform the following operations:
if a double-ear pairing operation request is detected when the first earphone box is in communication connection with the second earphone box, detecting whether the first earphone box is in a box state;
and if the first earphone box is detected to be in a box state of the earphone and the second earphone box is determined to be in the box state of the earphone through the communication connection with the second earphone box, sending a double-ear pairing message to the first earphone in the first earphone box so that the first earphone can be paired with the second earphone in the second earphone box based on the double-ear pairing message.
Further, after detecting that the first headphone box is in a headphone box state if a binaural pairing operation request is detected during communication connection with the second headphone box, the microprocessor may be further configured to invoke a headphone pairing program stored in the memory to perform the following operations:
and if the first earphone box is detected to be in a box state of the earphone, forwarding the double-ear pairing operation request to the second earphone box so that the second earphone box can detect whether the second earphone box is in the box state of the earphone according to the double-ear pairing operation request and return a detection result.
Further, after the operation of detecting whether the first headphone case is in the headphone case state, the microprocessor may be further configured to call a headphone pairing program stored in the memory, and perform the following operations:
if the first earphone box is detected not to be in a box state of the earphones, outputting first prompt information for indicating that the double-ear pairing is failed;
if the first earphone box is detected to be in a box state of the earphone, the binaural matching operation request is forwarded to the second earphone box, so that after the second earphone box detects whether the second earphone box is in the box state of the earphone according to the binaural matching operation request and returns a detection result, the microprocessor can be further configured to call an earphone matching program stored in the memory, and execute the following operations:
and if the second earphone box is determined not to be in the box state of the earphone based on the detection result, outputting the first prompt message.
Further, after the operation of sending a binaural pairing message to the first headphone in the first headphone box if it is detected that the first headphone box is in a box-shaped state and it is determined that the second headphone box is in a box-shaped state through the communication connection with the second headphone box, the microprocessor may be further configured to call a headphone pairing program stored in the memory, and perform the following operations:
and if the first earphone is detected to be in a successful binaural matching state and the second earphone is determined to be in the successful binaural matching state through the communication connection with the second earphone box, outputting second prompt information for indicating that binaural matching is successful.
Further, before the operation of outputting the second prompt information indicating that the binaural pairing is successful if the first headphone is detected to be in the binaural pairing successful state and the second headphone is determined to be in the binaural pairing successful state through the communication connection with the second headphone case, the microprocessor may be further configured to call a headphone pairing program stored in the memory, and perform the following operations:
when receiving a feedback message sent by the first earphone and indicating that the first earphone enters a pairing mode, sending an earphone state inquiry message to the first earphone, so that the first earphone feeds back a message used for indicating whether the first earphone is in a binaural pairing success state to the first earphone box;
and sending an earphone state query message to the second earphone box so that the second earphone box can send the earphone state query message to the second earphone and send a message for indicating whether the second earphone is in a successful binaural pairing state to the first earphone box.
Further, the microprocessor may be further configured to invoke a headset pairing program stored in the memory to perform the following operations:
if the first earphone box is determined to be in a box state when the device pairing operation request is detected, detecting whether the first earphone in the first earphone box is in a double-ear connection state;
if the first earphone is determined not to be in a binaural connection state, sending a first equipment pairing message to the first earphone so as to pair the first earphone and user equipment;
and if the first earphone is determined to be in a double-ear connection state, sending a second equipment pairing message to the first earphone so that the first earphone and an opposite ear establishing double-ear connection with the first earphone can be paired with the user equipment by the main earphone after the main earphone is determined.
Further, a pairing operation module is arranged in the first earphone box, and the microprocessor can be further configured to call an earphone pairing program stored in the memory, and execute the following operations:
when the pairing operation module detects pairing operation triggered by a user, detecting whether the first earphone box is in communication connection with the second earphone box;
if the first earphone box is determined to be in communication connection with the second earphone box, triggering the double-ear pairing operation request;
and if the first earphone box and the second earphone box are determined not to be in communication connection, triggering the equipment pairing operation request.
Further, the operation of sending a binaural pairing message to a first headphone in the first headphone box if it is detected that the first headphone box is in a box-shaped state and it is determined that the second headphone box is in a box-shaped state through the communication connection with the second headphone box includes:
if the first earphone box is detected to be in the earphone box state and the second earphone box is determined to be in the earphone box state through the communication connection with the second earphone box, receiving pairing address information of the second earphone sent by the second earphone box;
and carrying the pairing address information in a binaural pairing message and sending the binaural pairing address information to the first earphone so that the first earphone can be paired with the second earphone based on the pairing address information.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where the storage medium stores a headset pairing program, and the headset pairing program, when executed by a processor, implements the steps of the headset pairing method described above.
The embodiments of the headset pairing device and the computer readable storage medium of the present invention can refer to the embodiments of the headset pairing method of the present invention, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (10)

1. A headset pairing method, applied to a first headset box, comprising the steps of:
if a double-ear pairing operation request is detected when the first earphone box is in communication connection with the second earphone box, detecting whether the first earphone box is in a box state;
and if the first earphone box is detected to be in a box state of the earphone and the second earphone box is determined to be in the box state of the earphone through the communication connection with the second earphone box, sending a double-ear pairing message to the first earphone in the first earphone box so that the first earphone can be paired with the second earphone in the second earphone box based on the double-ear pairing message.
2. The headphone pairing method as defined in claim 1, wherein detecting whether the first headphone case is in a headphone-in-case state if a binaural pairing operation request is detected while in communicative connection with the second headphone case further comprises:
and if the first earphone box is detected to be in a box state of the earphone, forwarding the double-ear pairing operation request to the second earphone box so that the second earphone box can detect whether the second earphone box is in the box state of the earphone according to the double-ear pairing operation request and return a detection result.
3. The headset pairing method of claim 2, wherein the step of detecting whether the first headset case is in a headset-in-case state further comprises:
if the first earphone box is detected not to be in a box state of the earphones, outputting first prompt information for indicating that the double-ear pairing is failed;
if the first earphone box is detected to be in a box state of the earphone, the binaural pairing operation request is forwarded to the second earphone box, so that the second earphone box detects whether the second earphone box is in the box state of the earphone according to the binaural pairing operation request and returns a detection result, and the method further includes:
and if the second earphone box is determined not to be in the box state of the earphone based on the detection result, outputting the first prompt message.
4. The method for pairing earphones according to claim 1, wherein the step of sending a binaural pairing message to a first earphone in the first earphone box if the first earphone box is detected to be in a box-shaped state and the second earphone box is determined to be in a box-shaped state through the communication connection with the second earphone box further comprises:
and if the first earphone is detected to be in a successful binaural matching state and the second earphone is determined to be in the successful binaural matching state through the communication connection with the second earphone box, outputting second prompt information for indicating that binaural matching is successful.
5. The headphone pairing method as defined in claim 4, wherein the step of outputting second prompt information indicating that binaural pairing is successful, if it is detected that the first headphone is in a binaural pairing success state and it is determined that the second headphone is in a binaural pairing success state through the communication connection with the second headphone case, further comprises:
when receiving a feedback message sent by the first earphone and indicating that the first earphone enters a pairing mode, sending an earphone state inquiry message to the first earphone, so that the first earphone feeds back a message used for indicating whether the first earphone is in a binaural pairing success state to the first earphone box;
and sending an earphone state query message to the second earphone box so that the second earphone box can send the earphone state query message to the second earphone and send a message for indicating whether the second earphone is in a successful binaural pairing state to the first earphone box.
6. The headset pairing method of claim 1, wherein the method further comprises:
if the first earphone box is determined to be in a box state when the device pairing operation request is detected, detecting whether the first earphone in the first earphone box is in a double-ear connection state or not;
if the first earphone is determined not to be in a binaural connection state, sending a first equipment pairing message to the first earphone so as to pair the first earphone and user equipment;
and if the first earphone is determined to be in a double-ear connection state, sending a second equipment pairing message to the first earphone so that the first earphone and an opposite ear establishing double-ear connection with the first earphone can be paired with the user equipment by the main earphone after the main earphone is determined.
7. The headset pairing method of claim 6, wherein the first headset case has a pairing operation module disposed therein, the method further comprising:
when the pairing operation module detects pairing operation triggered by a user, detecting whether the first earphone box is in communication connection with the second earphone box;
if the first earphone box is determined to be in communication connection with the second earphone box, triggering the double-ear pairing operation request;
and if the first earphone box and the second earphone box are determined not to be in communication connection, triggering the equipment pairing operation request.
8. The headset pairing method of any one of claims 1 to 7, wherein the step of sending a binaural pairing message to a first headset in the first headset box if the first headset box is detected to be in a headset box state and the second headset box is determined to be in a headset box state through the communication connection with the second headset box comprises:
if the first earphone box is detected to be in the earphone box state and the second earphone box is determined to be in the earphone box state through the communication connection with the second earphone box, receiving pairing address information of the second earphone sent by the second earphone box;
and carrying the pairing address information in a binaural pairing message and sending the binaural pairing address information to the first earphone so that the first earphone can be paired with the second earphone based on the pairing address information.
9. A headset pairing device, the headset pairing device comprising: memory, processor and headset pairing program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the headset pairing method as claimed in any one of claims 1 to 8.
10. A computer-readable storage medium, having stored thereon a headset pairing program which, when executed by a processor, carries out the steps of the headset pairing method according to any one of claims 1 to 8.
CN202210453920.3A 2022-04-27 2022-04-27 Earphone pairing method, equipment and computer readable storage medium Pending CN114866896A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210453920.3A CN114866896A (en) 2022-04-27 2022-04-27 Earphone pairing method, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210453920.3A CN114866896A (en) 2022-04-27 2022-04-27 Earphone pairing method, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114866896A true CN114866896A (en) 2022-08-05

Family

ID=82633120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210453920.3A Pending CN114866896A (en) 2022-04-27 2022-04-27 Earphone pairing method, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114866896A (en)

Similar Documents

Publication Publication Date Title
CN109587667B (en) Connection establishing method and device, equipment and storage medium
CN112203179B (en) TWS earphone, automatic reconnection method and device thereof, and computer storage medium
CN111757206B (en) Communication method between charging box and earphone, charging box, earphone and storage medium
CN110996405A (en) Earphone connection method, terminal, earphone box and computer readable storage medium
CN106713418B (en) Reset result confirmation method, device, server and mobile terminal
CN110933738B (en) Mode switching method and system of wireless earphone and TWS earphone system
CN109379773B (en) Switching method, first output device and second output device
KR102514692B1 (en) Electronic device suporting multiple wireless communication protocols and method therefor
CN110944315A (en) Data processing method, terminal device, Bluetooth device and storage medium
KR20200110086A (en) Method for establishing wireless communication link and electronic device supporting the same
JP5557950B1 (en) Wireless communication system and portable information terminal
KR20200106743A (en) Electronic device for transmitting response message in bluetooth network environment and method thereof
CN111885571A (en) Bluetooth device pairing method, device and storage medium
CN114500730B (en) Popup function control method, popup function control device and computer readable storage medium
CN114245362B (en) Device reconnection method and Bluetooth peripheral
US9497576B2 (en) NFC configuration method, NFC data transmission method, controller, and NFC controller
CN110572508A (en) Address book synchronization method and device, storage medium and electronic equipment
CN111464990B (en) Information processing method and first device
CN110944313B (en) Bluetooth connection method, device, storage medium and terminal
CN114866896A (en) Earphone pairing method, equipment and computer readable storage medium
CN116074679B (en) Method, device, equipment and storage medium for determining left and right states of intelligent earphone
KR20210020611A (en) Electronic device and method for providing service in electronic device
CN114217701B (en) Electronic equipment connection method and electronic equipment
CN113993076A (en) Earphone positioning method and device, earphone equipment 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