CN108810741B - Method and device for connecting double wireless earphones and wireless earphones - Google Patents

Method and device for connecting double wireless earphones and wireless earphones Download PDF

Info

Publication number
CN108810741B
CN108810741B CN201810613711.4A CN201810613711A CN108810741B CN 108810741 B CN108810741 B CN 108810741B CN 201810613711 A CN201810613711 A CN 201810613711A CN 108810741 B CN108810741 B CN 108810741B
Authority
CN
China
Prior art keywords
connection
terminal
wireless
wireless headset
earphone
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
CN201810613711.4A
Other languages
Chinese (zh)
Other versions
CN108810741A (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 CN201810613711.4A priority Critical patent/CN108810741B/en
Publication of CN108810741A publication Critical patent/CN108810741A/en
Application granted granted Critical
Publication of CN108810741B publication Critical patent/CN108810741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/05Detection of connection of loudspeakers or headphones to amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/07Applications of wireless loudspeakers or wireless microphones

Landscapes

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

Abstract

The invention discloses a method for connecting double wireless earphones, relates to the technical field of portable listening equipment, and is used for solving the problem that the time consumption of the user is too long when the existing double wireless earphones are connected; the method comprises the following steps: the method comprises the steps that when a first wireless earphone detects a preset event triggering connection operation, connection is established with a terminal; when an instruction of connecting a second wireless earphone is detected after the connection with the terminal is established, the connection with the second wireless earphone is established; the method changes the connection sequence of the double wireless earphones which are firstly connected with the ears and then connected with the terminal in the prior art into the sequence that the first wireless earphone is firstly connected with the terminal and then connected with the second wireless earphone after the connection with the terminal is successful, thereby reducing the time required for connecting the wireless earphones with the terminal and further improving the user experience; the invention also discloses a device for connecting the double wireless earphones, the TWS earphones and a computer readable storage medium, which have the beneficial effects.

Description

Method and device for connecting double wireless earphones and wireless earphones
Technical Field
The invention relates to the technical field of portable listening equipment, in particular to a method and a device for connecting double wireless earphones, a wireless earphone, a TWS earphone and a computer readable storage medium.
Background
The wireless earphone is more and more popular due to the convenience of wearing. The dual Wireless earphones (such as TWS (true Wireless stereo) earphones) are composed of a first Wireless earphone and a second Wireless earphone, and ears can play simultaneously, so that a real left and right channel stereo playing effect is realized. The existing double-wireless earphone transmits the audio signal of the mobile phone to the first wireless earphone through a Bluetooth link through a Bluetooth technology, and the first wireless earphone transmits the audio data to the second wireless earphone so as to achieve the purpose of simultaneous playing of two ears.
At present, the connection process of the dual wireless headsets is that the first wireless headset and the second wireless headset are firstly connected, and then the first wireless headset is connected with the mobile phone. However, this connection has the following disadvantages: first, for the situation that only the first wireless earphone needs to be connected, the connection in the prior art still needs to be performed according to the above process, that is, the second wireless earphone is connected first, and the step of connecting with the mobile phone can be performed after waiting for timeout, so that the connection process is slow, and at least one connection timeout time needs to be waited for. Secondly, for the situation that two wireless earphones need to be connected, the user needs to wait until the first wireless earphone and the second wireless earphone are connected first, and then the first wireless earphone and the mobile phone are connected, and only after the first wireless earphone and the mobile phone are connected successfully, the user can feel that the earphones are in an available state. Thus, it is at least as long as the user waits for the first wireless headset to establish a connection with the second wireless headset. Therefore, in either case, the user needs to wait for a longer period of time, resulting in a poor user experience.
Disclosure of Invention
The invention aims to provide a method and a device for connecting double wireless earphones, a wireless earphone, a TWS earphone and a computer readable storage medium, which can reduce the time required by connecting the wireless earphones and a terminal and further improve the use experience of a user.
In order to solve the above technical problem, the present invention provides a method for connecting a dual wireless headset, where the dual wireless headset includes a first wireless headset and a second wireless headset, and the method includes:
the first wireless earphone establishes connection with a terminal when detecting a preset event triggering connection operation;
and when detecting an instruction of connecting a second wireless earphone after the connection with the terminal is established, establishing connection with the second wireless earphone.
Optionally, before establishing the connection with the terminal, the method further includes:
judging whether the role information of the first wireless earphone is a main earphone;
and if so, executing the step of establishing connection with the terminal.
Optionally, the establishing of the connection with the terminal includes:
judging whether existing connection pairing information exists or not;
if so, establishing connection with the terminal by using the connection pairing information;
if not, when receiving a connection request sent by the terminal, establishing connection with the terminal.
Optionally, the establishing of the connection with the terminal includes:
deleting the existing connection pairing information when a re-pairing request is received;
and when receiving a connection request sent by the terminal, establishing connection with the terminal.
Optionally, when detecting an instruction to connect a second wireless headset after establishing connection with the terminal, establishing connection with the second wireless headset includes:
and when an instruction that the first wireless earphone is successfully connected with the terminal is detected, the first wireless earphone is connected with the second wireless earphone.
Optionally, after the connection with the second wireless headset is established, the method further includes:
and modifying the connection state into a state that the connection state can not be connected and discovered by other devices.
The invention also provides a device for connecting double wireless earphones, wherein the double wireless earphones comprise a first wireless earphone and a second wireless earphone, and the device comprises:
the first connection module is used for establishing connection with a terminal when the first wireless earphone detects a preset event triggering connection operation;
and the second connection module is used for establishing connection with the second wireless earphone when an ear-to-ear connection instruction is detected after the connection with the terminal is established.
Optionally, the apparatus for connecting dual wireless headsets further comprises:
the role judging module is used for judging whether the role information of the first wireless earphone is a main earphone or not;
the first connection module is specifically a module that the first wireless earphone detects a preset event triggering a connection operation and establishes a connection with the terminal when the first wireless earphone is a main earphone.
Optionally, the first connection module includes:
the judging unit is used for judging whether existing connection pairing information exists or not;
the active connection unit is used for establishing connection with the terminal by using the connection pairing information if the existing connection pairing information exists;
and the first passive connection unit is used for establishing connection with the terminal when receiving a connection request sent by the terminal if the existing connection pairing information does not exist.
Optionally, the first connection module includes:
a deleting unit, configured to delete existing connection pairing information when a re-pairing request is received;
and the second passive connection unit is used for establishing connection with the terminal when receiving the connection request sent by the terminal.
Optionally, the second connection module is specifically a module for establishing a connection between the first wireless headset and the second wireless headset when detecting an instruction that the first wireless headset and the terminal are successfully established.
Optionally, the apparatus for connecting dual wireless headsets further comprises:
and the state modification module is used for modifying the connection state into a state which can not be connected and discovered by other equipment.
The present invention also provides a wireless headset comprising: communication interface, memorizer, processor; the memory is used for storing a computer program, and the processor is used for implementing the steps of the method for connecting the dual-wireless earphone when executing the computer program.
The invention also provides a TWS headset, wherein the TWS headset comprises a first wireless headset and a second wireless headset, the first wireless headset being a wireless headset as described above.
Optionally, after the second wireless headset establishes connection with the first wireless headset, the connection state is modified to a state that the second wireless headset cannot be connected and discovered by other devices.
The invention also provides 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 dual wireless headset connection as described above.
The invention provides a method for connecting double wireless earphones, wherein the double wireless earphones comprise a first wireless earphone and a second wireless earphone, and the method comprises the following steps: the method comprises the steps that when a first wireless earphone detects a preset event triggering connection operation, connection is established with a terminal; and when detecting an instruction of connecting the second wireless earphone after the connection with the terminal is established, establishing connection with the second wireless earphone.
Therefore, the method changes the connection sequence of the first wireless earphone and the second wireless earphone in the prior art into the sequence that the first wireless earphone is connected with the terminal first and then is connected with the second wireless earphone after the first wireless earphone and the terminal are successfully connected, so that the time required for connecting the first wireless earphone and the terminal is reduced, namely the first wireless earphone is connected with the terminal first in any use scene, and the terminal does not need to wait for the time required for establishing the connection between the two wireless earphones, so that a user can feel the successful connection with the wireless earphone at the first time, and the user experience is improved; the invention also discloses a device for connecting the double wireless earphones, the TWS earphones and a computer readable storage medium, which have the beneficial effects.
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 connecting dual wireless headsets according to an embodiment of the invention;
fig. 2 is a block diagram of a device for connecting two wireless headsets according to an embodiment of the present invention;
fig. 3 is a block diagram of another dual wireless headset connection apparatus 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 any use scenario in the prior art, the connection process of the dual wireless headsets is that the first wireless headset is firstly connected with the second wireless headset, and then the first wireless headset is connected with the mobile phone. For example, in a scenario where only one wireless headset is required to work alone, the first wireless headset connected to the terminal needs to first connect to the second wireless headset, and the first wireless headset can perform the step of connecting to the mobile phone after waiting for timeout. And then or when the scene that two wireless earphones are needed to work together, the first wireless earphone is firstly connected with the second wireless earphone, and the first wireless earphone is connected with the mobile phone after the connection is successful. However, only after the first wireless earphone is successfully connected to the mobile phone, the user can feel that the earphone is in an available state, that is, the user can feel that the wireless earphone is successfully connected to the mobile phone. For the former scenario, the time it takes for the user to experience a successful connection is the time for a connection timeout plus the time for the first wireless headset to connect successfully with the terminal. For the latter scenario, the time it takes for the user to experience that the connection is successful is the time that the first wireless headset and the second wireless headset are successfully connected plus the time that the first wireless headset and the terminal are successfully connected. Therefore, in any scenario, the time required for the user to wait for the connection is longer than the actual time required for the first wireless headset to be successfully connected to the terminal, which results in poor user experience. In the embodiment of the present application, by changing the connection sequence of the dual wireless headsets, the time length for a user to wait for connection is reduced, so as to improve the user experience, specifically referring to fig. 1, where fig. 1 is a flowchart of a method for connecting the dual wireless headsets according to the embodiment of the present invention; the dual-wireless earphone comprises a first wireless earphone and a second wireless earphone, and the method specifically comprises the following steps:
s100, when the first wireless earphone detects a preset event triggering connection operation, connection is established with the terminal.
The execution main body of the embodiment is a first wireless headset, wherein the wireless headset capable of establishing connection with a terminal (such as a mobile phone) can be called the first wireless headset. The other wireless headset that is used in concert with the first wireless headset is referred to as the second wireless headset. In general, a primary headset in a TWS is connected to a terminal to implement a data interaction process, and a secondary headset is only wirelessly connected to the primary headset. The master earpiece now acts as the first wireless earpiece and the slave earpiece acts as the second wireless earpiece.
The embodiment does not limit the specific content of the preset event, and the user can set and modify the preset event according to the actual situation. For example, the preset event is the start of the first wireless earphone; or the connect button is pressed. Further, the embodiment does not limit the specific manner of detecting the preset event, and the user may determine the corresponding detection manner according to the specific content of the selected preset event. For example, if the preset event is the start of the first wireless headset, the corresponding detection mode may be to detect whether the start key is located at the start position, and if the start key is located at the start position, the preset event is considered to occur; or detecting whether the first wireless earphone is changed from the non-working state to the working state, and when the first wireless earphone is detected to be changed from the non-working state to the working state, considering that a preset event occurs.
The embodiment does not limit the execution body that establishes connection with the terminal when the first wireless headset detects a preset event that triggers the connection operation. For example, it may be that the first wireless headset first issues a first operation to the terminal to start establishing a connection; it is of course also possible that the terminal first issues a first operation to the first wireless headset to start setting up a connection. The present embodiment does not limit the specific process of establishing the connection between the first wireless headset and the terminal, and may refer to the current specific process of establishing the connection between the first wireless headset and the terminal.
Further, since only one of the two wireless headsets used in pairing currently can be connected to the terminal, the role information of the wireless headset that can be connected to the terminal is generally set as the master headset. That is, only the wireless headset in which the character information is the main headset can be connected to the terminal. Therefore, in order to improve the reliability and accuracy of the connection of the wireless headset to the terminal, it is necessary to determine whether the current wireless headset qualifies for connection with the terminal before establishing a connection with the terminal. Specifically, before establishing a connection with the terminal, the method further includes: judging whether the role information of the first wireless earphone is a main earphone; and if so, executing the step of establishing connection with the terminal. If not, the wireless headset is proved to be actually a second wireless headset, i.e. a slave headset, which cannot establish a connection with the terminal even if a preset event triggering a connection operation is detected.
Of course, in this embodiment, the determination of the role information of the wireless headset may be before the preset event triggering the connection operation is detected, that is, only the primary headset, that is, the first wireless headset, detects whether the preset event triggering the connection operation exists. For example, after the wireless headset is powered on, the role information of the wireless headset is automatically detected, whether the wireless headset is the first wireless headset is judged, if yes, whether a preset event triggering connection operation is detected is determined, and when the preset event triggering connection operation is detected, connection is established with the terminal. The embodiment does not limit the specific storage location of the character information, and for example, the character information corresponding to the wireless headset may be stored in a flash.
And S110, when the instruction of connecting the second wireless earphone is detected after the connection with the terminal is established, the connection with the second wireless earphone is established.
Specifically, when the first wireless headset and the terminal are successfully connected, the user can already realize data interaction with the first wireless headset, that is, the user can already start to use the first wireless headset normally. The connection time of the wireless headset to the terminal in this application is therefore only the time when the first wireless headset establishes a connection with the terminal. Which is significantly shorter than the connection time between the wireless headset and the terminal in the prior art (e.g., the time when the first wireless headset and the second wireless headset are successfully connected plus the time when the first wireless headset and the terminal are successfully connected or the time when the connection is over-time plus the time when the first wireless headset and the terminal are successfully connected). Therefore, the embodiment reduces the time length for the user to wait for connection by changing the connection sequence of the first wireless earphone and the terminal, thereby improving the user experience.
After the first wireless earphone is connected with the terminal, if the second wireless earphone needs to be continuously connected, corresponding operation can be carried out according to the actual needs of the user. For example, when the user only needs one wireless earphone (i.e., the first wireless earphone) to work alone, the connection is already completed after the first wireless earphone is connected to the terminal. When a user needs two wireless earphones (namely a first wireless earphone and a second wireless earphone) to work together, after the first wireless earphone is connected with a terminal, the first wireless earphone needs to be connected with the second wireless earphone. Specifically, when a connection instruction of the second wireless headset is detected after the connection with the terminal is established, the connection with the second wireless headset is established. After the connection is successfully established, the first wireless headset may send connection information (e.g., a MAC address, etc.) of the terminal to the second wireless headset, so that the second wireless headset may be subsequently used to establish a connection with the terminal when the second wireless headset is set as the first wireless headset (e.g., the role information of the second wireless headset is modified to a master role, at which time the second wireless headset becomes the first wireless headset). The first wireless headset may also store connection information (e.g., MAC address, etc.) for the second wireless headset; the second wireless headset may also store connection information (e.g., MAC address, etc.) of the first wireless headset for use in establishing a connection between the two wireless headsets at a later time.
The embodiment does not limit the specific operation after the connection between the first wireless earphone and the second wireless earphone fails. The user can set according to the use habit of the user. For example, if the connection between the first wireless earphone and the second wireless earphone fails, the first wireless earphone works alone.
The embodiment does not limit the form of the instruction for connecting the second wireless headset, for example, the instruction for connecting the second wireless headset may be a specific high level or low level; or a small piece of data code; or a label, etc., which may be determined as the case may be.
The embodiment is not limited to the execution subject for generating the instruction for connecting the second wireless headset, and for example, the execution subject may be the first wireless headset for generating the instruction for connecting the second wireless headset, or the execution subject may be the second wireless headset for generating the instruction for connecting the second wireless headset, or the execution subject may be the terminal for generating the instruction for connecting the second wireless headset. As long as the first wireless headset detects an instruction to connect the second wireless headset, a connection is established with the second wireless headset. Further, the present embodiment does not limit the specific manner of generating the instruction for connecting the second wireless headset. The user can determine the corresponding generation mode according to different selected execution subjects. For example, when the first wireless headset is used as an execution subject, when an instruction that the first wireless headset and the terminal are successfully connected is detected, the first wireless headset and the second wireless headset are connected. And at the moment, connecting the second wireless earphone, namely, successfully establishing the connection between the first wireless earphone and the terminal.
The present embodiment does not limit the execution subject of the first operation of establishing the connection between the first wireless headset and the second wireless headset. For example, the first wireless headset first sends a first operation to the second wireless headset to start establishing a 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 a connection. In this embodiment, a specific process of establishing a connection between the first wireless headset and the second wireless headset is not limited, and the current specific process of establishing a connection between the first wireless headset and the second wireless headset may be referred to.
Further, the embodiment does not limit the corresponding subsequent operation when the connection between the first wireless earphone and the terminal fails to be established, and the user can set the operation according to actual requirements. For example, when the connection between the first wireless earphone and the terminal fails, the first wireless earphone is set to be in a waiting connection state; or when the first wireless earphone fails to establish connection with the terminal, establishing connection with the second wireless earphone. Or when the first wireless earphone fails to establish connection with the terminal, the connection request is sent to the terminal at regular time.
Further, when the user only needs one wireless earphone (i.e. the first wireless earphone) to work alone, the connection is already completed after the first wireless earphone is connected with the terminal. In order to avoid that the first wireless headset is connected by other devices, it is preferable that the connection state of the first wireless headset is modified to a state that it cannot be connected and discovered by other devices. At this point the other devices will not scan for the first wireless headset. When a user needs two wireless earphones (namely a first wireless earphone and a second wireless earphone) to work together, the first wireless earphone is connected with a terminal, and the first wireless earphone and the second wireless earphone are connected to avoid the first wireless earphone and/or the second wireless earphone being connected by other equipment. Preferably, the connection state of the first wireless headset is modified to a state in which it is not connectable and discoverable by other devices. And/or modifying the connection state of the second wireless headset to a non-connectable and discoverable state by other devices.
Based on the above technical solution, the method for connecting two wireless earphones provided by the embodiments of the present invention solves the problems in the prior art that the connection process is long and the user experience is poor because the first wireless earphone needs to connect the second wireless earphone first and then connect the terminal after the connection is overtime or successful by changing the connection sequence of the first wireless earphone and the terminal. For the user, the connection mode of the invention only can see the connection process of the first wireless earphone and the terminal, namely, the time for the user to wait for connecting the wireless earphone is shortened.
Based on the foregoing embodiment, in order to further increase the speed of connecting the first wireless headset to the terminal, the process of establishing connection with the terminal in this embodiment may include:
judging whether existing connection pairing information exists or not;
if so, establishing connection with the terminal by using the connection pairing information;
if not, when receiving a connection request sent by the terminal, establishing connection with the terminal.
Specifically, in this embodiment, before establishing a connection with a terminal, the first wireless headset needs to first determine whether existing connection pairing information exists, and if so, a connection request may be directly initiated to the corresponding terminal according to the connection pairing information. For example, when the first wireless headset stores the connection pairing information of the previously connected mobile phone, the connection request may be directly sent to the mobile phone by using the MAC address in the connection pairing information. Thus, the time for the first wireless earphone to wait for connection can be reduced, and the time for the first wireless earphone to establish connection with the terminal is further shortened. When the first wireless earphone does not have the existing connection pairing information, the first wireless earphone waits to be connected by the terminal, namely waits to receive a connection request sent by the terminal. The first wireless headset can only establish a connection with the terminal when it receives a connection request sent by the terminal. At this time, the first wireless headset may save connection pairing information with the terminal for subsequent connection use.
The present embodiment does not limit the storage location of the connection pairing information, for example, to store the connection pairing information in a flash. Further, the present embodiment also does not limit the number of connection pairing information, and usually only has one connection pairing information (at this time, the old connection pairing information may be automatically overwritten each time new connection pairing information is encountered). Of course, the present embodiment also does not limit the rule of establishing connection with the terminal using the connection pairing information when there are a plurality of connection pairing information. For example, the first connection pairing information may be selected, that is, the terminal corresponding to the first connection pairing information is connected.
The following describes the above process by using a specific example, where the terminal is specifically a mobile phone, and the process is specifically as follows:
1. and after the two wireless earphones are started, judging whether the first wireless earphone is the first wireless earphone or not through role information stored in the flash.
2. And the first wireless earphone judges whether a matched mobile phone exists or not according to the connection matching information stored in the flash.
3. If the connection pairing information exists, the first wireless earphone is actively connected with the mobile phone; if there is no connection pairing information, the first wireless headset waits to be connected by the handset.
4. After the first wireless earphone is successfully connected with the mobile phone, the first earphone records information such as the MAC address of the mobile phone.
5. And the first wireless earphone is connected with the second wireless earphone, and after the connection is successful, the information such as the MAC address of the mobile phone is sent to the second wireless earphone. And stores information such as the MAC address of the second wireless headset. If the connection is over time, the first wireless headset operates alone.
6. The second wireless earphone stores the information such as the MAC addresses of the mobile phone and the first wireless earphone.
7. The first wireless headset and the second wireless headset change the connection state to a non-connectable and discoverable state by other devices.
Based on any embodiment described above, in order to improve the accuracy of the connection of the first wireless headset with the terminal. In this embodiment, the establishing of the connection between the first wireless earphone and the terminal may include:
deleting the existing connection pairing information when a re-pairing request is received;
and when receiving a connection request sent by the terminal, establishing connection with the terminal.
In particular, there may be more than one terminal connected to the first wireless headset, such as a user's mobile phone or tablet, or a mobile phone of the user's family, etc. Therefore, if the first wireless headset determines that the connection pairing information exists, the first wireless headset may be connected to the terminal according to the connection pairing information, and the connection may be improper. The embodiment avoids the situation of improper connection through the re-pairing request. For example, when a user needs to connect the first wireless headset to a new terminal or the terminal connected with the first wireless headset at this time is inconsistent with the terminal connected with the first wireless headset at the previous time, that is, the user needs to change the terminal connected with the first wireless headset, a re-pairing request may be sent to the first wireless headset, when the first wireless headset receives the re-pairing request, the existing connection pairing information may be deleted, the terminal is waited to send the connection request, and when the connection request sent by the terminal is received, the connection is established with the terminal. Of course, at this time, the wireless headset may also send a re-pairing request to the second wireless headset at the same time, so that the second wireless headset also deletes the existing connection pairing information.
The embodiment does not limit the form of the re-pairing request, for example, the re-pairing request may be a specific high level or a specific low level; or a small piece of data code; or a label, etc., which may be determined as the case may be.
The embodiment does not limit the execution subject for generating the re-pairing request, and may be, for example, the first wireless headset, or a charging device. Further, the embodiment also does not limit the manner of generating the re-pairing request, and may be triggered by a key, for example.
The above process is described below by using a specific example, in this example, the terminal is specifically a mobile phone, the charging device is a charging box, and the process is specifically as follows:
1. and after the two wireless earphones are started, judging whether the first wireless earphone is the first wireless earphone or not through role information stored in the flash.
2. And sending a message through the charging box, and erasing the connection pairing information stored in the earphone when the first wireless earphone detects the re-pairing request to wait for being connected by the mobile phone.
3. After the first wireless earphone is successfully connected with the mobile phone, the first earphone records information such as the MAC address of the mobile phone.
4. And the first wireless earphone is connected with the second wireless earphone, and after the connection is successful, the information such as the MAC address of the mobile phone is sent to the second wireless earphone. And stores information such as the MAC address of the second wireless headset. If the connection is over time, the first wireless headset operates alone.
5. The second wireless earphone stores the information such as the MAC addresses of the mobile phone and the first wireless earphone.
6. The first wireless headset and the second wireless headset change the connection state to a non-connectable and discoverable state by other devices.
The following describes a dual wireless headset connection device, a wireless headset, a TWS headset, and a computer readable storage medium according to embodiments of the present invention, and the dual wireless headset connection device, the wireless headset, the TWS headset, and the computer readable storage medium described below may be referred to in correspondence with the method for pairing the wireless headset described above.
Referring to fig. 2, fig. 2 is a block diagram of a device for connecting dual wireless headsets according to an embodiment of the present invention, wherein the dual wireless headsets include a first wireless headset and a second wireless headset, and the device may include:
a first connection module 100, configured to establish a connection with a terminal when a first wireless headset detects a preset event that triggers a connection operation;
and a second connection module 200, configured to establish a connection with a second wireless headset when an ear-to-ear connection instruction is detected after the connection with the terminal is established.
Based on the above embodiment, the apparatus may further include:
the role judging module is used for judging whether the role information of the first wireless earphone is a main earphone or not;
the first connection module is specifically a module that the first wireless headset detects a preset event triggering a connection operation and establishes a connection with the terminal when the first wireless headset is a main headset.
Based on any of the above embodiments, the first connection module 100 includes:
the judging unit is used for judging whether existing connection pairing information exists or not;
the active connection unit is used for establishing connection with the terminal by using the connection pairing information if the existing connection pairing information exists;
the first passive connection unit is used for establishing connection with the terminal when receiving a connection request sent by the terminal if the existing connection pairing information does not exist.
Based on any of the above embodiments, the first connection module 100 includes:
a deleting unit, configured to delete existing connection pairing information when a re-pairing request is received;
and the second passive connection unit is used for establishing connection with the terminal when receiving the connection request sent by the terminal.
Based on any of the above embodiments, the second connection module 200 is specifically a module for establishing a connection between the first wireless headset and the second wireless headset when detecting an instruction that the first wireless headset and the terminal successfully establish a connection.
Referring to fig. 3, fig. 3 is a block diagram of another dual wireless earphone connection device according to an embodiment of the present invention; the apparatus may further include:
a state modification module 300, configured to modify the connection state to a state that is not connectable to other devices and is not discoverable. In particular, the second wireless headset may also be provided with a state modification module 300.
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 connecting a dual wireless headset according to any of the above embodiments when executing the computer program. If the processor is used for executing the computer program, the first wireless earphone is connected with the terminal when detecting a preset event triggering the connection operation; and when detecting an instruction of connecting the second wireless earphone after the connection with the terminal is established, establishing connection with the second wireless earphone.
An embodiment of the present invention further provides a TWS headset, where the TWS headset includes a first wireless headset and a second wireless headset, and the first wireless headset is the wireless headset according to the above embodiment.
Based on the above embodiment, the second wireless headset modifies the connection state to the non-connectable and discoverable state by other devices after establishing connection with the first wireless headset.
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 for dual wireless headset connection according to any of the embodiments described above. If the computer program is executed by the processor, the first wireless earphone is connected with the terminal when detecting a preset event triggering the connection operation; and when detecting an instruction of connecting the second wireless earphone after the connection with the terminal is established, establishing connection with the second wireless earphone.
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 connections described in the above embodiments are all wireless connections, such as BT connections, or BLE connections. The embodiments in the present application do not limit the connection process, and reference may be made to the prior art.
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 is provided for a method and apparatus for dual wireless headset connection, a wireless headset, a TWS 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 dual wireless headset connection, the dual wireless headset comprising a first wireless headset and a second wireless headset, comprising:
the first wireless earphone establishes connection with a terminal when detecting a preset event triggering connection operation;
when a command of connecting a second wireless earphone is detected after the connection with the terminal is established, the connection with the second wireless earphone is established; after the connection is successfully established, sending the connection information with the terminal to the second wireless earphone so as to be used for establishing connection with the terminal when the second wireless earphone is set as the first wireless earphone subsequently;
before establishing connection with the terminal, the method further comprises the following steps:
judging whether the role information of the first wireless earphone is a main earphone;
and if so, executing the step of establishing connection with the terminal.
2. The method of claim 1, wherein establishing the connection with the terminal comprises:
judging whether existing connection pairing information exists or not;
if so, establishing connection with the terminal by using the connection pairing information;
if not, when receiving a connection request sent by the terminal, establishing connection with the terminal.
3. The method of claim 1, wherein establishing the connection with the terminal comprises:
deleting the existing connection pairing information when a re-pairing request is received;
and when receiving a connection request sent by the terminal, establishing connection with the terminal.
4. The method of claim 1, wherein the establishing a connection with a second wireless headset when a connection second wireless headset connection instruction is detected after the establishing a connection with the terminal comprises:
and when an instruction that the first wireless earphone is successfully connected with the terminal is detected, the first wireless earphone is connected with the second wireless earphone.
5. The method of claim 1, wherein after establishing the connection with the second wireless headset, further comprising:
and modifying the connection state into a state that the connection state can not be connected and discovered by other devices.
6. An apparatus for dual wireless headset connection, the dual wireless headset comprising a first wireless headset and a second wireless headset, comprising:
the first connection module is used for establishing connection with a terminal when the first wireless earphone detects a preset event triggering connection operation;
the second connection module is used for establishing connection with the second wireless earphone when an ear-to-ear connection instruction is detected after the connection with the terminal is established; after the connection is successfully established, sending the connection information with the terminal to the second wireless earphone so as to be used for establishing connection with the terminal when the second wireless earphone is set as the first wireless earphone subsequently;
further comprising:
the role judging module is used for judging whether the role information of the first wireless earphone is a main earphone or not;
the first connection module is specifically a module that the first wireless earphone detects a preset event triggering a connection operation and establishes a connection with the terminal when the first wireless earphone is a main earphone.
7. The dual wireless headset connected device of claim 6, wherein the first connection module comprises:
the judging unit is used for judging whether existing connection pairing information exists or not;
the active connection unit is used for establishing connection with the terminal by using the connection pairing information if the existing connection pairing information exists;
and the first passive connection unit is used for establishing connection with the terminal when receiving a connection request sent by the terminal if the existing connection pairing information does not exist.
8. The dual wireless headset connected device of claim 6, wherein the first connection module comprises:
a deleting unit, configured to delete existing connection pairing information when a re-pairing request is received;
and the second passive connection unit is used for establishing connection with the terminal when receiving the connection request sent by the terminal.
9. The apparatus of claim 6, wherein the second connection module is specifically a module for establishing a connection between the first wireless headset and the second wireless headset when an instruction that the first wireless headset and the terminal are successfully connected is detected.
10. The dual wireless headset connected device of claim 6, further comprising:
and the state modification module is used for modifying the connection state into a state which can not be connected and discovered by other equipment.
11. 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 dual wireless headset connection according to any of claims 1 to 5 when executing the computer program.
12. A TWS headset, wherein the TWS headset comprises a first wireless headset and a second wireless headset, wherein the first wireless headset is a wireless headset according to claim 11.
13. The TWS headset of claim 12, wherein the second wireless headset modifies a connection state to a non-connectable and discoverable state by other devices after establishing a connection with the first wireless headset.
14. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method of dual wireless headset connection according to any of the claims 1 to 5.
CN201810613711.4A 2018-06-14 2018-06-14 Method and device for connecting double wireless earphones and wireless earphones Active CN108810741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810613711.4A CN108810741B (en) 2018-06-14 2018-06-14 Method and device for connecting double wireless earphones and wireless earphones

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810613711.4A CN108810741B (en) 2018-06-14 2018-06-14 Method and device for connecting double wireless earphones and wireless earphones

Publications (2)

Publication Number Publication Date
CN108810741A CN108810741A (en) 2018-11-13
CN108810741B true CN108810741B (en) 2021-01-29

Family

ID=64087091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810613711.4A Active CN108810741B (en) 2018-06-14 2018-06-14 Method and device for connecting double wireless earphones and wireless earphones

Country Status (1)

Country Link
CN (1) CN108810741B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109286870A (en) * 2018-11-23 2019-01-29 歌尔科技有限公司 A kind of pairing control method, device and the wireless headset of wireless headset
US11653398B2 (en) 2018-11-30 2023-05-16 Huawei Technologies Co., Ltd. Bluetooth connection method and device
CN109561414B (en) * 2018-12-21 2022-10-11 歌尔科技有限公司 Wireless earphone pairing method and device and wireless earphone
CN110933616B (en) 2019-11-21 2022-05-17 昆山泰芯微电子有限公司 Wireless earphone pairing method and system
CN111182518A (en) * 2019-12-31 2020-05-19 联想(北京)有限公司 Processing method and device
CN111447600B (en) * 2020-03-31 2023-04-25 歌尔科技有限公司 Audio sharing method of wireless earphone, terminal equipment and storage medium
CN112753276A (en) * 2020-06-16 2021-05-04 深圳市大疆创新科技有限公司 Role control method, device and equipment
CN111757307B (en) * 2020-06-29 2023-04-18 维沃移动通信有限公司 Wireless earphone control method, wireless earphone and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689876A (en) * 2007-07-13 2010-03-31 伯斯有限公司 Point-to-point ANTENN AUDIO transmission
CN103391118A (en) * 2013-07-23 2013-11-13 广东欧珀移动通信有限公司 Bluetooth headset and audio sharing method by virtue of Bluetooth headsets
CN103825635A (en) * 2014-03-11 2014-05-28 宁波翼动通讯科技有限公司 Method for sharing audio by Bluetooth headsets
CN106293597A (en) * 2015-06-05 2017-01-04 苹果公司 ANTENNAUDIO output device
CN107145330A (en) * 2017-04-26 2017-09-08 歌尔科技有限公司 A kind of method and apparatus for connecting ears bluetooth earphone
CN107708014A (en) * 2017-11-08 2018-02-16 深圳市沃特沃德股份有限公司 Method and device for automatically switching master-slave relation of wireless earphone and wireless earphone

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689876A (en) * 2007-07-13 2010-03-31 伯斯有限公司 Point-to-point ANTENN AUDIO transmission
CN103391118A (en) * 2013-07-23 2013-11-13 广东欧珀移动通信有限公司 Bluetooth headset and audio sharing method by virtue of Bluetooth headsets
CN103825635A (en) * 2014-03-11 2014-05-28 宁波翼动通讯科技有限公司 Method for sharing audio by Bluetooth headsets
CN106293597A (en) * 2015-06-05 2017-01-04 苹果公司 ANTENNAUDIO output device
CN107145330A (en) * 2017-04-26 2017-09-08 歌尔科技有限公司 A kind of method and apparatus for connecting ears bluetooth earphone
CN107708014A (en) * 2017-11-08 2018-02-16 深圳市沃特沃德股份有限公司 Method and device for automatically switching master-slave relation of wireless earphone and wireless earphone

Also Published As

Publication number Publication date
CN108810741A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN108810741B (en) Method and device for connecting double wireless earphones and wireless earphones
CN108718467B (en) Voice data transmission method, wireless headset and TWS headset
US11659620B2 (en) Data transmission method and device
US20210243831A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
CN108810697B (en) Wireless earphone pairing method and device and wireless earphone
CN108696784B (en) Wireless earphone role switching method, wireless earphone and TWS earphone
CN108429979B (en) Charging box upgrading method, charging box, wireless headset and TWS headset
US11368777B2 (en) Method and system for upgrading program of TWS headset, and TWS headset
CN108449746B (en) BT connection establishing method, wireless earphone and TWS earphone
CN112055349B (en) Wireless communication method and Bluetooth device
EP3955694A1 (en) Method and apparatus for back-connecting bluetooth device, terminal and computer-readable storage medium
CN109547897A (en) A kind of method, apparatus, system and the wireless headset box of wireless headset connection
CN115190197B (en) Bluetooth headset-based communication method and device and storage medium
US20200413456A1 (en) Method for pairing and connecting secondary earphone with sound source device
CN113473291A (en) Communication method, earphone cabin and WIFI earphone
CN110289919B (en) Signal guarantee processing method, device, equipment and storage medium
WO2018129804A1 (en) Method, cloud platform and terminal for synchronizing call records
CN110764806A (en) TWS earphone and upgrading method and device thereof
WO2022267269A1 (en) Call processing method and apparatus, and system, electronic device and medium
WO2022061551A1 (en) Address transmission method, bluetooth chip, bluetooth headset, and electronic device
CN112104943B (en) Address transmission method, Bluetooth chip, Bluetooth headset and electronic equipment
CN107528973B (en) Data processing method, terminal and audio shield
CN111491278A (en) Method and terminal for playing audio through Bluetooth device
CN114866526B (en) Earphone upgrading method and wireless earphone
CN114020303A (en) Charging bin upgrading method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant