CN111132112A - Bluetooth audio transmission adjusting method, smart television and readable storage medium - Google Patents

Bluetooth audio transmission adjusting method, smart television and readable storage medium Download PDF

Info

Publication number
CN111132112A
CN111132112A CN201911399502.5A CN201911399502A CN111132112A CN 111132112 A CN111132112 A CN 111132112A CN 201911399502 A CN201911399502 A CN 201911399502A CN 111132112 A CN111132112 A CN 111132112A
Authority
CN
China
Prior art keywords
bluetooth
power
data volume
preset
transmission
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
CN201911399502.5A
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.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology 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 Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN201911399502.5A priority Critical patent/CN111132112A/en
Publication of CN111132112A publication Critical patent/CN111132112A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • H04N21/43637Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/06TPC algorithms
    • H04W52/14Separate analysis of uplink or downlink
    • H04W52/146Uplink power control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/26TPC being performed according to specific parameters using transmission rate or quality of service QoS [Quality of Service]
    • H04W52/265TPC being performed according to specific parameters using transmission rate or quality of service QoS [Quality of Service] taking into account the quality of service QoS

Abstract

The invention discloses a Bluetooth audio transmission adjusting method, which comprises the following steps: in the process of carrying out Bluetooth transmission with a Bluetooth audio sending end, detecting the data volume of a Bluetooth resource pool in real time, and judging whether the data volume of the Bluetooth resource pool is smaller than a first preset data volume corresponding to the pause early warning; when the data volume of the Bluetooth resource pool is smaller than a first preset data volume corresponding to the pause early warning, increasing the power of a Bluetooth chip; when the power of the Bluetooth chip is increased to a preset maximum power and the data volume of the Bluetooth resource pool is still smaller than the first preset data volume, the Bluetooth sending end is triggered to reduce the audio quality of Bluetooth transmission. The Bluetooth chip of the smart television can be powered on only when the Bluetooth blockage early warning condition is met by pre-judging the Bluetooth blockage in advance in the Bluetooth transmission process, flexible early warning is achieved, the power consumption of the whole smart television can be reduced, and the blockage phenomenon can be effectively reduced by further reducing the audio quality of Bluetooth transmission.

Description

Bluetooth audio transmission adjusting method, smart television and readable storage medium
Technical Field
The invention relates to the technical field of audio transmission, in particular to a Bluetooth audio transmission adjusting method, an intelligent television and a readable storage medium.
Background
Most smart televisions on the market all possess the bluetooth function at present, and the user can carry out the bluetooth with smart devices, for example cell-phone and smart television and be connected, and then uses smart television broadcast music, but in the in-service use process, receives transmission distance, smart device power and other factors such as network signal interference influence, can often take place the card and pause phenomenon. In order to solve the problem, the currently mainly used scheme is to statically increase the power of the smart tv to increase the signal strength before bluetooth is started, so as to provide more stable link transmission, but the scheme also has the following defects: increase signal strength at a glance and improved the consumption ratio of bluetooth module among the intelligent TV, whole intelligent TV consumption increase.
Disclosure of Invention
The invention provides a Bluetooth audio transmission adjusting method, a smart television and a readable storage medium, and aims to solve the problem that the power consumption of a Bluetooth module is increased by statically increasing the power of smart equipment.
In order to achieve the above object, the present invention provides a bluetooth audio transmission adjusting method, including:
in the process of carrying out Bluetooth transmission with a Bluetooth audio sending end, detecting the data volume of a Bluetooth resource pool in real time, and judging whether the data volume of the Bluetooth resource pool is smaller than a first preset data volume corresponding to the pause early warning;
when the data volume of the Bluetooth resource pool is smaller than a first preset data volume corresponding to the pause early warning, increasing the power of a Bluetooth chip;
when the power of the Bluetooth chip is increased to a preset maximum power and the data volume of the Bluetooth resource pool is still smaller than the first preset data volume, the Bluetooth sending end is triggered to reduce the audio quality of Bluetooth transmission.
Preferably, the step of increasing the power of the bluetooth chip comprises:
determining a first initial value to be adjusted according to the power of the Bluetooth chip, and adjusting the first initial value as a first power parameter value;
and in the adjusting process, accumulating the first power parameter value by a preset adjusting step length to update the first power parameter value, and adjusting the power of the Bluetooth chip according to the latest first power parameter value.
Preferably, the step of triggering the bluetooth sending end to reduce the audio quality of bluetooth transmission includes:
and triggering the Bluetooth sending end to reduce the bit pool parameter value so as to reduce the unit frame size.
Preferably, after the step of triggering the bluetooth sending end to reduce the audio quality of bluetooth transmission, the method further includes:
when the data volume of the Bluetooth resource pool is greater than or equal to a second preset data volume and the preset duration lasts, executing the following steps:
and reducing the power of a Bluetooth chip, and triggering the Bluetooth sending end to improve the audio quality of Bluetooth transmission, wherein the second preset data volume is greater than the first preset data volume.
Preferably, before the step of triggering the bluetooth sending end to improve the audio quality of bluetooth transmission, the method further includes:
when the power of the Bluetooth chip is reduced to a preset minimum power and the data volume of the Bluetooth resource pool is still larger than the second preset data volume, executing the following steps: and triggering the Bluetooth sending end to improve the audio quality of Bluetooth transmission.
Preferably, the step of reducing the power of the bluetooth chip comprises:
determining a second initial value to be adjusted according to the power of the Bluetooth chip when the duration time reaches a preset duration time, and adjusting the second initial value as a second power parameter value;
and in the adjusting process, the second power parameter value is subtracted by the preset adjusting step length to update the second power parameter value, and the power of the Bluetooth chip is adjusted according to the latest second power parameter value.
Preferably, the step of triggering the bluetooth sending end to improve the audio quality of bluetooth transmission includes:
and triggering the Bluetooth sending end to increase the bit pool parameter value so as to increase the unit frame size.
Preferably, the step of triggering the bluetooth transmitting end to increase the value of the bit pool parameter to increase the unit frame size includes:
and sending an instruction for increasing the bit pool parameter value of the Bluetooth transmission to the Bluetooth sending end so that the Bluetooth sending end increases the current bit pool parameter to a first preset bit pool parameter value after receiving the instruction.
In addition, to achieve the above object, the present invention further provides a smart tv, including: a communication module, a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the bluetooth audio transmission adaptation method as described above.
In addition, to achieve the above object, the present invention further provides a readable storage medium, which stores thereon a computer program, which when executed by a processor, implements the steps of the bluetooth audio transmission adjusting method as described above.
In the process of carrying out Bluetooth transmission with a Bluetooth audio transmitting end, the data volume of a Bluetooth resource pool is detected in real time, and whether the data volume of the Bluetooth resource pool is smaller than a first preset data volume corresponding to a pause early warning is judged; when the data volume of the Bluetooth resource pool is smaller than a first preset data volume corresponding to the pause early warning, increasing the power of a Bluetooth chip; when the power of the Bluetooth chip is increased to a preset maximum power and the data volume of the Bluetooth resource pool is still smaller than the first preset data volume, the Bluetooth sending end is triggered to reduce the audio quality of Bluetooth transmission. The power consumption of the Bluetooth chip is increased to a fixed value before starting, so that the power consumption of the whole television can be reduced, and in addition, the occurrence of the pause phenomenon can be reduced by reducing the audio quality of Bluetooth transmission.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a smart television according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a bluetooth audio transmission adjustment method according to a first embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of an intelligent television provided by the present invention.
The smart tv may include components such as a communication module 10, a memory 20, and a processor 30 in a hardware configuration. In the smart television, the processor 30 is connected to the memory 20 and the communication module 10, respectively, the memory 20 stores thereon a computer program, and the computer program is executed by the processor 30 at the same time, and when executed, the steps of the following method embodiments are implemented.
The communication module 10 may be connected to an external communication device through a network. The communication module 10 may receive a request from an external communication device, and may also send a request, an instruction, and information to the external communication device. The external communication device may be a user terminal, such as a mobile phone, a tablet computer or other system server, etc.
The memory 20 may be used to store software programs as well as various data. The memory 20 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may include a database, and the storage data area may store data or information created according to the use of the smart tv, and the like. Further, the memory 20 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 30, which is a control center of the smart tv, connects various parts of the entire smart tv through various interfaces and lines, and performs various functions and processes of the smart tv by running or executing software programs and/or modules stored in the memory 20 and calling data stored in the memory 20, thereby performing overall monitoring of the smart tv. Processor 30 may include one or more processing units; alternatively, the processor 30 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 30.
Although not shown in fig. 1, the smart television may further include a circuit control module, where the circuit control module is used for being connected to a power supply to ensure normal operation of other components. Those skilled in the art will appreciate that the smart television architecture shown in fig. 1 does not constitute a limitation of the smart television, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
Based on the hardware structure, various embodiments of the method of the invention are provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a bluetooth audio transmission adjustment method according to a first embodiment of the present invention, in which the method includes:
step S10, detecting the data volume of the Bluetooth resource pool in real time during the Bluetooth transmission process with the Bluetooth audio sending end, and judging whether the data volume of the Bluetooth resource pool is less than a first preset data volume corresponding to the pause early warning;
step S20, when the data volume of the Bluetooth resource pool is smaller than a first preset data volume corresponding to the pause early warning, the power of the Bluetooth chip is increased;
bluetooth audio frequency sending end includes smart mobile phone, computer, intelligent wrist-watch etc. in this embodiment, and the user can use bluetooth function to be connected smart mobile phone and smart television, and the user can click the broadcast music on smart mobile phone after the bluetooth is connected to broadcast data transmission to smart television through the bluetooth, this kind of technique can be said as the bluetooth and listen alone. However, due to many factors such as power, transmission distance, insufficient online sound source resources, and network interference in the 2.4Ghz band of the bluetooth device, a katon phenomenon often occurs when the bluetooth device is used to listen to songs, which affects normal playing of music.
In this embodiment, it is described by taking an example that the bluetooth audio transmitting end is a smart phone, when the smart phone and the smart tv perform bluetooth transmission, when the data amount of the bluetooth resource pool of the smart tv reaches a preset play data amount, music starts to be played, the preset play data amount may be set to K × MinUnitBuffer, where the default value of K is 4, and MinUnitBuffer is a preset minimum unit play data amount, where MinUnitBuffer may be calculated according to a formula, and the calculation formula is:
MinUnitBuffer (AF _ Frame _ Cnt × Sample _ Rate/AF _ Sample _ Rate +4) × MinBufferCnt, where AF _ Frame _ Cnt is the number of frames of a hardware device processing a single data block, and the default value is 1024; sample _ Rate is a sampling Rate configured by the hardware equipment, and the default value is 44100; M-inBufferCnt is the number of software resource pools, the minimum value is 2, and when minBufCount is less than 2, the value of minBufCount is 2; MinUnitBuffer is a preset minimum unit play data volume, and the default value (1024 × 44100/48000+4) × 2 is 1888byte from the above parameters.
In this embodiment, the preset play data amount may be set to K × MinUnitBuffer, and in fact, when the value of K is greater than or equal to 1, the available data amount in the bluetooth resource pool may also be maintained to be normally played, but in order to avoid the beginning of play from being blocked, the value of K is set to 4, so that the data amount in the bluetooth resource pool is relatively sufficient, and even if the data transmission is affected by external interference in the bluetooth transmission process, the data amount in the bluetooth resource pool is enough at this time, and the blocking phenomenon may not occur immediately. Thereby can take and predetermine in advance whether bluetooth transmission is about to block and reduce the appearance of blocking and pause the phenomenon, specifically, the in-process that the smart TV carries out bluetooth transmission with bluetooth audio frequency sending end, real-time detection bluetooth resource pond data volume whether is less than the first preset data volume that the blocking corresponds, when detecting that bluetooth resource pond data volume is less than the first preset data volume that the early warning of blocking and pause corresponds, thereby can increase bluetooth chip's power earlier and improve bluetooth resource pond data volume. It should be noted that the adjustment of the power of the bluetooth chip of the smart television is a dynamic process, that is, the power is not directly statically increased to a fixed value before starting like in the prior art, but the power of the bluetooth chip is adaptively adjusted by the smart television according to the data volume condition of the actually played bluetooth resource pool, so that the data volume of the bluetooth resource pool meets the requirement of not being jammed in playing. Further, the first preset number corresponding to the pause early warning can be set to 2 minunitbuffers, which can be understood as that the data size of the bluetooth resource pool is about to be reduced to a critical value, wherein the critical value is MinUnitBuffer, and when the data size of the bluetooth resource pool is less than 2 minunitbuffers, a pause phenomenon may be about to occur, so that the power of the bluetooth chip needs to be increased to increase the data size of the bluetooth resource pool. Whether jamming is to occur or not is judged in advance in the Bluetooth transmission process, when the fact that the data volume of the Bluetooth resource pool is smaller than the range of 2MinUnitBuffer is detected, the power of the Bluetooth chip is increased, the data volume of the Bluetooth resource pool is increased, the jamming phenomenon caused by insufficient data volume of the Bluetooth resource pool is avoided, through judging the jamming in advance, the power of the Bluetooth chip is increased when the early warning condition of the jamming of the Bluetooth chip is achieved, flexible early warning is achieved, the power consumption of the Bluetooth chip is increased to a fixed value before starting, and the whole power consumption can be reduced.
Step S30, when the power of the Bluetooth chip is increased to the preset maximum power and the data volume of the Bluetooth resource pool is still less than the first preset data volume, the Bluetooth sending end is triggered to reduce the audio quality of the Bluetooth transmission.
In this embodiment, if the power of the bluetooth chip has been increased to the preset maximum power, and the data size of the bluetooth resource pool is still smaller than the first preset data size at this time, where the first preset data size is 2MinUnitBuffer, the data size of the bluetooth resource pool is still insufficient at this time, and jamming is likely to occur, in order to reduce the occurrence of the jamming phenomenon, the data size of the bluetooth resource pool also needs to be increased, but the power of the bluetooth chip has been increased to the maximum at this time, and cannot be increased continuously, so that the data size of the bluetooth resource pool can be increased by triggering the bluetooth sending end to reduce the audio quality of bluetooth transmission. The available data volume of the resource pool can be improved by reducing the audio quality of the Bluetooth transmission, and although the audio quality is reduced, the phenomenon of pause can be avoided by properly reducing the audio quality for a user, and the user can receive the adjustment mode. The data volume of the Bluetooth resource is improved by increasing the power of the Bluetooth chip, and when the Bluetooth chip cannot be adjusted again, the data volume of the Bluetooth resource pool can be improved by reducing the audio quality of Bluetooth transmission, so that the phenomenon of blocking is effectively reduced.
Further, a second embodiment of the bluetooth audio transmission adjusting method according to the present invention is proposed based on the first embodiment of the bluetooth audio transmission adjusting method according to the present invention, and in this embodiment, the step of increasing the power of the bluetooth chip in step S20 includes:
step S11, determining a first initial value to be adjusted according to the power of the Bluetooth chip, and adjusting the first initial value as a first power parameter value;
step S12, during the adjustment process, the first power parameter value is accumulated with a preset adjustment step length to update the first power parameter value, and the power of the Bluetooth chip is adjusted according to the latest first power parameter value.
In this embodiment, two ways of increasing the power of the bluetooth chip may be adopted, that is, the power of the bluetooth chip is increased by adjusting the power coefficient or the power of the bluetooth chip is directly increased, specifically, the first way is to obtain the power coefficient through calculation, and then further determine the power of the bluetooth chip by the power coefficient, so as to call the driving interface to set the power of the bluetooth chip; the second mode can directly set power, and further calls a driving interface to set the power of the Bluetooth chip. That is, the first power parameter may be power of the bluetooth chip, and may also be a power coefficient corresponding to the power.
The first mode is specifically as follows: through transferring bluetooth drive interface, read bluetooth chip's power Q, substitute bluetooth power computational formula with bluetooth chip's power and calculate the power coefficient that bluetooth chip's power corresponds, wherein bluetooth power computational formula is: and Q is P multiplied by MaxCapity, wherein Q is the power of the Bluetooth chip, P is a power coefficient, MaxCapity is the maximum power value of the Bluetooth chip, the value range of the power coefficient is more than or equal to 0.4 and less than or equal to 1, and the MaxCapity default value is 20dBm, namely 0.1 w. For example, calling a bluetooth driver interface, reading that the power Q of a bluetooth chip is 0.09w, calculating a power coefficient P to be 0.9 according to a formula, where the power coefficient is smaller than 1, and the power coefficient may also be increased by 0.1 to increase the power of the bluetooth chip, where a first initial value to be adjusted is 0.09, adjusting 0.09 as a first power parameter value, and accumulating 0.09 by a preset step size to update the first power parameter value, where the preset step size is 0.1 × 0.1 — 0.01w (where 0.1 is an adjustment step size of the power coefficient and 0.1 is a default value of MaxCapacity), the updated first power parameter value is 0.1w, the power corresponding to the first power parameter value is 0.1w, and calling the driver interface sets the power of the bluetooth chip to 0.1 w. The second mode is specifically as follows: the power value range of the Bluetooth chip is more than or equal to 0.04 and less than or equal to 0.1, the power of the Bluetooth chip is read to be 0.08 by calling the Bluetooth driving interface, the power at the moment is not the maximum value, the power of the Bluetooth chip can be continuously increased, the first initial value is 0.08, 0.08 is used as a first power parameter value for adjustment, 0.08 is accumulated by a preset adjustment step length to update the first power parameter value, the preset adjustment step length at the moment is 0.01w, the updated first power parameter value is 0.09w, the power corresponding to the first power parameter value is 0.09w, and the driving interface is called to set the power of the Bluetooth chip to be 0.09 w.
In the process of dynamically adjusting the power of the bluetooth chip in this embodiment, the first power parameter value is accumulated by the preset adjustment step length to update the first power parameter value, and then the power of the bluetooth chip is adjusted according to the latest first power parameter value, so that the dynamic increase of the power of the bluetooth chip is realized, and the occurrence of a pause phenomenon caused by insufficient data volume of the bluetooth resource pool can be reduced.
Further, after step S12, the method further includes:
step S13, judging whether the Bluetooth resource pool data volume after adjusting the power of the Bluetooth chip is smaller than the first preset data volume;
step S14, if yes, judging whether the latest first power parameter value reaches a preset maximum power parameter value corresponding to the preset maximum power;
step S15, when the latest first power parameter value does not reach the preset maximum power parameter value, return to the step S12 of accumulating the first power parameter value by a preset adjustment step size to update the first power parameter value.
In this embodiment, it is determined whether the amount of the bluetooth resource pool data after adjusting the power of the bluetooth chip is smaller than a first preset data amount, where the first preset data amount is 2MinUnitBuffer, when the amount of the bluetooth resource pool data is smaller than 2MinUnitBuffer, the amount of the bluetooth resource pool data is still insufficient, the power of the bluetooth chip still needs to be increased to increase the amount of the bluetooth resource pool data, but it needs to be determined whether the latest first power parameter value reaches a preset maximum power parameter value corresponding to a preset maximum power, for example, the power Q of the bluetooth chip is read to be 0.09w, the power coefficient P is calculated to be 0.9 according to a formula, the power coefficient at this time is smaller than 1, and the power coefficient can also be increased by 0.1 to increase the power of the bluetooth chip, at this time, the first initial value to be adjusted is 0.09, 0.09 is adjusted as the first power parameter value, the first power parameter value is adjusted, and the step size is accumulated and preset, the preset step length is 0.1 × 0.1 ═ 0.01w (where 0.1 is the adjustment step length of the power coefficient, and 0.1 is the default of MaxCapacity), the updated first power parameter value is 0.1w, the power of the bluetooth chip is set to 0.1w by calling the driving interface, at this time, the data volume of the bluetooth resource pool is less than 2MinUnitBuffer, but the latest first power parameter value, namely 0.1w, reaches the maximum power parameter value, the power of the bluetooth chip can not be increased any more, and the data volume of the bluetooth resource pool can be increased by triggering the bluetooth sending end to reduce the audio quality of bluetooth transmission.
In this embodiment, a first initial value to be adjusted is determined according to the power of a bluetooth chip, the first initial value is used as a first power parameter value, the first power parameter value is accumulated to preset an adjustment step length to update the first power parameter value, the power is adjusted according to the latest first power parameter value, and whether the data volume of a bluetooth resource pool after the power of the bluetooth chip is adjusted is smaller than a first preset data volume or not is judged; if not, the power of the Bluetooth chip can not be increased, and the data volume of the Bluetooth resource pool can be adjusted by triggering the Bluetooth sending end to reduce the audio quality of Bluetooth transmission. The method of increasing the power of the Bluetooth chip is firstly adopted, and if the data volume of the Bluetooth resource pool is sufficient, the audio quality does not need to be reduced, and the audio quality can be ensured. Therefore, dynamic increase of power of the Bluetooth chip is realized, and the data volume of the Bluetooth resource pool is increased by combining a mode of reducing the audio quality of Bluetooth transmission, so that the phenomenon of blocking caused by insufficient data volume of the Bluetooth resource pool can be avoided.
Under normal conditions, the power of the Bluetooth chip is in a direct proportion relation with the data volume of the Bluetooth resource pool, when the power of the Bluetooth chip is increased, the data volume of the Bluetooth resource pool is increased, whether the power of the Bluetooth chip has an increased space or not is judged, and when the power of the Bluetooth chip has the increased space, the data volume of the Bluetooth resource pool can be increased by increasing the power of the Bluetooth chip; in addition, the audio quality of the Bluetooth transmission is in inverse proportion to the data volume of the Bluetooth resource pool, and when the power of the Bluetooth chip is the maximum value, the audio quality of the Bluetooth transmission can be reduced, so that the data volume of the Bluetooth resource pool is improved. The data volume of the Bluetooth resource pool is improved by increasing the power of the Bluetooth chip and then reducing the audio quality of Bluetooth transmission, so that the phenomenon of pause is avoided, and music can be played normally.
Further, a third embodiment of the bluetooth audio transmission adjusting method according to the present invention is provided based on the first embodiment of the bluetooth audio transmission adjusting method according to the present invention, and in this embodiment, the step of triggering the bluetooth sending end to reduce the quality of the bluetooth audio transmitted by the bluetooth sending end in step S30 includes:
and step S300, triggering the Bluetooth sending end to reduce the value of the bit pool parameter so as to reduce the size of the unit frame.
In this embodiment, a mode of reducing a bit pool parameter Value (BitPool Value) may be adopted to reduce the size of a unit frame, so as to reduce audio quality of bluetooth transmission, where a Value range of the bit pool parameter Value is 2 to 250, specifically, the smart television sends an instruction for reducing the audio quality of the bluetooth transmission to the bluetooth sending end, and the bluetooth sending end reduces a current bit pool parameter Value to a default bit pool parameter Value after receiving the instruction, where the default bit pool parameter Value may be set to 19, and reduces the bit pool parameter Value to reduce the size of the unit frame, although audio quality is reduced, when a bluetooth link occupies the same resource, the number of data packets sent in unit time may be increased, and playable audio stream resources with more duration may be obtained, thereby avoiding card pause.
Further, a fourth embodiment of the bluetooth audio transmission adjusting method according to the present invention is provided based on the first embodiment of the bluetooth audio transmission adjusting method according to the present invention, and in this embodiment, after the step of triggering the bluetooth sending end to reduce the quality of the bluetooth audio transmitted by the bluetooth sending end in step S30, the method further includes:
step S31, when the data size of the bluetooth resource pool is greater than or equal to the second preset data size and the preset duration continues, executing the following steps:
and reducing the power of a Bluetooth chip, and triggering the Bluetooth sending end to improve the audio quality of Bluetooth transmission, wherein the second preset data volume is greater than the first preset data volume.
In this embodiment, when the data amount of the bluetooth resource pool is greater than or equal to the second preset data amount and the preset duration is maintained, the power of the bluetooth chip is reduced, the power consumption of the bluetooth module, which is inevitably increased due to the increase of the power of the bluetooth chip, is increased, and then the power consumption of the whole device is increased, and when the data amount of the bluetooth resource pool is sufficient and is maintained in a relatively stable state, the power consumption of the bluetooth module can be reduced by appropriately reducing the power of the bluetooth chip, so that the power consumption of the whole device can be reduced, wherein the second preset data amount is 3MinUnitBuffer, and the preset duration can be set to 1.2 s. Specifically, when the data size of the bluetooth resource pool is greater than or equal to 3MinUnitBuffer and the duration is 1.2s, it indicates that the data size of the bluetooth resource pool is sufficient and in a stable state, and at this time, the power of the bluetooth chip can be reduced, so that the power consumption of the whole device is reduced. When the data volume of the Bluetooth resource pool is sufficient and maintains a stable state, the audio quality of Bluetooth transmission can be properly improved, the available data volume of the resource pool is sufficient and has no pause phenomenon, and the audio quality is ensured as far as possible on the premise of ensuring the smoothness of the audio transmission of the Bluetooth.
Further, before the step of triggering the bluetooth sending end to improve the audio quality of bluetooth transmission in step S31, the method further includes:
s32, when the power of the Bluetooth chip is reduced to the preset minimum power and the data volume of the Bluetooth resource pool is still larger than the second preset data volume, executing the following steps: and triggering the Bluetooth sending end to improve the audio quality of Bluetooth transmission.
In this embodiment, when the power of the bluetooth chip is reduced to the preset minimum value, the data amount of the bluetooth resource pool is still greater than the second preset data amount, where the second preset data amount is 3MinUnitBuffer, which indicates that the data amount of the bluetooth resource pool is sufficient at this time, there is no stuck phenomenon at this time, the data amount of the bluetooth resource pool is not rapidly reduced due to power reduction, and only when the data amount of the bluetooth resource pool is less than the first preset data amount (2MinUnitBuffer), there is a possibility of the stuck phenomenon occurring, and when the data amount of the bluetooth resource pool is sufficient, the audio quality of bluetooth transmission can be properly improved, and the requirement of listening to songs of a user is met, so that the bluetooth sending end is triggered to improve the audio quality of bluetooth transmission, and the audio quality is guaranteed as much as possible on the premise of ensuring smooth bluetooth transmission audio.
Further, the step of reducing the power of the bluetooth chip in step S31 includes:
step S33, determining a second initial value to be adjusted according to the power of the Bluetooth chip when the duration reaches the preset duration, and adjusting the second initial value as a second power parameter value;
step S34, during the adjustment process, subtracting the preset adjustment step size from the second power parameter value to update the second power parameter value, and adjusting the power of the bluetooth chip according to the latest second power parameter value.
In this embodiment, a second initial value to be adjusted is determined according to the power of the bluetooth chip when the duration reaches the preset time, for example, the power of the bluetooth chip when the duration reaches the preset duration is 0.09w, and a second power parameter value is 0.09w, and two ways may be adopted for reducing the power of the bluetooth chip, where the first way is to obtain a power coefficient through calculation, and then further determine the power by the power coefficient, so as to call the driving interface to set the power of the bluetooth chip; the second mode can directly set different powers, and further calls a driving interface to set the power of the Bluetooth chip. I.e. the second power parameter value is also of the same type as comprised by the first power parameter value.
The first mode is specifically as follows: through transferring bluetooth drive interface, read bluetooth chip's power Q, substitute bluetooth power computational formula with bluetooth chip's power and calculate the power coefficient that bluetooth chip's power corresponds, wherein bluetooth power computational formula is: and Q is P multiplied by MaxCapity, wherein Q is the power of the Bluetooth chip, P is a power coefficient, MaxCapity is the maximum power value of the Bluetooth chip, the value range of the power coefficient is more than or equal to 0.4 and less than or equal to 1, and the MaxCapity default value is 20dBm, namely 0.1 w. For example, when the bluetooth driver interface is called, the power Q of the bluetooth chip is read to be 0.09w, the power coefficient P is calculated to be 0.9 according to a formula, the power coefficient may also be reduced, at this time, the second initial value to be adjusted is 0.09, 0.09 is adjusted as the second power parameter value, the preset step size is cumulatively decreased by 0.09 to update the second power parameter value, where the preset step size is 0.1 × 0.1 — 0.01w (where 0.1 is the adjustment step size of the power coefficient, and 0.1 is the default value of MaxCapacity), the updated second power parameter value is 0.08w, the power corresponding to the second power parameter value is 0.08w, and the drive interface is called to set the power of the bluetooth chip to be 0.08 w.
The second mode is specifically as follows: the power value range of the Bluetooth chip is more than or equal to 0.04 and less than or equal to 0.1, the power of the Bluetooth chip is read to be 0.08 by calling the Bluetooth driving interface, the power at the moment is not the minimum value, the power of the Bluetooth chip can be further reduced, the second initial value is 0.08w, 0.08w is used as the second power parameter value for adjustment, the preset adjustment step length is accumulated and reduced by 0.08w to update the second power parameter value, the preset adjustment step length at the moment is 0.01w, the updated first power parameter value is 0.07w, the power corresponding to the second power parameter value is 0.07w, and the driving interface is called to set the power of the Bluetooth chip to be 0.07 w.
In the process of reducing the power of the bluetooth chip in this embodiment, the second power parameter value is subtracted to preset the adjustment step length and the power of the bluetooth chip is adjusted according to the latest second power parameter value after the second power parameter value is updated, in this embodiment, under the condition that the data volume of the bluetooth resource pool is stable and the available data volume is sufficient, the power of the bluetooth chip is appropriately and dynamically reduced, the power consumption of the bluetooth module can be reduced, and thus, the power consumption of the whole bluetooth module can be reduced.
Further, after step S34, the method further includes:
step S35, comparing the resource pool data volume after adjusting the power of the Bluetooth chip with a second preset data volume;
step S36, when the data volume of the Bluetooth resource pool is equal to the second preset data volume, stopping reducing the power of the Bluetooth chip;
step S37, when the data volume of the Bluetooth resource pool is larger than the second preset data volume, judging whether the latest second power parameter value reaches a preset minimum power parameter value corresponding to a preset minimum power; if not, returning to the step of subtracting the preset adjustment step size from the second power parameter value to update the second power parameter value in step S34.
In this embodiment, the bluetooth resource pool data volume after the power of the bluetooth chip is reduced is compared with a second preset data volume, where the second preset data volume may be set to 2MinUnitBuffer, and when the bluetooth resource pool data volume is equal to 2MinUnitBuffer, the power of the bluetooth chip may not be reduced any more, and if the power of the bluetooth chip is reduced continuously, the bluetooth resource pool data volume may be insufficient, so the power of the bluetooth chip is stopped being reduced; when the data amount of the bluetooth resource pool is greater than 2MinUnitBuffer, the data amount of the bluetooth resource pool is sufficient at this time, the power of the bluetooth chip may be continuously reduced, so as to reduce the power consumption of the bluetooth module, but it is necessary to determine whether the latest second power parameter value reaches a preset minimum power parameter value corresponding to a preset minimum power at this time, for example, when the data amount of the current bluetooth resource pool is greater than 2MinUnitBuffer, the power Q of the bluetooth chip is read to be 0.06w, the power coefficient P is calculated to be 0.6 according to a formula, the power coefficient at this time is greater than the minimum power coefficient 0.4, the step of accumulating the preset adjustment step length by the second power parameter value may be continuously returned to update the second power parameter value, for example, the second initial value to be adjusted is 0.06w, 0.06w is adjusted as the second power parameter value, the preset step of accumulating the preset step length by 0.w to update the second power parameter value, wherein the preset step length is 0.1 × 0.01w (where 0.1 is the adjustment step length of the power coefficient, 0.1 is a default value of MaxCapacity), the updated second power parameter value is 0.05w, and the driving interface is called to set the power of the bluetooth chip to be 0.05 w. In the embodiment, the power of the Bluetooth chip is properly and dynamically reduced under the condition that the data volume of the Bluetooth resource pool is stable and the available data volume is sufficient, so that the power consumption of the Bluetooth module can be reduced, and the power consumption of the whole machine is reduced.
Further, the step of triggering the bluetooth sending end to improve the audio quality of bluetooth transmission in step S31 includes:
step S310, triggering the Bluetooth sending end to increase the bit pool parameter value so as to increase the unit frame size.
In this embodiment, a mode of increasing a BitPool parameter Value (BitPool Value) may be adopted to increase the unit frame size, so as to increase the audio quality of bluetooth transmission, and the Value range of the BitPool parameter Value is 2 to 250. When the data volume of the Bluetooth resource pool is sufficient and maintains a relatively stable state, the audio quality of Bluetooth transmission is properly improved, the available data volume of the resource pool is sufficient and has no pause phenomenon, and the audio quality is ensured as far as possible on the premise of ensuring smoothness of the audio in Bluetooth transmission.
Further, step S310 includes:
step S321, sending an instruction for increasing a bit pool parameter value of bluetooth transmission to the bluetooth sending end, so that the bluetooth sending end increases the current bit pool parameter to a first preset bit pool parameter value after receiving the instruction.
In this embodiment, the smart television sends the audio quality instruction for improving bluetooth transmission to the bluetooth sending end, the bluetooth sending end increases the current bit pool parameter value to the first preset bit pool parameter value after receiving the instruction, wherein the first preset bit pool parameter value is 33, the power of the bluetooth chip is properly reduced under the condition of ensuring that the data volume of the bluetooth resource pool is sufficient, the occupied power consumption of the bluetooth module can be reduced, the audio quality is improved simultaneously, and the audio quality is ensured as far as possible on the premise of ensuring that the bluetooth transmission audio is smooth.
The invention also proposes a computer-readable storage medium on which a computer program is stored. The computer-readable storage medium may be a Memory in the smart television of fig. 1, and may also be at least one of a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, and an optical disk, where the computer-readable storage medium includes several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, a terminal, or a network device) having a processor to execute the method according to the embodiments of the present invention.
In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, and those skilled in the art can understand the specific meanings of the above terms in the present invention according to specific situations.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although the embodiment of the present invention has been shown and described, the scope of the present invention is not limited thereto, it should be understood that the above embodiment is illustrative and not to be construed as limiting the present invention, and that those skilled in the art can make changes, modifications and substitutions to the above embodiment within the scope of the present invention, and that these changes, modifications and substitutions should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for adjusting bluetooth audio transmission, the method comprising the steps of:
in the process of carrying out Bluetooth transmission with a Bluetooth audio sending end, detecting the data volume of a Bluetooth resource pool in real time, and judging whether the data volume of the Bluetooth resource pool is smaller than a first preset data volume corresponding to the pause early warning;
when the data volume of the Bluetooth resource pool is smaller than a first preset data volume corresponding to the pause early warning, increasing the power of a Bluetooth chip;
when the power of the Bluetooth chip is increased to a preset maximum power and the data volume of the Bluetooth resource pool is still smaller than the first preset data volume, the Bluetooth sending end is triggered to reduce the audio quality of Bluetooth transmission.
2. The bluetooth audio transmission adjustment method of claim 1, wherein the step of increasing the power of the bluetooth chip comprises:
determining a first initial value to be adjusted according to the power of the Bluetooth chip, and adjusting the first initial value as a first power parameter value;
and in the adjusting process, accumulating the first power parameter value by a preset adjusting step length to update the first power parameter value, and adjusting the power of the Bluetooth chip according to the latest first power parameter value.
3. The method for adjusting bluetooth audio transmission according to claim 1, wherein the step of triggering the bluetooth sending end to reduce the audio quality of bluetooth transmission comprises:
and triggering the Bluetooth sending end to reduce the bit pool parameter value so as to reduce the unit frame size.
4. The method for adjusting bluetooth audio transmission according to claim 1, wherein after the step of triggering the bluetooth sending end to reduce the audio quality of bluetooth transmission, the method further comprises:
when the data volume of the Bluetooth resource pool is greater than or equal to a second preset data volume and the preset duration lasts, executing the following steps:
and reducing the power of a Bluetooth chip, and triggering the Bluetooth sending end to improve the audio quality of Bluetooth transmission, wherein the second preset data volume is greater than the first preset data volume.
5. The method for adjusting bluetooth audio transmission according to claim 4, wherein before the step of triggering the bluetooth sending end to improve the audio quality of bluetooth transmission, the method further comprises:
when the power of the Bluetooth chip is reduced to a preset minimum power and the data volume of the Bluetooth resource pool is still larger than the second preset data volume, executing the following steps: and triggering the Bluetooth sending end to improve the audio quality of Bluetooth transmission.
6. The bluetooth audio transmission adaptation method of claim 4, wherein the step of reducing the power of the bluetooth chip comprises:
determining a second initial value to be adjusted according to the power of the Bluetooth chip when the duration time reaches a preset duration time, and adjusting the second initial value as a second power parameter value;
and in the adjusting process, the second power parameter value is subtracted by the preset adjusting step length to update the second power parameter value, and the power of the Bluetooth chip is adjusted according to the latest second power parameter value.
7. The method for adjusting bluetooth audio transmission according to claim 4, wherein the step of triggering the bluetooth sending end to improve the audio quality of bluetooth transmission comprises:
and triggering the Bluetooth sending end to increase the bit pool parameter value so as to increase the unit frame size.
8. The method of claim 7, wherein the step of triggering the Bluetooth sender to increase the value of the bit pool parameter to increase the unit frame size comprises:
and sending an instruction for increasing the bit pool parameter value of the Bluetooth transmission to the Bluetooth sending end so that the Bluetooth sending end increases the current bit pool parameter to a first preset bit pool parameter value after receiving the instruction.
9. An intelligent television, characterized in that the intelligent television comprises: a communication module, a memory, a processor and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the bluetooth audio transmission adaptation method according to any one of claims 1 to 8.
10. A readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the bluetooth audio transmission adaptation method according to any one of claims 1 to 8.
CN201911399502.5A 2019-12-30 2019-12-30 Bluetooth audio transmission adjusting method, smart television and readable storage medium Pending CN111132112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911399502.5A CN111132112A (en) 2019-12-30 2019-12-30 Bluetooth audio transmission adjusting method, smart television and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911399502.5A CN111132112A (en) 2019-12-30 2019-12-30 Bluetooth audio transmission adjusting method, smart television and readable storage medium

Publications (1)

Publication Number Publication Date
CN111132112A true CN111132112A (en) 2020-05-08

Family

ID=70505690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911399502.5A Pending CN111132112A (en) 2019-12-30 2019-12-30 Bluetooth audio transmission adjusting method, smart television and readable storage medium

Country Status (1)

Country Link
CN (1) CN111132112A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671967A (en) * 2020-12-22 2021-04-16 英华达(上海)科技有限公司 Bluetooth headset control method, system, device and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180220170A1 (en) * 2016-01-28 2018-08-02 Tencent Technology (Shenzhen) Company Limited Method and apparatus for transmitting data of mobile terminal
CN109461450A (en) * 2018-11-01 2019-03-12 恒玄科技(上海)有限公司 Transmission method, system, storage medium and the bluetooth headset of audio data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180220170A1 (en) * 2016-01-28 2018-08-02 Tencent Technology (Shenzhen) Company Limited Method and apparatus for transmitting data of mobile terminal
CN109461450A (en) * 2018-11-01 2019-03-12 恒玄科技(上海)有限公司 Transmission method, system, storage medium and the bluetooth headset of audio data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671967A (en) * 2020-12-22 2021-04-16 英华达(上海)科技有限公司 Bluetooth headset control method, system, device and medium

Similar Documents

Publication Publication Date Title
US11606564B2 (en) Video encoding code rate control method, apparatus, and device, and storage medium
US9144014B2 (en) Method for operating portable terminal to reduce power during support of communication service and portable terminal supporting the same
EP2064796B1 (en) Portable device with priority based power savings control and method thereof
US9172117B2 (en) User-controlled application-based power management
US11632621B2 (en) Method for controlling volume of wireless headset, and computer-readable storage medium
CN105554550A (en) Video playing method and device
CN110366006A (en) Video broadcasting method, device, terminal device and computer readable storage medium
CN108196482B (en) Power consumption control method and device, storage medium and electronic equipment
CN114143660A (en) Wireless earphone control method and device and electronic equipment
CN107526570B (en) Volume adjusting method and device, terminal equipment and storage medium
CN111132112A (en) Bluetooth audio transmission adjusting method, smart television and readable storage medium
CN113840269A (en) Multimedia data transmission method and device, electronic equipment and storage medium
CN112822001A (en) Control method of electronic equipment and electronic equipment
CN111049972B (en) Audio playing method and terminal equipment
WO2021077375A1 (en) Communication frequency adjustment method and apparatus, and electronic device and storage medium
CN111767136B (en) Process management method, terminal and device with storage function
CN114416013A (en) Data transmission method, data transmission device, electronic equipment and computer-readable storage medium
CN113220106A (en) Power saving control method and power saving control device
CN113038333B (en) Bluetooth headset control method and device, electronic equipment and readable storage medium
CN107682733B (en) Control method and system for improving user experience of watching video
CN112261712A (en) Power regulation method and device
CN114510140B (en) Frequency modulation method and device and electronic equipment
CN103024128A (en) Call volume adjusting method and call volume adjusting device
CN112449396A (en) Terminal data transmission method, electronic equipment and readable storage medium
CN114710804A (en) Data transmission adjusting method and device, electronic equipment and readable storage medium

Legal Events

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