CN113115155B - Wireless earphone control method, wireless earphone control device and electronic equipment - Google Patents

Wireless earphone control method, wireless earphone control device and electronic equipment Download PDF

Info

Publication number
CN113115155B
CN113115155B CN202110372437.8A CN202110372437A CN113115155B CN 113115155 B CN113115155 B CN 113115155B CN 202110372437 A CN202110372437 A CN 202110372437A CN 113115155 B CN113115155 B CN 113115155B
Authority
CN
China
Prior art keywords
earphone
data stream
channel data
voltage
power
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
CN202110372437.8A
Other languages
Chinese (zh)
Other versions
CN113115155A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110372437.8A priority Critical patent/CN113115155B/en
Publication of CN113115155A publication Critical patent/CN113115155A/en
Application granted granted Critical
Publication of CN113115155B publication Critical patent/CN113115155B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a wireless earphone control method, a wireless earphone control device and electronic equipment, and belongs to the technical field of electronic equipment. The wireless headset comprises a first headset and a second headset, and the wireless headset control method comprises the following steps: under the condition that the difference value between the first voltage and the second voltage is smaller than a first threshold value, receiving a first channel data stream and a second channel data stream sent by the mobile terminal through a first earphone, sending the second channel data stream to a second earphone through the first earphone, playing the first channel data stream through the first earphone, and playing the second channel data stream through the second earphone; the first voltage is the battery voltage of the first earphone, and the second voltage is the battery voltage of the second earphone; and under the condition that the first voltage is less than the second voltage and the difference value between the first voltage and the second voltage is greater than or equal to a first threshold value, playing the first channel data stream through the first earphone and playing the first channel data stream and the second channel data stream through the second earphone.

Description

Wireless earphone control method, wireless earphone control device and electronic equipment
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a wireless earphone control method, a wireless earphone control device and electronic equipment.
Background
The wireless earphone has the characteristics of small volume, convenient use and the like, so that the wireless earphone is more commonly used. The wireless earphone needs to be provided with a battery to provide a power supply for the wireless earphone, and under the scene that the two ears of a user use the wireless earphone simultaneously, when the electric quantity of a single wireless earphone is insufficient, the wireless earphone can not be used by the two ears of the user, so that the use efficiency of the wireless earphone is low.
Disclosure of Invention
The embodiment of the application aims to provide a wireless earphone control method, a wireless earphone control device and electronic equipment, so as to solve the problem that the use efficiency of a wireless earphone is low due to insufficient electric quantity of a single wireless earphone in the prior art.
In a first aspect, an embodiment of the present application provides a method for controlling a wireless headset, where the wireless headset includes a first headset and a second headset, and the method includes:
under the condition that the difference value between the first voltage and the second voltage is smaller than a first threshold value, receiving a first sound channel data stream and a second sound channel data stream sent by a mobile terminal through the first earphone, sending the second sound channel data stream to the second earphone through the first earphone, playing the first sound channel data stream through the first earphone, and playing the second sound channel data stream through the second earphone; the first voltage is a battery voltage of the first earphone, and the second voltage is a battery voltage of the second earphone;
playing the first channel data stream through the first earphone and playing the first channel data stream and the second channel data stream through the second earphone if the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold.
In a second aspect, an embodiment of the present application provides a wireless headset control device, where the wireless headset includes a first headset and a second headset, the device includes:
the first control module is configured to receive a first channel data stream and a second channel data stream sent by a mobile terminal through the first earphone and send the second channel data stream to the second earphone through the first earphone, and play the first channel data stream through the first earphone and play the second channel data stream through the second earphone, when a difference between a first voltage and a second voltage is smaller than a first threshold; the first voltage is a battery voltage of the first earphone, and the second voltage is a battery voltage of the second earphone;
a second control module, configured to play the first channel data stream through the first earphone and play the first channel data stream and the second channel data stream through the second earphone when the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the wireless headset control method according to the first aspect.
In a fourth aspect, the present embodiments provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the wireless headset control method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, under the scene that two ears of a user use the wireless earphones at the same time, when the voltages of the two wireless earphones are close, the two wireless earphones play data streams of different sound channels respectively; when the voltages of the two wireless earphones have a certain difference, the wireless earphone with lower voltage continuously plays the data streams of the corresponding sound channels, and the wireless earphone with higher voltage simultaneously plays the data streams of the two sound channels. Therefore, on one hand, the electric quantity difference between the two wireless earphones can be gradually reduced, and the available electric quantity of the two wireless earphones can be balanced, so that the working time of the two wireless earphones can be effectively prolonged, and the use efficiency of the two wireless earphones is improved; on the other hand, in the whole working process of the wireless earphone, the user can be in a state of continuously using the wireless earphone by two ears, and the playing effect of the wireless earphone is improved.
Drawings
Fig. 1 is a schematic diagram of a one-way transmission scheme of a binaural system;
fig. 2 is a schematic diagram of a two-way transmission scheme for a binaural system;
fig. 3 is a flowchart illustrating a method for controlling a wireless headset according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a single-channel transmission mode of a binaural system provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a two-way transmission mode of a binaural system provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a wireless headset control device according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an electronic device provided by an embodiment of the present application;
fig. 8 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application;
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
"Wireless headphones" in the description and claims of this application include, but are not limited to, bluetooth Wireless headphones, infrared Wireless headphones, 2.4G Wireless headphones, TWS (True Wireless Stereo) headphones.
The wireless headset control method, the wireless headset control device and the electronic device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
The method and the device can be applied to a scene that the two ears of the user use the wireless earphones at the same time, under the scene, the user uses the first earphone and the second earphone at the same time, the first earphone and the second earphone establish wireless connection with the terminal at the same time and output audio data streams at the same time, and the first earphone and the second earphone can jointly form a binaural system.
In this application, the first earphone and the second earphone may be any wireless earphones, and the first earphone and the second earphone may play any channel data stream. In one embodiment, the first earphone and the second earphone are each one of a left earphone and a right earphone, for example, when the first earphone is a left earphone, the second earphone is a right earphone; when the first earphone is a right earphone, the second earphone is a left earphone.
For convenience of description, it is set that, in a default condition, the first headphone plays the first channel data stream, and the second headphone plays the second channel data stream.
Currently, the transmission modes of the binaural system may include a single-channel transmission mode and a two-channel transmission mode, which are described below with reference to fig. 1 and 2.
Fig. 1 shows a schematic diagram of a one-way transmission scheme of a binaural system.
As shown in fig. 1, the terminal 10 sends a first channel data stream and a second channel data stream to the first earphone 20, the first earphone 20 receives the first channel data stream and the second channel data stream sent by the terminal 10, the first earphone 20 forwards the second channel data stream to the second earphone 30, the second earphone 30 receives the second channel data stream sent by the first earphone 20, the first earphone 20 outputs the second channel data stream (or plays, the same below), and the second earphone 30 outputs the second channel data stream.
Fig. 2 shows a schematic diagram of a two-way transmission scheme of a binaural system.
As shown in fig. 2, the terminal 10 sends a first channel data stream to the first earphone 20 and sends a second channel data stream to the second earphone 30, the first earphone 20 receives the first channel data stream sent by the terminal, the first earphone 20 receives the second channel data stream sent by the terminal, the first earphone 20 outputs the first channel data stream, and the second earphone 30 outputs the second channel data stream.
In the single-channel transmission mode, the first earphone is responsible for receiving and outputting data streams, and the second earphone is also responsible for forwarding the data streams besides the receiving and outputting of the data streams, so the power consumption speed of the second earphone is usually higher than that of the first earphone. As can be seen, in the single-channel transmission method, there is a difference in power consumption speed between the first earphone and the second earphone. When the power of one wireless earphone is insufficient, even if the power of the other wireless earphone is sufficient, the working performance of the binaural system is affected, thereby reducing the use efficiency of the wireless earphone.
In view of the above, in order to solve the above problems, the present application provides a wireless headset control method, a wireless headset control device and an electronic device.
Fig. 3 shows a flowchart of a wireless headset control method according to an embodiment of the present application.
As shown in fig. 3, the wireless headset control method includes the steps of:
step 301: under the condition that the difference value between the first voltage and the second voltage is smaller than a first threshold value, receiving a first channel data stream and a second channel data stream sent by a mobile terminal through a first earphone, sending the second channel data stream to a second earphone through the first earphone, playing the first channel data stream through the first earphone, and playing the second channel data stream through the second earphone; the first voltage is the battery voltage of the first earphone, and the second voltage is the battery voltage of the second earphone;
step 302: playing the first channel data stream through the first earphone and playing the first channel data stream and the second channel data stream through the second earphone if the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold.
In the embodiment of the application, when the wireless headset works in a single-path transmission mode, because the first headset and the second headset have difference in power consumption speed, the first voltage and the second voltage can be monitored in the process that the wireless headset works in the single-path transmission mode so as to monitor the difference between the first voltage and the second voltage. The difference between the first voltage and the second voltage may be monitored in various ways, for example, the difference between the first voltage and the second voltage may be monitored by the terminal, or the difference between the first voltage and the second voltage may be monitored by the first earphone or the second earphone. Taking the example that the terminal monitors the difference between the first voltage and the second voltage, the specific monitoring process may be: the first earphone may transmit the first voltage to the terminal, the second earphone may transmit the second voltage to the terminal, and the terminal calculates a difference between the first voltage and the second voltage after receiving the first voltage and the second voltage. The terminal may also feed back the monitoring results to the first and second earphones, e.g., where the difference between the first voltage and the second voltage is greater than or equal to the first threshold.
The first threshold may be set according to practical situations, and is not limited herein, and the first threshold may be, for example, 0.3V, 0.5V, or the like.
The difference between the first voltage and the second voltage is smaller than the first threshold, which may be understood as that the available electric quantities of the first earphone and the second earphone are similar, in this case, the first channel data stream is played through the first earphone, and the second channel data stream is played through the second earphone, where the first channel data stream and the second channel data stream correspond to default channel data streams of the first earphone and the second earphone, respectively. That is, in the case that the available power of the first earphone and the second earphone is similar, the first earphone and the second earphone each play the default channel data stream.
In order to balance the difference between the electric quantities of the first earphone and the second earphone, the first earphone plays the first channel data stream, the first channel data stream is played through the first earphone, and the first channel data stream and the second channel data stream are played through the second earphone.
Under the condition that the available electric quantities of the first earphone and the second earphone are similar, the transmission mode of the first earphone and the second earphone may be a single-channel transmission mode as shown in fig. 1, specifically, in step 301, the first earphone receives a first channel data stream and a second channel data stream sent by the mobile terminal, the first earphone sends the second channel data stream to the second earphone, and the first earphone plays the first channel data stream and the second earphone plays the second channel data stream.
In the case that the difference between the available electric quantities of the first earphone and the second earphone is large, the transmission mode of the first earphone and the second earphone may not be limited to a single-channel transmission mode, which is not limited in the present application. Specifically, in step 302, the first channel data stream and the second channel data stream played by the second earphone may be sent to the second earphone through the first earphone, or may be sent to the second earphone through the terminal.
In the embodiment of the application, under the scene that two ears of a user use the wireless earphones at the same time, when the voltages of the two wireless earphones are close, the two wireless earphones play data streams of different sound channels respectively; when the voltages of the two wireless earphones have a certain difference, the wireless earphone with lower voltage continuously plays the data streams of the corresponding sound channels, and the wireless earphone with higher voltage simultaneously plays the data streams of the two sound channels. Therefore, on one hand, the electric quantity difference between the two wireless earphones can be gradually reduced, and the available electric quantity of the two wireless earphones can be balanced, so that the working time of the two wireless earphones can be effectively prolonged, and the use efficiency of the two wireless earphones is improved; on the other hand, in the whole working process of the wireless earphone, the user can be in a state of continuously using the wireless earphone by two ears, and the playing effect of the wireless earphone is improved.
In some embodiments, the above steps may be implemented by monitoring a power difference between the first earphone and the second earphone instead of monitoring a voltage difference between the first earphone and the second earphone.
Specifically, under the condition that the electric quantity difference value between the first earphone and the second earphone is smaller than the second threshold value, the first channel data stream and the second channel data stream sent by the mobile terminal are received through the first earphone, the second channel data stream is sent to the second earphone through the first earphone, the first channel data stream is played through the first earphone, and the second channel data stream is played through the second earphone. And under the conditions that the electric quantity of the first earphone is less than that of the second earphone and the electric quantity difference value between the first earphone and the second earphone is greater than or equal to a second threshold value, playing the first channel data stream through the first earphone and playing the first channel data stream and the second channel data stream through the second earphone.
Optionally, the playing the first channel data stream through the first earphone, and playing the first channel data stream and the second channel data stream through the second earphone includes:
playing the first channel data stream at a first power through the first earphone, playing the first channel data stream at a second power through the second earphone, and playing the second channel data stream at a third power; the power value of the first power is P1, the power value of the second power is P2, and the power value of the third power is P3, wherein P1 is less than P3, and P2 is less than P3.
In this embodiment, the wireless headset (including the first headset or the second headset) may adjust the playback power of the data stream (including the first channel data stream or the second channel data stream) to balance the power difference between the first headset and the second headset. The playing power of the data stream may be adjusted in various ways, and for example, the first headphone may adjust the playing power of the first channel data stream by adjusting an analog gain (or amplitude) of the first channel data stream, or the first headphone may adjust the playing power by adjusting a digital gain (or tone quality) of the first channel data stream.
In an embodiment, when the difference between the available electric quantities of the first earphone and the second earphone is large, the first earphone is enabled to play the first channel data stream at a low playing power, and the second earphone is enabled to play the first channel data stream and the second channel data stream at a high playing power. Therefore, the electric quantity of the two earphones tends to be balanced gradually, the working time of the two earphones can be effectively prolonged, and the using efficiency of the two earphones is improved.
In addition, in this embodiment, when the difference between the available electric quantities of the first and second earphones is large, the playing power of the second earphone for playing the second channel data stream is made larger than the playing power of the first channel data stream. Therefore, the second earphone can be mainly used for playing the second channel data stream and is assisted by playing the first channel data stream, so that the second earphone cannot influence the playing of the second channel data stream due to the fact that the first channel data stream is additionally played, the output quality of the second channel data stream is guaranteed, and the playing performance of the second earphone is guaranteed.
In some embodiments, in step 301, the playing power of the first headphone playing the first channel data stream may be equal to the sum of the playing power of the first headphone playing the first channel data stream and the playing power of the second headphone playing the first channel data stream in step 302. Accordingly, in step 301, the playing power of the second headphone playing the second channel data stream may be equal to the playing power of the second headphone playing the second channel data stream in step 302.
Therefore, the playing power of the first sound channel data stream and the second sound channel data stream can be always kept stable, the output quality of the first sound channel data stream and the second sound channel data stream is guaranteed, and the integral playing performance of the wireless earphone is guaranteed.
In some embodiments, the playback power of the first channel data stream may be equal to the playback power of the second channel data stream, either at step 301 or step 302. Therefore, the playing power of the first sound channel data stream and the playing power of the second sound channel data stream in the whole process are equivalent, the output quality of the first sound channel data stream and the output quality of the second sound channel data stream are guaranteed, and the integral playing performance of the wireless earphone is guaranteed.
Optionally, in a case that the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold, the method further includes:
transmitting, by the first earphone, the first channel data stream and the second channel data stream to the second earphone.
In this embodiment, when the first voltage is less than the second voltage and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, the transmission mode of the first earphone and the second earphone may still be a single-channel transmission mode.
Specifically, in the case that the difference between the first voltage and the second voltage is smaller than the first threshold, the transmission mode of the first earphone and the second earphone may be the single-channel transmission mode shown in fig. 1; in the case that the first voltage is less than the second voltage and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, the transmission manner of the first earphone and the second earphone may be the one-way transmission manner shown in fig. 4.
As shown in fig. 4, the terminal 10 sends the first and second channel data streams to the first earphone 20, the first earphone 20 receives the first and second channel data streams sent by the terminal 10, the first earphone 20 forwards the first and second channel data streams to the second earphone 30, the second earphone 30 receives the first and second channel data streams sent by the first earphone 20, the second earphone 30 outputs the first and second channel data streams, and the first earphone 20 outputs the second channel data stream.
Optionally, in a case that the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold, the method further includes:
establishing a wireless communication connection with the mobile terminal through the second earphone;
receiving a first channel data stream sent by the mobile terminal through the first earphone;
and receiving the first sound channel data stream and the second sound channel data stream sent by the mobile terminal through the second earphone.
In this embodiment, when the first voltage is lower than the second voltage and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, the transmission modes of the first earphone and the second earphone can still be adjusted from the single-path transmission mode to the dual-path transmission mode.
Specifically, in the case that the difference between the first voltage and the second voltage is smaller than the first threshold, the transmission mode of the first earphone and the second earphone may be the single-channel transmission mode shown in fig. 1; in the case that the first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, the transmission manner of the first earphone and the second earphone may be a two-way transmission manner shown in fig. 5.
As shown in fig. 5, the terminal 10 transmits a first channel data stream to the first earphone 20 and transmits the first channel data stream and a second channel data stream to the second earphone 30, the first earphone 20 receives the first channel data stream transmitted by the terminal, the second earphone 30 receives the first channel data stream and the second channel data stream transmitted by the terminal, the first earphone 20 outputs the first channel data stream, and the second earphone 30 outputs the first channel data stream and the second channel data stream.
In the embodiment, under the condition that the difference between the available electric quantity of the first earphone and the available electric quantity of the second earphone is large, the electric quantity of the two earphones gradually tends to be balanced by adjusting the single-path transmission mode to the double-path transmission mode, so that the working time of the two earphones can be effectively prolonged, and the service efficiency of the two earphones is improved.
Optionally, a sum of the power value of the first power and the power value of the second power is equal to the power value of the third power.
In this embodiment, when the difference between the available power of the first earphone and the available power of the second earphone is large, the playback power of the first data stream is equal to the playback power of the second data stream. Therefore, the playing power of the first sound channel data stream is equivalent to that of the second sound channel data stream, the output quality of the first sound channel data stream and the output quality of the second sound channel data stream are guaranteed, and the integral playing performance of the wireless earphone is guaranteed.
To sum up, the embodiment of the application can balance the available electric quantity of the two wireless earphones, effectively prolong the working time of the two wireless earphones, and improve the service efficiency of the two wireless earphones.
It should be noted that, in the wireless headset control method provided in the embodiment of the present application, the execution main body may be a wireless headset control device, or a control module in the wireless headset control device for executing the wireless headset control method. In the embodiment of the present application, a method for executing a wireless headset control by a wireless headset control device is taken as an example, and the wireless headset control device provided in the embodiment of the present application is described.
Fig. 6 shows a schematic structural diagram of a wireless headset control device according to an embodiment of the present application.
As shown in fig. 6, the wireless headset includes a first headset and a second headset, and the wireless headset controlling device 400 includes:
a first control module 401, configured to receive, through the first earphone, a first channel data stream and a second channel data stream that are sent by a mobile terminal when a difference between a first voltage and a second voltage is smaller than a first threshold, send, through the first earphone, the second channel data stream to the second earphone, play, through the first earphone, the first channel data stream, and play, through the second earphone, the second channel data stream; the first voltage is the battery voltage of the first earphone, and the second voltage is the battery voltage of the second earphone;
a second control module 402, configured to play the first channel data stream through the first earphone and play the first channel data stream and the second channel data stream through the second earphone if the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold.
Optionally, the second control module 402 is specifically configured to:
playing the first channel data stream at a first power through the first earphone, playing the first channel data stream at a second power through the second earphone, and playing the second channel data stream at a third power; the power value of the first power is P1, the power value of the second power is P2, and the power value of the third power is P3, wherein P1 is less than P3, and P2 is less than P3.
Optionally, the wireless headset control device 400 further includes a third control module, configured to:
sending, by the first earphone, the first channel data stream and the second channel data stream to the second earphone if the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold.
Optionally, the wireless headset controlling device 400 further includes a fourth controlling module, configured to:
establishing a wireless communication connection with the mobile terminal through the second earphone if the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold;
receiving a first channel data stream sent by the mobile terminal through the first earphone;
and receiving the first channel data stream and the second channel data stream sent by the mobile terminal through the second earphone.
Optionally, a sum of the power value of the first power and the power value of the second power is equal to the power value of the third power.
The wireless earphone control device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), and the like, and the embodiments of the present application are not limited in particular.
The wireless headset control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The wireless headset control device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 3 to fig. 5, and can achieve the same beneficial effects, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 600 is further provided in the embodiment of the present application, and includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and capable of running on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the above bill counting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing the embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 7010.
Those skilled in the art will appreciate that the electronic device 700 may further comprise a power supply (e.g., a battery) for powering the various components, and the power supply may be logically connected to the processor 7010 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation to the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the radio frequency unit 701 is configured to:
under the condition that the difference value between the first voltage and the second voltage is smaller than a first threshold value, receiving a first sound channel data stream and a second sound channel data stream which are sent by a mobile terminal through the first earphone, and sending the second sound channel data stream to the second earphone through the first earphone;
an audio output unit 703 for:
playing the first channel data stream through the first earphone, and playing the second channel data stream through the second earphone; the first voltage is a battery voltage of the first earphone, and the second voltage is a battery voltage of the second earphone;
playing the first channel data stream through the first earphone and playing the first channel data stream and the second channel data stream through the second earphone if the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold.
In the embodiment of the application, under the scene that two ears of a user use the wireless earphones at the same time, when the voltages of the two wireless earphones are close, the two wireless earphones play data streams of different sound channels respectively; when the voltages of the two wireless earphones have a certain difference, the wireless earphone with lower voltage continuously plays the data streams of the corresponding sound channels, and the wireless earphone with higher voltage simultaneously plays the data streams of the two sound channels. Therefore, on one hand, the electric quantity difference between the two wireless earphones can be gradually reduced, and the available electric quantity of the two wireless earphones can be balanced, so that the working time of the two wireless earphones can be effectively prolonged, and the use efficiency of the two wireless earphones is improved; on the other hand, in the whole working process of the wireless earphone, the user can be in a state of continuously using the wireless earphone by two ears, and the playing effect of the wireless earphone is improved.
Optionally, the audio output unit 703 is further configured to:
playing the first channel data stream at a first power through the first earphone, playing the first channel data stream at a second power through the second earphone, and playing the second channel data stream at a third power; the power value of the first power is P1, the power value of the second power is P2, and the power value of the third power is P3, wherein P1 is less than P3, and P2 is less than P3.
Optionally, the radio frequency unit 701 is further configured to:
sending, by the first earphone, the first channel data stream and the second channel data stream to the second earphone if the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold.
Optionally, the radio frequency unit 701 is further configured to:
establishing a wireless communication connection with the mobile terminal through the second headset if the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold;
receiving a first channel data stream sent by the mobile terminal through the first earphone;
and receiving the first channel data stream and the second channel data stream sent by the mobile terminal through the second earphone.
Optionally, a sum of the power value of the first power and the power value of the second power is equal to the power value of the third power.
It should be understood that in the embodiment of the present application, the input unit 704 may include a soft keyboard 7041 and a microphone 7042. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be described in further detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 7010 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 7010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned wireless headset control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above embodiment of the wireless headset control method, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A wireless headset control method, the wireless headset comprising a first headset and a second headset, the method comprising:
under the condition that the difference value between the first voltage and the second voltage is smaller than a first threshold value, receiving a first channel data stream and a second channel data stream sent by a mobile terminal through the first earphone, sending the second channel data stream to the second earphone through the first earphone, playing the first channel data stream through the first earphone, and playing the second channel data stream through the second earphone; the first voltage is a battery voltage of the first earphone, and the second voltage is a battery voltage of the second earphone;
playing the first channel data stream through the first earphone and playing the first channel data stream and the second channel data stream through the second earphone if the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold.
2. The method of claim 1, wherein playing the first channel data stream over the first headset and playing the first channel data stream and the second channel data stream over the second headset comprises:
playing the first channel data stream at a first power through the first earphone, playing the first channel data stream at a second power through the second earphone, and playing the second channel data stream at a third power; the power value of the first power is P1, the power value of the second power is P2, and the power value of the third power is P3, wherein P1 is less than P3, and P2 is less than P3.
3. The method of claim 1, wherein if the first voltage is less than the second voltage and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, the method further comprises:
transmitting, by the first earphone, the first channel data stream and the second channel data stream to the second earphone.
4. The method of claim 1, wherein if the first voltage is less than the second voltage and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, the method further comprises:
establishing wireless communication connection with the mobile terminal through the second earphone;
receiving a first channel data stream sent by the mobile terminal through the first earphone;
and receiving the first sound channel data stream and the second sound channel data stream sent by the mobile terminal through the second earphone.
5. The method of claim 2, wherein a sum of the power value of the first power and the power value of the second power is equal to the power value of the third power.
6. A wireless headset control device, the wireless headset comprising a first headset and a second headset, the device comprising:
the first control module is configured to receive a first channel data stream and a second channel data stream sent by a mobile terminal through the first earphone and send the second channel data stream to the second earphone through the first earphone, and play the first channel data stream through the first earphone and play the second channel data stream through the second earphone, when a difference between a first voltage and a second voltage is smaller than a first threshold; the first voltage is the battery voltage of the first earphone, and the second voltage is the battery voltage of the second earphone;
and a second control module, configured to play the first channel data stream through the first earphone and play the first channel data stream and the second channel data stream through the second earphone when the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold.
7. The apparatus of claim 6, wherein the second control module is specifically configured to:
playing the first channel data stream at a first power through the first earphone, playing the first channel data stream at a second power through the second earphone, and playing the second channel data stream at a third power; the power value of the first power is P1, the power value of the second power is P2, and the power value of the third power is P3, wherein P1 is less than P3, and P2 is less than P3.
8. The apparatus of claim 6, further comprising a third control module to:
sending, by the first earphone, the first channel data stream and the second channel data stream to the second earphone if the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold.
9. The apparatus of claim 6, further comprising a fourth control module to:
establishing a wireless communication connection with the mobile terminal through the second headset if the first voltage is less than the second voltage and a difference between the first voltage and the second voltage is greater than or equal to the first threshold;
receiving a first channel data stream sent by the mobile terminal through the first earphone;
and receiving the first channel data stream and the second channel data stream sent by the mobile terminal through the second earphone.
10. The apparatus of claim 7, wherein a sum of the power value of the first power and the power value of the second power is equal to the power value of the third power.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the wireless headset control method of any of claims 1 to 5.
12. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of a wireless headset control method according to any of claims 1 to 5.
CN202110372437.8A 2021-04-07 2021-04-07 Wireless earphone control method, wireless earphone control device and electronic equipment Active CN113115155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110372437.8A CN113115155B (en) 2021-04-07 2021-04-07 Wireless earphone control method, wireless earphone control device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110372437.8A CN113115155B (en) 2021-04-07 2021-04-07 Wireless earphone control method, wireless earphone control device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113115155A CN113115155A (en) 2021-07-13
CN113115155B true CN113115155B (en) 2023-01-10

Family

ID=76714472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110372437.8A Active CN113115155B (en) 2021-04-07 2021-04-07 Wireless earphone control method, wireless earphone control device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113115155B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143660A (en) * 2022-01-06 2022-03-04 维沃移动通信有限公司 Wireless earphone control method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106937197A (en) * 2017-01-25 2017-07-07 北京联创志芯科技有限公司 Double-ear wireless earphone and communication control method thereof
CN108882084A (en) * 2018-05-31 2018-11-23 Oppo广东移动通信有限公司 A kind of wearable device electric quantity balancing method and Related product
CN110618805A (en) * 2019-09-17 2019-12-27 Oppo广东移动通信有限公司 Method and device for adjusting electric quantity of equipment, electronic equipment and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9949205B2 (en) * 2012-05-26 2018-04-17 Qualcomm Incorporated Smart battery wear leveling for audio devices
KR102546249B1 (en) * 2016-10-10 2023-06-23 삼성전자주식회사 output device outputting audio signal and method for controlling thereof
CN108958696A (en) * 2018-07-02 2018-12-07 Oppo广东移动通信有限公司 Principal and subordinate's earphone method for handover control and Related product

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106937197A (en) * 2017-01-25 2017-07-07 北京联创志芯科技有限公司 Double-ear wireless earphone and communication control method thereof
CN108882084A (en) * 2018-05-31 2018-11-23 Oppo广东移动通信有限公司 A kind of wearable device electric quantity balancing method and Related product
CN110618805A (en) * 2019-09-17 2019-12-27 Oppo广东移动通信有限公司 Method and device for adjusting electric quantity of equipment, electronic equipment and medium

Also Published As

Publication number Publication date
CN113115155A (en) 2021-07-13

Similar Documents

Publication Publication Date Title
US9978386B2 (en) Voice processing method and device
US20070297618A1 (en) System and method for controlling headphones
WO2017181365A1 (en) Earphone channel control method, related apparatus, and system
CN108810749B (en) Player control method, device, terminal equipment and storage medium
CN110166794B (en) Live broadcast audio processing method, device and system
CN111770416B (en) Loudspeaker control method and device and electronic equipment
WO2023131155A1 (en) Wireless earphone control method and apparatus, and electronic device
JP2005027319A (en) Processor peripheral device using communication equipment
US20170003930A1 (en) Information Processing Method, Electronic Apparatus and System
CN111033614B (en) Volume adjusting method and device, mobile terminal and storage medium
CN108683980B (en) Audio signal transmission method and mobile terminal
WO2020025034A1 (en) Master/slave switching method for wearable apparatus and related product
WO2021169869A1 (en) Audio-playing apparatus, audio-playing method, and electronic device
WO2024021736A1 (en) Transmission method, apparatus, and system for bluetooth multimedia packet, and device
CN112764710A (en) Audio playing mode switching method and device, electronic equipment and storage medium
CN113115155B (en) Wireless earphone control method, wireless earphone control device and electronic equipment
WO2022206651A1 (en) Instant communication method and apparatus, electronic device, and storage medium
CN109688502B (en) Control method, device and equipment
US20160192055A1 (en) Drive-by-wire earphone capable of being connected with input source for wireless communication
CN113115179B (en) Working state adjusting method and device
US8655417B2 (en) Video/audio playing apparatus with wireless signal transmission function and wireless video/audio transmission module thereof
CN109155803B (en) Audio data processing method, terminal device and storage medium
US20070195962A1 (en) Apparatus and method for outputting audio data using wireless terminal
CN114650496A (en) Audio playing method and electronic equipment
CN110381418B (en) Loudspeaking device, relay device and mobile terminal

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