CN114501239B - Master-slave switching method and device of earphone, bluetooth earphone and storage medium - Google Patents

Master-slave switching method and device of earphone, bluetooth earphone and storage medium Download PDF

Info

Publication number
CN114501239B
CN114501239B CN202210178812.XA CN202210178812A CN114501239B CN 114501239 B CN114501239 B CN 114501239B CN 202210178812 A CN202210178812 A CN 202210178812A CN 114501239 B CN114501239 B CN 114501239B
Authority
CN
China
Prior art keywords
bluetooth
headset
earphone
bluetooth headset
sound signal
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
CN202210178812.XA
Other languages
Chinese (zh)
Other versions
CN114501239A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210178812.XA priority Critical patent/CN114501239B/en
Publication of CN114501239A publication Critical patent/CN114501239A/en
Application granted granted Critical
Publication of CN114501239B publication Critical patent/CN114501239B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/033Headphones for stereophonic communication
    • 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
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/03Connection circuits to selectively connect loudspeakers or headphones to amplifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a master-slave switching method and device of an earphone, a Bluetooth earphone and a storage medium, and relates to the technical field of electronic equipment. The method comprises the following steps: the method comprises the steps of obtaining a sound signal collected by a first microphone of a first Bluetooth headset to serve as a first sound signal, obtaining a sound signal collected by a second microphone of a second Bluetooth headset to serve as a second sound signal through a second Bluetooth link between the first Bluetooth headset and the second Bluetooth headset, and sending a switching instruction to the second Bluetooth headset through the second Bluetooth link under the condition that the first sound signal and the second sound signal meet preset signal conditions, wherein the switching instruction is used for indicating the second Bluetooth headset to serve as a main headset to establish a Bluetooth link with electronic equipment. According to the application, the switching control of the master earphone and the slave earphone is performed based on the sound signals acquired by the master earphone and the slave earphone, so that the accuracy of switching the master earphone and the slave earphone can be improved, and the cost of the Bluetooth earphone can be reduced.

Description

Master-slave switching method and device of earphone, bluetooth earphone and storage medium
Technical Field
The present application relates to the field of electronic devices, and in particular, to a master-slave switching method and apparatus for an earphone, a bluetooth earphone, and a storage medium.
Background
With the development of science and technology, electronic devices are increasingly widely used, and have more and more functions, and become one of the necessities in daily life. Currently, users often pick up sound signals using bluetooth headphones, particularly truly wireless stereo (True Wireless Stereo, TWS) headphones with wireless separation of left and right channels, when picking up sound signals using electronic devices. TWS headphones can generally be divided into master headphones and slave headphones, but current master-slave headphones options have difficulty guaranteeing good acquisition of sound signals, and audio quality for transmission to electronic devices.
Disclosure of Invention
In view of the above, the present application provides a master-slave switching method, device, electronic device and storage medium for headphones, so as to solve the above problem.
In a first aspect, an embodiment of the present application provides a master-slave switching method of an earphone, which is applied to a first bluetooth earphone, where when the first bluetooth earphone is used as a master earphone and a first bluetooth link is established with an electronic device, a second bluetooth earphone is used as a slave earphone and is established with a second bluetooth link with the first bluetooth earphone, where the first bluetooth earphone includes a first microphone, and the second bluetooth earphone includes a second microphone, and the method includes: acquiring a sound signal acquired by the first microphone as a first sound signal; acquiring sound signals acquired by the second microphone through the second Bluetooth link to serve as second sound signals; and under the condition that the first sound signal and the second sound signal meet preset signal conditions, sending a switching instruction to the second Bluetooth headset through the second Bluetooth link, wherein the switching instruction is used for indicating the second Bluetooth headset to be used as a main headset to establish a Bluetooth link with the electronic equipment.
In a second aspect, an embodiment of the present application provides a master-slave switching device of an earphone, which is applied to a first bluetooth earphone, where when the first bluetooth earphone is used as a master earphone and a first bluetooth link is established with an electronic device, a second bluetooth earphone is used as a slave earphone and is established with the first bluetooth earphone, the first bluetooth earphone includes a first microphone, and the second bluetooth earphone includes a second microphone, where the device includes: the first sound signal acquisition module is used for acquiring the sound signal acquired by the first microphone and taking the sound signal as a first sound signal; the second sound signal acquisition module is used for acquiring the sound signal acquired by the second microphone through the second Bluetooth link to be used as a second sound signal; the master-slave earphone switching module is used for sending a switching instruction to the second Bluetooth earphone through the second Bluetooth link under the condition that the first sound signal and the second sound signal meet the preset signal condition, and the switching instruction is used for indicating the second Bluetooth earphone to be used as a master earphone to establish a Bluetooth link with the electronic equipment.
In a third aspect, embodiments of the present application provide a bluetooth headset comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that when executed by the processor perform the above-described method.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having program code stored therein, the program code being callable by a processor to perform the above method.
In the embodiment of the application, the main earphone is based on the sound signals collected by the microphone of the main earphone and the sound signals collected by the microphone of the slave earphone, so that whether the switching of the main earphone and the slave earphone is needed is determined, the problem of cost caused by the arrangement of other sensors for detecting wearing can be avoided, and the cost of the Bluetooth earphone can be reduced. In addition, because the main earphone is based on the sound signals collected by the microphone of the main earphone and the sound signals collected by the microphone of the auxiliary earphone, the problem that other sensors used for detecting wearing are arranged to detect errors can be avoided, and the accuracy rate of switching between the main earphone and the auxiliary earphone can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application environment of a master-slave switching method of an earphone according to an embodiment of the present application;
Fig. 2 is a schematic flow chart of a master-slave switching method of an earphone according to an embodiment of the present application;
Fig. 3 is a schematic flow chart of a master-slave switching method of an earphone according to an embodiment of the present application;
Fig. 4 is a schematic flow chart of a master-slave switching method of an earphone according to an embodiment of the present application;
fig. 5 is a schematic flow chart of a master-slave switching method of an earphone according to an embodiment of the present application;
Fig. 6 is a schematic flow chart of a master-slave switching method of an earphone according to an embodiment of the present application;
fig. 7 is a schematic flow chart of a master-slave switching method of an earphone according to an embodiment of the present application;
fig. 8 is a schematic flow chart of a master-slave switching method of an earphone according to an embodiment of the present application;
fig. 9 is a timing chart of a master-slave switching method of the earphone according to an embodiment of the present application;
Fig. 10 is a block diagram of a master-slave switching device of an earphone according to an embodiment of the present application;
fig. 11 shows a block diagram of an electronic device for performing a master-slave switching method of a headset according to an embodiment of the application;
Fig. 12 shows a storage unit for storing or carrying program code for implementing a master-slave switching method of an earphone according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present application with reference to the accompanying drawings.
It should be noted that: in the examples of the present application, "first," "second," etc. are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence.
Currently, most electronic devices, such as computers, mobile phones, etc., can play and pick up audio data. Along with the development of science and technology and the increase of user demands, the electronic device can be connected with an external audio acquisition device, so that the electronic device can acquire audio data (sound signals) through the external audio acquisition device. The audio capture device may include, among other things, headphones with a microphone, and the like. The audio collection device can collect audio data and transmit the collected audio data to the electronic device for processing, for example, the collected audio data can be transmitted to other electronic devices through the network by the electronic device. The electronic device may be connected to the audio capturing device in a wired manner or a wireless manner, which is not specifically limited herein.
When actually using an audio collection device to collect audio data and transmit the audio data to an electronic device, a user often uses a headset in a wireless communication manner to collect and transmit the audio data, for example, using a headset in wireless fidelity (WIRELESS FIDELITY, WIFI) communication or using a headset in Bluetooth (BT) communication. Particularly, for users with higher demands, the acquisition and playing of the audio data can be performed through TWS headphones with wireless separation of the left channel and the right channel. The TWS earphone can realize the real wireless separation of the left channel and the right channel of the Bluetooth, namely, the two earphones of the TWS earphone do not need wired connection.
The TWS earphone consists of a master earphone and a slave earphone, and the working principle is that the electronic equipment is connected with the master earphone through Bluetooth, and the master earphone is connected with the slave earphone through a near magnetic field Induction technology (NEAR FIELD MAGNETIC Induction, NFMI) or TWS protocol. In a downlink scene, data signals on the electronic equipment are transmitted to a master earphone through Bluetooth, and then the master earphone is transmitted to a slave earphone through NFMI or TWS protocols, so that the left earphone and the right earphone can receive the data signals transmitted by the electronic equipment; or in the downlink scenario, the data signal on the electronic device is transmitted to the master earphone through bluetooth, and the slave earphone can be disguised as the master earphone to intercept and receive the data signal sent to the master earphone by the electronic device, or the slave earphone can also receive the data signal sent to the master earphone by the electronic device forwarded by the master earphone. In the uplink scene, the master earphone directly works and the slave earphone does not work, and the master earphone directly transmits the collected audio data to the electronic equipment through Bluetooth.
In order to ensure that the TWS headset operates in the main headset mode in a single headset usage scenario of the TWS headset, the master-slave relationship of the TWS headset is determined by wear detection, which is typically implemented by a light sensor or a capacitance sensor, but may have detection errors. For example, when the main earphone is taken down and placed on the desktop in the conversation process of wearing the TWS earphone, the main earphone is possibly placed on the desktop and is erroneously detected to be worn on the ear by the main earphone, so that the main earphone and the auxiliary earphone cannot be switched, the main earphone is far away from a user, the collected sound signal is weak, the user only wears the auxiliary earphone, conversation sound cannot be picked up, the problem that the feedback conversation volume of the opposite side is small or soundless is caused, and the conversation quality of the user is reduced.
In order to solve the problems, the inventor discovers through long-term research and provides a master-slave switching method and device of the earphone, a Bluetooth earphone and a storage medium, and the master-slave switching control is performed on the basis of sound signals acquired by the master earphone and the slave earphone, so that the accuracy of master-slave earphone switching can be improved, and the cost of the Bluetooth earphone can be reduced. The specific master-slave switching method of the earphone is described in detail in the following embodiments.
The following will describe an application environment of a master-slave switching method that can be used for the earphone provided by the embodiment of the present application.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an application environment of a master-slave switching method for an earphone according to an embodiment of the present application. As shown in fig. 1, it includes a first bluetooth headset 100, a second bluetooth headset 200, and an electronic device 300. As one way, the first bluetooth headset 100 may be used as a master headset to establish a first bluetooth link with the electronic device 300 for audio data transmission, and the second bluetooth headset 200 may be used as a slave headset to establish a second bluetooth link with the first bluetooth headset 100 for audio data transmission, at which time the second bluetooth headset 200 may be used to establish a listening link with the electronic device 300 for listening to audio data transmission between the electronic device 300 and the first bluetooth headset 100. As yet another way, the second bluetooth headset 200 may be used as a master headset to establish a first bluetooth link with the electronic device 300 for audio data transmission, the first bluetooth headset 100 may be used as a slave headset to establish a second bluetooth link with the second bluetooth headset 200 for audio data transmission, and at this time, the first bluetooth headset 100 may be used to establish a listening link with the electronic device 300 for listening to audio data transmission between the electronic device 300 and the second bluetooth headset 200.
In some embodiments, the first bluetooth headset 100 may be a headset that plays left channel audio data, and the second bluetooth headset 200 may be a headset that plays right channel audio data; the second bluetooth headset 200 may be a headset that plays left channel audio data, and the first bluetooth headset 100 may be a headset that plays right channel audio data.
Referring to fig. 2, fig. 2 is a flow chart illustrating a master-slave switching method of an earphone according to an embodiment of the application. The method is used for performing switching control of the master earphone and the slave earphone based on sound signals acquired by the master earphone and the slave earphone, so that the accuracy of switching of the master earphone and the slave earphone can be improved, and the cost of the Bluetooth earphone can be reduced. In a specific embodiment, the master-slave switching method of the headset is applied to a master-slave switching device 400 of the headset as shown in fig. 10 and a first bluetooth headset 100 (fig. 11) configured with the master-slave switching device 400 of the headset. In the following, a specific procedure of the present embodiment will be described by taking a bluetooth headset as an example, and it will be understood that the bluetooth headset applied in the present embodiment may include a real wireless stereo (true wireless stereo, TWS) headset. In this embodiment, when the first bluetooth headset is used as the master headset and the electronic device establishes a first bluetooth link, the second bluetooth headset is used as the slave headset and establishes a second bluetooth link with the first bluetooth headset, and the first bluetooth headset includes a first microphone, and the second bluetooth headset includes a second microphone. The following will describe the flow shown in fig. 2 in detail, and the master-slave switching method of the earphone specifically may include the following steps:
Step S110: and acquiring the sound signal acquired by the first microphone as a first sound signal.
In this embodiment, a first bluetooth link is established between a first bluetooth headset serving as a main headset and an electronic device. At this time, the second bluetooth headset establishes a second bluetooth link with the first bluetooth headset as a slave headset to realize data interaction between the first bluetooth headset and the electronic device, and data interaction between the first bluetooth headset and the second bluetooth headset.
In one mode, under the condition that the second Bluetooth headset and the electronic device do not establish a monitoring link for monitoring audio data transmission between the electronic device and the first Bluetooth headset, if the electronic device sends audio data to the Bluetooth headset (the first Bluetooth headset and the second Bluetooth headset), the electronic device can send the audio data to the first Bluetooth headset through the first Bluetooth link, and when the first Bluetooth headset receives the audio data sent by the electronic device, the first Bluetooth headset can send the audio data to the second Bluetooth headset through the second Bluetooth link, so that the first Bluetooth headset and the second Bluetooth headset can acquire the audio data sent by the electronic device.
As still another way, in the case where the second bluetooth headset and the electronic device establish a listening link for listening to audio data transmission between the electronic device and the first bluetooth headset, the electronic device may send audio data to the first bluetooth headset through the first bluetooth link, and the second bluetooth headset may then, based on the listening link, disguise as the first bluetooth headset to listen to and receive audio data sent by the electronic device to the first bluetooth headset via the first bluetooth link, so as to realize that the first bluetooth headset and the second bluetooth headset may simultaneously acquire audio data sent by the electronic device, so as to reduce a delay between the first bluetooth headset and the second bluetooth headset. In some embodiments, the first bluetooth headset may transmit relevant communication parameters to the second bluetooth headset over the second bluetooth link such that the second bluetooth headset may listen to the communication data of the first bluetooth link over the relevant communication parameters, wherein the relevant communication parameters may include, but are not limited to, a communication connection address of the electronic device, encryption parameter information of the communication connection, etc., such that the second bluetooth headset may masquerade as the first bluetooth headset to listen to and receive audio data transmitted by the electronic device via the first bluetooth link without performing pairing and establishment of the communication connection.
In some embodiments, in a case where the electronic device needs to perform the collection of the sound signal, for example, in a case where the electronic device needs to perform the conversation, it may be determined that the electronic device needs to perform the collection of the sound signal. At this time, the main earphone needs to be determined from the first bluetooth earphone and the second bluetooth earphone to collect the sound signal, in this embodiment, the sound signal may be collected through the first bluetooth earphone serving as the main earphone, and the sound signal collected by the first bluetooth earphone is transmitted to the electronic device through the first bluetooth link, so that the electronic device processes the sound signal collected by the first bluetooth earphone.
In some embodiments, the first bluetooth headset may include a first microphone. The first Bluetooth headset can control the first microphone to collect sound signals and acquire the sound signals collected by the first microphone as first sound signals. Wherein the first sound signal may comprise speech input by a user. The number of microphones included in the first microphone may be one or more, which is not limited herein.
Step S120: and acquiring the sound signals acquired by the second microphone through the second Bluetooth link to serve as second sound signals.
In some embodiments, the second bluetooth headset may include a second microphone. The second bluetooth headset may control the second microphone to collect the sound signal, and acquire the sound signal collected by the second microphone as the second sound signal. Wherein the second sound signal may comprise speech input by a user. The number of microphones included in the second microphone may be one or more, which is not limited herein.
As an implementation mode, the second microphone of the second Bluetooth headset and the first microphone of the first Bluetooth headset can be both in a working state, and then the second Bluetooth headset can directly collect sound signals through the second Bluetooth headset.
As an implementation manner, the second microphone of the second bluetooth headset is in a dormant state, and then the first bluetooth headset can send a sound signal acquisition instruction to the second bluetooth headset through the second bluetooth link, and the second bluetooth headset can wake up the second microphone and control the second microphone to acquire a sound signal in response to the sound signal acquisition instruction.
In some embodiments, when the second bluetooth headset collects the sound signal through the second microphone, the sound signal collected by the second microphone may be transmitted to the first bluetooth headset through the second bluetooth link, and accordingly, the first bluetooth headset may obtain the sound signal collected by the second microphone through the second bluetooth link, and may obtain the sound signal collected by the second microphone through the second bluetooth link as the second sound signal.
Step S130: and under the condition that the first sound signal and the second sound signal meet preset signal conditions, sending a switching instruction to the second Bluetooth headset through the second Bluetooth link, wherein the switching instruction is used for indicating the second Bluetooth headset to be used as a main headset to establish a Bluetooth link with the electronic equipment.
In some embodiments, the first bluetooth headset may preset and store a preset signal condition, where the preset signal condition is used as a basis for determining the first sound signal and the second sound signal. Therefore, in this embodiment, after the first bluetooth headset obtains the first sound signal and the second sound signal, the first sound signal and the second sound signal may be compared with the preset signal condition to determine whether the first sound signal and the second sound signal meet the preset signal condition.
In one manner, when it is determined that the first sound signal and the second sound signal do not meet the preset signal condition, the first bluetooth headset is considered to be more suitable as a master headset and the second bluetooth headset is considered to be more suitable as a slave headset, the first bluetooth headset can be kept as the master headset to establish a first bluetooth link with the electronic device, and the second bluetooth headset can be kept as the slave headset to establish a second bluetooth link with the first bluetooth headset, at this time, the first sound signal acquired by the first bluetooth headset can be transmitted to the electronic device, so that the electronic device can process the first sound signal.
As still another way, in the case where it is determined that the first sound signal and the second sound signal satisfy the preset signal condition, the first bluetooth headset may be considered to be more suitable as the slave headset and the second bluetooth headset may be considered to be more suitable as the master headset, and then the switching between the master headset and the slave headset may be performed, so that the first bluetooth headset is switched from the master headset to the slave headset, and the second bluetooth headset is switched from the slave headset to the master headset, at this time, the second sound signal acquired by the second bluetooth headset may be transmitted to the electronic device, so that the electronic device processes the second sound signal. The first Bluetooth headset can send a switching instruction to the second Bluetooth headset through the second Bluetooth link, and the switching instruction is used for indicating the second Bluetooth headset to establish a Bluetooth link with the electronic device as a main headset.
In some embodiments, after the first bluetooth headset sends the switching instruction to the second bluetooth headset, the first bluetooth headset may switch itself to be a slave headset after receiving the indication information sent by the second bluetooth headset and used for indicating that the second bluetooth headset is ready to establish a bluetooth connection with the electronic device, disconnect the bluetooth link with the electronic device, and send the connection indication information to the second bluetooth headset while switching to the slave headset is started, where the second bluetooth headset immediately establishes a connection with the electronic device after receiving the connection indication information. The first Bluetooth headset is not immediately switched to the slave headset after sending the switching instruction, but is switched after the second Bluetooth headset is ready, so that the problem that the data transmission is interrupted due to the fact that the first Bluetooth headset is disconnected from the electronic device under the condition that the second Bluetooth headset does not establish a Bluetooth link between the completion and the electronic device is avoided.
As an implementation manner, when the first bluetooth headset needs to be switched from the master headset to the slave headset and the second bluetooth headset is switched from the slave headset to the master headset, the first bluetooth headset can send the link information of the first bluetooth link to the second bluetooth headset through the second bluetooth link, when the second bluetooth headset receives the link information of the first bluetooth link sent by the first bluetooth headset, the second bluetooth headset can reply a confirmation identifier (such as an ACK confirmation identifier) to the first bluetooth headset, when the first bluetooth headset receives the confirmation identifier sent by the second bluetooth headset, a switching instruction can be sent to the second bluetooth headset through the second bluetooth link, the second bluetooth headset is connected with the electronic device through the third bluetooth link according to the received link information of the first bluetooth link, and under the condition that the second bluetooth headset receives a data packet of the third bluetooth link sent by the electronic device, the second bluetooth headset can send the confirmation identifier of successful packet receiving, and the first bluetooth headset can delete the first bluetooth link, so that connection between the first bluetooth headset and the electronic device is disconnected, thereby realizing seamless user experience of the master-slave headset.
In the embodiment of the application, the main earphone is based on the sound signals collected by the microphone of the main earphone and the sound signals collected by the microphone of the slave earphone, so that whether the switching of the main earphone and the slave earphone is needed is determined, the cost problem caused by other sensors for detecting wearing is not needed, and the cost of the Bluetooth earphone can be reduced. In addition, because the main earphone is based on the sound signals collected by the microphone of the main earphone and the sound signals collected by the microphone of the auxiliary earphone, the problem that other sensors used for detecting wearing are arranged to detect errors can be avoided, and the accuracy rate of switching between the main earphone and the auxiliary earphone can be improved.
Referring to fig. 3, fig. 3 is a flow chart illustrating a master-slave switching method of an earphone according to an embodiment of the application. The method is applied to a first Bluetooth headset, when the first Bluetooth headset is used as a master headset and a first Bluetooth link is established with electronic equipment, a second Bluetooth headset is used as a slave headset and is established with a second Bluetooth link, the first Bluetooth headset comprises a first microphone, the second Bluetooth headset comprises a second microphone, and the second microphone is in a dormant state. The following will describe the flow shown in fig. 3 in detail, and the master-slave switching method of the earphone specifically may include the following steps:
step S210: and acquiring the sound signal acquired by the first microphone as a first sound signal.
The specific description of step S210 is referred to step S110, and will not be repeated here.
Step S220: and acquiring the first sound intensity corresponding to the first sound signal.
In some embodiments, when the first bluetooth headset obtains the first sound signal, the first sound signal may be processed to obtain the sound intensity corresponding to the first sound signal as the first sound intensity. As an implementation manner, when the first bluetooth headset obtains the first sound signal, the first sound signal may be calculated through a preset intensity algorithm, so as to obtain the sound intensity corresponding to the first sound signal as the first sound intensity.
Step S230: and under the condition that the first sound intensity is smaller than or equal to the first intensity threshold, sending a wake-up instruction to the second Bluetooth headset through the second Bluetooth link, wherein the wake-up instruction is used for indicating the second Bluetooth headset to control the second microphone to switch from the dormant state to the working state, and collecting sound signals through the second microphone.
In some embodiments, the second microphone of the second bluetooth headset is in a dormant state. That is, in the case where the first bluetooth headset performs sound signal collection through the first microphone, the second microphone does not perform sound signal collection, and at this time, power consumption of the second bluetooth headset can be reduced.
In some embodiments, the preset signal condition may include a first intensity threshold. The first bluetooth headset may be preset and stored with a first intensity threshold, where the first intensity threshold is used as a criterion for determining a first sound intensity corresponding to the first sound signal collected by the first microphone. Therefore, in this embodiment, after the first bluetooth headset obtains the first sound intensity, the first sound intensity may be compared with the first intensity threshold to determine whether the first sound intensity is less than or equal to the first intensity threshold. The first intensity threshold may be a boundary indicating whether the sound signal can be normally received by the user, for example, the first intensity threshold may be a boundary indicating whether the sound signal can meet the normal call requirement in the call scene, that is, if the sound intensity of the sound signal is less than or equal to the first intensity threshold, it may be determined that the sound signal cannot be normally received by the user, that is, the sound signal does not meet the normal call requirement in the call scene; if the sound intensity of the sound signal is greater than the first intensity threshold, it can be determined that the sound signal can be normally received by the user, that is, the sound signal meets the normal call requirement in the call scene.
In one manner, when the first sound intensity is determined to be greater than the first intensity threshold, the sound signal collected by the first microphone representing the first bluetooth headset may be normally received by the user, for example, a normal call requirement may be met in a call scene, so that the first bluetooth headset may be kept as a master headset and the second bluetooth headset may be kept as a slave headset without performing a switch between the master and slave headset.
In another manner, when the first sound intensity is determined to be less than or equal to the first intensity threshold, the sound signal collected by the first microphone of the first bluetooth headset is not able to be received normally by the user, for example, the normal call requirement cannot be met in a call scene, so that the second microphone of the second bluetooth headset can be awakened to collect the sound signal, and whether to switch the master headset from the slave headset is determined according to the sound signal collected by the second microphone. In some embodiments, the first bluetooth headset may send a wake-up instruction to the second bluetooth headset through the second bluetooth link, and accordingly, the second bluetooth headset may control the second microphone to switch from the sleep state to the working state in response to the wake-up instruction, and control the second microphone to collect the sound signal.
Step S240: and acquiring the sound signals acquired by the second microphone through the second Bluetooth link to serve as second sound signals.
The specific description of step S240 is referred to step S120, and will not be repeated here.
Step S250: and acquiring second sound intensity corresponding to the second sound signal.
In some embodiments, when the first bluetooth headset obtains the second sound signal, the second sound signal may be processed, and the sound intensity corresponding to the second sound signal is obtained as the second sound intensity. As an implementation manner, when the first bluetooth headset obtains the second sound signal, the second sound signal may be calculated through a preset intensity algorithm, so as to obtain the sound intensity corresponding to the second sound signal as the second sound intensity.
In some embodiments, when the second bluetooth headset collects a sound signal (a second sound signal), the second sound signal may be processed, and the sound intensity corresponding to the second sound signal is obtained as the second sound intensity, and the second sound intensity is sent to the first bluetooth headset through the second bluetooth link. As an implementation manner, when the second bluetooth headset collects the second sound signal, the second sound signal may be calculated through a preset intensity algorithm, so as to obtain the sound intensity corresponding to the second sound signal as the second sound intensity, and the second sound intensity is sent to the first bluetooth headset through the second bluetooth link.
In some embodiments, when the second bluetooth headset collects a sound signal (a second sound signal), the second sound signal may be processed to obtain a sound intensity corresponding to the second sound signal as a second sound intensity, and then the second sound intensity is compared with a first intensity threshold to obtain a first comparison result, and the first comparison result is sent to the first bluetooth headset through a second bluetooth link.
Step S260: and under the condition that the first sound intensity is smaller than or equal to a first intensity threshold value and the second sound intensity is larger than the first intensity threshold value, sending the switching instruction to the second Bluetooth headset through the second Bluetooth link.
In some embodiments, the preset signal condition may include a first intensity threshold. The first bluetooth headset can be preset and stored with a first intensity threshold, and the first intensity threshold is used as a judging basis of first sound intensity corresponding to a first sound signal acquired by the first bluetooth headset and is used as a judging basis of second sound intensity corresponding to a second sound signal received by the first bluetooth headset. Therefore, in this embodiment, after the first bluetooth headset obtains the first sound intensity, the first sound intensity may be compared with the first intensity threshold to determine whether the first sound intensity is less than or equal to the first intensity threshold; after the first bluetooth headset obtains the second sound intensity, the second sound intensity may be compared with a second intensity threshold to determine whether the second sound intensity is greater than the first intensity threshold.
In one manner, if the first sound intensity is determined to be greater than the first intensity threshold, the sound signal collected by the first microphone of the first bluetooth headset may be received by the user normally, for example, in a call scenario, where normal call requirements may be met. Therefore, the first bluetooth headset is more suitable as the master headset, and at this time, no matter whether the second sound intensity is greater than the first intensity threshold or less than or equal to the first intensity threshold, the switching of the master headset and the slave headset is not performed, so that the first bluetooth headset can be kept as the master headset, and the second bluetooth headset can be kept as the slave headset.
As still another way, in the case where it is determined that the first sound intensity is less than or equal to the first intensity threshold and the second sound intensity is less than or equal to the first intensity threshold, the sound signal collected by the first microphone characterizing the first bluetooth headset may not be normally received by the user, and the sound signal collected by the second microphone of the second bluetooth headset may not be normally received by the user, for example, in a call scenario, neither the sound signal collected by the first bluetooth headset nor the sound signal collected by the second bluetooth headset may meet the normal call requirement. Therefore, it may be considered that the sound input by the user is small, or that neither the first bluetooth headset nor the second bluetooth headset is in a wearing state, the switching of the master and slave headset may not be performed, and the first bluetooth headset may be kept as the master headset and the second bluetooth headset may be kept as the slave headset.
As still another way, in the case where it is determined that the first sound intensity is less than or equal to the first intensity threshold and the second sound intensity is greater than the first intensity threshold, then the sound signal collected by the first microphone that characterizes the first bluetooth headset may not be normally received by the user and the sound signal collected by the second microphone of the second bluetooth headset may be normally received by the user, for example, in a call scenario, the sound signal collected by the first bluetooth headset may not satisfy the normal call requirement and the sound signal collected by the second bluetooth headset satisfies the normal call requirement. The first bluetooth headset may be considered to be more suitable as a slave headset and the second bluetooth headset may be considered to be more suitable as a master headset, and the switching of the master headset and the slave headset may be performed such that the first bluetooth headset is switched from the master headset to the slave headset and the second bluetooth headset is switched from the slave headset to the master headset.
In this embodiment, when the sound intensity of the sound signal collected by the master earphone is less than or equal to the first intensity threshold, the microphone of the slave earphone is controlled to switch from the sleep state to the working state for collecting the sound signal, so as to reduce the power consumption of the slave earphone. In addition, when the signal intensity corresponding to the sound signal collected by the main earphone is smaller than or equal to the first intensity threshold and the signal intensity corresponding to the sound signal collected by the slave earphone is larger than the first intensity threshold, the switching of the main earphone and the slave earphone is performed, so that the sound signal with the sound intensity meeting the requirement can be collected by the main earphone, and the switching accuracy of the main earphone and the slave earphone is improved.
Referring to fig. 4, fig. 4 is a flow chart illustrating a master-slave switching method of an earphone according to an embodiment of the application. The method is applied to a first Bluetooth headset, when the first Bluetooth headset is used as a master headset and a first Bluetooth link is established with electronic equipment, a second Bluetooth headset is used as a slave headset and is established with the first Bluetooth headset, the first Bluetooth headset comprises a first microphone, and the second Bluetooth headset comprises a second microphone. The following will describe the flow shown in fig. 4 in detail, and the master-slave switching method of the earphone specifically may include the following steps:
Step S310: and acquiring the sound signal acquired by the first microphone as a first sound signal.
Step S320: and acquiring the sound signals acquired by the second microphone through the second Bluetooth link to serve as second sound signals.
The specific description of step S310 to step S320 refer to step S110 to step S120, and are not described herein.
Step S330: and acquiring a third sound intensity corresponding to the first sound signal and a fourth sound intensity corresponding to the second sound signal.
In some embodiments, when the first bluetooth headset obtains the first sound signal, the first sound signal may be processed to obtain the sound intensity corresponding to the first sound signal as the third sound intensity.
As an implementation manner, when the first bluetooth headset obtains the first sound signal, the first sound signal may be calculated through a preset intensity algorithm, so as to obtain the sound intensity corresponding to the first sound signal as the third sound intensity.
In some embodiments, when the first bluetooth headset obtains the second sound signal, the second sound signal may be processed to obtain the sound intensity corresponding to the second sound signal as the fourth sound intensity. As an implementation manner, when the first bluetooth headset obtains the second sound signal, the second sound signal may be calculated through a preset intensity algorithm, so as to obtain the sound intensity corresponding to the second sound signal as the fourth sound intensity.
In some embodiments, when the second bluetooth headset collects a sound signal (a second sound signal), the second sound signal may be processed, and the sound intensity corresponding to the second sound signal is obtained as a fourth sound intensity, and the fourth sound intensity is sent to the first bluetooth headset through the second bluetooth link. As an implementation manner, when the second bluetooth headset collects the second sound signal, the second sound signal may be calculated through a preset intensity algorithm, so as to obtain the sound intensity corresponding to the second sound signal as the fourth sound intensity, and the fourth sound intensity is sent to the first bluetooth headset through the second bluetooth link.
Step S340: and under the condition that the fourth sound intensity is larger than the third sound intensity and the difference value between the fourth sound intensity and the third sound intensity is larger than a second intensity threshold, sending a switching instruction to the second Bluetooth headset through the second Bluetooth link, wherein the switching instruction is used for indicating the second Bluetooth headset to be used as a main headset to establish a Bluetooth link with the electronic equipment.
In some embodiments, the preset signal condition may include a second intensity threshold. The first bluetooth headset may preset and store a second intensity threshold, where the second intensity threshold is used as a criterion for determining a difference between a third intensity threshold corresponding to the first sound signal collected by the first bluetooth headset and a fourth intensity threshold corresponding to the second sound signal collected by the second bluetooth headset. Therefore, in this embodiment, after the third sound intensity and the fourth sound intensity are obtained, the first bluetooth headset may compare the third sound intensity with the fourth sound intensity, calculate the difference between the fourth sound intensity and the third sound intensity, so as to determine whether the fourth sound intensity is greater than the third sound intensity, and determine whether the difference between the fourth sound intensity and the third sound intensity is greater than the second intensity threshold. Wherein the second intensity threshold may comprise, for example, 5 decibels. The second intensity threshold may be a boundary representing a lifting effect of the switching of the master earphone and the slave earphone on the collection of the sound signals, that is, if a difference between the sound intensity corresponding to the sound signals collected from the master earphone and the sound intensity corresponding to the sound signals collected from the master earphone is greater than the second intensity threshold, the lifting effect of the switching of the master earphone and the slave earphone on the collection of the sound signals is obvious; if the difference value between the sound intensity corresponding to the sound signal collected from the earphone and the sound intensity corresponding to the sound signal collected by the main earphone is smaller than or equal to the second intensity threshold, the improvement effect of the switching of the main earphone and the auxiliary earphone on the collection of the sound signal is poor.
In one manner, if the fourth sound intensity is determined to be less than the third intensity threshold, the intensity threshold corresponding to the sound signal collected by the first microphone of the first bluetooth headset is characterized to be greater than the intensity threshold corresponding to the sound signal collected by the second microphone of the second bluetooth headset. Therefore, the first bluetooth headset is more suitable as the master headset, and at this time, no matter whether the difference between the fourth sound intensity and the third sound intensity is greater than the second intensity threshold, the switching between the master headset and the slave headset is not performed, so that the first bluetooth headset can be kept as the master headset, and the second bluetooth headset can be kept as the slave headset.
As a further way, in the case where it is determined that the fourth sound intensity is greater than the third intensity threshold and the difference between the fourth sound intensity and the third sound intensity is not greater than the second intensity threshold, it is characterized that although the intensity threshold corresponding to the sound signal collected by the second microphone of the second bluetooth headset is greater than the intensity threshold corresponding to the sound signal collected by the first microphone of the first bluetooth headset, i.e. the first bluetooth headset may be farther from the user than the second bluetooth headset, in this case, the switching of the master and slave headset is performed with less difference in sound intensity between the sound signals collected by the two headsets, the improvement in the collection of the sound signals is not obvious, and at the same time, the increase in the power consumption of the bluetooth headset may be caused. Therefore, the first Bluetooth headset can be kept as the master headset and the second Bluetooth headset can be kept as the slave headset without switching the master headset and the slave headset.
As a further way, in case it is determined that the fourth sound intensity is greater than the third sound intensity and the difference between the fourth sound intensity and the third sound intensity is greater than the second intensity threshold, the intensity threshold corresponding to the sound signal collected by the second microphone characterizing the second bluetooth headset is greater than the intensity threshold corresponding to the sound signal collected by the first microphone characterizing the first bluetooth headset, i.e. the first bluetooth headset may be further away from the user than the first bluetooth headset, and at the same time, the improvement of the collection of the sound signal by performing the switching of the master and slave headset is more pronounced in this case, because the difference of the sound intensities between the sound signals collected by the two headsets is greater. Therefore, it can be considered that the first bluetooth headset is more suitable as the slave headset and the second bluetooth headset is more suitable as the master headset, and then switching between the master headset and the slave headset can be performed so that the first bluetooth headset is switched from the master headset to the slave headset and the second bluetooth headset is switched from the slave headset to the master headset.
In this embodiment, when the sound intensity of the sound signal collected from the earphone is greater than the sound intensity of the sound signal collected from the main earphone, and the difference between the sound intensity of the sound signal collected from the earphone and the sound intensity of the sound signal collected from the main earphone is greater than the second intensity threshold, the switching between the main earphone and the slave earphone is performed, so that the sound signal with the sound intensity meeting the requirement can be collected through the main earphone, and the switching accuracy of the main earphone and the slave earphone is improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a master-slave switching method of an earphone according to an embodiment of the application. The method is applied to a first Bluetooth headset, when the first Bluetooth headset is used as a master headset and a first Bluetooth link is established with electronic equipment, a second Bluetooth headset is used as a slave headset and is established with the first Bluetooth headset, the first Bluetooth headset comprises a first microphone, and the second Bluetooth headset comprises a second microphone. The following will describe the flow shown in fig. 5 in detail, and the master-slave switching method of the earphone specifically may include the following steps:
Step S410: and under the condition that the electronic equipment is in a call state, controlling the first microphone to collect sound signals.
The call state refers to a state that the electronic device is in a voice connection state, for example, a state that the electronic device is in a telephone connection state, a state that the electronic device is in a voice connection state through instant messaging software, a state that the electronic device is in a video connection state through instant messaging software, and the like. In some embodiments, when the electronic device is in a call state, the electronic device establishes a call with other electronic devices, and then a user corresponding to the electronic device and a user corresponding to other electronic devices may perform a call, where the user corresponding to the electronic device may receive, through the first bluetooth headset and the second bluetooth headset, a sound signal input by a user corresponding to other electronic devices, and the user corresponding to the electronic device may also input, through the first bluetooth headset or the second bluetooth headset, a sound signal, which is transmitted to other electronic devices through the electronic device, and received by the user corresponding to other electronic devices.
In some implementations, a detection may be made as to whether the electronic device is in a talk state. Under the condition that the electronic equipment is detected to be in a call state, the characterization needs to acquire sound signals through a main earphone in the first Bluetooth earphone and the second Bluetooth earphone, and the first Bluetooth earphone is the main earphone, so that the first Bluetooth earphone can control a first microphone of the first Bluetooth earphone to acquire the sound signals. Under the condition that the electronic equipment is not in a call state, the representation does not need to collect sound signals through the first Bluetooth earphone and the second Bluetooth earphone, and then the first microphone of the first Bluetooth earphone and the second microphone of the second Bluetooth earphone can be controlled to be in a dormant state.
As an implementation manner, the electronic device may monitor whether to enter a CALL in real time, and send the monitored information to the first bluetooth headset, where the interface of whether the electronic device is in a CALL when the electronic device is incoming or outgoing may be monitored, where, if it is monitored that the mobile terminal is in a CALL (call_state_offhook), it may be determined that the electronic device is in a CALL STATE.
Step S420: and acquiring the sound signal acquired by the first microphone as a first sound signal.
Step S430: and acquiring the sound signals acquired by the second microphone through the second Bluetooth link to serve as second sound signals.
Step S440: and under the condition that the first sound signal and the second sound signal meet preset signal conditions, sending a switching instruction to the second Bluetooth headset through the second Bluetooth link, wherein the switching instruction is used for indicating the second Bluetooth headset to be used as a main headset to establish a Bluetooth link with the electronic equipment.
The specific description of step S420-step S440 refers to step S110-step S130, and is not repeated here.
In this embodiment, when the electronic device is in a call state, the master-slave switching method of the earphone provided in this embodiment is executed again, so as to improve the call effect of the electronic device.
Referring to fig. 6, fig. 6 is a flowchart illustrating a master-slave switching method of an earphone according to an embodiment of the application. The method is applied to a first Bluetooth headset, when the first Bluetooth headset is used as a master headset and a first Bluetooth link is established with electronic equipment, a second Bluetooth headset is used as a slave headset and is established with the first Bluetooth headset, the first Bluetooth headset comprises a first microphone, and the second Bluetooth headset comprises a second microphone. In this embodiment, the first bluetooth headset includes a light sensor. The following will describe the flow shown in fig. 6 in detail, and the master-slave switching method of the earphone specifically may include the following steps:
step S510: and determining that the first Bluetooth headset is in a wearing state based on the light sensor.
In this embodiment, the first bluetooth headset includes a light sensor. The light sensor may include, for example, an ambient light sensor, an infrared light sensor, a solar light sensor, an ultraviolet light sensor, and the like, and is not limited thereto. The first Bluetooth headset is in a wearing state or not according to the mode that whether the first Bluetooth headset is shielded or not detected by the light sensor.
In some embodiments, the first bluetooth headset may perform occlusion detection through the light sensor. Under the condition that the first Bluetooth headset does not detect shielding through the light sensor, it can be determined that the first Bluetooth headset is not in the ear, namely, the first Bluetooth headset is not in a wearing state, and then switching of the master earphone and the slave earphone can be performed, namely, the first Bluetooth headset can be switched from the master earphone to the slave earphone, and the second Bluetooth headset is switched from the slave earphone to the master earphone.
As an implementation manner, in the case that the first bluetooth headset does not detect shielding through the light sensor, it may be determined that the first bluetooth headset is not in the ear, that is, the first bluetooth headset is not in a wearing state, whether the second bluetooth headset is in the wearing state may be detected, where when the second bluetooth headset is detected to be in the wearing state, switching between the master and slave headset may be performed, that is, the first bluetooth headset may be switched from the master headset to the slave headset, and the second bluetooth headset may be switched from the slave headset to the master headset. As one way, the second bluetooth headset may include a light sensor, and the second bluetooth headset may detect whether it is in a wearing state through the light sensor included therein. As yet another way, the second bluetooth headset may include a capacitive sensor, and the second bluetooth headset may detect whether it is in a wearing state through the capacitive sensor included therein. As still another way, the second bluetooth headset may include a second microphone, and the second bluetooth headset may detect whether it is in a wearing state through the second microphone.
As an implementation manner, in the case that the first bluetooth headset detects shielding through the light sensor, the first bluetooth headset is considered to be in the ear under normal conditions, that is, the first bluetooth headset is considered to be in a wearing state, at this time, switching of the master and slave headset is not performed, that is, the first bluetooth headset is kept as the master headset to collect sound signals, and the second bluetooth headset is kept as the slave headset. However, in the case where the first bluetooth headset detects the shielding by the sensor, it may also be caused by the first bluetooth headset being placed somewhere and the light sensation being shielded, for example, it may be caused by the first bluetooth headset being placed on a desk and the light sensation being shielded by the desk, at which time, although the first bluetooth headset is detected in a wearing state by the light sensation sensor of the first bluetooth headset, there may still be a possibility of false detection. Therefore, in this embodiment, when the first bluetooth headset is determined to be in the wearing state based on the light sensor, the sound signal collected by the microphone of the master headset and the sound signal collected by the microphone of the slave headset may be obtained again and based on the sound signal collected by the microphone of the slave headset, so as to determine whether the master headset and the slave headset need to be switched, thereby improving the accuracy of the master headset and the slave headset.
Step S520: and acquiring the sound signal acquired by the first microphone as a first sound signal.
Step S530: and acquiring the sound signals acquired by the second microphone through the second Bluetooth link to serve as second sound signals.
Step S540: and under the condition that the first sound signal and the second sound signal meet preset signal conditions, sending a switching instruction to the second Bluetooth headset through the second Bluetooth link, wherein the switching instruction is used for indicating the second Bluetooth headset to be used as a main headset to establish a Bluetooth link with the electronic equipment.
The specific description of step S520 to step S540 refers to step S110 to step S130, and is not repeated here.
In this embodiment, when the master earphone is in the wearing state, the master-slave switching method of the earphone provided in this embodiment is further executed, so that false detection of the light sensor is avoided, and accuracy of master-slave switching of the earphone can be improved.
Referring to fig. 7, fig. 7 is a flowchart illustrating a master-slave switching method of an earphone according to an embodiment of the application. The method is applied to a first Bluetooth headset, when the first Bluetooth headset is used as a master headset and a first Bluetooth link is established with electronic equipment, a second Bluetooth headset is used as a slave headset and is established with the first Bluetooth headset, the first Bluetooth headset comprises a first microphone, and the second Bluetooth headset comprises a second microphone. In this embodiment, the first bluetooth headset includes a capacitive sensor. The following will describe the flow chart shown in fig. 7 in detail, and the master-slave switching method of the earphone specifically may include the following steps:
step S610: and determining that the first Bluetooth headset is in a wearing state based on the capacitance sensor.
In this embodiment, the first bluetooth headset includes a capacitive sensor. The capacitive sensor may comprise, for example, a pressure-type capacitive sensor. The first Bluetooth headset is in a wearing state or not according to the mode that the capacitance sensor arranged on the first Bluetooth headset detects capacitance.
In some embodiments, the first bluetooth headset may perform capacitance detection by a capacitive sensor. Under the condition that the capacitance of the first Bluetooth headset does not meet the preset capacitance through the capacitance sensor, the first Bluetooth headset can be determined to be not in the ear, namely, the first Bluetooth headset is not in a wearing state, and then switching of the master earphone and the slave earphone can be performed, namely, the first Bluetooth headset can be switched from the master earphone to the slave earphone, and the second Bluetooth headset is switched from the slave earphone to the master earphone. The preset capacitance can be a capacitance corresponding to the Bluetooth headset when the Bluetooth headset is in the ear.
As an implementation manner, when the first bluetooth headset detects that the capacitance does not meet the preset capacitance through the capacitance sensor, it can be determined that the first bluetooth headset is not in the ear, that is, the first bluetooth headset is not in a wearing state, whether the second bluetooth headset is in the wearing state can be detected, and when the second bluetooth headset is detected to be in the wearing state, switching of the master headset and the slave headset can be performed, that is, the first bluetooth headset can be switched from the master headset to the slave headset, and the second bluetooth headset can be switched from the slave headset to the master headset. As one way, the second bluetooth headset may include a light sensor, and the second bluetooth headset may detect whether it is in a wearing state through the light sensor included therein. As yet another way, the second bluetooth headset may include a capacitive sensor, and the second bluetooth headset may detect whether it is in a wearing state through the capacitive sensor included therein. As still another way, the second bluetooth headset may include a second microphone, and the second bluetooth headset may detect whether it is in a wearing state through the second microphone.
As an implementation manner, when the first bluetooth headset detects that the capacitance meets the preset capacitance through the capacitance sensor, the first bluetooth headset is considered to be in the ear under normal conditions, that is, the first bluetooth headset is considered to be in a wearing state, at this time, switching of the master and slave headset is not performed, that is, the first bluetooth headset is kept as the master headset to collect sound signals, and the second bluetooth headset is kept as the slave headset. However, in the case where the first bluetooth headset detects that the capacitance satisfies the preset capacitance through the sensor, it may also be caused by the user holding the position of the capacitance sensor of the first bluetooth headset, and at this time, although the first bluetooth headset is detected to be in the wearing state through the capacitance sensor of the first bluetooth headset, there may still be a possibility of false detection. Therefore, in this embodiment, when the first bluetooth headset is determined to be in the wearing state based on the capacitance sensor, the sound signal collected by the microphone of the master headset and the sound signal collected by the microphone of the slave headset may be obtained again and based on the sound signal collected by the microphone of the slave headset, so as to determine whether the master headset and the slave headset need to be switched, thereby improving the accuracy of the master headset and the slave headset.
Step S620: and acquiring the sound signal acquired by the first microphone as a first sound signal.
Step S630: and acquiring the sound signals acquired by the second microphone through the second Bluetooth link to serve as second sound signals.
Step S640: and under the condition that the first sound signal and the second sound signal meet preset signal conditions, sending a switching instruction to the second Bluetooth headset through the second Bluetooth link, wherein the switching instruction is used for indicating the second Bluetooth headset to be used as a main headset to establish a Bluetooth link with the electronic equipment.
The specific description of step S620 to step S640 refers to step S110 to step S130, and is not repeated here.
In this embodiment, when the main earphone is in the wearing state through the capacitive sensor, the master-slave switching method of the earphone provided in this embodiment is further executed, so that false detection of the capacitive sensor is avoided, and accuracy of master-slave switching of the earphone can be improved.
Referring to fig. 8, fig. 8 is a flowchart illustrating a master-slave switching method of an earphone according to an embodiment of the application. The method is applied to a first Bluetooth headset, when the first Bluetooth headset is used as a master headset and a first Bluetooth link is established with electronic equipment, a second Bluetooth headset is used as a slave headset and is established with the first Bluetooth headset, the first Bluetooth headset comprises a first microphone, and the second Bluetooth headset comprises a second microphone. The following will describe the flow chart shown in fig. 8 in detail, and the master-slave switching method of the earphone specifically may include the following steps:
Step S710: and acquiring the sound signal acquired by the first microphone as a first sound signal.
The specific description of step S710 is referred to step S110, and will not be repeated here.
Step S720: and acquiring the first sound intensity corresponding to the first sound signal.
Step S730: and under the condition that the first sound intensity is smaller than or equal to the first intensity threshold, sending a wake-up instruction to the second Bluetooth headset through the second Bluetooth link, wherein the wake-up instruction is used for indicating the second Bluetooth headset to control the second microphone to switch from the dormant state to the working state, and collecting sound signals through the second microphone.
Step S740: and acquiring the sound signals acquired by the second microphone through the second Bluetooth link to serve as second sound signals.
Step S750: and acquiring second sound intensity corresponding to the second sound signal.
Step S760: and under the condition that the second sound intensity is larger than the first intensity threshold, sending the switching instruction to the second Bluetooth headset through the second Bluetooth link.
The specific description of step S720 to step S760 is referred to step S220 to step S260, and will not be repeated here.
Step S770: and calculating a difference between the second sound intensity and the first sound intensity in the case that the second sound intensity is less than or equal to the first intensity threshold.
Step S780: and under the condition that the second sound intensity is larger than the first sound intensity and the difference value between the second sound intensity and the first sound intensity is larger than a second intensity threshold, sending a switching instruction to the second Bluetooth headset through the second Bluetooth link, wherein the switching instruction is used for indicating the second Bluetooth headset to establish a Bluetooth link with the electronic equipment as a main headset.
The specific description of step S770-step S780 refer to step S340, and will not be repeated here.
In this embodiment, when the sound intensity of the sound signal collected by the master earphone is less than or equal to the first intensity threshold, the microphone of the slave earphone is controlled to switch from the sleep state to the working state for collecting the sound signal, so as to reduce the power consumption of the slave earphone. In addition, when the signal intensity corresponding to the sound signal collected by the main earphone is smaller than or equal to the first intensity threshold and the signal intensity corresponding to the sound signal collected by the slave earphone is larger than the first intensity threshold, the switching of the main earphone and the slave earphone is performed, so that the sound signal with the sound intensity meeting the requirement can be collected by the main earphone, and the switching accuracy of the main earphone and the slave earphone is improved. Moreover, in this embodiment, when the signal intensities corresponding to the sound signals collected by the master earphone and the slave earphone are both less than or equal to the first intensity threshold, the difference between the signal intensities corresponding to the sound signals collected by the slave earphone and the signal intensities corresponding to the sound signals collected by the master earphone is compared with the second intensity threshold, and when the difference between the signal intensities corresponding to the sound signals collected by the slave earphone and the signal intensities corresponding to the sound signals collected by the master earphone is greater than the second intensity threshold, and the signal intensities corresponding to the sound signals collected by the slave earphone are greater than the signal intensities corresponding to the sound signals collected by the master earphone, the master earphone and the slave earphone are switched, so that the sound signals with the sound intensities meeting the requirements can be collected by the master earphone, and the switching accuracy of the master earphone and the slave earphone is improved.
Referring to fig. 9, fig. 9 shows a timing chart of a master-slave switching method of an earphone according to an embodiment of the application. In this embodiment, the master-slave switching method of the headset is applied to a bluetooth headset set, where the bluetooth headset set includes a first bluetooth headset and a second bluetooth headset, and when the first bluetooth headset is used as a master headset to establish a first bluetooth link with an electronic device, the second bluetooth headset is used as a slave headset to establish a second bluetooth link with the first bluetooth headset, the first bluetooth headset includes a first microphone, and the second bluetooth headset includes a second microphone. The following will describe the flow chart shown in fig. 9, and the master-slave switching method of the earphone specifically may include the following steps:
Step S810: the first Bluetooth headset acquires the sound signal acquired through the first microphone as a first sound signal.
Step S820: the second Bluetooth headset collects sound signals through the second microphone, and sends the sound signals collected by the second microphone to the first Bluetooth headset through the second Bluetooth link.
Step S830: the first Bluetooth headset acquires the sound signal acquired by the second microphone through the second Bluetooth link to serve as a second sound signal.
Step S840: and the first Bluetooth headset sends a switching instruction to the second Bluetooth headset through the second Bluetooth link under the condition that the first sound signal and the second sound signal meet the preset signal condition.
Step S850: and the second Bluetooth headset responds to the switching instruction and is used as a main headset to establish a Bluetooth link with the electronic equipment.
In the embodiment of the application, the main earphone is based on the sound signals collected by the microphone of the main earphone and the sound signals collected by the microphone of the slave earphone, so that whether the switching of the main earphone and the slave earphone is needed is determined, the problem of cost caused by the arrangement of other sensors for detecting wearing can be avoided, and the cost of the Bluetooth earphone can be reduced. In addition, because the main earphone is based on the sound signals collected by the microphone of the main earphone and the sound signals collected by the microphone of the auxiliary earphone, the problem that other sensors used for detecting wearing are arranged to detect errors can be avoided, and the accuracy rate of switching between the main earphone and the auxiliary earphone can be improved.
Referring to fig. 10, fig. 10 is a block diagram illustrating a master-slave switching device of an earphone according to an embodiment of the application. The master-slave switching device 400 of the headset is applied to the first bluetooth headset, when the first bluetooth headset is used as a master headset to establish a first bluetooth link with the electronic device, the second bluetooth headset is used as a slave headset to establish a second bluetooth link with the first bluetooth headset, the first bluetooth headset comprises a first microphone, and the second bluetooth headset comprises a second microphone. The following will describe the block diagram shown in fig. 10, and the master-slave switching device 400 of the headset includes: a first sound signal acquisition module 410, a second sound signal acquisition module 420, and a master-slave earphone switching module 430, wherein:
the first sound signal acquisition module 410 is configured to acquire a sound signal acquired by the first microphone as a first sound signal.
And the second sound signal obtaining module 420 is configured to obtain, through the second bluetooth link, a sound signal collected by the second microphone, as a second sound signal.
The master-slave earphone switching module 430 is configured to send a switching instruction to the second bluetooth earphone through the second bluetooth link when the first sound signal and the second sound signal meet a preset signal condition, where the switching instruction is used to instruct the second bluetooth earphone to establish a bluetooth link with the electronic device as a master earphone.
Further, the master-slave earphone switching module 430 includes: the system comprises a first sound intensity acquisition sub-module and a first master-slave earphone switching sub-module, wherein:
The first sound intensity obtaining sub-module is used for obtaining first sound intensity corresponding to the first sound signal and obtaining second sound intensity corresponding to the second sound signal.
And the first master-slave earphone switching submodule is used for sending the switching instruction to the second Bluetooth earphone through the second Bluetooth link under the condition that the first sound intensity is smaller than or equal to a first intensity threshold value and the second sound intensity is larger than the first intensity threshold value.
Further, the second microphone is in a sleep state, and the master-slave earphone switching module 430 further includes: a wake-up instruction sending sub-module, wherein:
And the wake-up instruction sending sub-module is used for sending a wake-up instruction to the second Bluetooth headset through the second Bluetooth link under the condition that the first sound intensity is smaller than or equal to the first intensity threshold, wherein the wake-up instruction is used for indicating the second Bluetooth headset to control the second microphone to switch from the dormant state to the working state and collect sound signals through the second microphone.
Further, the master-slave earphone switching module 430 includes: a second sound intensity acquisition sub-module and a second master-slave earphone switching sub-module, wherein:
and the second sound intensity obtaining submodule is used for obtaining the third sound intensity corresponding to the first sound signal and obtaining the fourth sound intensity corresponding to the second sound signal.
And the second master-slave earphone switching sub-module is used for sending a switching instruction to the second Bluetooth earphone through the second Bluetooth link under the condition that the fourth sound intensity is larger than the third sound intensity and the difference value between the fourth sound intensity and the third sound intensity is larger than a second intensity threshold value, and the switching instruction is used for indicating the second Bluetooth earphone to be used as a master earphone to establish a Bluetooth link with the electronic equipment.
Further, the master-slave earphone switching device 400 further includes: sound signal acquisition module, wherein:
and the sound signal acquisition module is used for controlling the first microphone to acquire sound signals under the condition that the electronic equipment is in a call state.
Further, the first bluetooth headset includes a light sensor, and the master-slave headset switching device 400 further includes: a first wear state determination module, wherein:
And the first wearing state determining module is used for determining that the first Bluetooth is in a wearing state based on the light sensor.
Further, the first bluetooth headset includes a capacitance sensor, and the switching device 400 of the master-slave headset further includes: a second wear state determination module, wherein:
and the second wearing state determining module is used for determining that the first Bluetooth headset is in a wearing state based on the capacitance sensor.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided by the present application, the coupling of the modules to each other may be electrical, mechanical, or other.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
Referring to fig. 11, a block diagram of a bluetooth headset (first bluetooth headset) 100 according to an embodiment of the application is shown. The bluetooth headset 100 of the present application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein the one or more application programs may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more program(s) configured to perform the method as described in the foregoing method embodiments.
Wherein the processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall bluetooth headset 100 using various interfaces and lines, performs various functions of the bluetooth headset 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in at least one hardware form of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 110 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 110 and may be implemented solely by a single communication chip.
Memory 120 may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). Memory 120 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The storage data area may also store data created by the bluetooth headset 100 in use (e.g., phonebook, audio-video data, chat log data), etc.
Referring to fig. 12, a block diagram of a computer readable storage medium according to an embodiment of the application is shown. The computer readable medium 500 has stored therein program code which may be invoked by a processor to perform the methods described in the method embodiments above.
The computer readable storage medium 500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 500 comprises a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 500 has storage space for program code 510 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 510 may be compressed, for example, in a suitable form.
In summary, in the embodiment of the present application, since the master earphone is based on the sound signal collected by the microphone of the master earphone and the sound signal collected by the microphone of the slave earphone, it is determined whether the master earphone and the slave earphone need to be switched, so that the problem of cost caused by setting other sensors for detecting wearing can be avoided, and the cost of the bluetooth earphone can be reduced. In addition, because the main earphone is based on the sound signals collected by the microphone of the main earphone and the sound signals collected by the microphone of the auxiliary earphone, the problem that other sensors used for detecting wearing are arranged to detect errors can be avoided, and the accuracy rate of switching between the main earphone and the auxiliary earphone can be improved.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be appreciated by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. The master-slave switching method of the earphone is characterized by being applied to a first Bluetooth earphone, when the first Bluetooth earphone is used as a master earphone and a first Bluetooth link is established with electronic equipment, a second Bluetooth earphone is used as a slave earphone and a second Bluetooth link is established with the first Bluetooth earphone, the first Bluetooth earphone comprises a first microphone, the second Bluetooth earphone comprises a second microphone, and the second microphone is in a dormant state, and the method comprises the following steps:
acquiring a sound signal acquired by the first microphone as a first sound signal;
acquiring a first sound intensity corresponding to the first sound signal;
When the first sound intensity is smaller than or equal to a first intensity threshold value, sending a wake-up instruction to the second Bluetooth headset through the second Bluetooth link, wherein the wake-up instruction is used for indicating the second Bluetooth headset to control the second microphone to switch from the dormant state to the working state, and collecting sound signals through the second microphone;
Acquiring sound signals acquired by the second microphone through the second Bluetooth link to serve as second sound signals;
transmitting the link information of the first Bluetooth link to the second Bluetooth headset through the second Bluetooth link under the condition that the first sound signal and the second sound signal meet preset signal conditions;
And when receiving the confirmation identification sent by the second Bluetooth headset based on the link information, sending a switching instruction to the second Bluetooth headset through the second Bluetooth link, wherein the switching instruction is used for indicating the second Bluetooth headset to be used as a main headset to establish a Bluetooth link with the electronic equipment so that the second Bluetooth headset is connected with the electronic equipment through establishing a third Bluetooth link according to the received link information of the first Bluetooth link.
2. The method according to claim 1, wherein the sending a switching instruction to the second bluetooth headset through the second bluetooth link in the case that the first sound signal and the second sound signal satisfy a preset signal condition includes:
acquiring a second sound intensity corresponding to the second sound signal;
And under the condition that the first sound intensity is smaller than or equal to a first intensity threshold value and the second sound intensity is larger than the first intensity threshold value, sending the switching instruction to the second Bluetooth headset through the second Bluetooth link.
3. The method according to claim 1, wherein the sending, by the second bluetooth headset, a switching instruction to instruct the second bluetooth headset to establish a bluetooth link with the electronic device as a master headset, in a case where the first sound signal and the second sound signal satisfy a preset signal condition, includes:
Acquiring a third sound intensity corresponding to the first sound signal and a fourth sound intensity corresponding to the second sound signal;
and under the condition that the fourth sound intensity is larger than the third sound intensity and the difference value between the fourth sound intensity and the third sound intensity is larger than a second intensity threshold, sending a switching instruction to the second Bluetooth headset through the second Bluetooth link, wherein the switching instruction is used for indicating the second Bluetooth headset to be used as a main headset to establish a Bluetooth link with the electronic equipment.
4. The method of claim 1, comprising, prior to said acquiring the sound signal acquired by the first microphone as a first sound signal:
and under the condition that the electronic equipment is in a call state, controlling the first microphone to collect sound signals.
5. The method of any of claims 1-4, wherein the first bluetooth headset includes a light sensor, and further comprising, prior to said acquiring the sound signal acquired by the first microphone as the first sound signal:
and determining that the first Bluetooth headset is in a wearing state based on the light sensor.
6. The method of any of claims 1-4, wherein the first bluetooth headset includes a capacitive sensor, and further comprising, prior to said acquiring the sound signal acquired by the first microphone as a first sound signal:
And determining that the first Bluetooth headset is in a wearing state based on the capacitance sensor.
7. The master-slave switching method of the earphone is characterized by being applied to a Bluetooth earphone set, wherein the Bluetooth earphone set comprises a first Bluetooth earphone and a second Bluetooth earphone, when the first Bluetooth earphone is used as a master earphone and is established with an electronic device, the second Bluetooth earphone is used as a slave earphone and is established with a second Bluetooth link with the first Bluetooth earphone, the first Bluetooth earphone comprises a first microphone, the second Bluetooth earphone comprises a second microphone, and the second microphone is in a dormant state, and the method comprises the following steps:
the first Bluetooth headset acquires the sound signal acquired by the first microphone as a first sound signal;
the first Bluetooth headset acquires first sound intensity corresponding to the first sound signal;
The first Bluetooth headset sends a wake-up instruction to the second Bluetooth headset through the second Bluetooth link under the condition that the first sound intensity is smaller than or equal to a first intensity threshold;
the second Bluetooth headset controls the second microphone to be switched from the dormant state to the working state based on the wake-up instruction;
the second Bluetooth headset collects sound signals through the second microphone and sends the sound signals collected by the second microphone to the first Bluetooth headset through the second Bluetooth link;
the first Bluetooth headset acquires the sound signal acquired by the second microphone through the second Bluetooth link to serve as a second sound signal;
the first Bluetooth headset sends the link information of the first Bluetooth link to the second Bluetooth headset through the second Bluetooth link under the condition that the first sound signal and the second sound signal meet preset signal conditions;
the second Bluetooth headset sends a confirmation mark based on the link information;
The first Bluetooth headset sends a switching instruction to the second Bluetooth headset through the second Bluetooth link when receiving the confirmation identification sent by the second Bluetooth headset based on the link information;
and the second Bluetooth headset responds to the switching instruction and is used as a main headset to be connected with the electronic equipment by establishing a third Bluetooth link according to the received link information of the first Bluetooth link.
8. The utility model provides a master-slave switching device of earphone, its characterized in that is applied to first bluetooth headset, when first bluetooth headset has established first bluetooth link as main earphone and electronic equipment, second bluetooth headset has established second bluetooth link as slave earphone with first bluetooth headset, first bluetooth headset includes first microphone, second bluetooth headset includes the second microphone, the second microphone is in sleep state, the device includes:
the first sound signal acquisition module is used for acquiring the sound signal acquired by the first microphone and taking the sound signal as a first sound signal;
The first sound intensity acquisition sub-module is used for acquiring first sound intensity corresponding to the first sound signal;
The wake-up instruction sending sub-module is used for sending a wake-up instruction to the second Bluetooth headset through the second Bluetooth link under the condition that the first sound intensity is smaller than or equal to a first intensity threshold value, wherein the wake-up instruction is used for indicating the second Bluetooth headset to control the second microphone to switch from the dormant state to the working state and collect sound signals through the second microphone;
the second sound signal acquisition module is used for acquiring the sound signal acquired by the second microphone through the second Bluetooth link to be used as a second sound signal;
The master-slave earphone switching module is used for sending the link information of the first Bluetooth link to the second Bluetooth earphone through the second Bluetooth link under the condition that the first sound signal and the second sound signal meet the preset signal condition; and when receiving the confirmation identification sent by the second Bluetooth headset based on the link information, sending a switching instruction to the second Bluetooth headset through the second Bluetooth link, wherein the switching instruction is used for indicating the second Bluetooth headset to be used as a main headset to establish a Bluetooth link with the electronic equipment so that the second Bluetooth headset is connected with the electronic equipment through establishing a third Bluetooth link according to the received link information of the first Bluetooth link.
9. A bluetooth headset comprising a memory and a processor, the memory being coupled to the processor, the memory storing instructions that when executed by the processor perform the method of any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is callable by a processor for executing the method according to any one of claims 1-7.
CN202210178812.XA 2022-02-25 2022-02-25 Master-slave switching method and device of earphone, bluetooth earphone and storage medium Active CN114501239B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210178812.XA CN114501239B (en) 2022-02-25 2022-02-25 Master-slave switching method and device of earphone, bluetooth earphone and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210178812.XA CN114501239B (en) 2022-02-25 2022-02-25 Master-slave switching method and device of earphone, bluetooth earphone and storage medium

Publications (2)

Publication Number Publication Date
CN114501239A CN114501239A (en) 2022-05-13
CN114501239B true CN114501239B (en) 2024-05-10

Family

ID=81483670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210178812.XA Active CN114501239B (en) 2022-02-25 2022-02-25 Master-slave switching method and device of earphone, bluetooth earphone and storage medium

Country Status (1)

Country Link
CN (1) CN114501239B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116744267B (en) * 2022-11-16 2024-05-21 荣耀终端有限公司 Data processing method, system, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413526A (en) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 Headset control method, device, electronic equipment and storage medium
CN109618052A (en) * 2018-12-11 2019-04-12 努比亚技术有限公司 A kind of call audio switching method and device, mobile terminal and readable storage medium storing program for executing
CN109743654A (en) * 2019-01-29 2019-05-10 上海与德通讯技术有限公司 A kind of bluetooth headset major-minor ear switching method, device, equipment and medium
CN112235677A (en) * 2020-10-09 2021-01-15 歌尔科技有限公司 Master-slave switching method of wireless earphone, wireless earphone and readable storage medium
CN113038317A (en) * 2019-12-25 2021-06-25 Oppo广东移动通信有限公司 Earphone control method and device, Bluetooth earphone and storage medium
WO2021218190A1 (en) * 2020-04-27 2021-11-04 歌尔股份有限公司 Primary-secondary ear switching method and apparatus for tws earphones in communication scenario, and medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107894881A (en) * 2017-10-18 2018-04-10 恒玄科技(上海)有限公司 The method that principal and subordinate link switching, conversation monitoring and the Mike of bluetooth earphone switch

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413526A (en) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 Headset control method, device, electronic equipment and storage medium
CN109618052A (en) * 2018-12-11 2019-04-12 努比亚技术有限公司 A kind of call audio switching method and device, mobile terminal and readable storage medium storing program for executing
CN109743654A (en) * 2019-01-29 2019-05-10 上海与德通讯技术有限公司 A kind of bluetooth headset major-minor ear switching method, device, equipment and medium
CN113038317A (en) * 2019-12-25 2021-06-25 Oppo广东移动通信有限公司 Earphone control method and device, Bluetooth earphone and storage medium
WO2021218190A1 (en) * 2020-04-27 2021-11-04 歌尔股份有限公司 Primary-secondary ear switching method and apparatus for tws earphones in communication scenario, and medium
CN112235677A (en) * 2020-10-09 2021-01-15 歌尔科技有限公司 Master-slave switching method of wireless earphone, wireless earphone and readable storage medium

Also Published As

Publication number Publication date
CN114501239A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
US11778363B2 (en) Audio data transmission method applied to switching between single-earbud mode and double-earbud mode of TWS headset and device
US11805350B2 (en) Point-to-multipoint data transmission method and device
US20220039179A1 (en) Bluetooth Connection Method and Device
CN109413555B (en) Audio output method and device, earphone and electronic equipment
CN109151212B (en) Equipment control method and device and electronic equipment
CN109413526B (en) Earphone control method, earphone control device, electronic equipment and storage medium
US10104213B2 (en) Information processing device
EP4061027B1 (en) Bluetooth communication method and apparatus
CN112771828B (en) Audio data communication method and electronic equipment
EP4109922A1 (en) Audio processing method, apparatus and system
CN113038316A (en) Earphone control method and device, Bluetooth earphone and storage medium
CN109257732B (en) Equipment control method and device and electronic equipment
WO2023273701A1 (en) Coding control method and apparatus, wireless earphone, and storage medium
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
CN105827793A (en) Voice directional output method and mobile terminal
CN114501239B (en) Master-slave switching method and device of earphone, bluetooth earphone and storage medium
CN108432220B (en) Method and terminal for switching call mode
CN108882084B (en) Wearable equipment electric quantity balancing method and related product
CN115022766B (en) Audio data playing method and equipment
CN113115151B (en) Control method and device of wireless earphone, equipment and storage medium
CN113038317B (en) Earphone control method and device, bluetooth earphone and storage medium
WO2021233398A1 (en) Wireless audio system, wireless communication method, and device
CN112822591A (en) Call data transmission method and device, electronic equipment and storage medium
WO2024012072A1 (en) Intercom method and apparatus for earphones, bluetooth earphones, and storage medium
WO2024066648A1 (en) Device control method and apparatus, bluetooth earphone, 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