CN117202259A - Data processing method and system of Bluetooth headset - Google Patents

Data processing method and system of Bluetooth headset Download PDF

Info

Publication number
CN117202259A
CN117202259A CN202311469109.5A CN202311469109A CN117202259A CN 117202259 A CN117202259 A CN 117202259A CN 202311469109 A CN202311469109 A CN 202311469109A CN 117202259 A CN117202259 A CN 117202259A
Authority
CN
China
Prior art keywords
time window
compression time
current
acquiring
data compression
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.)
Granted
Application number
CN202311469109.5A
Other languages
Chinese (zh)
Other versions
CN117202259B (en
Inventor
黄知顺
李元顺
李训
曹实义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Fengheyuan Technology Co ltd
Original Assignee
Shenzhen Fengheyuan 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 Fengheyuan Technology Co ltd filed Critical Shenzhen Fengheyuan Technology Co ltd
Priority to CN202311469109.5A priority Critical patent/CN117202259B/en
Publication of CN117202259A publication Critical patent/CN117202259A/en
Application granted granted Critical
Publication of CN117202259B publication Critical patent/CN117202259B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention provides a data processing method of a Bluetooth headset, which comprises the following steps: acquiring a preset data compression time window value through historical test data; selecting a preset data compression time window value according to the current environment and the application scene of the Bluetooth headset; acquiring a first adjusting coefficient according to the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed; acquiring a second adjusting coefficient according to the current system load condition and the first adjusting coefficient; dynamically adjusting a preset data compression time window value according to a second adjusting coefficient; the system comprises a preset value setting module, a first adjusting coefficient obtaining module, a second adjusting coefficient obtaining module and a dynamic adjusting module, by the method and the system, better tone quality, lower delay and more stable data transmission can be provided through comprehensive consideration of a plurality of factors and dynamic adjustment of a data compression time window, the system is suitable for different environments and application scenes, and the use experience of a user is improved.

Description

Data processing method and system of Bluetooth headset
Technical Field
The invention relates to the technical field of Bluetooth headphones, in particular to a data processing method and system of a Bluetooth headphone.
Background
With the development of mobile terminal technology and wireless connection technology, the development of bluetooth headset technology is more and more mature, and the application is more and more extensive. The Bluetooth earphone is connected to the mobile terminal through Bluetooth in a wireless mode, audio data transmitted by the mobile terminal can be received for audio playing, data transmission between the earphone and the mobile terminal does not depend on wired connection any more, and use convenience is greatly improved.
In practical applications, data needs to be compressed and then transmitted between the device and the bluetooth headset, and a proper time window size needs to be selected according to specific scenes and requirements so as to balance the relationship between signal quality and data transmission speed. In general, for audio applications requiring high fidelity, a longer time window may be selected; for applications with higher real-time requirements, a shorter time window may need to be selected to reduce the transmission delay. How to intelligently control the data compression time window in real time according to the use scene, and ensuring that the requirements of data quality and data delay are met is a problem to be solved.
Disclosure of Invention
The invention provides a data processing method and a data processing system for a Bluetooth headset, which are used for solving the problems:
The invention provides a data processing method of a Bluetooth headset, which comprises the following steps:
s1, setting various environmental scenes and application scenes through historical tests, classifying, setting different data compression time under different application scenes, and obtaining delay time and comprehensive indexes of sound quality through different data compression time; establishing a corresponding relation between a data compression time window and a delay time and tone quality comprehensive index; acquiring a preset data compression time window value according to the delay time and the tone quality comprehensive index requirement; selecting a preset data compression time window value according to the current environment and the application scene of the Bluetooth headset;
s2, acquiring a first adjustment coefficient according to the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed;
s3, estimating the load condition of the current system according to the number of Bluetooth devices and the number of data transmission; acquiring a second adjusting coefficient according to the current system load condition and the first adjusting coefficient;
and S4, dynamically adjusting the preset data compression time window value according to the second adjusting coefficient.
Further, a data processing method of a bluetooth headset, the S1 includes:
Setting various environmental scenes and application scenes through history tests; the environmental scene includes a first classification and a second classification; the first classification is a quiet environment and the second classification is a noisy environment; further classifying the first classification and the second classification according to the application scene, and acquiring a first sub-classification and a second sub-classification under the first classification; acquiring a third sub-category and a fourth sub-category under the second category; the application scenes divided into the first sub-category and the third sub-category comprise music playing and video appreciation; the application scenes of the second sub-category and the fourth sub-category comprise voice calls and game experiences;
setting different data compression time under different application scenes, and obtaining delay time and tone quality comprehensive indexes through the different data compression time; the tone quality comprehensive index comprises total harmonic distortion, signal to noise ratio and audio dynamic range;
establishing a corresponding relation between a data compression time window and a delay time and tone quality comprehensive index;
obtaining different data compression time window thresholds according to different classified corresponding relations, wherein the thresholds comprise a maximum time threshold and a minimum time window threshold;
Acquiring a preset data compression time window value according to a maximum time window threshold value and a minimum time window threshold value;
is->Presetting a time window value under classification; />Is->A minimum time window threshold under classification; />Is->A maximum time window threshold under class;
and acquiring the current environment information and the application scene of the Bluetooth headset, and selecting a preset compression time window value according to the current environment and the application scene.
And acquiring the current environment information and the application scene of the Bluetooth headset, and selecting a preset compression time window value according to the current environment and the application scene.
Further, a data processing method of a bluetooth headset, the S2 includes:
acquiring the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed;
normalizing the signal intensity and the current network connection speed to obtain the normalized signal intensity and the current network connection speed;
acquiring a first adjustment coefficient according to the signal intensity after normalization processing and the current network connection speed;
for the first adjustment factor, +.>For normalized signal intensity, ++>The current normalized network speed; />Is the weight.
Further, a data processing method of a bluetooth headset, the S3 includes:
Acquiring the Bluetooth number and the data transmission amount of the current connection equipment;
estimating the load condition of the current system according to the number of Bluetooth devices and the number of data transmission;
wherein the method comprises the steps ofFor load case +.>Is->The data transmission amount of the Bluetooth devices; />The maximum data transmission quantity is supported by the system; />B1, b2 and b3 are weights for the number of Bluetooth devices; CPU% is the CPU utilization rate of the current equipment, and M% is the memory utilization rate of the current equipment;
acquiring a second adjusting coefficient according to the current system load condition and the first adjusting coefficient;
further, a data processing method of a bluetooth headset, the S4 includes:
dynamically adjusting a preset data compression time window according to a second adjusting coefficient;
when (when)When selecting +.>As an actual compression time window;
when (when)When selecting +.>As an actual compression time window;
when (when)When selecting +.>As the actual compression time window.
The invention provides a data processing system of a Bluetooth headset, which comprises:
the preset value setting module: setting a plurality of environment scenes and application scenes through historical tests, classifying, setting different data compression time under different application scenes, and obtaining delay time and tone quality comprehensive indexes through different data compression time; establishing a corresponding relation between a data compression time window and a delay time and tone quality comprehensive index; acquiring a preset data compression time window value according to the delay time and the tone quality comprehensive index requirement; selecting a preset data compression time window value according to the current environment and the application scene of the Bluetooth headset;
The first adjustment coefficient acquisition module: acquiring a first adjusting coefficient according to the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed;
the second adjustment coefficient acquisition module: estimating the load condition of the current system according to the number of Bluetooth devices and the number of data transmission; acquiring a second adjusting coefficient according to the current system load condition and the first adjusting coefficient;
and a dynamic adjustment module: and dynamically adjusting the preset data compression time window value according to the second adjusting coefficient.
Further, a data processing system of a bluetooth headset, the preset value setting module includes:
a scene setting module: setting various environmental scenes and application scenes through history tests; the environmental scene includes a first classification and a second classification; the first classification is a quiet environment and the second classification is a noisy environment; further classifying the first classification and the second classification according to the application scene, and acquiring a first sub-classification and a second sub-classification under the first classification; acquiring a third sub-category and a fourth sub-category under the second category; the application scenes divided into the first sub-category and the third sub-category comprise music playing and video appreciation; the application scenes of the second sub-category and the fourth sub-category comprise voice calls and game experiences;
And a data acquisition module: setting different data compression time under different application scenes, and obtaining delay time and tone quality comprehensive indexes through the different data compression time; the tone quality comprehensive index comprises total harmonic distortion, signal to noise ratio and audio dynamic range;
and a corresponding relation establishing module: establishing a corresponding relation between a data compression time window and a delay time and tone quality comprehensive index;
a threshold setting module: obtaining different data compression time window thresholds according to different classified corresponding relations, wherein the thresholds comprise a maximum time threshold and a minimum time window threshold;
the preset value acquisition module is used for: acquiring a preset data compression time window value according to a maximum time window threshold value and a minimum time window threshold value;
is->Presetting a time window value under classification; />Is->A minimum time window threshold under classification; />Is->A maximum time window threshold under class;
a preset value selection module: and acquiring the current environment information and the application scene of the Bluetooth headset, and selecting a preset compression time window value according to the current environment and the application scene.
Further, a data processing system of a bluetooth headset, the first adjustment coefficient obtaining module includes:
Signal strength and network speed acquisition module: acquiring the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed;
normalization processing module: normalizing the signal intensity and the current network connection speed to obtain the normalized signal intensity and the current network connection speed;
a first coefficient calculation module: acquiring a first adjustment coefficient according to the signal intensity after normalization processing and the current network connection speed;
for the first adjustment factor, +.>For normalized signal intensity, ++>The current normalized network speed; />Is the weight.
Further, a data processing system of a bluetooth headset, the second adjustment coefficient obtaining module includes:
bluetooth quantity and data transmission quantity acquisition module: acquiring the Bluetooth number and the data transmission amount of the current connection equipment;
load calculation module: estimating the load condition of the current system according to the number of Bluetooth devices and the number of data transmission;
wherein the method comprises the steps ofFor load case +.>Is->The data transmission amount of the Bluetooth devices; />The maximum data transmission quantity is supported by the system; />B1, b2 and b3 are weights for the number of Bluetooth devices; CPU% is the CPU utilization rate of the current equipment, and M% is the memory utilization rate of the current equipment;
The second adjustment coefficient calculation module: acquiring a second adjusting coefficient according to the current system load condition and the first adjusting coefficient;
further, a data processing system of a bluetooth headset, the dynamic adjustment module includes:
and an adjustment calculation module: dynamically adjusting a preset data compression time window according to a second adjusting coefficient;
and a comparison and selection module: when (when)When selecting +.>As an actual compression time window; when->When selecting +.>As an actual compression time window; when->When selecting +.>As the actual compression time window.
The invention has the beneficial effects that: through analysis of historical test data, the relation between the data compression time window and the tone quality comprehensive index and the data delay are determined. By setting the preset data compression time window value, the optimization of data processing can be realized on the premise of meeting the requirements of users on tone quality and delay. And selecting a proper preset data compression time window value according to the current environment information and the application scene of the Bluetooth headset. Therefore, according to specific conditions, data transmission experience which meets actual requirements better can be provided for users; the data compression time window value can be dynamically adjusted according to the change of signal quality and network conditions by acquiring the signal strength and the network connection speed between the current equipment and the Bluetooth equipment and calculating a first adjusting coefficient so as to optimize the stability and efficiency of data transmission; the second adjustment coefficient is calculated by estimating the load condition of the current system, including the number of Bluetooth devices, the number of data transmission and other factors, and combining the first adjustment coefficient. Therefore, the preset data compression time window value can be dynamically adjusted according to the change of the system load so as to ensure the data transmission performance under different load conditions; in general, the Bluetooth headset data processing method can provide better tone quality, lower delay and more stable data transmission through comprehensive consideration and dynamic adjustment of a plurality of factors, adapt to different environments and application scenes, and promote the use experience of users.
Drawings
Fig. 1 is a schematic diagram of a data processing method of a bluetooth headset according to the present application.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will be more clearly understood, a more particular description of the application will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. It should be noted that, without conflict, the embodiments of the present application and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, and the described embodiments are merely some, rather than all, embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
The data processing method of the Bluetooth headset of the embodiment comprises the following steps:
S1, setting various environmental scenes and application scenes through historical tests, classifying, setting different data compression time under different application scenes, and obtaining delay time and comprehensive indexes of sound quality through different data compression time; establishing a corresponding relation between a data compression time window and a delay time and tone quality comprehensive index; acquiring a preset data compression time window value according to the delay time and the tone quality comprehensive index requirement; selecting a preset data compression time window value according to the current environment and the application scene of the Bluetooth headset;
s2, acquiring a first adjustment coefficient according to the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed;
s3, estimating the load condition of the current system according to the number of Bluetooth devices and the number of data transmission; acquiring a second adjusting coefficient according to the current system load condition and the first adjusting coefficient;
and S4, dynamically adjusting the preset data compression time window value according to the second adjusting coefficient.
The working principle of the technical scheme is as follows: and acquiring the relationship between the data compression time window and the data delay and the tone quality comprehensive index of the Bluetooth headset with the same model through the historical test data. This means that the data delay and timbre combination indicator corresponding to the different data compression time window values has been determined in a previous test. Based on these data, a model or rule may be established to estimate the preset data compression time window value.
And acquiring a preset data compression time window value according to the requirements of the data delay time and the tone quality comprehensive index. This allows selecting an appropriate preset data compression time window value based on the user's settings for data delay and voice quality requirements.
And selecting a proper preset data compression time window value according to the current environment information and the application scene of the Bluetooth headset. Different environments and application scenarios may have different requirements for data transmission, so that a suitable preset data compression time window value needs to be selected according to specific situations.
And acquiring the signal strength between the current equipment and the Bluetooth equipment and the current network connection speed, and calculating a first adjustment coefficient by using the information. The first adjustment coefficient can adjust the data compression time window value according to the change condition of the signal strength and the network connection speed so as to adapt to different signal and network conditions.
And estimating the load condition of the current system, including the number of Bluetooth devices, the number of data transmission and other factors. And calculating a second regulating coefficient according to the system load condition and the first regulating coefficient. Therefore, the preset data compression time window value can be dynamically adjusted according to the change of the system load, so that data transmission is more stable and efficient.
And dynamically adjusting the preset data compression time window value according to the second adjusting coefficient. And according to the value of the second adjustment coefficient, increasing or decreasing the preset data compression time window so as to achieve better data transmission performance.
The technical scheme has the effects that: through analysis of historical test data, the relation between the data compression time window and the tone quality comprehensive index and the data delay are determined. By setting the preset data compression time window value, the optimization of data processing can be realized on the premise of meeting the requirements of users on tone quality and delay. And selecting a proper preset data compression time window value according to the current environment information and the application scene of the Bluetooth headset. Therefore, according to specific conditions, data transmission experience which meets actual requirements better can be provided for users; the data compression time window value can be dynamically adjusted according to the change of signal quality and network conditions by acquiring the signal strength and the network connection speed between the current equipment and the Bluetooth equipment and calculating a first adjusting coefficient so as to optimize the stability and efficiency of data transmission; the second adjustment coefficient is calculated by estimating the load condition of the current system, including the number of Bluetooth devices, the number of data transmission and other factors, and combining the first adjustment coefficient. Therefore, the preset data compression time window value can be dynamically adjusted according to the change of the system load so as to ensure the data transmission performance under different load conditions; in general, the Bluetooth headset data processing method can provide better tone quality, lower delay and more stable data transmission through comprehensive consideration and dynamic adjustment of a plurality of factors, adapt to different environments and application scenes, and promote the use experience of users.
In this embodiment, the data processing method of the bluetooth headset, the S1 includes:
acquiring the relationship between a data compression time window and a data delay and tone quality comprehensive index of the same type of Bluetooth headset through historical test data;
setting various environment scenes and application scenes; the environmental scene includes a first classification and a second classification; the first classification is a quiet environment and the second classification is a noisy environment; further classifying the first classification and the second classification according to the application scene, and acquiring a first sub-classification and a second sub-classification under the first classification; acquiring a third sub-category and a fourth sub-category under the second category; the application scenes divided into the first sub-category and the third sub-category comprise music playing and video appreciation; the application scenes of the second sub-category and the fourth sub-category comprise voice calls and game experiences;
wherein, the first classification environment decibel is below 50db, and the second classification environment decibel is more than or equal to 50db;
setting different data compression time under different application scenes, and obtaining delay time and tone quality comprehensive indexes through the different data compression time; the tone quality comprehensive index comprises total harmonic distortion, signal to noise ratio and audio dynamic range;
Establishing a corresponding relation between a data compression time window and a delay time and tone quality comprehensive index;
obtaining different data compression time window thresholds according to different classified corresponding relations, wherein the thresholds comprise a maximum time threshold and a minimum time window threshold;
acquiring a preset data compression time window value according to a maximum time window threshold value and a minimum time window threshold value;
is->Presetting a time window value under classification; />Is->A minimum time window threshold under classification; />Is->A maximum time window threshold under class;
under the first sub-classification, obtaining a first maximum time window threshold according to the longest delay time requirement; acquiring a first minimum time window threshold according to the minimum tone quality comprehensive index; under the second sub-classification, obtaining a second maximum time window threshold according to the longest delay time index requirement; acquiring a second minimum time window threshold according to the minimum tone quality comprehensive index requirement; under the third sub-classification, a third maximum time window threshold is obtained according to the longest delay time requirement; acquiring a third minimum time window threshold according to the minimum tone quality comprehensive index requirement; under the fourth sub-category, a third maximum time window threshold is obtained according to the longest delay time requirement; acquiring a fourth minimum time window threshold according to the minimum tone quality comprehensive index requirement;
The step of establishing the correlation between the data compression time window and the tone quality comprehensive index comprises the following steps:
establishing a multiple regression model of relevant parameters of the tone quality comprehensive index;
wherein Z represents a comprehensive index, Z1 is total harmonic distortion, Z2 is signal-to-noise ratio, and Z3 is audio dynamic range; c. d1, d12, d3 represent constants and coefficients; obtaining through fitting relation;
establishing the corresponding relation between the data compression time window and the comprehensive index Z;The method comprises the steps of carrying out a first treatment on the surface of the a1 A2 and a3 are coefficients and constants, and are obtained through fitting relation;
total Harmonic Distortion (THD): the total harmonic distortion is an indicator of the distortion degree of the device. The lower the THD, the less distortion the audio signal, the closer the sound quality is to the original recording; typically, THD below 1% is considered a standard for high fidelity;
signal-to-noise ratio (SNR): the signal-to-noise ratio represents the ratio between the audio signal and the background noise. The high-fidelity earphone should have a high signal-to-noise ratio to ensure that the audio signal is not interfered by background noise; in general, SNR higher than 90 dB is considered high fidelity;
audio dynamic range: the audio dynamic range represents the difference between the minimum and maximum volume levels that the headphones can accurately restore; a larger dynamic range means that the headphones can better handle weak and high intensity sounds and restore the details of the audio;
And acquiring the current environment information and the application scene of the Bluetooth headset, and selecting a preset compression time window value according to the current environment and the application scene.
The working principle of the technical scheme is as follows: and setting a plurality of environment scenes and application scenes according to the history test. The environment scene comprises a quiet environment and a noisy environment, and the application scene is further subdivided into music playing, video appreciation, voice communication and game experience. And further classifying the quiet environment and the noisy environment according to the application scene. Under a quiet environment, acquiring a first sub-category and a second sub-category; and under the noisy environment, acquiring a third sub-category and a fourth sub-category. Different data compression time is set, and delay time and tone quality comprehensive indexes are controlled through the different data compression time. The tone quality comprehensive index comprises total harmonic distortion, signal to noise ratio and audio dynamic range; and determining the data compression time window threshold under different classifications according to the corresponding relation between the classifications and the sub-classifications. The threshold values include a maximum time threshold value and a minimum time window threshold value. And calculating a preset data compression time window value through the maximum time window threshold value and the minimum time window threshold value. And establishing a multiple regression model of the tone quality comprehensive index, and taking the total harmonic distortion, the signal-to-noise ratio and the audio dynamic range as parameters. And obtaining the corresponding relation between the time window and the tone quality comprehensive index through fitting the relation. And selecting a proper preset compression time window value according to the current environment and the application scene of the Bluetooth headset so as to achieve the optimal tone quality and delay effect.
The technical scheme has the effects that: and setting various environmental scenes and application scenes through historical tests, wherein the environmental scenes comprise a quiet environment and a noisy environment, and different application scenes such as music playing, video appreciation, voice communication and game experience. This ensures that the bluetooth headset provides optimal performance and sound quality under a variety of use conditions. Different data compression time is set according to different application scenes, and the balance of delay time and sound quality comprehensive indexes can be obtained by adjusting the data compression time. This allows a reasonable trade-off between delay time and audio quality to be made according to the needs of the user and provides a more personalized use experience. By establishing a multiple regression model of the correlation between the data compression time window and the tone quality comprehensive index, the tone quality performance under different data compression time can be accurately predicted. In this way, the most suitable data compression time window can be selected according to the requirements of users and environmental conditions, so that the best tone quality effect is provided. The preset compression time window value can be selected according to the real-time condition by acquiring the current environment information and the application scene of the Bluetooth headset. Therefore, the Bluetooth headset can automatically adjust the data processing mode under different environments, and optimal tone quality and delay performance are provided.
In a word, the data processing method of the Bluetooth headset can provide high-quality audio experience under various environmental conditions through intelligent data compression time adjustment and optimization aiming at different application scenes, meets the requirements of users on tone quality and delay, and improves user experience.
In this embodiment, the data processing method of the bluetooth headset, S2 includes:
acquiring the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed;
normalizing the signal intensity and the current network connection speed to obtain the normalized signal intensity and the current network connection speed;
acquiring a first adjustment coefficient according to the signal intensity after normalization processing and the current network connection speed;
for the first adjustment factor, +.>For normalized signal intensity, ++>The current normalized network speed; />Is the weight; in the range of (0, 1)],w1+w2=1。
The working principle of the technical scheme is as follows: firstly, a Bluetooth earphone acquires signal intensity between current equipment and Bluetooth equipment and current network connection speed; such information may be obtained through communication with the device or by using an API provided by the system; and carrying out normalization processing on the acquired signal strength and the current network connection speed. Normalization is the conversion of data into a specific range (typically between 0 and 1) so that data from different value ranges can be compared and uniformly processed. Thus, the signal strength and the network connection speed can be unified to be the same magnitude; and calculating to obtain a first adjustment coefficient (Ad 1) according to the signal intensity after normalization processing and the current network connection speed. The adjusting coefficient is used for adjusting the data processing process according to actual conditions; through the steps, the Bluetooth headset can calculate and obtain the first adjusting coefficient according to the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed. The adjustment coefficients are used to dynamically adjust during data processing to provide a better audio experience and performance.
The technical scheme has the effects that: the strength of the Bluetooth signal and the stability of the network connection can be better known by acquiring the signal strength between the current equipment and the Bluetooth equipment and the speed of the current network connection and carrying out normalization processing on the signal strength. This helps to optimize signal transmission, improving the quality and stability of audio transmission; and acquiring a first adjustment coefficient (Ad 1) according to the signal intensity and the network connection speed after normalization processing. The adjustment factor is calculated taking into account the combined effect of signal strength and network speed. By adjusting parameters in the data processing process, different signal environments and network conditions can be adapted, so that better audio experience is provided, and problems of audio interruption, delay and the like are reduced; the setting range of the weight parameters w1 and w2 is (0, 1), which means that the weight can be adjusted according to specific requirements to achieve more flexible and adaptive data processing effect, for example, the weight can be adjusted to be preferentially considered according to the preference of a user on signal strength or network speed, and the automatic adjustment of the data processing process can be achieved by utilizing the normalized signal strength and network connection speed and the calculation of the first adjustment coefficient Ad 1.
In this embodiment, the data processing method of the bluetooth headset, S3 includes:
acquiring the Bluetooth number and the data transmission amount of the current connection equipment;
estimating the load condition of the current system according to the number of Bluetooth devices and the number of data transmission;
wherein the method comprises the steps ofFor load case +.>Is->The data transmission amount of the Bluetooth devices; />The maximum data transmission quantity is supported by the system; />B1, b2 and b3 are weights for the number of Bluetooth devices; CPU% is the CPU utilization rate of the current equipment, and M% is the memory utilization rate of the current equipment; the current device is a device which communicates with a Bluetooth device;
acquiring a second adjusting coefficient according to the current system load condition and the first adjusting coefficient;
the working principle of the technical scheme is as follows: firstly, the number of Bluetooth devices is obtained through the current connection device, and the data transmission quantity is monitored. This can be achieved by a bluetooth connection interface of the device and recording of the transmission data; the load condition of the current system can be estimated according to the number of Bluetooth devices and the data transmission quantity. In the formula, the weight parameter b1 is used to adjust the influence of the data transmission amount and normalize it to the ratio of the maximum data transmission amount Dmax. Meanwhile, the influence of the CPU utilization rate and the memory utilization rate of the current equipment on the system load is considered, and b2 and b3 are used for adjusting respectively. And calculating a second adjustment coefficient Ad2 according to the current system load condition L and the first adjustment coefficient Ad 1. According to different situations, there are several calculation modes, through the above steps, the method can adjust the second adjustment coefficient Ad2 in real time according to the Bluetooth number of the current connection device, the data transmission quantity and the load condition of the system. Thus, the system can be dynamically optimized under different workloads to provide better data processing performance and user experience.
The technical scheme has the effects that: the working state of the system can be monitored in real time by estimating the load condition of the system according to the number of Bluetooth devices, the data transmission quantity, the CPU utilization rate of the devices and the memory utilization rate. By dynamically adjusting the second adjustment factor, optimization can be performed according to the current load situation, and stable and efficient data processing performance can be ensured under different workloads. The system load condition is estimated according to the number of Bluetooth devices and the data transmission quantity, so that the system can be helped to reasonably allocate resources, the load of data processing can be properly reduced when the system load is higher, and the overall performance is improved. Thus, data processing delay or error caused by overload of the system can be avoided, and better user experience is provided; the method considers the influence of CPU utilization rate and memory utilization rate of different devices on the system load, and flexibly adjusts the system load through the weight parameters. The method can adapt to different devices and scenes, can be optimized according to actual conditions whether the device is low-configuration device or high-configuration device, and provides better adaptability and expandability. In general, the second adjustment coefficient can be dynamically adjusted according to the number of Bluetooth devices, the data transmission quantity and the system load condition by the step, so that the data processing performance is optimized, and stable and efficient data transmission and processing are provided. The formula comprehensively considers the influence of a plurality of factors such as the number of Bluetooth devices, the data transmission quantity, the CPU utilization rate, the memory utilization rate and the like on the system load. The load condition of the current system can be more comprehensively evaluated by carrying out weighted calculation on the factors, and the comprehensive influence of different factors is included; according to the current system load condition and the first adjusting coefficient, a second adjusting coefficient is obtained through calculation; therefore, the dynamic adjustment can be carried out according to the actual load condition, and the optimization of the data processing method is realized. When the system load is higher, the second adjusting coefficient is reduced, so that the data processing capacity is limited, and overload is avoided; and when the load is lower, the second adjustment coefficient can be increased, so that the data processing performance is improved. The weight parameters (b 1, b2, b 3) and the first adjustment coefficient (Ad 1) in the formula can be adjusted according to specific requirements. The method has certain flexibility and adaptability, and parameter configuration can be carried out according to specific scenes and requirements so as to achieve the optimal data processing effect. By considering the data transmission amount of the Bluetooth device and the maximum data transmission amount supported by the system, the formula can realize reasonable distribution of data processing. When the data transmission amount exceeds the maximum value supported by the system, further data transmission is prevented, and overload of the system is avoided. Therefore, the utilization of system resources can be balanced, and the overall data processing efficiency is improved; in general, by using the formula in the code segment, a plurality of factors can be comprehensively considered and the second adjustment coefficient can be dynamically adjusted, so that the optimization of the Bluetooth headset data processing method is realized, the balance of flexibility, adaptability and resource allocation is provided, and the data processing performance and user experience of the system are improved.
In this embodiment, the data processing method of the bluetooth headset, S4 includes:
dynamically adjusting a preset data compression time window according to a second adjusting coefficient;
when (when)When selecting +.>As an actual compression time window;
when (when)When selecting +.>As an actual compression time window;
when (when)When selecting +.>As the actual compression time window.
The working principle of the technical scheme is as follows: dynamically adjusting a preset data compression time window according to a second adjusting coefficient: according to the second adjustment coefficient (Ad 2) calculated in the previous step, the preset data compression time window is dynamically adjusted through the following formula:
here, theIs a preset data compression time window; the value of Ad2 reflects the influence of the current system load situation and the first adjustment factor, whereas +.>Then it is the dynamically adjusted time window derived from this adjustment factor.
Determining an actual compression time window according to the adjusted time window:
if it isLess than or equal to->Select +.>As the actual compression time window. This means that when the system load is high or the second adjustment factor is large, the minimum time window is selected for data compression to ensure timely processing of the data.
If it isGreater than or equal to->Select +.>As the actual compression time window. This means that when the system load is low or the second adjustment factor is small, a larger time window can be selected for data compression to increase the processing efficiency.
If it isLess than->Less than->Select +.>As the actual compression time window. In this range, data compression is performed according to the dynamically adjusted time window to balance the system load and the efficiency of data processing. />
Through the working principle, the preset data compression time window can be dynamically adjusted according to the second adjusting coefficient, and a proper actual compression time window is selected according to the system load condition so as to adapt to the current system load condition and optimize the data processing effect. Thus, the flexibility and adaptability of data processing can be improved, and the optimal data compression processing can be realized under different load conditions.
The technical scheme has the effects that: the preset data compression time window can be dynamically adjusted according to the second adjusting coefficient, so that flexible adjustment can be performed according to the current load condition of the system. When the system load is higher, selecting a smaller time window for data compression so as to ensure timely data processing; and when the system load is low, a larger time window can be selected to improve the processing efficiency. The data processing can be more efficient by selecting an appropriate compression time window according to the actual situation. When the system load is lower or the second adjustment coefficient is smaller, the system resource can be fully utilized by selecting a larger time window, and the data processing speed is increased. Conversely, when the system load is high or the second adjustment factor is large, selecting a smaller time window may avoid excessive data backlog and delay. Balancing system load and data processing effect: and in a preset time window range, data compression is carried out according to the dynamically adjusted time window, so that balance of system load and data processing effect can be realized. This balanced performance ensures that the system is able to handle data efficiently and maintain reasonable load levels at the same time under different load conditions. In summary, the method realizes flexible, efficient and balanced data processing by dynamically adjusting the time window and selecting an appropriate compression time window according to the system load condition. The performance of the Bluetooth headset is improved, so that the Bluetooth headset can better adapt to data processing requirements under different load environments, and better user experience is provided.
The embodiment provides a data processing system of a bluetooth headset, the system includes:
the preset value setting module: setting a plurality of environment scenes and application scenes through historical tests, classifying, setting different data compression time under different application scenes, and obtaining delay time and tone quality comprehensive indexes through different data compression time; establishing a corresponding relation between a data compression time window and a delay time and tone quality comprehensive index; acquiring a preset data compression time window value according to the delay time and the tone quality comprehensive index requirement; selecting a preset data compression time window value according to the current environment and the application scene of the Bluetooth headset;
a first adjustment coefficient acquisition module: acquiring a first adjusting coefficient according to the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed;
a second adjustment coefficient acquisition module: estimating the load condition of the current system according to the number of Bluetooth devices and the number of data transmission; acquiring a second adjusting coefficient according to the current system load condition and the first adjusting coefficient;
and a dynamic adjustment module: and dynamically adjusting the preset data compression time window value according to the second adjusting coefficient.
The working principle of the technical scheme is as follows: and acquiring the relationship between the data compression time window and the data delay and the tone quality comprehensive index of the Bluetooth headset with the same model through the historical test data. This means that the data delay and timbre combination indicator corresponding to the different data compression time window values has been determined in a previous test. Based on these data, a model or rule may be established to estimate the preset data compression time window value.
And acquiring a preset data compression time window value according to the requirements of the data delay time and the tone quality comprehensive index. This allows selecting an appropriate preset data compression time window value based on the user's settings for data delay and voice quality requirements.
And selecting a proper preset data compression time window value according to the current environment information and the application scene of the Bluetooth headset. Different environments and application scenarios may have different requirements for data transmission, so that a suitable preset data compression time window value needs to be selected according to specific situations.
And acquiring the signal strength between the current equipment and the Bluetooth equipment and the current network connection speed, and calculating a first adjustment coefficient by using the information. The first adjustment coefficient can adjust the data compression time window value according to the change condition of the signal strength and the network connection speed so as to adapt to different signal and network conditions.
And estimating the load condition of the current system, including the number of Bluetooth devices, the number of data transmission and other factors. And calculating a second regulating coefficient according to the system load condition and the first regulating coefficient. Therefore, the preset data compression time window value can be dynamically adjusted according to the change of the system load, so that data transmission is more stable and efficient.
And dynamically adjusting the preset data compression time window value according to the second adjusting coefficient. And according to the value of the second adjustment coefficient, increasing or decreasing the preset data compression time window so as to achieve better data transmission performance.
The technical scheme has the effects that: through analysis of historical test data, the relation between the data compression time window and the tone quality comprehensive index and the data delay are determined. By setting the preset data compression time window value, the optimization of data processing can be realized on the premise of meeting the requirements of users on tone quality and delay. And selecting a proper preset data compression time window value according to the current environment information and the application scene of the Bluetooth headset. Therefore, according to specific conditions, data transmission experience which meets actual requirements better can be provided for users; the data compression time window value can be dynamically adjusted according to the change of signal quality and network conditions by acquiring the signal strength and the network connection speed between the current equipment and the Bluetooth equipment and calculating a first adjusting coefficient so as to optimize the stability and efficiency of data transmission; the second adjustment coefficient is calculated by estimating the load condition of the current system, including the number of Bluetooth devices, the number of data transmission and other factors, and combining the first adjustment coefficient. Therefore, the preset data compression time window value can be dynamically adjusted according to the change of the system load so as to ensure the data transmission performance under different load conditions; in general, the Bluetooth headset data processing method can provide better tone quality, lower delay and more stable data transmission through comprehensive consideration and dynamic adjustment of a plurality of factors, adapt to different environments and application scenes, and promote the use experience of users.
The data processing system of a bluetooth headset of this embodiment, the preset value setting module includes:
a scene setting module: setting various environmental scenes and application scenes through history tests; the environmental scene includes a first classification and a second classification; the first classification is a quiet environment and the second classification is a noisy environment; further classifying the first classification and the second classification according to the application scene, and acquiring a first sub-classification and a second sub-classification under the first classification; acquiring a third sub-category and a fourth sub-category under the second category; the application scenes divided into the first sub-category and the third sub-category comprise music playing and video appreciation; the application scenes of the second sub-category and the fourth sub-category comprise voice calls and game experiences;
wherein, the first classification environment decibel is below 50db, and the second classification environment decibel is more than or equal to 50db;
and a data acquisition module: setting different data compression time under different application scenes, and obtaining delay time and tone quality comprehensive indexes through the different data compression time; the tone quality comprehensive index comprises total harmonic distortion, signal to noise ratio and audio dynamic range;
and a corresponding relation establishing module: establishing a corresponding relation between a data compression time window and a delay time and tone quality comprehensive index;
A threshold setting module: obtaining different data compression time window thresholds according to different classified corresponding relations, wherein the thresholds comprise a maximum time threshold and a minimum time window threshold;
the preset value acquisition module is used for: acquiring a preset data compression time window value according to a maximum time window threshold value and a minimum time window threshold value;
is->Presetting a time window value under classification; />Is->A minimum time window threshold under classification; />Is->A maximum time window threshold under class;
under the first sub-classification, obtaining a first maximum time window threshold according to the longest delay time requirement; acquiring a first minimum time window threshold according to the minimum tone quality comprehensive index; under the second sub-classification, obtaining a second maximum time window threshold according to the longest delay time index requirement; acquiring a second minimum time window threshold according to the minimum tone quality comprehensive index requirement; under the third sub-classification, a third maximum time window threshold is obtained according to the longest delay time requirement; acquiring a third minimum time window threshold according to the minimum tone quality comprehensive index requirement; under the fourth sub-category, a third maximum time window threshold is obtained according to the longest delay time requirement; acquiring a fourth minimum time window threshold according to the minimum tone quality comprehensive index requirement;
The step of establishing the correlation between the data compression time window and the tone quality comprehensive index comprises the following steps:
establishing a multiple regression model of relevant parameters of the tone quality comprehensive index;
wherein Z represents a comprehensive index, Z1 is total harmonic distortion, Z2 is signal-to-noise ratio, and Z3 is audio dynamic range; c. d1, d12, d3 represent constants and coefficients; obtaining through fitting relation;
establishing a corresponding relation between a data compression time window and a comprehensive index Z;the method comprises the steps of carrying out a first treatment on the surface of the a1 A2 and a3 are coefficients and constants, and are obtained through fitting relation;
a preset value selection module: and acquiring the current environment information and the application scene of the Bluetooth headset, and selecting a preset compression time window value according to the current environment and the application scene.
The working principle of the technical scheme is as follows: and setting a plurality of environment scenes and application scenes according to the history test. The environment scene comprises a quiet environment and a noisy environment, and the application scene is further subdivided into music playing, video appreciation, voice communication and game experience. And further classifying the quiet environment and the noisy environment according to the application scene. Under a quiet environment, acquiring a first sub-category and a second sub-category; and under the noisy environment, acquiring a third sub-category and a fourth sub-category. Different data compression time is set, and delay time and tone quality comprehensive indexes are controlled through the different data compression time. The tone quality comprehensive index comprises total harmonic distortion, signal to noise ratio and audio dynamic range; and determining the data compression time window threshold under different classifications according to the corresponding relation between the classifications and the sub-classifications. The threshold values include a maximum time threshold value and a minimum time window threshold value. And calculating a preset data compression time window value through the maximum time window threshold value and the minimum time window threshold value. And establishing a multiple regression model of the tone quality comprehensive index, and taking the total harmonic distortion, the signal-to-noise ratio and the audio dynamic range as parameters. And obtaining the corresponding relation between the time window and the tone quality comprehensive index through fitting the relation. And selecting a proper preset compression time window value according to the current environment and the application scene of the Bluetooth headset so as to achieve the optimal tone quality and delay effect.
The technical scheme has the effects that: and setting various environmental scenes and application scenes through historical tests, wherein the environmental scenes comprise a quiet environment and a noisy environment, and different application scenes such as music playing, video appreciation, voice communication and game experience. This ensures that the bluetooth headset provides optimal performance and sound quality under a variety of use conditions. Different data compression time is set according to different application scenes, and the balance of delay time and sound quality comprehensive indexes can be obtained by adjusting the data compression time. This allows a reasonable trade-off between delay time and audio quality to be made according to the needs of the user and provides a more personalized use experience. By establishing a multiple regression model of the correlation between the data compression time window and the tone quality comprehensive index, the tone quality performance under different data compression time can be accurately predicted. In this way, the most suitable data compression time window can be selected according to the requirements of users and environmental conditions, so that the best tone quality effect is provided. The preset compression time window value can be selected according to the real-time condition by acquiring the current environment information and the application scene of the Bluetooth headset. Therefore, the Bluetooth headset can automatically adjust the data processing mode under different environments, and optimal tone quality and delay performance are provided.
In a word, the data processing method of the Bluetooth headset can provide high-quality audio experience under various environmental conditions through intelligent data compression time adjustment and optimization aiming at different application scenes, meets the requirements of users on tone quality and delay, and improves user experience.
The data processing system of a bluetooth headset of this embodiment, the first adjustment coefficient obtaining module includes:
signal strength and network speed acquisition module: acquiring the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed;
normalization processing module: normalizing the signal intensity and the current network connection speed to obtain the normalized signal intensity and the current network connection speed;
a first coefficient calculation module: acquiring a first adjustment coefficient according to the signal intensity after normalization processing and the current network connection speed;
for the first adjustment factor, +.>For normalized signal intensity, ++>The current normalized network speed; />Is the weight; in the range of (0, 1)],w1+w2=1。
The working principle of the technical scheme is as follows: firstly, a Bluetooth earphone acquires signal intensity between current equipment and Bluetooth equipment and current network connection speed; such information may be obtained through communication with the device or by using an API provided by the system; and carrying out normalization processing on the acquired signal strength and the current network connection speed. Normalization is the conversion of data into a specific range (typically between 0 and 1) so that data from different value ranges can be compared and uniformly processed. Thus, the signal strength and the network connection speed can be unified to be the same magnitude; and calculating to obtain a first adjustment coefficient (Ad 1) according to the signal intensity after normalization processing and the current network connection speed. The adjusting coefficient is used for adjusting the data processing process according to actual conditions; through the steps, the Bluetooth headset can calculate and obtain the first adjusting coefficient according to the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed. The adjustment coefficients are used to dynamically adjust during data processing to provide a better audio experience and performance.
The technical scheme has the effects that: the strength of the Bluetooth signal and the stability of the network connection can be better known by acquiring the signal strength between the current equipment and the Bluetooth equipment and the speed of the current network connection and carrying out normalization processing on the signal strength.
This helps to optimize signal transmission, improving the quality and stability of audio transmission; and acquiring a first adjustment coefficient (Ad 1) according to the signal intensity and the network connection speed after normalization processing. The adjustment factor is calculated taking into account the combined effect of signal strength and network speed. By adjusting parameters in the data processing process, different signal environments and network conditions can be adapted, so that better audio experience is provided, and problems of audio interruption, delay and the like are reduced; the setting range of the weight parameters w1 and w2 is (0, 1), which means that the weight can be adjusted according to specific requirements to achieve more flexible and adaptive data processing effect, for example, the weight can be adjusted to be preferentially considered according to the preference of a user on signal strength or network speed, and the automatic adjustment of the data processing process can be achieved by utilizing the normalized signal strength and network connection speed and the calculation of the first adjustment coefficient Ad 1.
In this embodiment, the data processing system of a bluetooth headset, the second adjustment coefficient obtaining module includes:
bluetooth quantity and data transmission quantity acquisition module: acquiring the Bluetooth number and the data transmission amount of the current connection equipment;
load calculation module: estimating the load condition of the current system according to the number of Bluetooth devices and the number of data transmission;
;/>
wherein the method comprises the steps ofFor load case +.>Is->The data transmission amount of the Bluetooth devices; />The maximum data transmission quantity is supported by the system; />B1, b2 and b3 are weights for the number of Bluetooth devices; CPU% is the CPU utilization rate of the current equipment, and M% is the memory utilization rate of the current equipment; the current device is a device which communicates with a Bluetooth device;
acquiring a second adjusting coefficient according to the current system load condition and the first adjusting coefficient;
the working principle of the technical scheme is as follows: firstly, the number of Bluetooth devices is obtained through the current connection device, and the data transmission quantity is monitored. This can be achieved by a bluetooth connection interface of the device and recording of the transmission data; the load condition of the current system can be estimated according to the number of Bluetooth devices and the data transmission quantity. In the formula, the weight parameter b1 is used to adjust the influence of the data transmission amount and normalize it to the ratio of the maximum data transmission amount Dmax. Meanwhile, the influence of the CPU utilization rate and the memory utilization rate of the current equipment on the system load is considered, and b2 and b3 are used for adjusting respectively. And calculating a second adjustment coefficient Ad2 according to the current system load condition L and the first adjustment coefficient Ad 1. According to different situations, there are several calculation modes, through the above steps, the method can adjust the second adjustment coefficient Ad2 in real time according to the Bluetooth number of the current connection device, the data transmission quantity and the load condition of the system. Thus, the system can be dynamically optimized under different workloads to provide better data processing performance and user experience.
The technical scheme has the effects that: the working state of the system can be monitored in real time by estimating the load condition of the system according to the number of Bluetooth devices, the data transmission quantity, the CPU utilization rate of the devices and the memory utilization rate. By dynamically adjusting the second adjustment factor, optimization can be performed according to the current load situation, and stable and efficient data processing performance can be ensured under different workloads. The system load condition is estimated according to the number of Bluetooth devices and the data transmission quantity, so that the system can be helped to reasonably allocate resources, the load of data processing can be properly reduced when the system load is higher, and the overall performance is improved. Thus, data processing delay or error caused by overload of the system can be avoided, and better user experience is provided; the method considers the influence of CPU utilization rate and memory utilization rate of different devices on the system load, and flexibly adjusts the system load through the weight parameters. The method can adapt to different devices and scenes, can be optimized according to actual conditions whether the device is low-configuration device or high-configuration device, and provides better adaptability and expandability. In general, the second adjustment coefficient can be dynamically adjusted according to the number of Bluetooth devices, the data transmission quantity and the system load condition by the step, so that the data processing performance is optimized, and stable and efficient data transmission and processing are provided. The formula comprehensively considers the influence of a plurality of factors such as the number of Bluetooth devices, the data transmission quantity, the CPU utilization rate, the memory utilization rate and the like on the system load. The load condition of the current system can be more comprehensively evaluated by carrying out weighted calculation on the factors, and the comprehensive influence of different factors is included; according to the current system load condition and the first adjusting coefficient, a second adjusting coefficient is obtained through calculation; therefore, the dynamic adjustment can be carried out according to the actual load condition, and the optimization of the data processing method is realized. When the system load is higher, the second adjusting coefficient is reduced, so that the data processing capacity is limited, and overload is avoided; and when the load is lower, the second adjustment coefficient can be increased, so that the data processing performance is improved. The weight parameters (b 1, b2, b 3) and the first adjustment coefficient (Ad 1) in the formula can be adjusted according to specific requirements. The method has certain flexibility and adaptability, and parameter configuration can be carried out according to specific scenes and requirements so as to achieve the optimal data processing effect. By considering the data transmission amount of the Bluetooth device and the maximum data transmission amount supported by the system, the formula can realize reasonable distribution of data processing. When the data transmission amount exceeds the maximum value supported by the system, further data transmission is prevented, and overload of the system is avoided. Therefore, the utilization of system resources can be balanced, and the overall data processing efficiency is improved; in general, by using the formula in the code segment, a plurality of factors can be comprehensively considered and the second adjustment coefficient can be dynamically adjusted, so that the optimization of the Bluetooth headset data processing method is realized, the balance of flexibility, adaptability and resource allocation is provided, and the data processing performance and user experience of the system are improved.
The data processing system of a bluetooth headset of this embodiment, the dynamic adjustment module includes:
and an adjustment calculation module: dynamically adjusting a preset data compression time window according to a second adjusting coefficient;
and a comparison and selection module: when (when)When selecting +.>As an actual compression time window; when->When selecting +.>As an actual compression time window; when->When selecting +.>As the actual compression time window.
The working principle of the technical scheme is as follows: dynamically adjusting a preset data compression time window according to a second adjusting coefficient: according to the second adjustment coefficient (Ad 2) calculated in the previous step, the preset data compression time window is dynamically adjusted through the following formula:
here, theIs a preset data compression time window; the value of Ad2 reflects the influence of the current system load situation and the first adjustment factor, whereas +.>Then it is the dynamically adjusted time window derived from this adjustment factor.
Determining an actual compression time window according to the adjusted time window:
if it isLess than or equal to->Select +.>As the actual compression time window. This means that when the system load is high or the second adjustment factor is large, the minimum time window is selected for data compression to ensure timely processing of the data.
If it isGreater than or equal to->Select +.>As the actual compression time window. This means that when the system load is low or the second adjustment factor is small, a larger time window can be selected for data compression to increase the processing efficiency.
If it isLess than->Less than->Select +.>As the actual compression time window. In this range, data compression is performed according to the dynamically adjusted time window to balance the system load and the efficiency of data processing.
Through the working principle, the preset data compression time window can be dynamically adjusted according to the second adjusting coefficient, and a proper actual compression time window is selected according to the system load condition so as to adapt to the current system load condition and optimize the data processing effect. Thus, the flexibility and adaptability of data processing can be improved, and the optimal data compression processing can be realized under different load conditions.
The technical scheme has the effects that: the preset data compression time window can be dynamically adjusted according to the second adjusting coefficient, so that flexible adjustment can be performed according to the current load condition of the system. When the system load is higher, selecting a smaller time window for data compression so as to ensure timely data processing; and when the system load is low, a larger time window can be selected to improve the processing efficiency. The data processing can be more efficient by selecting an appropriate compression time window according to the actual situation. When the system load is lower or the second adjustment coefficient is smaller, the system resource can be fully utilized by selecting a larger time window, and the data processing speed is increased. Conversely, when the system load is high or the second adjustment factor is large, selecting a smaller time window may avoid excessive data backlog and delay. Balancing system load and data processing effect: and in a preset time window range, data compression is carried out according to the dynamically adjusted time window, so that balance of system load and data processing effect can be realized. This balanced performance ensures that the system is able to handle data efficiently and maintain reasonable load levels at the same time under different load conditions. In summary, the method realizes flexible, efficient and balanced data processing by dynamically adjusting the time window and selecting an appropriate compression time window according to the system load condition. The performance of the Bluetooth headset is improved, so that the Bluetooth headset can better adapt to data processing requirements under different load environments, and better user experience is provided.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A data processing method of a bluetooth headset, the method comprising:
s1, setting various environmental scenes and application scenes through historical tests, classifying, setting different data compression time under different application scenes, and obtaining delay time and comprehensive indexes of sound quality through different data compression time; establishing a corresponding relation between a data compression time window and a delay time and tone quality comprehensive index; acquiring a preset data compression time window value according to the delay time and the tone quality comprehensive index requirement; selecting a preset data compression time window value according to the current environment and the application scene of the Bluetooth headset;
s2, acquiring a first adjustment coefficient according to the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed;
s3, estimating the load condition of the current system according to the number of Bluetooth devices and the number of data transmission; acquiring a second adjusting coefficient according to the current system load condition and the first adjusting coefficient;
And S4, dynamically adjusting the preset data compression time window value according to the second adjusting coefficient.
2. The method for processing data of a bluetooth headset according to claim 1, wherein the S1 comprises:
setting various environmental scenes and application scenes through history tests; the environmental scene includes a first classification and a second classification; the first classification is a quiet environment and the second classification is a noisy environment; further classifying the first classification and the second classification according to the application scene, and acquiring a first sub-classification and a second sub-classification under the first classification; acquiring a third sub-category and a fourth sub-category under the second category; the application scenes divided into the first sub-category and the third sub-category comprise music playing and video appreciation; the application scenes of the second sub-category and the fourth sub-category comprise voice calls and game experiences;
setting different data compression time under different application scenes, and obtaining delay time and tone quality comprehensive indexes through the different data compression time; the tone quality comprehensive index comprises total harmonic distortion, signal to noise ratio and audio dynamic range;
establishing a corresponding relation between a data compression time window and a delay time and tone quality comprehensive index;
Obtaining different data compression time window thresholds according to different classified corresponding relations, wherein the thresholds comprise a maximum time threshold and a minimum time window threshold;
acquiring a preset data compression time window value according to a maximum time window threshold value and a minimum time window threshold value;
is->Presetting a time window value under classification; />Is->A minimum time window threshold under classification; />Is->A maximum time window threshold under class;
and acquiring the current environment information and the application scene of the Bluetooth headset, and selecting a preset compression time window value according to the current environment and the application scene.
3. The method for processing data of a bluetooth headset according to claim 1, wherein the step S2 comprises:
acquiring the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed;
normalizing the signal intensity and the current network connection speed to obtain the normalized signal intensity and the current network connection speed;
according to normalizationThe processed signal strength and the current network connection speed obtain a first adjustment coefficient
4. The method for processing data of a bluetooth headset according to claim 1, wherein the step S3 comprises:
Acquiring the Bluetooth number and the data transmission amount of the current connection equipment;
estimating the load condition of the current system according to the number of Bluetooth devices and the number of data transmission;
acquiring a second adjusting coefficient according to the current system load condition and the first adjusting coefficient;
the maximum data transmission quantity is supported by the system; />Is->The data transmission amount of the Bluetooth devices; />Is the current system load; />The number of Bluetooth devices.
5. The method for processing data of a bluetooth headset according to claim 1, wherein the step S4 comprises:
dynamically adjusting a preset data compression time window according to a second adjusting coefficient;
when (when)When selecting +.>As an actual compression time window;
when (when)When selecting +.>As an actual compression time window;
when (when)When selecting +.>As the actual compression time window.
6. A data processing system for a bluetooth headset, the system comprising:
the preset value setting module: setting a plurality of environment scenes and application scenes through historical tests, classifying, setting different data compression time under different application scenes, and obtaining delay time and tone quality comprehensive indexes through different data compression time; establishing a corresponding relation between a data compression time window and a delay time and tone quality comprehensive index; acquiring a preset data compression time window value according to the delay time and the tone quality comprehensive index requirement; selecting a preset data compression time window value according to the current environment and the application scene of the Bluetooth headset;
The first adjustment coefficient acquisition module: acquiring a first adjusting coefficient according to the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed;
the second adjustment coefficient acquisition module: estimating the load condition of the current system according to the number of Bluetooth devices and the number of data transmission; acquiring a second adjusting coefficient according to the current system load condition and the first adjusting coefficient;
and a dynamic adjustment module: and dynamically adjusting the preset data compression time window value according to the second adjusting coefficient.
7. The data processing system of claim 6, wherein the preset value setting module comprises:
a scene setting module: setting various environmental scenes and application scenes through history tests; the environmental scene includes a first classification and a second classification; the first classification is a quiet environment and the second classification is a noisy environment; further classifying the first classification and the second classification according to the application scene, and acquiring a first sub-classification and a second sub-classification under the first classification; acquiring a third sub-category and a fourth sub-category under the second category; the application scenes divided into the first sub-category and the third sub-category comprise music playing and video appreciation; the application scenes of the second sub-category and the fourth sub-category comprise voice calls and game experiences;
And a data acquisition module: setting different data compression time under different application scenes, and obtaining delay time and tone quality comprehensive indexes through the different data compression time; the tone quality comprehensive index comprises total harmonic distortion, signal to noise ratio and audio dynamic range;
and a corresponding relation establishing module: establishing a corresponding relation between a data compression time window and a delay time and tone quality comprehensive index;
a threshold setting module: obtaining different data compression time window thresholds according to different classified corresponding relations, wherein the thresholds comprise a maximum time threshold and a minimum time window threshold;
the preset value acquisition module is used for: acquiring a preset data compression time window value according to a maximum time window threshold value and a minimum time window threshold value;
is->Presetting a time window value under classification; />Is->A minimum time window threshold under classification; />Is->A maximum time window threshold under class;
a preset value selection module: and acquiring the current environment information and the application scene of the Bluetooth headset, and selecting a preset compression time window value according to the current environment and the application scene.
8. The data processing system of claim 6, wherein the first adjustment factor obtaining module comprises:
Signal strength and network speed acquisition module: acquiring the signal intensity between the current equipment and the Bluetooth equipment and the current network connection speed;
normalization processing module: normalizing the signal intensity and the current network connection speed to obtain the normalized signal intensity and the current network connection speed;
a first coefficient calculation module: according to the normalized signal intensity and the current network connectionThe connection speed is used for obtaining a first regulating coefficient
9. The data processing system of claim 6, wherein the second adjustment factor obtaining module comprises:
bluetooth quantity and data transmission quantity acquisition module: acquiring the Bluetooth number and the data transmission amount of the current connection equipment;
load calculation module: estimating the load condition of the current system according to the number of Bluetooth devices and the number of data transmission;
the second adjustment coefficient calculation module: acquiring a second adjusting coefficient according to the current system load condition and the first adjusting coefficient;
the maximum data transmission quantity is supported by the system; />Is->The data transmission amount of the Bluetooth devices; />Is the current system load; />The number of Bluetooth devices.
10. The data processing system of claim 6, wherein the dynamic adjustment module comprises:
and an adjustment calculation module: dynamically adjusting a preset data compression time window according to a second adjusting coefficient;
and a comparison and selection module: when (when)When selecting +.>As an actual compression time window; when->When selecting +.>As an actual compression time window; when->When selecting +.>As the actual compression time window.
CN202311469109.5A 2023-11-07 2023-11-07 Data processing method and system of Bluetooth headset Active CN117202259B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311469109.5A CN117202259B (en) 2023-11-07 2023-11-07 Data processing method and system of Bluetooth headset

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311469109.5A CN117202259B (en) 2023-11-07 2023-11-07 Data processing method and system of Bluetooth headset

Publications (2)

Publication Number Publication Date
CN117202259A true CN117202259A (en) 2023-12-08
CN117202259B CN117202259B (en) 2024-02-06

Family

ID=88987356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311469109.5A Active CN117202259B (en) 2023-11-07 2023-11-07 Data processing method and system of Bluetooth headset

Country Status (1)

Country Link
CN (1) CN117202259B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117714933A (en) * 2024-01-02 2024-03-15 广州市行动者科技有限责任公司 A bluetooth headset for communication
CN117939350A (en) * 2024-03-21 2024-04-26 深圳市中翔达润电子有限公司 Data intelligent transmission system for Bluetooth headset

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103348655A (en) * 2011-11-29 2013-10-09 华为技术有限公司 Audio compression algorithm selection method, device and communication system in scenario of virtual desktop
CN105764093A (en) * 2014-12-19 2016-07-13 中国移动通信集团黑龙江有限公司 Method and device for selecting data compression level
CN105812439A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Audio transmission method and device
CN110177363A (en) * 2019-05-28 2019-08-27 百度在线网络技术(北京)有限公司 Bluetooth data transfer method, apparatus, Bluetooth chip and storage medium
CN110689899A (en) * 2019-09-17 2020-01-14 重庆百瑞互联电子技术有限公司 Dynamic adjustment method and system for Bluetooth audio
CN111314335A (en) * 2020-02-10 2020-06-19 腾讯科技(深圳)有限公司 Data transmission method, device, terminal, storage medium and system
CN112995963A (en) * 2019-12-17 2021-06-18 中兴通讯股份有限公司 Bluetooth audio transmission method, device, terminal and readable storage medium
CN113656258A (en) * 2021-10-20 2021-11-16 深圳市瑞荣达电子有限公司 Scene analysis management and control system for intelligent Bluetooth headset based on internet
US20210400355A1 (en) * 2018-09-25 2021-12-23 Interdigital Ce Patent Holdings Audio device with learning and adaptive quiet mode capabilities
CN116800796A (en) * 2023-07-06 2023-09-22 东软睿驰汽车技术(大连)有限公司 Method, device, equipment and medium for transmitting internet of vehicles data

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103348655A (en) * 2011-11-29 2013-10-09 华为技术有限公司 Audio compression algorithm selection method, device and communication system in scenario of virtual desktop
CN105764093A (en) * 2014-12-19 2016-07-13 中国移动通信集团黑龙江有限公司 Method and device for selecting data compression level
CN105812439A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Audio transmission method and device
US20210400355A1 (en) * 2018-09-25 2021-12-23 Interdigital Ce Patent Holdings Audio device with learning and adaptive quiet mode capabilities
CN110177363A (en) * 2019-05-28 2019-08-27 百度在线网络技术(北京)有限公司 Bluetooth data transfer method, apparatus, Bluetooth chip and storage medium
CN110689899A (en) * 2019-09-17 2020-01-14 重庆百瑞互联电子技术有限公司 Dynamic adjustment method and system for Bluetooth audio
CN112995963A (en) * 2019-12-17 2021-06-18 中兴通讯股份有限公司 Bluetooth audio transmission method, device, terminal and readable storage medium
CN111314335A (en) * 2020-02-10 2020-06-19 腾讯科技(深圳)有限公司 Data transmission method, device, terminal, storage medium and system
CN113656258A (en) * 2021-10-20 2021-11-16 深圳市瑞荣达电子有限公司 Scene analysis management and control system for intelligent Bluetooth headset based on internet
CN116800796A (en) * 2023-07-06 2023-09-22 东软睿驰汽车技术(大连)有限公司 Method, device, equipment and medium for transmitting internet of vehicles data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117714933A (en) * 2024-01-02 2024-03-15 广州市行动者科技有限责任公司 A bluetooth headset for communication
CN117714933B (en) * 2024-01-02 2024-05-28 广州市行动者科技有限责任公司 A bluetooth headset for communication
CN117939350A (en) * 2024-03-21 2024-04-26 深圳市中翔达润电子有限公司 Data intelligent transmission system for Bluetooth headset

Also Published As

Publication number Publication date
CN117202259B (en) 2024-02-06

Similar Documents

Publication Publication Date Title
CN117202259B (en) Data processing method and system of Bluetooth headset
JP5525508B2 (en) Clarity control using ambient noise detection
CN101669284B (en) Automatic volume and dynamic range adjustment method and device for mobile audio devices
CN100505530C (en) Volume control method and system
CN102549659A (en) Suppressing noise in an audio signal
CN112954115B (en) Volume adjusting method and device, electronic equipment and storage medium
KR20210020751A (en) Systems and methods for providing personalized audio replay on a plurality of consumer devices
JP2014045507A (en) Improving sound quality by intelligently selecting among signals from plural microphones
US10897675B1 (en) Training a filter for noise reduction in a hearing device
WO2021238458A1 (en) Method for optimizing sound quality of speaker device
JP6540189B2 (en) Transmission apparatus, transmission method, and program
CN108133712B (en) Method and device for processing audio data
WO2021160040A1 (en) Audio transmission method and electronic device
US10602275B2 (en) Audio enhancement via beamforming and multichannel filtering of an input audio signal
CN111935429B (en) Sound quality self-adaptive adjusting method, related system and equipment and storage medium
US9852726B2 (en) Background noise reduction in an audio device
CN108804069B (en) Volume adjusting method and device, storage medium and electronic equipment
US8804981B2 (en) Processing audio signals
CN107820122A (en) A kind of video volume adjusting method, storage medium and mobile terminal
WO2023197474A1 (en) Method for determining parameter corresponding to earphone mode, and earphone, terminal and system
CN112151046B (en) Method, device and medium for adaptively adjusting multi-channel transmission code rate of LC3 encoder
CN115185479A (en) Volume adjusting method, device, equipment and storage medium
CN111739496B (en) Audio processing method, device and storage medium
JP5940672B2 (en) Source-dependent wireless earphone equalization
CN117440440B (en) Bluetooth headset low-delay transmission method

Legal Events

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