A control method, device, Bluetooth headset and storage medium for a Bluetooth headset

By receiving audio packets in Bluetooth headsets and determining the audio quality mode and scanning strategy based on their code rate, the problem of Bluetooth headsets being prone to lag when playing high-definition audio is solved, achieving more stable audio playback.

CN115278461BActive Publication Date: 2025-06-27GEER TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210906749.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2025-06-27
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

Bluetooth headsets are prone to lag when playing high-definition audio codec, which seriously affects the user experience.

Method used

By receiving audio packets and determining their data bitrate, determining the audio quality mode of Bluetooth headphones based on the bitrate, and determining the corresponding scanning strategy based on the mode, turning on or off the page scan function to optimize data transmission.

Benefits of technology

It effectively reduces the lag phenomenon when playing audio with Bluetooth headsets, improves the audio playback quality, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115278461B_ABST
    Figure CN115278461B_ABST
Patent Text Reader

Abstract

The present application discloses a control method, device, Bluetooth headset and storage medium for a Bluetooth headset, belonging to the technical field of audio coding and decoding technology. The control method of the Bluetooth headset includes: receiving an audio data packet and determining the data bit rate corresponding to the audio data packet; determining the audio quality mode of the Bluetooth headset according to the data bit rate, and determining the scanning strategy corresponding to the audio quality mode; turning on or off the page scan function of the Bluetooth headset according to the scanning strategy. The present application can reduce the stuttering phenomenon when the Bluetooth headset plays audio.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of audio coding and decoding, and particularly relates to a control method, a device, a Bluetooth headset, and a storage medium for a Bluetooth headset. Background Art

[0002] With the development of the Bluetooth headset industry, Bluetooth headsets can support encoding functions such as SBC (Sub - Band Coding with Low Complexity), AAC (Advanced Audio Coding), APTX (Lossless Transmission Technology), etc., and can also support high - definition audio coding and decoding functions such as LDAC (an audio coding technology that can transmit high - resolution audio content), APTX adaptive (adaptive coding and decoding), LHDC (a high - quality Bluetooth codec developed based on the A2DP Bluetooth protocol), etc.

[0003] Based on the high - definition audio coding and decoding of Bluetooth headsets (such as LDAC, LHDC, Aptx adaptive, etc.), due to the high bit rate, the demand for bandwidth is high. The bandwidth of the Bluetooth headset itself is limited. It is necessary to maintain dual - connection and perform BLE broadcasts at the same time, and the bandwidth left for audio data transmission is fixed. In this scenario, playing high - definition audio coding and decoding is basically prone to stuttering, seriously affecting the user experience.

[0004] Therefore, how to reduce the stuttering phenomenon when a Bluetooth headset plays audio is a technical problem that those skilled in the art need to solve currently. Summary of the Invention

[0005] The purpose of the present application is to provide 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 stuttering phenomenon when the Bluetooth headset plays audio.

[0006] To solve the above - mentioned technical problem, the present application provides a control method for a Bluetooth headset. The control of the Bluetooth headset includes:

[0007] Receiving an audio data packet and determining the data bit rate corresponding to the audio data packet;

[0008] Determining the audio quality mode of the Bluetooth headset according to the data bit rate, and determining the scanning strategy corresponding to the audio quality mode;

[0009] Turning on or off the page scan function of the Bluetooth headset according to the scanning strategy.

[0010] Optionally, determining the audio quality mode of the Bluetooth headset according to the data bit rate includes:

[0011] If the data bit rate of the audio data packet is less than or equal to the threshold bit rate, it is determined that the audio quality mode of the Bluetooth headset is the normal mode;

[0012] If the data bit rate of the audio data packets in N consecutive frames is greater than the threshold bit rate, it is determined that the audio quality mode of the Bluetooth headset is the high-fidelity mode.

[0013] Optionally, before determining the audio quality mode of the Bluetooth headset according to the data bit rate, it further includes:

[0014] Determine the expected bit rate set by the user, and set the product of the expected bit rate and the preset coefficient a as the threshold bit rate; 0 < a < 1.

[0015] Optionally, the Bluetooth headset includes a main headset and a slave headset;

[0016] Correspondingly, determining the scanning strategy corresponding to the audio quality mode includes:

[0017] Determine the scanning strategy according to the audio quality mode and the Bluetooth connection status;

[0018] Wherein, the Bluetooth connection status describes whether the main headset and the slave headset establish a Bluetooth connection.

[0019] Optionally, determining the scanning strategy according to the audio quality mode and the Bluetooth connection status includes:

[0020] If the audio quality mode is the high-fidelity mode and the main headset and the slave headset have established a Bluetooth connection, generate the scanning strategy for turning off the page scan function;

[0021] If the audio quality mode is the high-fidelity mode and the main headset and the slave headset have not established a Bluetooth connection, generate the scanning strategy for turning on the page scan function;

[0022] If the audio quality mode is the normal mode and the main headset and the slave headset have established a Bluetooth connection, generate the scanning strategy for turning on the page scan function;

[0023] If the audio quality mode is the normal mode and the main headset and the slave headset have not established a Bluetooth connection, generate the scanning strategy for turning on the page scan function;

[0024] Wherein, the data bit rate of the Bluetooth headset in the normal mode is lower than the data bit rate of the Bluetooth headset in the high-fidelity mode.

[0025] Optionally, before determining the audio quality mode of the Bluetooth headset according to the data bit rate, it further includes:

[0026] Determine the bit rate control mode of the Bluetooth headset;

[0027] If the bitrate control mode of the Bluetooth headset is the fixed bitrate mode, then enter the step of determining the audio quality mode of the Bluetooth headset according to the data bitrate.

[0028] Optionally, the Bluetooth headset includes a main headset and a slave headset;

[0029] Correspondingly, before determining the audio quality mode of the Bluetooth headset according to the data bitrate, it further includes:

[0030] Determine whether the main headset establishes a Bluetooth connection with the slave headset;

[0031] If so, enter the step of determining the audio quality mode of the Bluetooth headset according to the data bitrate;

[0032] If not, generate the scanning strategy for enabling the page scan function;

[0033] Correspondingly, determining the scanning strategy corresponding to the audio quality mode includes:

[0034] If the audio quality mode is the high-fidelity mode, generate the scanning strategy for disabling the page scan function;

[0035] If the audio quality mode is the normal mode, generate the scanning strategy for enabling the page scan function;

[0036] Wherein, the data bitrate of the Bluetooth headset in the normal mode is lower than the data bitrate of the Bluetooth headset in the high-fidelity mode.

[0037] This application also provides a control device for a Bluetooth headset, and the device includes:

[0038] A data receiving module, configured to receive audio data packets;

[0039] A bitrate determining module, configured to determine the data bitrate corresponding to the audio data packet;

[0040] A strategy determining module, configured to determine the audio quality mode of the Bluetooth headset according to the data bitrate, and determine the scanning strategy corresponding to the audio quality mode;

[0041] A strategy execution module, configured to enable or disable the page scan function of the Bluetooth headset according to the scanning strategy.

[0042] This application also provides a storage medium, on which a computer program is stored, and when the computer program is executed, the steps executed by the above-mentioned control method of the Bluetooth headset are realized.

[0043] The present application also provides a Bluetooth headset, including a memory and a processor. A computer program is stored in the memory. When the processor calls the computer program in the memory, the steps executed by the above control method of the Bluetooth headset are realized.

[0044] The present application provides a control method for a Bluetooth headset, including: receiving an audio data packet and determining the data bit rate corresponding to the audio data packet; determining the audio quality mode of the Bluetooth headset according to the data bit rate, and determining the scanning strategy corresponding to the audio quality mode; turning on or off the page scan function of the Bluetooth headset according to the scanning strategy.

[0045] After receiving the audio data packet, the present application determines the data bit rate of the audio data packet, and then determines the current audio quality mode of the Bluetooth headset according to the data bit rate. Enabling the page scan function of the Bluetooth headset will occupy a certain data transmission bandwidth. The present application determines the corresponding scanning strategy according to the audio quality mode, and then turns on or off the page scan function of the Bluetooth headset according to the scanning strategy, so as to avoid the situation that the Bluetooth headset plays audio with stuttering due to enabling the page scan function. Therefore, the present application can reduce the stuttering phenomenon when the Bluetooth headset plays audio and improve the audio playback quality. The present application also provides a control method for a Bluetooth headset, a control device for a Bluetooth headset, a Bluetooth headset and a storage medium, which have the above beneficial effects and will not be elaborated here. Description of the Drawings

[0046] In order to more clearly illustrate the embodiments of the present application, the following will briefly introduce the drawings required for the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0047] Figure 1 It is a flowchart of a control method for a Bluetooth headset provided by an embodiment of the present application;

[0048] Figure 2 It is a flowchart for determining an audio quality mode provided by an embodiment of the present application;

[0049] Figure 3 It is a schematic diagram of the principle for determining a scanning strategy provided by an embodiment of the present application;

[0050] Figure 4 It is a schematic structural diagram of a control device for a Bluetooth headset provided by an embodiment of the present application. Detailed Embodiments

[0051] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are some, but not all, of the embodiments of this application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of this application without creative efforts shall fall within the scope of protection of this application.

[0052] Please refer to Figure 1 , Figure 1 , which is a flowchart of a control method for a Bluetooth headset provided by an embodiment of this application.

[0053] The specific steps may include:

[0054] S101: Receive an audio data packet and determine the data bit rate corresponding to the audio data packet;

[0055] Among them, this embodiment can be applied to the processor of the Bluetooth headset (such as, a microcontroller unit MCU). When the Bluetooth headset includes a left earphone and a right earphone, this embodiment can be applied to the processors of the main earphones in the left earphone and the right earphone. The Bluetooth headset can be connected to a main control device such as a smart phone or a tablet computer, and the main control device can transmit the audio data packet to the Bluetooth headset through Bluetooth.

[0056] After receiving the audio data packet, the Bluetooth headset can perform encoding and decoding operations on the audio data packet to obtain the data bit rate corresponding to the audio data packet. Specifically, the host device can transmit multiple frames of audio data packets to the Bluetooth headset, and the Bluetooth headset determines the data bit rate of each frame of audio data packet.

[0057] As a feasible implementation, before determining the audio quality mode of the Bluetooth headset according to the data bit rate, the bit rate control mode of the Bluetooth headset can also be determined. The bit rate control mode includes a fixed bit rate mode and an adaptive bit rate mode. The bit rate for encoding and decoding in the fixed bit rate mode is a fixed value such as 990 kbps, 660 kbps, etc., and the bit rate for encoding and decoding in the adaptive bit rate mode is adaptively adjusted according to the retransmission rate. Correspondingly, if the bit rate control mode of the Bluetooth headset is the fixed bit rate mode, then enter the steps of S102 and S103 in this step: if the bit rate control mode of the Bluetooth headset is the adaptive bit rate mode, then the main control device can adjust the data bit rate according to the retransmission rate.

[0058] S102: Determine the audio quality mode of the Bluetooth headset according to the data bit rate, and determine the scanning strategy corresponding to the audio quality mode;

[0059] Among them, in this step, the current audio quality mode of the Bluetooth headset can be determined according to the data bit rate; as a feasible implementation, the audio quality mode of the Bluetooth headset can be determined according to the data bit rate of the current frame of audio data, or the audio quality mode of the Bluetooth headset can be determined according to the data bit rates of multiple recent frames of audio data.

[0060] Specifically, the audio quality mode of the Bluetooth headset can include a normal mode and a high-fidelity mode. In the normal mode, the scanning strategy is to turn on the page scan function of the Bluetooth headset; in the high-fidelity mode, the scanning strategy can be further determined in combination with the Bluetooth connection status.

[0061] S103: Turn on or off the page scan function of the Bluetooth headset according to the scanning strategy.

[0062] In this embodiment, after receiving the audio data packet, the data bit 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 bit rate. Enabling the page scan function of the Bluetooth headset will occupy a certain data transmission bandwidth. In this embodiment, the corresponding scanning strategy is determined according to the audio quality mode, and then the page scan function of the Bluetooth headset is turned on or off according to the scanning strategy, so as to avoid the situation that the Bluetooth headset plays audio with jitter due to enabling the page scan function. Therefore, this embodiment can reduce the jitter phenomenon when the Bluetooth headset plays audio and improve the audio playback quality.

[0063] As a further introduction to Figure 1 the corresponding embodiment, the audio quality mode of the Bluetooth headset can be determined in the following way: Determine the magnitude relationship between the data bit rate of the audio data packet and the threshold bit rate; if the data bit rate of the current frame of audio data packet is less than or equal to the threshold bit rate, it is determined that the audio quality mode of the Bluetooth headset is the normal mode; if the data bit rates of consecutive N frames of audio data packets including the current frame are all greater than the threshold bit rate, it is determined that the audio quality mode of the Bluetooth headset is the high-fidelity mode.

[0064] Specifically, before determining the audio quality mode of the Bluetooth headset according to the data bit rate, the desired bit rate set by the user can also be determined, and the product of the desired bit rate and the preset coefficient a is set as the threshold bit rate; 0 < a < 1. For example, if the user's desired bit rate is 990 kbps and a is 0.8, then the threshold bit rate is 792 kbps.

[0065] As a further introduction to Figure 1 the corresponding embodiment, the above Bluetooth headset includes a main headset and a slave headset, and the scanning strategy can be determined by at least the following two methods.

[0066] Method 1: Determine the scanning strategy according to the audio quality mode and the Bluetooth connection status; wherein, the Bluetooth connection status describes whether the master earphone and the slave earphone establish a Bluetooth connection.

[0067] The above scanning strategy is specifically as follows:

[0068] If the audio quality mode is the high-fidelity mode and the master earphone and the slave earphone have established a Bluetooth connection, then generate the scanning strategy for turning off the page scan function;

[0069] If the audio quality mode is the high-fidelity mode and the master earphone and the slave earphone have not established a Bluetooth connection, then generate the scanning strategy for turning on the page scan function;

[0070] If the audio quality mode is the normal mode and the master earphone and the slave earphone have established a Bluetooth connection, then generate the scanning strategy for turning on the page scan function;

[0071] If the audio quality mode is the normal mode and the master earphone and the slave earphone have not established a Bluetooth connection, then generate the scanning strategy for turning on the page scan function;

[0072] Wherein, the data rate of the Bluetooth earphone in the normal mode is lower than the data rate of the Bluetooth earphone in the high-fidelity mode.

[0073] Method 2: Determine whether the master earphone and the slave earphone establish a Bluetooth connection; if not, then generate the scanning strategy for turning on the page scan function; if so, then determine the audio quality mode of the Bluetooth earphone according to the data rate, and determine the scanning strategy corresponding to the audio quality mode according to the following rules: if the audio quality mode is the high-fidelity mode, then generate the scanning strategy for turning off the page scan function; if the audio quality mode is the normal mode, then generate the scanning strategy for turning on the page scan function; wherein, the data rate of the Bluetooth earphone in the normal mode is lower than the data rate of the Bluetooth earphone in the high-fidelity mode.

[0074] The following uses examples in actual applications to illustrate the process described in the above embodiments.

[0075] TWS earphones can be connected to two mobile phones simultaneously, while maintaining three ACL links: one ACL link for the master and slave earphones, and one ACL link for each of the two mobile phones. During normal operations, BLE broadcasts are also performed to adapt some features to the mobile phones. The bitrate of the audio data packets received by the Bluetooth earphones is determined by the mobile phone. There is no such parameter information during the A2DP (Advanced Audio Distribution Profile) process, and the mobile phone can dynamically adjust the bitrate during playback. Usually, the mobile phone can set the bitrate to 990 kbps, 660 kbps, 330 kbps, or an adaptive bitrate. The first three bitrates are fixed bitrates, and the adaptive bitrate is the bitrate adjusted by the mobile phone according to the retransmission rate in a timely manner.

[0076] The bandwidth of the Bluetooth earphones themselves is limited. While maintaining dual connections and performing BLE broadcasts, the bandwidth available for audio data transmission is fixed. In this scenario, it is basically easy to experience stuttering during high-definition audio encoding and decoding, especially at a bitrate of 990 kbps, and there are basically no scenarios where it can be used. In the dual-connection scenario, a slight interference at a bitrate of 660 kbps will cause stuttering, seriously affecting the user experience.

[0077] To solve the above stuttering phenomenon in TWS earphones, the embodiments of this application provide a solution to reduce stuttering during high-definition audio encoding and decoding in the music service state. In this solution, during the process of providing high-quality audio at a high bitrate, the scanning strategy is adjusted in a timely manner to reduce the occurrence of stuttering, thereby greatly improving the user experience.

[0078] In the high-fidelity audio encoding and decoding music playback scenario, the TWS earphones can obtain the data bitrate corresponding to the audio data packet during the unpacking process of each frame of the audio data packet. If the data bitrate is lower than the threshold bitrate Threshold (such as 600 kbps, which can be adjusted according to actual requirements), it is determined that the current mode is the normal mode. When 50 consecutive frames are greater than the threshold bitrate, it is determined that the current mode is the high-fidelity (HD) mode. When the TWS earphones detect a switch from the normal mode to the high-fidelity mode, or from the high-fidelity mode to the normal mode, the scanning strategy (i.e., the page scan strategy) is triggered. For the adaptive bitrate scenario, the mobile phone will adjust the bitrate in real time, and there will basically be no stuttering. Most of the stuttering occurs in the fixed bitrate scenario, such as 660 kbps or 990 kbps. By continuously detecting that 50 consecutive frames are greater than the bitrate threshold, it is determined that the current is a continuous high-bitrate scenario, and an updated scanning strategy needs to be triggered.

[0079] After the Page scan function is enabled, the TWS earphones need to reserve a certain time slot to monitor the page data packet (reconnection request). When the Page scan function is enabled, the mobile phone or the paired earphone can successfully reconnect. In the scenario where Page scan is disabled, the paired earphone (i.e., the other TWS earphone) or the mobile phone cannot reconnect successfully. Add a policy to the Page scan policy: when the earphone is in the high-fidelity mode and a Bluetooth connection has been established, turn off the Page scan function. This policy does not affect the master-slave reconnection: when no Bluetooth connection is established between the master earphone and the slave earphone, Page scan is enabled, and the master earphone and the slave earphone can successfully reconnect. In the above process, when a Bluetooth connection has been established between the master earphone and the slave earphone and the Page scan function is turned off in the high-fidelity mode, more bandwidth is reserved for the downlink audio data transmission in this scenario, and other mobile phones cannot connect to the earphone, greatly reducing the jitter in the high bit rate and optimizing the user experience.

[0080] Please refer to Figure 2 , Figure 2 which is a flowchart for determining an audio quality mode provided by an embodiment of the present application, and the process shown is as follows:

[0081] S201: Play music;

[0082] S202: Set the audio quality mode to the normal mode and clear the counter;

[0083] S203: Obtain the bit rate;

[0084] S204: Determine whether the bit rate is less than or equal to the bit rate threshold; if so, go to S205; if not, go to S207;

[0085] S205: Determine whether the current mode is the normal mode; if so, go to S203; if not, go to S206;

[0086] S206: Set the audio quality mode to the normal mode and clear the counter;

[0087] S207: Determine whether the current mode is the high-fidelity mode; if so, go to S203; if not, go to S208;

[0088] S208: Increment the value of the counter by 1;

[0089] S209: Determine whether the value of the counter exceeds 50; if so, go to S210; if not, go to S203;

[0090] S210: Set the audio quality mode to the high-fidelity mode and clear the counter.

[0091] Please refer to Figure 3, Figure 3 This is a schematic diagram of the principle for determining a scanning strategy provided by an embodiment of the present application. When the audio quality mode switches from the normal mode to the high-fidelity mode, or from the normal mode to the high-fidelity mode, the scanning strategy is triggered. If the TWS earphone is in the high-fidelity mode and a Bluetooth connection has been established, the page scan function is turned off; if the TWS earphone is in the high-fidelity mode and no Bluetooth connection has been established, the page scan function is turned on; if the TWS earphone is in the normal mode and a Bluetooth connection has been established, the page scan function is turned on; if the TWS earphone is in the normal mode and no Bluetooth connection has been established, the page scan function is turned on.

[0092] In the process of providing high-quality audio at a high bit rate in the above embodiment, the scanning strategy is adjusted in a timely manner to reduce the occurrence of stuttering. After introducing this solution, the data retransmission rate in the high-bit-rate scenario is reduced from 10% to 6%. There is basically no stuttering in the general usage scenario with a single ACL connection of 990 kbps, greatly improving the user experience.

[0093] Please refer to Figure 4 , Figure 4 This is a schematic diagram of the structure of a control device for a Bluetooth earphone provided by an embodiment of the present application;

[0094] The device may include:

[0095] A data receiving module 401, configured to receive audio data packets;

[0096] A bit rate determining module 402, configured to determine the data bit rate corresponding to the audio data packet;

[0097] A strategy determining module 403, configured to determine the audio quality mode of the Bluetooth earphone according to the data bit rate, and determine the scanning strategy corresponding to the audio quality mode;

[0098] A strategy execution module 404, configured to turn on or off the page scan function of the Bluetooth earphone according to the scanning strategy.

[0099] In this embodiment, after receiving the audio data packet, the data bit rate of the audio data packet is determined, and then the current audio quality mode of the Bluetooth earphone is determined according to the data bit rate. Turning on the page scan function of the Bluetooth earphone will occupy a certain data transmission bandwidth. In this embodiment, the corresponding scanning strategy is determined according to the audio quality mode, and then the page scan function of the Bluetooth earphone is turned on or off according to the scanning strategy, so as to avoid the situation that the Bluetooth earphone plays audio with stuttering due to turning on the page scan function. Therefore, this embodiment can reduce the stuttering phenomenon when the Bluetooth earphone plays audio and improve the audio playback quality.

[0100] Further, the process of the policy determination module 403 determining the audio quality mode of the Bluetooth headset according to the data bit rate includes: if the data bit rate of the audio data packet is less than or equal to the threshold bit rate, it is determined that the audio quality mode of the Bluetooth headset is the normal mode; if the data bit rate of the audio data packet in N consecutive frames is greater than the threshold bit rate, it is determined that the audio quality mode of the Bluetooth headset is the high-fidelity mode.

[0101] Further, it further includes:

[0102] A threshold determination module, configured to determine the expected bit rate set by the user before determining the audio quality mode of the Bluetooth headset according to the data bit rate, and set the product of the expected bit rate and the preset coefficient a as the threshold bit rate; 0 < a < 1.

[0103] Further, the Bluetooth headset includes a main headset and a slave headset;

[0104] Correspondingly, the process of the policy determination module 403 determining the scanning policy corresponding to the audio quality mode includes: determining the scanning policy according to the audio quality mode and the Bluetooth connection status; wherein, the Bluetooth connection status describes whether the main headset and the slave headset establish a Bluetooth connection.

[0105] 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 the high-fidelity mode and the main headset and the slave headset have established a Bluetooth connection, generate the scanning policy for turning off the page scan function; if the audio quality mode is the high-fidelity mode and the main headset and the slave headset have not established a Bluetooth connection, generate the scanning policy for turning on the page scan function; if the audio quality mode is the normal mode and the main headset and the slave headset have established a Bluetooth connection, generate the scanning policy for turning on the page scan function; if the audio quality mode is the normal mode and the main headset and the slave headset have not established a Bluetooth connection, generate the scanning policy for turning on the page scan function; wherein, the data bit rate of the Bluetooth headset in the normal mode is lower than the data bit rate of the Bluetooth headset in the high-fidelity mode.

[0106] Further, it further includes:

[0107] A bit rate control mode determination module, configured to determine the bit rate control mode of the Bluetooth headset before determining the audio quality mode of the Bluetooth headset according to the data bit rate; if the bit rate control mode of the Bluetooth headset is the fixed bit rate mode, start the corresponding work process of the policy determination module 403.

[0108] Further, the Bluetooth headset includes a main headset and a slave headset;

[0109] Correspondingly, it further includes:

[0110] A pre-judgment module, configured to judge whether the main headset establishes a Bluetooth connection with the slave headset before determining the audio quality mode of the Bluetooth headset according to the data bit rate; if so, start the working process corresponding to the policy determination module 403; if not, generate the scanning policy for enabling the page scan function;

[0111] Correspondingly, 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 the high-fidelity mode, generate the scanning policy for closing the page scan function; if the audio quality mode is the normal mode, generate the scanning policy for enabling the page scan function; wherein, the data bit rate of the Bluetooth headset in the normal mode is lower than the data bit rate of the Bluetooth headset in the high-fidelity mode.

[0112] Since the embodiments of the device part correspond to the embodiments of the method part, for the embodiments of the device part, please refer to the description of the embodiments of the method part, which will not be elaborated here for the time being.

[0113] The present application also provides a storage medium, on which a computer program is stored, and when the computer program is executed, the steps provided by the above embodiments can be implemented. The storage medium may include: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc that can store program codes.

[0114] The present application also provides a Bluetooth headset, which may include a memory and a processor. When the processor calls the computer program in the memory, the steps provided by the above embodiments can be implemented. Of course, the Bluetooth headset may further include various interfaces, power supplies and other components.

[0115] The embodiments in the specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among the embodiments can be referred to each other. For the device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description in the method part. It should be noted that for those of ordinary skill in the art in the technical field of the present application, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

[0116] It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the said element.

Claims

1. A control method for a Bluetooth headset, characterized in that, including: Receiving an audio data packet and determining the data bit rate corresponding to the audio data packet; Determining the audio quality mode of the Bluetooth headset according to the data bit rate and determining the scanning strategy corresponding to the audio quality mode; Enabling or disabling the page scan function of the Bluetooth headset according to the scanning strategy; The Bluetooth headset includes a main headset and a slave headset; Correspondingly, determining the scanning strategy corresponding to the audio quality mode includes: If the audio quality mode is the high-fidelity mode and the main headset and the slave headset have established a Bluetooth connection, generating the scanning strategy for disabling the page scan function; If the audio quality mode is the high-fidelity mode and the main headset and the slave headset have not established a Bluetooth connection, generating the scanning strategy for enabling the page scan function; If the audio quality mode is the normal mode and the main headset and the slave headset have established a Bluetooth connection, generating the scanning strategy for enabling the page scan function; If the audio quality mode is the normal mode and the main headset and the slave headset have not established a Bluetooth connection, generating the scanning strategy for enabling the page scan function; Wherein, the data bit rate of the Bluetooth headset in the normal mode is lower than the data bit rate of the Bluetooth headset in the high-fidelity mode.

2. The control method of the Bluetooth headset according to claim 1, wherein Determining the audio quality mode of the Bluetooth headset according to the data bit rate includes: If the data bit rate of the audio data packet is less than or equal to the threshold bit rate, determining that the audio quality mode of the Bluetooth headset is the normal mode; If the data bit rate of N consecutive frames of the audio data packet is greater than the threshold bit rate, determining that the audio quality mode of the Bluetooth headset is the high-fidelity mode.

3. The control method of the Bluetooth headset according to claim 2, wherein Before determining the audio quality mode of the Bluetooth headset according to the data bit rate, it further includes: Determining the expected bit rate set by the user and setting the product of the expected bit rate and the preset coefficient a as the threshold bit rate; 0 < a < 1.

4. The control method of the Bluetooth headset according to claim 1, wherein, Before determining the audio quality mode of the Bluetooth headset according to the data bit rate, it further includes: Determining the bit rate control mode of the Bluetooth headset; If the bit rate control mode of the Bluetooth headset is the fixed bit rate mode, entering the step of determining the audio quality mode of the Bluetooth headset according to the data bit rate.

5. The control method of the Bluetooth headset according to claim 1, wherein The Bluetooth headset includes a main headset and a slave headset; Correspondingly, before determining the audio quality mode of the Bluetooth headset according to the data bit rate, it further includes: Judging whether the main headset has established a Bluetooth connection with the slave headset; If so, entering the step of determining the audio quality mode of the Bluetooth headset according to the data bit rate; If not, generating the scanning strategy for enabling the page scan function; Correspondingly, determining the scanning strategy corresponding to the audio quality mode includes: If the audio quality mode is the high-fidelity mode, generating the scanning strategy for disabling the page scan function; If the audio quality mode is the normal mode, generating the scanning strategy for enabling the page scan function; Wherein, the data bit rate of the Bluetooth headset in the normal mode is lower than the data bit rate of the Bluetooth headset in the high-fidelity mode.

6. A control device for a Bluetooth headset, characterized in that, Comprising: A data receiving module, configured to receive audio data packets; A bit rate determining module, configured to determine the data bit rate corresponding to the audio data packets; A policy determining module, configured to determine the audio quality mode of the Bluetooth headset according to the data bit rate, and determine the scanning policy corresponding to the audio quality mode; A policy execution module, configured to turn on or off the page scan function of the Bluetooth headset according to the scanning policy; The Bluetooth headset includes a main headset and a slave headset; The process by which the policy determining module determines the scanning policy corresponding to the audio quality mode includes: If the audio quality mode is the high-fidelity mode and the main headset and the slave headset have established a Bluetooth connection, then generate the scanning policy for turning off the page scan function; If the audio quality mode is the high-fidelity mode and the main headset and the slave headset have not established a Bluetooth connection, then generate the scanning policy for turning on the page scan function; If the audio quality mode is the normal mode and the main headset and the slave headset have established a Bluetooth connection, then generate the scanning policy for turning on the page scan function; If the audio quality mode is the normal mode and the main headset and the slave headset have not established a Bluetooth connection, then generate the scanning policy for turning on the page scan function; Wherein, the data bit rate of the Bluetooth headset in the normal mode is lower than the data bit rate of the Bluetooth headset in the high-fidelity mode.

7. A Bluetooth headset, characterized in that, Comprising a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps of the control method of the Bluetooth headset according to any one of claims 1 to 5 are implemented.

8. A storage medium, characterized in that, Computer-executable instructions are stored in the storage medium, and when the computer-executable instructions are loaded and executed by the processor, the steps of the control method of the Bluetooth headset according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Data transmission method and device, storage medium and terminal equipment

    CN113038437A