CN115278461A - Control method and device of Bluetooth headset, bluetooth headset and storage medium - Google Patents

Control method and device of Bluetooth headset, bluetooth headset and storage medium Download PDF

Info

Publication number
CN115278461A
CN115278461A CN202210906749.7A CN202210906749A CN115278461A CN 115278461 A CN115278461 A CN 115278461A CN 202210906749 A CN202210906749 A CN 202210906749A CN 115278461 A CN115278461 A CN 115278461A
Authority
CN
China
Prior art keywords
bluetooth headset
code rate
mode
audio quality
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210906749.7A
Other languages
Chinese (zh)
Inventor
徐增国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202210906749.7A priority Critical patent/CN115278461A/en
Publication of CN115278461A publication Critical patent/CN115278461A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive loop type
    • 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 control method and device of a Bluetooth headset, the Bluetooth headset and a storage medium, and belongs to the technical field of audio coding and decoding. The control method of the Bluetooth headset comprises the following steps: receiving an audio data packet and determining a data code rate corresponding to the audio data packet; determining an audio quality mode of the Bluetooth headset according to the data code rate, and determining a scanning strategy corresponding to the audio quality mode; and starting or closing the page scan function of the Bluetooth headset according to the scanning strategy. This application can reduce the calorie of the bluetooth headset when playing the audio frequency and pause the phenomenon.

Description

Control method and device of Bluetooth headset, bluetooth headset and storage medium
Technical Field
The present disclosure relates to the field of audio encoding and decoding technologies, and in particular, to a method and an apparatus for controlling a bluetooth headset, and a storage medium.
Background
With the development of the bluetooth headset industry, the bluetooth headset may support encoding functions such as SBC (low complexity subband coding), AAC (advanced audio coding), and APTX (lossless transmission technology), and may also support high definition audio codec functions such as LDAC (audio coding technology capable of transmitting high resolution audio content), APTX adaptive coding and decoding, and LHDC (high quality bluetooth codec developed under A2 DP-based bluetooth protocol).
High definition audio coding and decoding (such as LDAC, LHDC, aptx adaptive and the like) based on the Bluetooth headset has high demand on bandwidth due to high code rate. The bandwidth of the bluetooth headset itself is limited, both to maintain the dual connection and to do BLE broadcasting, and the bandwidth left for audio data transmission is fixed. Playing high-definition audio codec in such a scenario is basically easy to jam, and the user experience is seriously affected.
Therefore, how to reduce the pause phenomenon when the bluetooth headset plays audio is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The present application provides a control method for a bluetooth headset, a control device for a bluetooth headset, a bluetooth headset and a storage medium, which can reduce the pause phenomenon when the bluetooth headset plays audio.
In order to solve the above technical problem, the present application provides a method for controlling a bluetooth headset, where the controlling of the bluetooth headset includes:
receiving an audio data packet and determining a data code rate corresponding to the audio data packet;
determining an audio quality mode of the Bluetooth headset according to the data code rate, and determining a scanning strategy corresponding to the audio quality mode;
and starting or closing the page scan function of the Bluetooth headset according to the scanning strategy.
Optionally, determining the audio quality mode of the bluetooth headset according to the data code rate includes:
if the data code rate of the audio data packet is smaller than or equal to a threshold code rate, judging that the audio quality mode of the Bluetooth headset is a common mode;
and if the data code rate of the continuous N frames of audio data packets is greater than the threshold code rate, judging that the audio quality mode of the Bluetooth headset is a high fidelity mode.
Optionally, before determining the audio quality mode of the bluetooth headset according to the data code rate, the method further includes:
determining an expected code rate set by a user, and setting the product of the expected code rate and a preset coefficient a as the threshold code rate; a is more than 0 and less than 1.
Optionally, the bluetooth headset comprises a master headset and a slave headset;
correspondingly, determining the scanning strategy corresponding to the audio quality mode comprises:
determining the scanning strategy according to the audio quality mode and the Bluetooth connection state;
wherein the Bluetooth connection state describes whether the master earphone and the slave earphone establish Bluetooth connection.
Optionally, determining the scanning policy according to the audio quality mode and the bluetooth connection state includes:
if the audio quality mode is a high fidelity mode and the Bluetooth connection between the master earphone and the slave earphone is established, generating the scanning strategy for closing the page scan function;
if the audio quality mode is a high-fidelity mode and the Bluetooth connection between the master earphone and the slave earphone is not established, generating the scanning strategy for starting the page scan function;
if the audio quality mode is a common mode and the Bluetooth connection between the master earphone and the slave earphone is established, generating the scanning strategy for starting the page scan function;
if the audio quality mode is a common mode and the Bluetooth connection between the master earphone and the slave earphone is not established, generating the scanning strategy for starting the page scan function;
and the data code rate of the Bluetooth headset in a normal mode is lower than that of the Bluetooth headset in a high-fidelity mode.
Optionally, before determining the audio quality mode of the bluetooth headset according to the data code rate, the method further includes:
determining a code rate control mode of the Bluetooth headset;
and if the code rate control mode of the Bluetooth headset is a fixed code rate mode, determining the audio quality mode of the Bluetooth headset according to the data code rate.
Optionally, the bluetooth headset comprises a master headset and a slave headset;
correspondingly, before determining the audio quality mode of the bluetooth headset according to the data code rate, the method further includes:
judging whether the master earphone establishes Bluetooth connection with the slave earphone;
if yes, determining the audio quality mode of the Bluetooth headset according to the data code rate;
if not, generating the scanning strategy for starting the page scan function;
correspondingly, determining the scanning strategy corresponding to the audio quality mode comprises:
if the audio quality mode is a high fidelity mode, generating the scanning strategy for closing the page scan function;
if the audio quality mode is a common mode, generating the scanning strategy for starting a page scan function;
and the data code rate of the Bluetooth headset in the normal mode is lower than that of the Bluetooth headset in the high fidelity mode.
The application also provides a control device of the bluetooth headset, which comprises:
the data receiving module is used for receiving the audio data packet;
a code rate determining module, configured to determine a data code rate corresponding to the audio data packet;
the strategy determining module is used for determining the audio quality mode of the Bluetooth headset according to the data code rate and determining a scanning strategy corresponding to the audio quality mode;
and the strategy execution module is used for starting or closing the page scan function of the Bluetooth headset according to the scanning strategy.
The application also provides a storage medium, on which a computer program is stored, and the computer program realizes the steps executed by the control method of the Bluetooth headset when being executed.
The application also provides a Bluetooth headset, which comprises a memory and a processor, wherein a computer program is stored in the memory, and the processor realizes the steps executed by the control method of the Bluetooth headset when calling the computer program in the memory.
The application provides a control method of a Bluetooth headset, comprising the following steps: receiving an audio data packet and determining a data code rate corresponding to the audio data packet; determining an audio quality mode of the Bluetooth headset according to the data code rate, and determining a scanning strategy corresponding to the audio quality mode; and starting or closing the page scan function of the Bluetooth headset according to the scanning strategy.
After the audio data packet is received, the data code rate of the audio data packet is determined, and then the current audio quality mode of the Bluetooth headset is determined according to the data code rate. The Bluetooth headset opens the page scan function and can occupy certain data transmission bandwidth, and the corresponding scanning strategy is determined according to the audio quality mode in the application, so that the page scan function of the Bluetooth headset is opened or closed according to the scanning strategy, and the condition that the Bluetooth headset plays audio jamming due to opening the page scan function is avoided. Therefore, the Bluetooth headset can reduce the pause phenomenon when the Bluetooth headset plays audio, and the audio playing quality is improved. The application also provides a control method of the Bluetooth headset, a control device of the Bluetooth headset, the Bluetooth headset and a storage medium, and the control method has the beneficial effects and is not repeated herein.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a control method of a bluetooth headset according to an embodiment of the present disclosure;
fig. 2 is a flow chart of audio quality mode determination according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a scanning strategy determination principle provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a control device of a bluetooth headset according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 embodiments of the present application, but not all embodiments. 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.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for controlling a bluetooth headset according to an embodiment of the present disclosure.
The specific steps may include:
s101: receiving an audio data packet and determining a data code rate corresponding to the audio data packet;
the present embodiment may be applied to a processor (e.g., a micro control unit MCU) of a bluetooth headset, and when the bluetooth headset includes a left headset and a right headset, the present embodiment may be applied to a processor of a main headset in the left headset and the right headset. The Bluetooth headset can be connected with master control equipment such as a smart phone and a tablet personal computer, and the master control equipment can transmit an audio data packet to the Bluetooth headset through Bluetooth.
After the bluetooth headset receives the audio data packet, the bluetooth headset can perform encoding and decoding operations on the audio data packet to obtain a data code rate corresponding to the audio data packet. Specifically, the host device may transmit multiple frames of audio data packets to the bluetooth headset, and the bluetooth headset determines a data rate of each frame of audio data packet.
As a possible implementation manner, before determining the audio quality mode of the bluetooth headset according to the data code rate, a code rate control mode of the bluetooth headset may also be determined, where the code rate control mode includes a fixed code rate mode and an adaptive code rate mode, the code rate of encoding and decoding in the fixed code rate mode is a fixed value such as 990kbps, 660kbps, and the like, and the code rate of encoding and decoding in the adaptive code rate mode is adaptively adjusted according to a retransmission rate. Correspondingly, if the code rate control mode of the bluetooth headset is the fixed code rate mode, the steps of S102 and S103 in this step are entered: if the code rate control mode of the Bluetooth headset is the self-adaptive code rate mode, the main control equipment can adjust the data code rate according to the retransmission rate.
S102: determining an audio quality mode of the Bluetooth headset according to the data code rate, and determining a scanning strategy corresponding to the audio quality mode;
in this step, the current audio quality mode of the bluetooth headset can be determined according to the data code rate; as a possible implementation manner, the audio quality mode of the bluetooth headset may be determined according to the data code rate of the current frame of audio data, or may be determined according to the data code rate of the most recent multi-frame of audio data.
Specifically, the audio quality mode of the bluetooth headset may include a normal mode and a high fidelity mode, and in the normal mode, the scanning policy is to start a page scan function of the bluetooth headset; in the high fidelity mode, the scanning strategy can be further determined by combining the Bluetooth connection state.
S103: and starting or closing the page scan function of the Bluetooth headset according to the scanning strategy.
After receiving the audio data packet, the embodiment determines the data code rate of the audio data packet, and then determines the current audio quality mode of the bluetooth headset according to the data code rate. The bluetooth headset opens the page scan function and can occupy certain data transmission bandwidth, and this embodiment determines the corresponding scanning strategy according to the audio quality mode, and then opens or closes the page scan function of bluetooth headset according to the scanning strategy to avoid appearing leading to the bluetooth headset to broadcast the condition that the audio frequency card pauses because of opening the page scan function. Therefore, the embodiment can reduce the pause phenomenon when the Bluetooth headset plays audio, and improve the audio playing quality.
As a further introduction to the corresponding embodiment of fig. 1, the audio quality mode of a bluetooth headset may be determined by: determining the size relation between the data code rate of the audio data packet and the threshold code rate; if the data code rate of the current frame audio data packet is less than or equal to the threshold code rate, judging that the audio quality mode of the Bluetooth headset is a common mode; and if the data code rates of the continuous N frames of audio data packets including the current frame are all larger than the threshold code rate, judging that the audio quality mode of the Bluetooth headset is a high-fidelity mode.
Specifically, before determining the audio quality mode of the bluetooth headset according to the data code rate, an expected code rate set by a user may also be determined, and a product of the expected code rate and a preset coefficient a is set as the threshold code rate; a is more than 0 and less than 1. For example, if the user's desired bitrate is 990kbps and a is 0.8, the threshold bitrate is 792kbps.
As a further introduction to the corresponding embodiment of fig. 1, the bluetooth headset includes a master headset and a slave headset, and the scanning policy may be determined in at least the following two ways.
The first method is as follows: determining the scanning strategy according to the audio quality mode and the Bluetooth connection state; wherein the Bluetooth connection state describes whether the master earphone and the slave earphone establish Bluetooth connection.
The scanning strategy is specifically as follows:
if the audio quality mode is a high fidelity mode and the Bluetooth connection between the master earphone and the slave earphone is established, generating the scanning strategy for closing the page scan function;
if the audio quality mode is a high-fidelity mode and the Bluetooth connection between the master earphone and the slave earphone is not established, generating the scanning strategy for starting the page scan function;
if the audio quality mode is a common mode and the Bluetooth connection between the master earphone and the slave earphone is established, generating the scanning strategy for starting the page scan function;
if the audio quality mode is a common mode and the Bluetooth connection between the master earphone and the slave earphone is not established, generating the scanning strategy for starting the page scan function;
and the data code rate of the Bluetooth headset in a normal mode is lower than that of the Bluetooth headset in a high-fidelity mode.
The second method comprises the following steps: judging whether the master earphone establishes Bluetooth connection with the slave earphone; if not, generating the scanning strategy for starting the page scan function; if yes, determining the audio quality mode of the Bluetooth headset according to the data code rate, and determining a scanning strategy corresponding to the audio quality mode according to the following rules: if the audio quality mode is a high fidelity mode, generating the scanning strategy for closing the page scan function; if the audio quality mode is a common mode, generating the scanning strategy for starting a page scan function; and the data code rate of the Bluetooth headset in a normal mode is lower than that of the Bluetooth headset in a high-fidelity mode.
The flow described in the above embodiment is explained below by an embodiment in practical use.
The TWS headset can connect two handsets simultaneously while maintaining 3 ACL links: one ACL link is arranged between the master earphone and the slave earphone, and one ACL link is arranged between the two mobile phones. The BLE broadcasting is also carried out in normal service, and some characteristics are adapted to the mobile phone. The code rate of the Audio data packet received by the bluetooth headset is determined by the mobile phone, the parameter information is not available in the A2DP (Advanced Audio Distribution Profile, bluetooth Audio transmission model protocol) process, and the mobile phone can dynamically adjust the code rate in the playing process. In general, the mobile phone can set the code rates to 990kbps, 660kbps, 330kbps and adaptive code rates, wherein the first three code rates are fixed code rates, and the adaptive code rate is a code rate which is adjusted by the mobile phone in time according to the retransmission rate.
The bandwidth of the bluetooth headset itself is limited, and both dual connectivity and BLE broadcasting are required, and the bandwidth reserved for audio data transmission is fixed. Playing a high definition audio codec in such a scenario is substantially easy to jam, especially at a code rate of 990kbps, substantially no scenario can be used. The slight interference of the dual connection scene code rate of 660kbps can cause jamming, and the user experience is seriously influenced.
In order to solve the stuck phenomenon in the TWS headset, an embodiment of the present application provides a scheme for reducing stuck when playing with high definition audio codec in a music service state. This scheme is providing the in-process of high tone quality audio frequency with high code rate, and the scanning strategy is adjusted in good time, reduces the card and pause the condition and takes place to greatly promote user experience.
In a high-audio coding and decoding music playing scene, the TWS earphone can obtain a data code rate corresponding to each audio data packet in the process of unpacking each frame of audio data packet, and if the data code rate is lower than a Threshold code rate Threshold (for example, 600kbps, which can be adjusted according to actual requirements), it is determined that the current mode is a normal (normall) mode. And when the continuous 50 frames (frames) are all larger than the threshold code rate, judging that the current mode is a high fidelity (HD) mode. When the TWS headset detects that the normal mode is switched to the high fidelity mode or the high fidelity mode is switched to the normal mode, a scanning strategy (namely a page scan strategy) is triggered. For the adaptive code rate scenario, the mobile phone will adjust the code rate in real time, and basically no jamming occurs, and the jamming mostly occurs in the scenario of setting a fixed code rate, such as 660kbps or 990kbps. And if the 50 frames are continuously detected to be larger than the code rate threshold, judging that the current scene is a continuous high code rate scene, and triggering an updating scanning strategy.
After the Page scan function is started, the TWS headset needs to reserve a certain time slot to monitor a Page data packet (reconnection request), and the mobile phone or the ear can be successfully reconnected when the Page scan function is started. The Page scan close scenario is against the ear (i.e., another TWS headset) or the handset cannot succeed in reconnecting. Adding a strategy in the page scan strategy: and when the earphone is in the high fidelity mode and the Bluetooth connection is established, closing the page scan function. This strategy does not affect master-slave loopback: when the Bluetooth connection between the master earphone and the slave earphone is not established, the page scan is started, and the master earphone and the slave earphone can be connected back successfully. In the process, the Bluetooth connection is established between the master earphone and the slave earphone, and the page scan function is closed in a high fidelity mode, more bandwidth is reserved for downlink audio data transmission in the scene, and other mobile phones cannot be connected with the earphones, so that the blocking condition under high code rate is greatly reduced, and the user experience is optimized.
Referring to fig. 2, fig. 2 is a flow chart of determining an audio quality mode according to an embodiment of the present application, which illustrates a process as follows:
s201: playing music;
s202: setting the audio quality mode to be a common mode, and resetting a counter;
s203: acquiring a code rate;
s204: judging whether the code rate is less than or equal to a code rate threshold or not; if yes, go to S205; if not, entering S207;
s205: judging whether the current mode is a common mode or not; if yes, entering S203; if not, the process goes to S206;
s206: setting the audio quality mode to be a common mode, and resetting a counter;
s207: judging whether the current mode is a high fidelity mode; if yes, entering S203; if not, entering S208;
s208: the value of the counter is increased by 1;
s209: judging whether the value of the counter exceeds 50; if yes, entering S210; if not, the step S203 is entered;
s210: the audio quality mode is set to high fidelity mode and the counter is cleared.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a scanning policy determination principle provided in an embodiment of the present application, where in an audio quality mode, a normal mode is switched to a hi-fi mode, or the normal mode is switched to the hi-fi mode, a scanning policy is triggered, and if a TWS headset is in the hi-fi mode and a bluetooth connection is established, a page scan function is turned off; if the TWS earphone is in the high-fidelity mode and the Bluetooth connection is not established, starting a page scan function; if the TWS earphone is in a common mode and Bluetooth connection is established, starting a page scan function; and if the TWS earphone is in the normal mode and the Bluetooth connection is not established, starting the page scan function.
In the process of providing high-tone-quality audio at a high code rate, the scanning strategy is timely adjusted, and the occurrence of the blockage situation is reduced. After the scheme is introduced, the data retransmission rate of a high-code-rate scene is reduced to 6% from 10%, and basically no blockage exists in a single ACL connection 990kbps in a common use scene, so that the user experience is greatly improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a control device of a bluetooth headset according to an embodiment of the present disclosure;
the apparatus may include:
a data receiving module 401, configured to receive an audio data packet;
a code rate determining module 402, configured to determine a data code rate corresponding to the audio data packet;
a policy determining module 403, configured to determine an audio quality mode of the bluetooth headset according to the data code rate, and determine a scanning policy corresponding to the audio quality mode;
and a policy executing module 404, configured to turn on or turn off a page scan function of the bluetooth headset according to the scanning policy.
After receiving the audio data packet, the embodiment determines the data code rate of the audio data packet, and then determines the current audio quality mode of the bluetooth headset according to the data code rate. The bluetooth headset can occupy a certain data transmission bandwidth when the page scan function is started, the corresponding scan strategy is determined according to the audio quality mode, and then the page scan function of the bluetooth headset is started or closed according to the scan strategy, so that the situation that the bluetooth headset plays audio unsmooth due to the fact that the page scan function is started is avoided. Therefore, the embodiment can reduce the pause phenomenon when the Bluetooth headset plays audio, and improve the audio playing quality.
Further, the process of determining the audio quality mode of the bluetooth headset according to the data code rate by the policy determination module 403 includes: if the data code rate of the audio data packet is smaller than or equal to a threshold code rate, judging that the audio quality mode of the Bluetooth headset is a common mode; and if the data code rates of the continuous N frames of audio data packets are all larger than the threshold code rate, judging that the audio quality mode of the Bluetooth headset is a high-fidelity mode.
Further, the method also comprises the following steps:
a threshold determining module, configured to determine an expected code rate set by a user before determining an audio quality mode of the bluetooth headset according to the data code rate, and set a product of the expected code rate and a preset coefficient a as the threshold code rate; a is more than 0 and less than 1.
Further, the bluetooth headset comprises a master headset and a slave headset;
accordingly, the process of the policy determination module 403 determining the scanning policy corresponding to the audio quality mode includes: determining the scanning strategy according to the audio quality mode and the Bluetooth connection state; wherein the Bluetooth connection state describes whether the master earphone and the slave earphone establish Bluetooth connection.
Further, the process of the policy determination module 403 determining the scanning policy according to the audio quality mode and the bluetooth connection status includes: if the audio quality mode is a high fidelity mode and the Bluetooth connection between the master earphone and the slave earphone is established, generating the scanning strategy for closing the page scan function; if the audio quality mode is a high-fidelity mode and the Bluetooth connection between the master earphone and the slave earphone is not established, generating the scanning strategy for starting the page scan function; if the audio quality mode is a common mode and the Bluetooth connection between the master earphone and the slave earphone is established, generating the scanning strategy for starting the page scan function; if the audio quality mode is a common mode and the Bluetooth connection between the master earphone and the slave earphone is not established, generating the scanning strategy for starting the page scan function; and the data code rate of the Bluetooth headset in a normal mode is lower than that of the Bluetooth headset in a high-fidelity mode.
Further, the method also comprises the following steps:
a code rate control mode determining module, configured to determine a code rate control mode of the bluetooth headset before determining an audio quality mode of the bluetooth headset according to the data code rate; if the code rate control mode of the bluetooth headset is a fixed code rate mode, a work flow corresponding to the policy determination module 403 is started.
Further, the bluetooth headset comprises a master headset and a slave headset;
correspondingly, the method also comprises the following steps:
the pre-judgment module is used for judging whether the master earphone is in Bluetooth connection with the slave earphone or not before determining the audio quality mode of the Bluetooth earphone according to the data code rate; if yes, starting a corresponding work flow of the strategy determination module 403; if not, generating the scanning strategy for starting the page scan function;
accordingly, the process of the policy determination module 403 determining the scanning policy corresponding to the audio quality mode includes: if the audio quality mode is a high fidelity mode, generating the scanning strategy for closing the page scan function; if the audio quality mode is a common mode, generating the scanning strategy for starting the page scan function; and the data code rate of the Bluetooth headset in a normal mode is lower than that of the Bluetooth headset in a high-fidelity mode.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
The present application also provides a storage medium on which a computer program is stored, which when executed, can implement the steps provided by the above embodiments. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The present application further provides a bluetooth headset, which may include a memory and a processor, where the memory stores a computer program, and the processor may implement the steps provided in the foregoing embodiments when calling the computer program in the memory. Of course, the bluetooth headset may further include various interfaces, power supplies and other components.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A control method of a Bluetooth headset is characterized by comprising the following steps:
receiving an audio data packet and determining a data code rate corresponding to the audio data packet;
determining an audio quality mode of the Bluetooth headset according to the data code rate, and determining a scanning strategy corresponding to the audio quality mode;
and starting or closing the page scan function of the Bluetooth headset according to the scanning strategy.
2. The method of claim 1, wherein determining the audio quality mode of the bluetooth headset according to the data code rate comprises:
if the data code rate of the audio data packet is smaller than or equal to a threshold code rate, judging that the audio quality mode of the Bluetooth headset is a common mode;
and if the data code rate of the continuous N frames of audio data packets is greater than the threshold code rate, judging that the audio quality mode of the Bluetooth headset is a high fidelity mode.
3. The method as claimed in claim 2, further comprising, before determining the audio quality mode of the bluetooth headset according to the data code rate:
determining an expected code rate set by a user, and setting the product of the expected code rate and a preset coefficient a as the threshold code rate; a is more than 0 and less than 1.
4. The control method of the bluetooth headset according to claim 1, wherein the bluetooth headset includes a master headset and a slave headset;
correspondingly, determining the scanning strategy corresponding to the audio quality mode comprises:
determining the scanning strategy according to the audio quality mode and the Bluetooth connection state;
wherein the Bluetooth connection state describes whether the master earphone and the slave earphone establish Bluetooth connection.
5. The method of claim 4, wherein determining the scanning strategy according to the audio quality mode and the Bluetooth connection status comprises:
if the audio quality mode is a high fidelity mode and the Bluetooth connection between the master earphone and the slave earphone is established, generating the scanning strategy for closing the page scan function;
if the audio quality mode is a high-fidelity mode and the Bluetooth connection between the master earphone and the slave earphone is not established, generating the scanning strategy for starting the page scan function;
if the audio quality mode is a common mode and the Bluetooth connection between the master earphone and the slave earphone is established, generating the scanning strategy for starting the page scan function;
if the audio quality mode is a common mode and the Bluetooth connection between the master earphone and the slave earphone is not established, generating the scanning strategy for starting the page scan function;
and the data code rate of the Bluetooth headset in the normal mode is lower than that of the Bluetooth headset in the high fidelity mode.
6. The method as claimed in claim 1, further comprising, before determining the audio quality mode of the bluetooth headset according to the data code rate:
determining a code rate control mode of the Bluetooth headset;
and if the code rate control mode of the Bluetooth headset is a fixed code rate mode, determining the audio quality mode of the Bluetooth headset according to the data code rate.
7. The control method of the bluetooth headset according to claim 1, wherein the bluetooth headset includes a master headset and a slave headset;
correspondingly, before determining the audio quality mode of the bluetooth headset according to the data code rate, the method further includes:
judging whether the master earphone establishes Bluetooth connection with the slave earphone;
if yes, determining the audio quality mode of the Bluetooth headset according to the data code rate;
if not, generating the scanning strategy for starting the page scan function;
correspondingly, determining the scanning strategy corresponding to the audio quality mode comprises:
if the audio quality mode is a high fidelity mode, generating the scanning strategy for closing the page scan function;
if the audio quality mode is a common mode, generating the scanning strategy for starting the page scan function;
and the data code rate of the Bluetooth headset in a normal mode is lower than that of the Bluetooth headset in a high-fidelity mode.
8. A control device of a Bluetooth headset, comprising:
the data receiving module is used for receiving the audio data packet;
a code rate determining module, configured to determine a data code rate corresponding to the audio data packet;
the strategy determining module is used for determining the audio quality mode of the Bluetooth headset according to the data code rate and determining a scanning strategy corresponding to the audio quality mode;
and the strategy execution module is used for starting or closing the page scan function of the Bluetooth headset according to the scanning strategy.
9. A Bluetooth headset comprising a memory in which a computer program is stored and a processor which, when calling the computer program in the memory, carries out the steps of a method of controlling a Bluetooth headset according to any one of claims 1 to 7.
10. A storage medium having stored thereon computer-executable instructions which, when loaded and executed by a processor, carry out the steps of a method of controlling a bluetooth headset according to any one of claims 1 to 7.
CN202210906749.7A 2022-07-29 2022-07-29 Control method and device of Bluetooth headset, bluetooth headset and storage medium Pending CN115278461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210906749.7A CN115278461A (en) 2022-07-29 2022-07-29 Control method and device of Bluetooth headset, bluetooth headset and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210906749.7A CN115278461A (en) 2022-07-29 2022-07-29 Control method and device of Bluetooth headset, bluetooth headset and storage medium

Publications (1)

Publication Number Publication Date
CN115278461A true CN115278461A (en) 2022-11-01

Family

ID=83771542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210906749.7A Pending CN115278461A (en) 2022-07-29 2022-07-29 Control method and device of Bluetooth headset, bluetooth headset and storage medium

Country Status (1)

Country Link
CN (1) CN115278461A (en)

Similar Documents

Publication Publication Date Title
US11632318B2 (en) Jitter buffer control based on monitoring of delay jitter and conversational dynamics
US11129218B2 (en) Bluetooth communication method and terminal
JP4110726B2 (en) Hearing correction type mobile phone
US20120121096A1 (en) Intelligibility control using ambient noise detection
EP3273620B1 (en) Controlling connected multimedia devices
US20140170979A1 (en) Contextual power saving in bluetooth audio
CN111869142B (en) Data transmission method, device, equipment, system and medium
CN101828411A (en) Audio communication system
US9521263B2 (en) Long term monitoring of transmission and voice activity patterns for regulating gain control
WO2021052293A1 (en) Audio coding method and apparatus
CN101467431A (en) Audio processing in communication terminals
US20220007201A1 (en) Communication device using two wireless protocols
US20070024700A1 (en) Method and device for setting output volume of audio signal to prevent acoustic shock in mobile terminal
CN103238312B (en) Control audio signal
EP3745813A1 (en) Method for operating a bluetooth device
CN115278461A (en) Control method and device of Bluetooth headset, bluetooth headset and storage medium
CN111107226A (en) Volume control method applied to mobile terminal
US20070097964A1 (en) Communication device and communication system
CN110933710B (en) Voice communication control method and system
CN117042096A (en) Energy saving method, device and equipment for wireless communication equipment and readable storage medium
WO2020056665A1 (en) Voice communication control method and system
JP2004242050A (en) Radio terminal and method for adjusting sound volume of received call thereof
US20190090057A1 (en) Audio processing device
CN117202011A (en) Volume control method, electronic device and storage medium
CN115174538A (en) Data transmission method and device, electronic equipment and computer readable 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