Information processing method, device, electronic device and storage medium

By obtaining Bluetooth configuration information and wireless network information, adjusting the buffer capacity to adapt to the wireless network environment, the problem of audio data transmission delay and lag in Bluetooth devices in wireless network environment is solved, and lower latency and more stable audio data transmission is achieved.

CN115696279BActive Publication Date: 2025-03-25BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110835495.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-23
Publication Date
2025-03-25
Estimated Expiration
2041-07-23

AI Technical Summary

Technical Problem

In an environment where wireless network connections and Bluetooth connections coexist, Bluetooth devices cause delay in audio data transmission, sound lag and distortion due to high-speed download of data or interference in wireless network environment.

Method used

By obtaining Bluetooth configuration information and wireless network information, the buffer capacity is determined, and the buffer capacity is adjusted according to the quality level information of the wireless network environment to increase the capacity of the buffer and reduce audio data transmission delay and lag.

Benefits of technology

It effectively reduces the delay in audio data transmission between electronic devices, reduces sound lag and distortion, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115696279B_ABST
    Figure CN115696279B_ABST
Patent Text Reader

Abstract

The disclosed embodiments disclose an information processing method, apparatus, user equipment and storage medium; the information processing method is applied to a first electronic device, comprising: obtaining Bluetooth configuration information and wireless network information; wherein the wireless network information is used to indicate the communication quality of the first electronic device in wireless communication; based on the Bluetooth configuration information, determining the first capacity of the first buffer of the first electronic device; based on the wireless network information, determining the level information of the first capacity, wherein the level information is used to indicate the level of buffer increase; based on the first capacity and the level information, determining the second capacity of the first buffer. The method described in the disclosed embodiments can increase the capacity of the first buffer of the first electronic device, that is, can increase the cache space of cached data, thereby facilitating the reduction of delays, freezes and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to an information processing method, device, electronic device and storage medium. Background Art

[0002] With the continuous development of wireless technology, electronic devices, such as mobile phones, have gradually transformed wired headphones into wireless headphones; for example, wireless Bluetooth headphones are becoming more and more popular with users. When an electronic device establishes a Bluetooth connection with other Bluetooth devices, such as when a mobile phone is connected to a Bluetooth headset, if the Bluetooth headset is used to receive audio data, the user expects that the content displayed on the mobile phone interface and the sound heard by the Bluetooth headset are synchronized. However, due to some specific transmission restrictions of Bluetooth devices (such as mobile phones or Bluetooth headsets) or the design of the Bluetooth devices themselves, the actual audio data is transmitted from the mobile phone to the Bluetooth headset with a certain delay. For example, a user plays a game on a mobile phone, and the user listens to the sound on the mobile phone through a Bluetooth headset; when the user shoots a gun on the mobile phone interface, it takes a certain amount of time to hear the sound of the gun in the Bluetooth headset.

[0003] Currently, some low-latency solutions are provided for application scenarios of Bluetooth devices for Bluetooth connection to shorten the delay of audio data between Bluetooth devices. However, in some environments where wireless network connections and Bluetooth connections coexist, low-latency solutions are not ideal because Bluetooth devices need to download data at high speed in the wireless network or are interfered by the wireless network environment; for example, audio data delays, audio freezes and / or audio distortions may still occur. Summary of the invention

[0004] The present disclosure provides an information processing method, apparatus, user equipment and storage medium.

[0005] According to a first aspect of the present disclosure, there is provided an information processing method, which is performed by a first electronic device, and the method includes:

[0006] Acquire Bluetooth configuration information and wireless network information; wherein the wireless network information is used to indicate the communication quality of the first electronic device performing wireless communication;

[0007] Determining a first capacity of a first buffer of the first electronic device based on the Bluetooth configuration information;

[0008] Determining level information of the first capacity based on the wireless network information; wherein the level information is used to indicate a level of increase in buffer capacity;

[0009] A second capacity of the first buffer is determined based on the first capacity and the level information.

[0010] According to a second aspect of the present disclosure, there is provided an information processing method, which is performed by a second electronic device and includes:

[0011] Based on a Bluetooth connection with a first electronic device, receiving a data packet sent by the first electronic device using a first buffer having a second capacity; wherein the second capacity is a capacity determined by the first electronic device based on the first capacity of the first buffer and level information of the first capacity; wherein the level information is used to indicate a level of increase in the buffer capacity;

[0012] The data packet is cached in the second buffer having a fourth capacity; wherein the fourth capacity is a capacity determined by the second electronic device based on the third capacity of the second buffer and level information of the third capacity.

[0013] According to a third aspect of an embodiment of the present disclosure, there is provided an information processing device, applied to a first electronic device, including:

[0014] A first acquisition module, used to acquire Bluetooth configuration information and wireless network information; wherein the wireless network information is used to indicate the communication quality of the first electronic device performing wireless communication;

[0015] A first determining module, configured to determine a first capacity of a first buffer of the first electronic device based on the Bluetooth configuration information;

[0016] A first processing module, configured to determine level information of the first capacity based on the wireless network information; wherein the level information is used to indicate a level of increase in buffer capacity;

[0017] The first processing module is used to determine a second capacity of the first buffer based on the first capacity and the level information.

[0018] According to a fourth aspect of the present disclosure, there is provided an information processing device, applied to a second electronic device, comprising:

[0019] a second receiving module, configured to receive, based on a Bluetooth connection with a first electronic device, a data packet sent by the first electronic device using a first buffer having a second capacity; wherein the second capacity is a capacity determined by the first electronic device based on the first capacity of the first buffer and level information of the first capacity; wherein the level information is used to indicate a level of increase in the buffer capacity;

[0020] A buffer module is used to cache the data packet in the second buffer having a fourth capacity; wherein the fourth capacity is a capacity determined by the second electronic device based on the third capacity of the second buffer and the level information of the third capacity.

[0021] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0022] processor;

[0023] a memory for storing processor-executable instructions;

[0024] The processor is configured to implement the information processing method described in any embodiment of the present disclosure when running the executable instructions.

[0025] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores an executable program, wherein when the executable program is executed by a processor, the information processing method described in any embodiment of the present disclosure is implemented.

[0026] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0027] In an embodiment of the present disclosure, Bluetooth configuration information and wireless network information are obtained through a first electronic device; wherein the wireless network information is used to indicate the communication quality of wireless communication of the first electronic device; based on the Bluetooth configuration information, a first capacity of a first buffer of the first electronic device is determined; based on the wireless network information, level information of the first capacity is determined; based on the first capacity and the level information, a second capacity of the first buffer is determined.

[0028] In this way, the disclosed embodiment can determine the level information of increasing the first capacity of the first buffer based on the wireless network information to obtain the increased second capacity. In this way, the disclosed embodiment can cache more data through the first buffer with increased capacity, so that when the first electronic device is in a wireless network environment, such as downloading data at high speed or being affected by the wireless network environment, there can be more cache space to cache audio data that needs to be transmitted, etc.; thereby reducing the delay in transmitting audio data between the first electronic device and other devices, and reducing the occurrence of sound freezes and / or distortions, etc.

[0029] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0031] Figure 1 It is a schematic diagram of an information processing method according to an exemplary embodiment.

[0032] Figure 2 It is a block diagram of a first electronic device according to an exemplary embodiment.

[0033] Figure 3 It is a schematic diagram of an information processing method according to an exemplary embodiment.

[0034] Figure 4 The invention is a block diagram of a first electronic device and a second electronic device according to an exemplary embodiment.

[0035] Figure 5 It is a schematic diagram of an information processing method according to an exemplary embodiment.

[0036] Figure 6 It is a schematic diagram of an information processing method according to an exemplary embodiment.

[0037] Figure 7 The invention is a block diagram of an information processing device according to an exemplary embodiment.

[0038] Figure 8 The invention is a block diagram of an information processing device according to an exemplary embodiment.

[0039] Fig. 9 The invention is a block diagram of an information processing device according to an exemplary embodiment.

[0040] Fig.10 The invention is a block diagram of an information processing device according to an exemplary embodiment.

[0041] Fig.11 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0042] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0043] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0044] like Figure 1 is an information processing method proposed by an exemplary embodiment; Figure 1 As shown, the information processing method is executed by a first electronic device, and includes the following steps:

[0045] Step S11: obtaining Bluetooth configuration information and wireless network information; wherein the wireless network information is used to indicate the communication quality of the first electronic device performing wireless communication;

[0046] Step S12: determining a first capacity of a first buffer of the first electronic device based on the Bluetooth configuration information;

[0047] Step S13: determining level information of the first capacity based on the wireless network information; wherein the level information is used to indicate a level of increase in buffer capacity;

[0048] Step S14: Determine a second capacity of the first buffer based on the first capacity and the level information.

[0049] In one embodiment, the first electronic device may be a mobile device or a fixed device; for example, the first electronic device may be a mobile phone, a computer, a server, a tablet computer, or a wearable device, etc. For another example, the first electronic device may also be a device having a Bluetooth module or capable of establishing a Bluetooth connection with other devices.

[0050] In one embodiment, the Bluetooth configuration information may include but is not limited to at least one of the following: sampling frequency (Sampling Frequency), block length (Block Length), number of subbands (Subbands), single data packet size, bit rate, number of channels, minimum bit pool (Minimum B), maximum bit pool, and encoding type information.

[0051] The sampling frequency here may refer to the sampling frequency of the encoding of the first electronic device; for example, it may refer to the number of samples of the discrete signal extracted from the continuous audio signal by the first electronic device per unit time. The sampling frequency may be 16KHZ, 32KHZ or 48KHZ, etc.

[0052] The number of subbands here may refer to the number of subbands into which the entire audio signal bandwidth is divided. For example, the entire audio signal bandwidth is divided into 4 subbands. The block length here refers to the bit size occupied by the block. For example, the bandwidth of the entire audio signal is divided into multiple subbands, and one subband is divided into multiple blocks; the block length refers to the bit size of the block.

[0053] The single data packet size here may refer to the bit size of a data packet determined by the first electronic device. The bit rate here may refer to the number of bits of a data packet transmitted by the first electronic device per unit time.

[0054] The minimum bit pool here may refer to the minimum value in the bit pool in the first electronic device; for example, if the range of the bit pool is "2 to 250", the minimum bit pool may be "2". The maximum bit pool here may refer to the maximum value of the bit pool in the first electronic device; for example, if the range of the bit pool is "2 to 250", the maximum bit pool may be "250".

[0055] The encoding type information here may refer to information about the Bluetooth encoding type of the data. For example, the encoding type information includes, but is not limited to: information indicating the subband coding (SBC) type, information indicating the low-latency audio code (LLAC) type, or information indicating the aptX type. The SBC here is a coding format mandatory for the Bluetooth audio transmission protocol; the LLAC here is an optimized low-latency coding algorithm; the aptX here is a digital audio compression algorithm. Of course, the encoding type information can also be information of any Bluetooth encoding type, for example, it can also be information indicating the Advanced Audio Coding (AAC) type; this is not limited here.

[0056] In another embodiment, the Bluetooth configuration information may include but is not limited to at least one of the following: low-latency mode parameters, bit rate, single data packet size and audio bit depth. The low-latency mode parameters here are low-latency mode parameters such as SBC encoding type, ACC encoding type or aptX encoding type. The low-latency mode parameters here include but are not limited to at least one of the following: sampling frequency, block length, number of sub-bands, number of channels, minimum bit pool, maximum bit pool. The audio bit depth here refers to the capacity required to store an audio data; for example, the audio bit depth refers to the number of bits or bytes required to store an audio data.

[0057] In one embodiment, the wireless network information includes: a first wireless network type and a second wireless network type; wherein the communication frequency band supported by the first wireless network type is greater than the communication frequency band supported by the second wireless network type. Exemplarily, the first wireless network type is: WIFI 5G; the second wireless network type is: WIFI2.4G; wherein WIFI 5G means that the communication frequency band supported by the network is 5GHZ, and the WIFI 2.4GHZ means that the communication frequency band supported by the network is 2.4GHZ. Of course, in other embodiments, the communications supported by the first wireless network type and the second wireless network type can be other frequency bands, which are not limited here.

[0058] In one embodiment, the wireless network information may further include: a third wireless network type without WIFI connection.

[0059] In one embodiment, the wireless network information includes but is not limited to at least one of the following: signal strength, number of channels, number of devices, retransmission rate and service quality level; wherein the number of devices is the number of devices connected and communicating with the first electronic device and / or the number of devices within a predetermined distance range.

[0060] The signal strength here may be the strength of a signal received by at least one channel of the first electronic device, or the average strength of a signal received by at least one signal; and so on.

[0061] The retransmission rate here may be the probability that the first electronic device needs to repeatedly transmit a data packet. In one embodiment, the retransmission rate is the probability that the first electronic device needs to repeatedly transmit a data packet within a predetermined time.

[0062] The service quality level here is used to characterize the quality of data transmission when the first electronic device is in a wireless network. In one embodiment, the service quality level includes but is limited to at least one of the following: a first quality level, a second quality level, a third quality level, ... an Nth quality level. The quality of the first quality level is higher than that of the second quality level, the quality of the second quality level is higher than that of the third quality level; and so on; the quality of the N-1th quality level is higher than that of the Nth quality level; wherein N is an integer greater than 1.

[0063] The predetermined distance here may be less than or equal to the maximum distance at which a wireless network connection can be established with the first electronic device. For example, the predetermined distance may be 5 meters, 10 meters, or 50 meters, etc. When the number of devices is the number of devices connected to the first electronic device for communication and the number of devices within the predetermined distance range, the number of devices is equal to the number of devices connected to the first electronic device for communication plus the number of target devices within the preset distance range, and the target device is equal to the number of all electronic devices within the predetermined distance range minus the number of devices connected to the first electronic device for communication within the predetermined distance range.

[0064] In one embodiment, the level information may be used to characterize the multiple of the increase in buffer capacity. For example, the level information may be used to characterize the multiple of the increase in the first capacity of the first buffer. For example, if the first capacity is B and the multiple of the capacity increase is 0.2, it can be considered that the first capacity has increased by 0.2 times; then the increased first capacity may be: 1.2×B. Here, the multiple characterizing the capacity increase in the level information may be a real number greater than 0. Here, the increased first capacity is the second capacity.

[0065] In another embodiment, the level information may be used to characterize a multiple of the buffer capacity. For example, the level information may be used to characterize a multiple of the first capacity of the first buffer. For example, if the first capacity is B and the multiple of the capacity is 2, it can be considered that the first capacity has increased by 1 times; then the increased first capacity is: 2×B. The multiple of the capacity characterizing the level information here may be an integer greater than or equal to 1.

[0066] Exemplarily, the level information includes, but is not limited to: the first level or the second level. The first level here may be a level of the first multiple, and the second level may be a level of the second multiple; wherein the first multiple is smaller than the second multiple. For example, the first multiple may be 2 times of the first capacity, and the second multiple may be 3 times of the first capacity; for another example, the first multiple may be 1 times or 2 times of the first capacity, and the second multiple may be 3 times or 4 times of the first capacity; and so on. Both the first level and the second level here may be multiples representing an increase in the first capacity. For example, the first capacity may be B, then the first level may be: L1×B, and the second level may be: L2×B; wherein L1 and L2 may both be multiples greater than 0, and L1 is smaller than L2.

[0067] Exemplarily, the level information includes but is not limited to: first level, second level, third level or fourth level. The first level may be a level of the first multiple, the second level may be a level of the second multiple, the third level may be a level of the third multiple or the fourth level may be a level of the fourth multiple; wherein the first multiple is smaller than the second multiple, the second multiple is smaller than the third multiple, and the third multiple is smaller than the fourth multiple. For example, if the first capacity is the first B, the first level may be: L1×B, the second level may be: L2×B, the third level may be: L3×B, and the fourth level may be: L4×B; wherein L1, L2, L3 and L4 may all be real numbers within a predetermined range, for example, L1 may be a value of 1 to 2, L2 may be a value of 2 to 5, L3 may be a value of 5 to 6; L4 may be a value of 6 to 9.

[0068] Here, step S14 may be: determining the second capacity after the capacity of the first buffer is increased based on the first capacity and the level information.

[0069] In one embodiment, an implementation of step S14 is to determine the second capacity of the first buffer based on the product of the first capacity and the multiple of the capacity represented in the level information. For example, if the first capacity is B and the multiple indicated in the level information is 2, then the second capacity of the first buffer is: 2×B.

[0070] The disclosed embodiment can obtain Bluetooth configuration information and wireless network information through the first electronic device; determine the first capacity of the first buffer of the first electronic device based on the Bluetooth configuration information; determine the level information of the first capacity based on the wireless network information; and determine the second capacity of the first buffer based on the first capacity and the level information. In this way, the disclosed embodiment can determine the level information of increasing the first capacity of the first buffer based on the wireless network information to obtain the increased second capacity. In this way, the disclosed embodiment can cache more data through the first buffer with increased capacity, so that when the first electronic device is in a wireless network environment such as downloading data at high speed or is affected by the wireless network environment, it can have more cache space to cache audio data that needs to be transmitted, etc.; thereby greatly reducing the delay in transmitting audio data between the first electronic device and other devices, and reducing the occurrence of sound freezes and / or distortions, etc.

[0071] In one embodiment, the first buffer may be at least one of: a buffer of a first Bluetooth module of the first electronic device, a buffer of an audio module of the first electronic device, a buffer of an audio digital signal processing (DSP) module of the first electronic device, and a buffer of a wireless communication technology (WIFI)-Bluetooth technology (BT) module of the first electronic device.

[0072] For example, Figure 2 As shown, the first electronic device includes: a foreground game application module (21), an audio module (22), a first Bluetooth module (23), an audio DSP module (24) and a WIFI-BT module (25); wherein the first Bluetooth module, the audio module, the audio DSP module and the WIFI-BT module may all include a buffer. The buffer of the first Bluetooth module, the buffer of the audio module, the buffer of the audio DSP module and / or the buffer of the WIFI-BT module herein may all be considered as a first buffer; for example, the buffer of the audio module is a first buffer (B11), the buffer of the first Bluetooth module is a first buffer (B12), the buffer of the audio DSP module is a first buffer (B13), and the buffer of the WIFI-BT module is a first buffer (B14). The first capacities of these first buffers may all be determined based on step S12, the level information of the first capacities of these first buffers may all be determined based on step S13; the second capacities of these first buffers may all be determined based on step S14.

[0073] For example, Figure 2As shown, if the transmission process of audio data is: foreground game application module——audio module——first Bluetooth module——WIFI-BT module, and then transmitted from the WIFI-BT module to the second electronic device, the first electronic device can determine the first buffer of the audio module, the first buffer of the first Bluetooth module, and the first capacity of the first buffer of the WIFI-BT. If the transmission process of audio data is: foreground game application module——audio module——audio DSP module——WIFI-BT module, and then transmitted from the WIFI-BT module to the second electronic device, the first electronic device can determine the first capacity of the first buffer of the audio module, the first capacity of the first buffer of the audio DSP module, and the first capacity of the first buffer of the WIFI-BT module.

[0074] The second electronic device here may be a Bluetooth headset, a Bluetooth speaker, or the like.

[0075] In some embodiments, the method further comprises:

[0076] Using the first Bluetooth module to send the wireless network information to at least one of the audio module, the audio DSP module and the WIFI-BT module;

[0077] The step S13 includes at least one of the following:

[0078] Determine, by using the first Bluetooth module based on the wireless network information, the level information of the first capacity of the first buffer of the first Bluetooth module;

[0079] Determining, by the audio module based on the wireless network information, the level information of the first capacity of the first buffer of the audio module;

[0080] determining, using the audio DSP module based on the wireless network information, the level information of the first capacity of the first buffer of the audio DSP module;

[0081] The level information of the first capacity of the first buffer of the WIFI-BT module is determined by the WIFI-BT module based on the wireless network information.

[0082] Thus, in the disclosed embodiment, the first electronic device can determine the first capacity of the first buffer in each module of the first electronic device based on the Bluetooth configuration information, such as the first capacity of the first buffer in each module of the audio data transmission process. And based on the wireless network information, the level information of the first capacity of these first buffers and the second capacity of these first buffers can be determined; so that when the audio data is cached in these first buffers with the second capacity, the occurrence of delays, freezes, etc. in the audio data transmission can be greatly reduced.

[0083] For example, when the first electronic device is in a wireless network environment, such as downloading data at high speed or being affected by the wireless network environment, it can have more cache space to cache audio data that needs to be transmitted, etc.; thereby reducing the delay in transmitting audio data between the first electronic device and other devices (such as the second electronic device), reducing the occurrence of sound freezes and / or distortion, etc.

[0084] In some embodiments, the step S12 includes:

[0085] The first capacity of the first buffer of the first electronic device is determined based on the low-latency mode parameters, a single data packet size, and an audio bit depth.

[0086] Exemplary low-delay mode parameters include: frame length (F_l), number of subbands (n_s), channel data (n_c), block length (n_b), and / or bit pool (b_p). The first electronic device calculates the frame length based on the number of subbands, the number of channels, the block length, and the bit pool. For example, for mono and dual-channel modes, the first electronic device calculates the frame length For example, for stereo and joint stereo channel modes, the first electronic device calculates the frame length When join=1, it indicates that the joint stereo channel mode is used; when join=0, it indicates that the stereo channel mode is used. The first electronic device determines the number of frames (F_n) based on the frame length, the data packet header size (H_S) and the single data packet size (MTU); for example, the number of frames The first electronic device calculates the first capacity of the first buffer based on the number of frames, the number of subbands, the block length, the number of channels and the audio bit depth (p_s).

[0087] Exemplarily, the first electronic device may determine the first capacity of one or more frames of the first buffer of the first electronic device based on the low-latency mode parameters, the size of a single data packet, and the audio bit depth. When the first capacity of multiple frames is required, the number of frames to be transmitted per unit time may be determined based on the bit rate; and the first capacity of multiple frames may be determined based on the number of frames and the frame length. Here, determining the first capacity of multiple frames based on the number of frames and the frame length may refer to: determining the first capacity of multiple frames based on the product of the number of frames and the frame length.

[0088] Exemplarily, the first capacity of the first buffer of the audio module, the first buffer of the first Bluetooth module, the first buffer of the audio DSP module, and the first buffer of the WIFI-BT module in the first electronic device can be The third capacity of the second buffer of the second audio module in the second electronic device can also be determined by For example, the first capacity of the first buffer and the fourth capacity of the second buffer may be greater than or equal to B, or may be equal to a value within a predetermined range of B, etc.

[0089] In the disclosed embodiment, the first electronic device can accurately determine the first capacity of the first buffer based on Bluetooth configuration parameters without considering that the first electronic device is in a wireless network environment and accurately determine the third capacity of the second buffer of the second electronic device.

[0090] In some embodiments, the wireless network information includes: a first wireless network type and a second wireless network type; wherein the communication frequency band supported by the first wireless network type is greater than the communication frequency band supported by the second wireless network type;

[0091] In some embodiments, the step S13 includes one of the following:

[0092] Step a: if the wireless network information is the first wireless network type, determining that the level information of the first capacity is the first level;

[0093] Step b: if the wireless network information is the second wireless network type, determining that the level information of the first capacity is the second level;

[0094] The first level represents a multiple of capacity increase, which is smaller than the second level represents a multiple of capacity increase.

[0095] In one embodiment, the first wireless network type is WIFI 5G; the second wireless network type is WIFI 2.4G.

[0096] Exemplarily, if the first electronic device determines that the current wireless network is WIFI 2.4G, it determines that the current level information is the second level, where the second level represents a capacity multiple of 4 times; if it determines that the current wireless network is WIFI 5G, it determines that the current level information is the first level, where the first level represents a capacity multiple of 2 times. For example, if the first capacity is B, if the current network of the first electronic device is WIFI 2.4G, the second capacity of the first buffer is: 4×B; if the current network of the first electronic device is WIFI 5G, the second capacity of the first buffer is 2×B.

[0097] In one embodiment, a first identifier may be carried in a predetermined field in the Bluetooth configuration information, identifying that the wireless network in which the first electronic device is located is a first wireless network type; a second identifier may be carried in a predetermined field in the Bluetooth configuration information, identifying that the wireless network in which the first electronic device is located is a second wireless network type. For example, the first identifier is "01", the second identifier is "10", and so on.

[0098] In the disclosed embodiment, the level information of the appropriate multiple of increasing the first capacity can be determined according to the type of wireless network in which the first electronic device is located. It can be understood that: since the protocol adopted by Bluetooth is usually in the frequency bands of 2.402G to 2.480G, and the frequency band of 2.4G is relatively common, and the frequency band around 2.4G is used by relatively more devices; therefore, if the wireless network in which the first electronic device is located is WIFI 2.4G, the interference to the first electronic device is relatively large, and it is necessary to use a relatively large capacity buffer to cache data to minimize the jamming of the data. However, since the frequency band of 5G is not common, it is used by relatively few devices in this frequency band; therefore, if the wireless network in which the first electronic device is located is WIFI 5G, the interference to the first electronic device is relatively small, and it is necessary to use a relatively small capacity buffer to minimize the jamming of the data. In this way, when the first electronic device is in the wireless network of WIFI 2.4G, it has a greater increase multiple than that in the wireless network of WIFI 5G, so that the first buffer after the capacity is increased can reduce the delay of audio data transmission, and / or the jamming of sound, etc.

[0099] It can be understood that, since the capacity of the first buffer can be increased in a wireless network environment, the throughput of the wireless network can also be improved.

[0100] In one embodiment, the method further includes: if the wireless network information is the third wireless network type, determining not to increase the capacity of the first buffer. The third wireless network type here is used to characterize that the first electronic device is not in a wireless network. A third identifier may be carried in a predetermined field of the Bluetooth configuration information to characterize that the first electronic device is not in a wireless network; for example, the third identifier is "00". In this way, in the disclosed embodiment, when the first electronic device is not in a wireless network, there is no need to increase the first capacity of the first buffer; the first electronic device is not affected by the wireless network environment, and the first buffer with the first capacity can also reduce the audio data transmission delay and the occurrence of sound jams.

[0101] In some embodiments, the wireless network information includes at least one of the following: signal strength, number of channels, number of devices, retransmission rate, and quality of service level; wherein the number of devices is the number of devices connected to and communicating with the first electronic device and / or the number of devices within a predetermined distance range;

[0102] In some embodiments, the step S13 includes one of the following:

[0103] Step d: if the signal strength is the first signal strength, the number of channels is the first number of channels, the number of devices is the first number of electronic devices, the retransmission rate is the first retransmission rate, and the quality of service level is at least one of the first quality level, then determining that the level information of the first capacity is the third level;

[0104] Step e: if the signal strength is the second signal strength, the number of channels is the second number of channels, the number of devices is the second number of electronic devices, the retransmission rate is the second retransmission rate, and the quality of service level is at least one of the second quality level, then determining that the level information of the first capacity is the fourth level;

[0105] Wherein, the first signal strength is greater than the second signal strength; the first channel number is greater than the second channel number; the first electronic device number is less than the second electronic device number; the first retransmission rate is less than the second retransmission rate; the quality of the first quality level is higher than the quality of the second quality level;

[0106] The third level represents a multiple of capacity increase, which is smaller than the multiple of capacity increase represented by the fourth level.

[0107] In one embodiment, the magnitude of the signal strength is inversely proportional to the multiple of the increase in the first capacity represented by the level information. For example, if the signal strength received by the first electronic device is greater, it means that the wireless network environment in which the first electronic device is located is more stable, and the multiple of the increase in the first capacity is smaller; if the signal strength received by the first electronic device is smaller, it means that the wireless network environment in which the first electronic device is located is more unstable, and the multiple of the increase in the first capacity is greater.

[0108] Exemplarily, if the signal strength received by the first electronic device is the first signal strength, it can be determined that the multiple of increasing the first capacity is 2 times; if the signal strength received by the first electronic device is the second signal strength, it can be determined that the multiple of increasing the first capacity is 3 times; wherein the first signal strength is greater than the second signal strength.

[0109] In one embodiment, the number of channels is inversely proportional to the multiple of the increase in the first capacity represented by the level information. For example, if the number of channels of the wireless network where the first electronic device is located is larger, it means that the wireless network environment where the first electronic device is located is more stable, and the multiple of the increase in the first capacity is smaller; if the number of channels of the wireless network where the first electronic device is located is smaller, it means that the wireless network environment where the first electronic device is located is more unstable, and the multiple of the increase in the first capacity is larger.

[0110] For example, if the number of channels of the wireless network where the first electronic device is located is the first number of channels, it can be determined that the multiple of increasing the first capacity is 2 times; if the number of channels of the wireless network where the first electronic device is located is the second number of channels, it can be determined that the multiple of increasing the first capacity is 2 times.

[0111] It is determined that the multiple of the first capacity is 3 times; wherein the number of first channels is greater than the number of second channels.

[0112] In one embodiment, the number of devices connected to the first electronic device is proportional to the multiple of the increase in the first capacity represented by the level information. For example, if the number of devices connected to the first electronic device is smaller, it means that the wireless network environment of the first electronic device is cleaner, that is, the interference is smaller, and the multiple of the increase in the first capacity is smaller; if the number of devices connected to the first electronic device is larger, it means that the wireless network environment of the first electronic device is cleaner, that is, the interference is greater, and the multiple of the increase in the first capacity is larger.

[0113] Exemplarily, if the number of devices connected to the first electronic device is the first number of electronic devices, it can be determined that the multiple of increasing the first capacity is 2 times; if the number of devices connected to the first electronic device is the second number of electronic devices, it can be determined that the multiple of the first capacity is 3 times; wherein the number of first electronic devices is less than the number of second electronic devices.

[0114] In one embodiment, the retransmission rate of the first electronic device is proportional to the multiple of the increase of the first capacity represented by the level information. For example, if the retransmission rate of the first electronic device is smaller, it means that the wireless network environment in which the first electronic device is located is more stable, and the multiple of the increase of the first capacity is smaller; if the retransmission rate of the first electronic device is larger, it means that the wireless network environment in which the first electronic device is located is more unstable, and the multiple of the increase of the first capacity is larger.

[0115] Exemplarily, if the retransmission rate of the first electronic device is a first retransmission rate, it can be determined that the multiple of increasing the first capacity is 2 times; if the retransmission rate of the first electronic device is a second retransmission rate, it can be determined that the multiple of the first capacity is 3 times; wherein the first retransmission rate is less than the second retransmission rate.

[0116] In one embodiment, the service quality level of the wireless network where the first electronic device is located is inversely proportional to the multiple of the increase of the first capacity represented by the level information. For example, if the service quality level of the wireless network where the first electronic device is located is higher, it means that the wireless network environment where the first electronic device is located is more stable, and the multiple of increasing the first capacity is smaller; if the service quality level of the wireless network where the first electronic device is located is higher, it means that the wireless network environment where the first electronic device is located is more unstable, and the multiple of increasing the first capacity is larger.

[0117] Exemplarily, if the service quality level of the wireless network where the first electronic device is located is the first quality level, it can be determined that the multiple of increasing the first capacity is 2 times; if the service quality level of the wireless network where the first electronic device is located is the second quality level, it can be determined that the multiple of the first capacity is 3 times; wherein the first quality level is higher than the second quality level.

[0118] In one embodiment, if the signal strength of the received signal of the first electronic device is greater, the number of channels of the wireless network where the first electronic device is located is greater, the number of devices connected to the first electronic device is smaller, and / or the retransmission rate of the first electronic device is greater, then it means that the service quality of the wireless network where the first electronic device is located is higher; if the signal strength of the received signal of the first electronic device is smaller, the number of channels of the wireless network where the first electronic device is located is smaller, the number of devices connected to the first electronic device is greater, and / or the retransmission rate of the first electronic device is smaller, then it means that the service quality of the wireless network where the first electronic device is located is lower.

[0119] In the embodiment of the present disclosure, the stability and interference degree of the wireless network environment in which the first electronic device is located can be determined based on at least one of the signal strength of the signal received by the first electronic device, the number of channels of the wireless network in which the first electronic device is located, the number of devices connected to the first electronic device, the retransmission rate of the first electronic device, and the service quality level of the wireless network in which the first electronic device is located; thus, a suitable multiple of increasing the first capacity can be determined based on this. In this way, the embodiment of the present disclosure can take into account the wireless network environment and determine a suitable increase in the second capacity of the first buffer, so that when the first electronic device sends audio data based on the first buffer of the second capacity, the delay and jamming of the sound can be greatly reduced.

[0120] In some embodiments, the step S13 includes one of the following:

[0121] If the wireless network is of the first wireless network type, determining to execute the operation of step d and / or step e;

[0122] If the wireless network is of the second wireless network type, it is determined to execute the operations of step d and / or step e.

[0123] Exemplarily, if the wireless network where the first electronic device is located is WIFI 5G, the first capacity of the first buffer can be increased to a first level; the first level represents a multiple of the first capacity of 2 to 4 times; if the wireless network where the first electronic device is located is WIFI 2.4G, the first capacity of the first buffer can be increased to a multiple of 5 to 6 times.

[0124] When the wireless network where the first electronic device is located is WIFI 5G, if the signal strength received by the first electronic device is the first signal strength, the number of channels of the wireless network where the first electronic device is located is the first number of channels, the number of devices connected to the first electronic device is the first number of electronic devices, the retransmission rate of the first electronic device is the first retransmission rate, and the service quality level of the wireless network where the first electronic device is located is at least one of the first quality level, the level information of the first capacity is determined to be the third level in the first level; for example, the multiple of the first capacity can be determined to be 2 times. If the signal strength received by the first electronic device is the second signal strength, the number of channels of the wireless network where the first electronic device is located is the second number of channels, the number of devices connected to the first electronic device is the second number of electronic devices, the retransmission rate of the first electronic device is the second retransmission rate, and the service quality level of the wireless network where the first electronic device is located is at least one of the second quality level, the level information of the first capacity is determined to be the fourth level in the first level; for example, the multiple of the first capacity can be determined to be 3 times.

[0125] When the wireless network where the first electronic device is located is WIFI 2.4G, if the signal strength received by the first electronic device is the first signal strength, the number of channels of the wireless network where the first electronic device is located is the first channel number, the number of devices connected to the first electronic device is the first electronic device number, the retransmission rate of the first electronic device is the first retransmission rate, and the service quality level of the wireless network where the first electronic device is located is at least one of the first quality level, the level information of the first capacity is determined to be the third level in the second level; for example, the multiple of the first capacity can be determined to be 5 times. If the signal strength received by the first electronic device is the second signal strength, the number of channels of the wireless network where the first electronic device is located is the second channel number, the number of devices connected to the first electronic device is the second electronic device number, the retransmission rate of the first electronic device is the second retransmission rate, and the service quality level of the wireless network where the first electronic device is located is at least one of the second quality level, the level information of the first capacity is determined to be the fourth level in the second level; for example, the multiple of the first capacity can be determined to be 6 times.

[0126] Among them, the first signal strength is greater than the second signal strength; the first channel number is greater than the second channel number; the first electronic device number is less than the second electronic device number; the first retransmission rate is less than the second retransmission rate; the quality of the first quality level is higher than the quality of the second quality level.

[0127] Thus, in the disclosed embodiment, the first electronic device can first determine the multiple of increasing the first capacity of the first buffer according to the type of wireless network in which the first electronic device is located. Then, based on different wireless network types, the multiple of increasing the second capacity of the first buffer is further subdivided based on signal strength, number of channels, number of devices, retransmission rate, and service quality level, etc.; thereby, the appropriate multiple of increasing the capacity of the first buffer can be applied to more application scenarios.

[0128] like Figure 3 As shown, in some embodiments, the method further includes:

[0129] Step S15: Based on the Bluetooth connection with the second electronic device, sending the Bluetooth configuration information and the wireless network information to the second electronic device;

[0130] The Bluetooth configuration information is also used for the second electronic device to determine the third capacity of the second buffer; the wireless network information is also used for the second electronic device to increase the third capacity of the second buffer to a fourth capacity;

[0131] Step S16: sending a data packet to the second electronic device based on the first buffer having the second capacity;

[0132] The data packet is used for being cached by the second electronic device in the second buffer having the fourth capacity.

[0133] In one embodiment, the second electronic device may be any device with a Bluetooth connection function, such as a Bluetooth headset or a Bluetooth speaker.

[0134] In one embodiment, the method further includes: establishing a Bluetooth connection between the first electronic device and the second electronic device.

[0135] In one embodiment, the Bluetooth connection between the first electronic device and the second electronic device may be any Bluetooth connection specified in the protocol. For example, the Bluetooth connection may include, but is not limited to: a Bluetooth connection of a Serial Port Profile (SPP), a Hands-free Profile (HFP), or a Bluetooth connection of an Advanced Audio Distribution Profile (A2DP).

[0136] In one embodiment, the data packet includes: a data packet of audio data. For example, a data packet of audio data of gunshots in a game application, a data packet of audio data of music in a music application, or a data packet of voice data in a WeChat application, etc. Of course, in other embodiments, the data packet can be any type of data packet, including but not limited to a data packet of audio data.

[0137] Here, one implementation of step S16 is: the first electronic device determines the bits of the data packet based on the second capacity, and sends the data packet with the determined bit size to the second electronic device. For example, the bit size of a data packet may be equal to the second capacity, or the sum of the bit sizes of multiple data packets may be equal to the second capacity.

[0138] In one embodiment, the wireless network information is used for the second electronic device to determine the level information of the third capacity; the product of the third capacity and the capacity multiple indicated in the level information is used for the second electronic device to determine the fourth capacity of the second buffer. For example, the second electronic device obtains the wireless network information and the Bluetooth configuration information, and determines the third capacity of the second buffer of the second electronic device based on the Bluetooth configuration information, and determines the level information of the third capacity based on the wireless network information; and determines the fourth capacity of the second buffer based on the third capacity and the level information. Here, the method of determining the third capacity of the second buffer of the second electronic device based on the Bluetooth configuration information is similar to the method of determining the first capacity of the first buffer of the first electronic device based on the Bluetooth configuration information; the method of determining the level information of the third capacity based on the wireless network information is similar to the method of determining the level information of the first capacity based on the wireless network information; and the method of determining the fourth capacity of the second buffer based on the third capacity and the level information is similar to the method of determining the second capacity of the first buffer based on the first capacity and the level information.

[0139] In one embodiment, the data packet may be a data packet related to audio data. In the disclosed embodiment, the data packet is cached in the first electronic device based on a first buffer having a second capacity; when the data packet is sent to the second electronic device, the digital packet is cached in a second buffer having a fourth capacity.

[0140] For example, Figure 4 As shown, a first electronic device establishes a connection with a second electronic device; the second electronic device includes: a second Bluetooth module (26); the second Bluetooth module includes a second buffer (B2). The first electronic device uses the WIFI-BT module to send Bluetooth configuration information and wireless network information to the second Bluetooth module of the second electronic device.

[0141] In the disclosed embodiment, the first electronic device can send Bluetooth configuration information and wireless network information to the second electronic device through Bluetooth connection, so that the second electronic device can know the information related to the Bluetooth configuration of the first electronic device and the quality of the wireless network environment in which the first electronic device is located (it is understood that the wireless network information can characterize the situation of the wireless network environment); thereby, the second electronic device can accurately determine the fourth capacity of the increased second buffer. And the disclosed embodiment can buffer the data packets transmitted by the first electronic device and the second electronic device based on the increased second capacity of the first buffer and the increased fourth capacity of the second buffer, thereby greatly reducing the delay and sound jamming of the transmission of audio and other data packets between the first electronic device and the second electronic device in the environment of WIFI, etc.; thereby, the picture effect of the first electronic device and the sound effect of the second electronic device can be realized synchronously, thereby improving the user experience.

[0142] In other embodiments, the step S15 may also be: based on the wireless communication connection, sending the Bluetooth configuration information and the wireless network information to the second electronic device. Thus, in the disclosed embodiment, the Bluetooth configuration information and the wireless network information may also be sent to the second electronic device based on the wireless network, so that the second electronic device knows the information related to the Bluetooth configuration of the first electronic device and the wireless network environment in which the first electronic device is located.

[0143] In some embodiments, the step S16 includes:

[0144] If a confirmation message returned by the second electronic device based on the Bluetooth configuration information and the wireless network information is received, a data packet is sent to the second electronic device based on the first buffer having the second capacity; wherein the confirmation message is used to indicate that the second electronic device supports the configuration of the Bluetooth configuration information and the wireless network information.

[0145] Here, the confirmation message may be returned by the second electronic device after receiving the Bluetooth configuration information and the wireless network configuration information; or, the confirmation message may be returned by the second device after determining the fourth capacity of the second buffer.

[0146] In the embodiment of the present disclosure, when the first electronic device receives the confirmation message returned by the second electronic device based on the Bluetooth configuration information and the wireless network configuration information, it is determined that the second electronic device can support the configuration of the Bluetooth configuration information and the wireless network information. At this time, the first electronic device can send a data packet, such as an audio data packet, to the second electronic device, so that the second electronic device can play the audio data packet smoothly and synchronously.

[0147] In some embodiments, the method further comprises:

[0148] Acquire device capability information of the first electronic device;

[0149] The step S13 comprises:

[0150] The level information for increasing the first capacity is determined based on the device capability information of the first electronic device and the wireless network information.

[0151] In one embodiment, the device capability information of the first electronic device includes, but is not limited to, at least one of the following: CPU processing speed, memory size, disk I / O size, and device type.

[0152] The CPU processing speed, memory size and disk I / O size are all proportional to the multiple of the first capacity increase represented in the level information. The newer the device type, the smaller the multiple of the first capacity increase represented in the level information.

[0153] In one embodiment, the determining, based on the device capability information of the first electronic device and the wireless network information, the level information for increasing the first capacity includes:

[0154] Determining a weighting of the device capability information as a first weighting and determining a weighting of the wireless network information as a second weighting;

[0155] Based on the product of the level information determined by the device capability information and the first weight, and the level information determined by the wireless network information as the second weight, the level information for increasing the first capacity is determined.

[0156] In one embodiment, the first specific gravity is less than the second specific gravity.

[0157] For example, if the first weight of the device capability information of the first electronic device is 0.2, the multiple of the first capacity represented by the level information determined by the device capability information of the first electronic device is 2 times; and if the second weight of the wireless network information is 0.8, the multiple of the first capacity represented by the level information determined by the wireless network information is 5 times. Then the multiple of the increased first capacity is: 0.2×2+0.8×5=4.4 times; then the level information corresponding to 4.4 times is the level information of the increased first capacity.

[0158] In the embodiment of the present disclosure, the level information of the first capacity can also be determined in combination with the device capability information and wireless network information of the first electronic device itself; in this way, the capacity of the increased first buffer can be determined by taking into account different types of devices and the wireless network environment in which the devices are located, so that it can be suitable for different types of devices in a wireless network environment, which can greatly reduce the transmission delay of audio data and reduce the occurrence of sound freezes; thereby achieving synchronization between the screen display of the first electronic device and the audio data playback of the second electronic device, thereby improving the user experience.

[0159] It should be noted here that the following description of an information processing method applied to a second electronic device corresponds to the above description of an information processing method applied to a first electronic device. For technical details not disclosed in the embodiment of the information processing method applied to the second electronic device in this disclosure, please refer to the description of the embodiment of the information processing method applied to the first electronic device in this disclosure, and no detailed explanation will be given here.

[0160] Figure 5 is an information processing method shown according to an exemplary embodiment; Figure 5 As shown, the method is performed by a second electronic device, including:

[0161] Step S21: Based on the Bluetooth connection with the first electronic device, receiving a data packet sent by the first electronic device using a first buffer having a second capacity;

[0162] The second capacity is a capacity determined by the first electronic device based on the first capacity of the first buffer and level information of the first capacity; wherein the level information is used to indicate a level of increase in the buffer capacity;

[0163] Step S22: caching the data packet in the second buffer having a fourth capacity; wherein the fourth capacity is a capacity determined by the second electronic device based on the third capacity of the second buffer and level information of the third capacity.

[0164] In some embodiments, the method further comprises:

[0165] Based on the Bluetooth connection, receiving Bluetooth configuration information and wireless network information sent by the first electronic device, wherein the wireless network information is used to indicate the communication quality of the wireless communication performed by the first electronic device;

[0166] Determining the third capacity of the second buffer based on the Bluetooth configuration information;

[0167] Determining the level information of the third capacity based on the wireless network information;

[0168] The fourth capacity of the second buffer is determined based on the third capacity and the level information.

[0169] In one embodiment, the level information may be used to indicate a multiple of capacity increase. For example, the level information may be used to indicate a multiple of the second capacity increase.

[0170] In another embodiment, the level information may be used to represent a multiple of the capacity. For example, the level information may represent a multiple of the second capacity.

[0171] In one embodiment, the Bluetooth configuration information includes at least one of the following: sampling frequency, block length, number of subbands, single data packet size, bit rate, number of channels, minimum bit pool, maximum bit pool, and encoding type information.

[0172] In the embodiment of the present disclosure, the manner of determining the third capacity of the second buffer based on the Bluetooth configuration information is similar to the manner of determining the first capacity of the first buffer based on the Bluetooth configuration information in step S12 in the above embodiment. For example, in one embodiment, the third capacity of the second buffer is the same as the first capacity of the first buffer, or the third capacity of the second buffer and the first capacity of the first buffer are within a predetermined capacity threshold range.

[0173] Exemplarily, based on the Bluetooth configuration information, the third capacity of the second buffer is calculated in, Among them, F_n is the number of frames, F_l is the frame length, n_s is the number of subbands, n_c is the channel data, and n_b is the block length; "MTU" is the size of a single data packet, (H_S) the data packet header size, and p_s is the audio bit depth.

[0174] In the embodiment of the present disclosure, the manner of determining the level information of the third capacity based on the wireless network information is similar to the manner of determining the level information of the first capacity based on the wireless network information in step S13 in the above embodiment.

[0175] For example, in some embodiments, the wireless network information includes: a first wireless network type and a second wireless network type; wherein a communication frequency band supported by the first wireless network type is greater than a communication frequency band supported by the second wireless network type;

[0176] The determining, based on the wireless network information, the level information of the third capacity includes one of the following:

[0177] If the wireless network information is the first wireless network type, determining that the level information of the third capacity is the first level;

[0178] If the wireless network information is the second wireless network type, determining that the level information of the third capacity is the second level;

[0179] The first level represents a multiple of capacity increase, which is smaller than the second level represents a multiple of capacity increase.

[0180] For example, in some embodiments, the wireless network information includes at least one of the following: signal strength, number of channels, number of devices, retransmission rate, and quality of service level; wherein the number of devices is the number of devices connected to and communicating with the first electronic device and / or the number of devices within a predetermined distance range;

[0181] The determining, based on the wireless network information, the level information of the third capacity includes one of the following:

[0182] If the signal strength is the first signal strength, the number of channels is the first number of channels, the number of devices is the first number of electronic devices, the retransmission rate is the first retransmission rate, and the quality of service level is at least one of the first quality level, determining that the level information of the third capacity is the third level;

[0183] If the signal strength is the second signal strength, the number of channels is the second number of channels, the number of devices is the second number of electronic devices, the retransmission rate is the second retransmission rate, and the quality of service level is at least one of the second quality level, determining that the level information of the third capacity is the fourth level;

[0184] Wherein, the first signal strength is greater than the second signal strength; the first channel number is greater than the second channel number; the first electronic device number is less than the second electronic device number; the first retransmission rate is less than the second retransmission rate; the quality of the first quality level is higher than the quality of the second quality level;

[0185] The third level represents a multiple of capacity increase, which is smaller than the multiple of capacity increase represented by the fourth level.

[0186] In the disclosed embodiment, the method of determining the fourth capacity of the second buffer based on the third capacity and the level information is similar to the method of determining the second capacity of the first buffer based on the first capacity and the level information in step S14 in the above embodiment.

[0187] For example, in one embodiment, determining the fourth capacity of the second buffer based on the third capacity and the level information includes: determining the fourth capacity of the second buffer based on the product of the third capacity and the multiple of the capacity represented in the level information. Exemplarily, the third capacity is B, and the multiple indicated in the level information is 2 times, then the fourth capacity of the second buffer is: 2×B.

[0188] In the disclosed embodiment, the second electronic device can determine the level information of increasing the second capacity of the second buffer based on the received wireless network information to obtain the increased fourth capacity. In this way, the second electronic device can cache more data through the second buffer with increased capacity. When the first electronic device is in a wireless network environment, such as downloading data at high speed or being affected by the wireless network environment, there can be more cache space to cache audio data to be transmitted, etc.; thereby greatly reducing the delay of the second electronic device receiving audio data, reducing the occurrence of sound jamming and / or distortion, etc.

[0189] In some embodiments, the method further comprises:

[0190] If the second electronic device supports the configuration of the Bluetooth configuration information and the wireless network information, sending a confirmation message to the first electronic device;

[0191] The determining the third capacity of the second buffer based on the Bluetooth configuration information includes:

[0192] If the second electronic device supports configuration of the Bluetooth configuration information, determining the third capacity of the second buffer based on the Bluetooth configuration information;

[0193] The determining, based on the wireless network information, the level information of the third capacity includes:

[0194] If the second electronic device supports the configuration of the wireless network information, the level information of the third capacity is determined.

[0195] In some embodiments, the method further comprises:

[0196] Acquire device capability information of the second electronic device;

[0197] The determining, based on the wireless network information, the level information of the third capacity includes:

[0198] The level information for increasing the third capacity is determined based on the device capability information of the second electronic device and the wireless network information.

[0199] In some other embodiments, the method further comprises:

[0200] Acquire device capability information of the first electronic device;

[0201] The determining, based on the wireless network information, the level information of the third capacity includes:

[0202] Determining the level information for increasing the third capacity based on the device capability information of the first electronic device, the device capability information of the second electronic device, and the wireless network information;

[0203] or,

[0204] The level information for increasing the third capacity is determined based on the device capability information of the first electronic device and the wireless network information.

[0205] For example, if the first weight of the device capability information of the first electronic device is 0.2, the multiple of the third capacity represented by the level information determined by the device capability information of the first electronic device is 2 times; the second weight of the device capability information of the second electronic device is 0.2, the multiple of the third capacity represented by the level information determined by the device capability information of the second electronic device is 2 times; and if the second weight of the wireless network information is 0.6, the multiple of the third capacity represented by the level information determined by the wireless network information is 5 times. Then the multiple of the increased third capacity is: 0.2×2+0.2×2+0.6×5=3.8 times; then the level information corresponding to 3.8 times is the level information of the increased third capacity.

[0206] In the embodiment of the present disclosure, the level information of the third capacity can also be determined in combination with the device capability information of the first electronic device and / or the device capability information of the second electronic device and the wireless network information; in this way, the capacity of the increased second buffer can be determined while taking into account different types of devices and the wireless network environment in which the devices are located, so that it can be suitable for different types of devices in a wireless network environment, which can greatly reduce the transmission delay of audio data and reduce the occurrence of sound freezes; thereby achieving synchronization between the screen display of the first electronic device and the audio data playback of the second electronic device, thereby improving the user experience.

[0207] A specific example is provided below in combination with any of the above embodiments:

[0208] Figure 6 An information processing method according to an exemplary embodiment is applied to a Bluetooth communication processing system, wherein the Bluetooth communication processing system includes a first electronic device and a second electronic device. Figure 6 and Figure 6 , the method comprises the following steps:

[0209] Step S401: establishing a Bluetooth connection;

[0210] In an optional embodiment, the first electronic device is paired with the second electronic device to establish a Bluetooth connection between the first electronic device and the second electronic device.

[0211] Step S402: Start the game application;

[0212] In an optional embodiment, the first electronic device uses the foreground game application module (21) to start the game application.

[0213] Step S403: Enable low latency mode;

[0214] In an optional embodiment, the first electronic device uses the first Bluetooth module (23) to turn on the low-latency mode; and obtains Bluetooth configuration information in the low-latency mode and obtains wireless network parameters and sends them to the WIFI-BT module.

[0215] Step S404: Sending Bluetooth configuration information and wireless network information to the WIFI-BT module;

[0216] In an optional embodiment, the first electronic device uses the first Bluetooth module to send the Bluetooth configuration information and wireless network parameters to a WIFI-BT module.

[0217] Step S405: sending the Bluetooth configuration information and the wireless network information to the second electronic device;

[0218] In an optional embodiment, the first electronic device uses the WIFI-BT module to send the Bluetooth configuration information and the wireless network information to the second electronic device.

[0219] Step S406: If it is determined that the configuration of the Bluetooth configuration information and the wireless network information is supported, determine the third capacity of the second buffer of the second electronic device based on the Bluetooth configuration information, and determine the level information of the third capacity based on the wireless network information; determine the fourth capacity of the second buffer based on the third capacity and the level information; and determine a confirmation message based on the Bluetooth configuration information and the wireless network information;

[0220] The confirmation message here is used to indicate that the second electronic device supports the configuration of the Bluetooth configuration information and the wireless network information.

[0221] In an optional embodiment, the second electronic device receives Bluetooth configuration information and wireless network information using a second Bluetooth module (26); if the second electronic device determines that it supports the configuration of the Bluetooth configuration information and the wireless network information, the third capacity of the second buffer (B2) of the second electronic device is determined based on the Bluetooth configuration information, and the level information of the third capacity is determined based on the wireless network information; and the fourth capacity of the second buffer is determined based on the third capacity and the level information.

[0222] In an optional embodiment, after the second electronic device determines that it supports the configuration of the Bluetooth configuration information and the wireless network information, it sends a confirmation message to the first electronic device.

[0223] Step S407: receiving a confirmation message;

[0224] In an optional embodiment, the first electronic device uses the WIFI-BT module to receive a confirmation message sent by the second electronic device, wherein the confirmation message is used to indicate that the second electronic device supports the configuration of the Bluetooth configuration information and the wireless network information.

[0225] Step S408: sending the confirmation message to the first Bluetooth module;

[0226] In an optional embodiment, the first electronic device sends a confirmation message to the first Bluetooth module using the WIFI-BT module.

[0227] Step S409: if the confirmation message is received, determining a first capacity of the first buffer based on the Bluetooth configuration information, and determining level information of the first capacity based on the wireless network information; and determining a second capacity of the first buffer based on the first capacity and the level information;

[0228] In an optional embodiment, if the first Bluetooth module of the first electronic device receives a confirmation message, the first capacity of the first buffer (B12) of the first Bluetooth module is determined based on the Bluetooth configuration information, and the level information of the first capacity is determined based on the wireless network information; and the second capacity of the first buffer (B12) is determined based on the first capacity and the level information.

[0229] Step S410: sending the Bluetooth configuration information and the wireless network information to the audio module;

[0230] In an optional embodiment, the first electronic device uses the first Bluetooth module to send the Bluetooth configuration information and the wireless network information to the audio module (22).

[0231] Step S411: determining a first capacity of a first buffer based on the Bluetooth configuration information, and determining level information of the first capacity based on the wireless network information; and determining a second capacity of the first buffer based on the first capacity and the level information;

[0232] In an optional embodiment, the first electronic device uses the audio module to determine the first capacity of the first buffer (B11) of the audio module based on Bluetooth configuration information, and determines the level information of the first capacity based on the wireless network information; and determines the second capacity of the first buffer (B11) based on the first capacity and the level information.

[0233] Step S412: determining a first capacity of a first buffer based on the Bluetooth configuration information, and determining level information of the first capacity based on the wireless network information; and determining a second capacity of the first buffer based on the first capacity and the level information;

[0234] In an optional embodiment, the first electronic device uses the WIFI-BT module to determine the first capacity of the first buffer (B14) of the WIFI-BT based on Bluetooth configuration information, and determines the level information of the first capacity based on the wireless network information; and determines the second capacity of the first buffer (B14) based on the first capacity and the level information.

[0235] Step S413: Sending the Bluetooth configuration information and the wireless network information to the audio DSP module;

[0236] In an optional embodiment, the first electronic device uses a first Bluetooth module to send the Bluetooth configuration information and the wireless network information to the audio DSP module (24).

[0237] Step S414: determining a first capacity of the first buffer based on the Bluetooth configuration information, and determining level information of the first capacity based on the wireless network information; and determining a second capacity of the first buffer based on the first capacity and the level information;

[0238] In an optional embodiment, the first electronic device uses the audio DSP module to determine the first capacity of the first buffer (B13) of the audio DSP module based on Bluetooth configuration information, and determines the level information of the first capacity based on the wireless network information; and determines the second capacity of the first buffer (B13) based on the first capacity and the level information.

[0239] Step S415: Send the data packet to the second electronic device.

[0240] In an optional embodiment, the first electronic device sends the data packet to the second electronic device using the WIFI-BT module.

[0241] In an optional embodiment, the first electronic device uses the foreground game application module to send the data packet to the audio module; the first electronic device uses the audio module to send the data packet to the first Bluetooth module; the first electronic device uses the first Bluetooth module to send the data packet to the WIFI-BT module; the first electronic device uses the WIFI-BT module to send the data packet to the second electronic device.

[0242] In another optional embodiment, the first electronic device uses the foreground game application module to send the data packet to the audio module; the first electronic device uses the audio module to send the data packet to the audio DSP module; the first electronic device uses the audio DSP module to send the data packet to the WIFI-BT module; the first electronic device uses the WIFI-BT module to send the data packet to the second electronic device.

[0243] In the embodiment of the present disclosure, the first electronic device can determine the second capacity of the first buffer of each module in the first electronic device after the capacity is increased based on the Bluetooth configuration information and the wireless network information; and the first electronic device can send the Bluetooth configuration information and the wireless network information to the second electronic device, so that the second electronic device can determine the fourth capacity of the second buffer of the second electronic device after the capacity is increased based on the Bluetooth configuration information and the wireless network information. In this way, when the first electronic device sends a data packet to the second electronic device, such as a data packet of audio data, the audio data can be cached by the first buffer with increased capacity and the second buffer after the capacity is increased; thereby, the transmission delay of the data packet of audio data, etc. between the first electronic device and the second electronic device can be greatly reduced, and the sound jamming can be reduced. Moreover, since the embodiment of the present disclosure takes into account the wireless network environment in which the first electronic device is located, the multiples of the capacity of the first buffer and the second buffer that are suitable for matching the wireless network environment are determined; thus, the embodiment of the present disclosure can also reduce the delay of audio data transmission and the jamming of sound under the premise of ensuring the wireless network data transmission throughput; thereby, the picture content played by the first electronic device is synchronized with the audio data played by the first electronic device. For example, the picture of the sound grabbing in the game played on the first electronic device such as a mobile phone is synchronized with the voice of the gunshot played by the second electronic device such as a Bluetooth headset. In this way, the user experience can also be improved.

[0244] Figure 7 An exemplary embodiment is provided to show an information processing device, the device comprising:

[0245] A first acquisition module 51 is used to acquire Bluetooth configuration information and wireless network information; wherein the wireless network information is used to indicate the communication quality of the first electronic device performing wireless communication;

[0246] A first determining module 52, configured to determine a first capacity of a first buffer of the first electronic device based on the Bluetooth configuration information;

[0247] A first processing module 53, configured to determine level information of the first capacity based on the wireless network information; wherein the level information is used to indicate a level of increase in buffer capacity;

[0248] The first processing module 53 is configured to determine a second capacity of the first buffer based on the first capacity and the level information.

[0249] In one embodiment, the information processing device is used in the first electronic device of the above embodiment.

[0250] like Figure 8 As shown, in some embodiments, the device further includes:

[0251] The first sending module 54 is used to send the Bluetooth configuration information and the wireless network information to the second electronic device based on the Bluetooth connection with the second electronic device; wherein the Bluetooth configuration information is also used for the second electronic device to determine the third capacity of the second buffer; and the wireless network information is also used for the second electronic device to increase the third capacity of the second buffer to a fourth capacity;

[0252] The first sending module 54 is further configured to send a data packet to the second electronic device based on the first buffer having the second capacity; wherein the data packet is configured to be cached by the second electronic device in the second buffer having the fourth capacity.

[0253] In some embodiments, the first sending module 54 is used to send a data packet to the second electronic device based on the first buffer having the second capacity if a confirmation message returned by the second electronic device based on the Bluetooth configuration information and the wireless network information is received; wherein the confirmation message is used to indicate that the second electronic device supports the configuration of the Bluetooth configuration information and the wireless network information.

[0254] In some embodiments, the Bluetooth configuration information includes at least one of the following: sampling frequency, block length, number of subbands, single data packet size, bit rate, number of channels, minimum bit pool, maximum bit pool, encoding type information.

[0255] In some embodiments, the wireless network information includes: a first wireless network type and a second wireless network type; wherein the communication frequency band supported by the first wireless network type is greater than the communication frequency band supported by the second wireless network type;

[0256] The first processing module 53 is configured to determine that the level information of the first capacity is a first level if the wireless network information is the first wireless network type;

[0257] or,

[0258] The first processing module 53 is configured to determine that the level information of the first capacity is the second level if the wireless network information is the second wireless network type;

[0259] The first level represents a multiple of capacity increase, which is smaller than the second level represents a multiple of capacity increase.

[0260] In some embodiments, the wireless network information includes at least one of the following: signal strength, number of channels, number of devices, retransmission rate, and quality of service level; wherein the number of devices is the number of devices connected to and communicating with the first electronic device and / or the number of devices within a predetermined distance range;

[0261] The first processing module 53 is configured to determine that the level information of the first capacity is the third level if the signal strength is the first signal strength, the number of channels is the first number of channels, the number of devices is the first number of electronic devices, the retransmission rate is the first retransmission rate, and the quality of service level is at least one of the first quality level;

[0262] or,

[0263] The first processing module 53 is configured to determine that the level information of the first capacity is the fourth level if the signal strength is the second signal strength, the number of channels is the second number of channels, the number of devices is the second number of electronic devices, the retransmission rate is the second retransmission rate, and the service quality level is at least one of the second quality level;

[0264] Wherein, the first signal strength is greater than the second signal strength; the first channel number is greater than the second channel number; the first electronic device number is less than the second electronic device number; the first retransmission rate is less than the second retransmission rate; the quality of the first quality level is higher than the quality of the second quality level;

[0265] The third level represents a multiple of capacity increase, which is smaller than the multiple of capacity increase represented by the fourth level.

[0266] In some embodiments, the apparatus further comprises:

[0267] The first acquisition module 51 is used to acquire device capability information of the first electronic device;

[0268] The first processing module 53 is used to determine the level information for increasing the first capacity based on the device capability information of the first electronic device and the wireless network information.

[0269] In some embodiments, the first buffer may be at least one of: a buffer of a first Bluetooth module of the first electronic device, a buffer of an audio module of the first electronic device, a buffer of an audio DSP module of the first electronic device, and a buffer of a WIFI-BT module of the first electronic device.

[0270] In some embodiments, the first sending module 54 is used to send the wireless network information to at least one of the audio module, the audio DSP module and the WIFI-BT module using the first Bluetooth module;

[0271] The first processing module 53 is used for at least one of the following:

[0272] Determine, by using the first Bluetooth module based on the wireless network information, the level information of the first capacity of the first buffer of the first Bluetooth module;

[0273] Determining, by the audio module based on the wireless network information, the level information of the first capacity of the first buffer of the audio module;

[0274] determining, using the audio DSP module based on the wireless network information, the level information of the first capacity of the first buffer of the audio DSP module;

[0275] The level information of the first capacity of the first buffer of the WIFI-BT module is determined by the WIFI-BT module based on the wireless network information.

[0276] Fig. 9 An exemplary embodiment is provided to show an information processing device, the device comprising:

[0277] The second receiving module 61 is used to receive a data packet sent by the first electronic device using a first buffer having a second capacity based on a Bluetooth connection with the first electronic device; wherein the second capacity is a capacity determined by the first electronic device based on the first capacity of the first buffer and level information of the first capacity; wherein the level information is used to indicate a level of increase in the buffer capacity;

[0278] The buffer module 62 is used to cache the data packet in the second buffer having a fourth capacity; wherein the fourth capacity is a capacity determined by the second electronic device based on the third capacity of the second buffer and the level information of the third capacity.

[0279] like Fig.10 As shown, in some embodiments, the second receiving module 61 is used to receive the Bluetooth configuration information and wireless network information sent by the first electronic device based on the Bluetooth connection, wherein the wireless network information is used to indicate the communication quality of the wireless communication performed by the first electronic device;

[0280] The device comprises:

[0281] A second determining module 63, configured to determine the third capacity of the second buffer based on the Bluetooth configuration information;

[0282] The second processing module 64 is configured to determine the level information of the third capacity based on the wireless network information; and determine the fourth capacity of the second buffer based on the third capacity and the level information.

[0283] In one embodiment, the information processing device is used in the second electronic device of the above embodiment.

[0284] like Fig.10 As shown, in some embodiments, the second receiving module 61 is used to receive a data packet sent by the first electronic device;

[0285] The buffer module 62 is used to buffer the data packet in the second buffer having the fourth capacity.

[0286] In some embodiments, the apparatus further comprises:

[0287] A second sending module 65, configured to send a confirmation message to the first electronic device if the second electronic device supports the configuration of the Bluetooth configuration information and the wireless network information;

[0288] The second processing module 64 is configured to determine the third capacity of the second buffer based on the Bluetooth configuration information if the second electronic device supports the configuration of the Bluetooth configuration information;

[0289] The second processing module 64 is configured to determine level information of the third capacity if the second electronic device supports the configuration of the wireless network information.

[0290] In some embodiments, the Bluetooth configuration information includes at least one of the following: sampling frequency, block length, number of subbands, single data packet size, bit rate, number of channels, minimum bit pool, maximum bit pool, encoding type information.

[0291] In some embodiments, the wireless network information includes: a first wireless network type and a second wireless network type; wherein the communication frequency band supported by the first wireless network type is greater than the communication frequency band supported by the second wireless network type;

[0292] The second processing module 64 is configured to determine that the level information of the third capacity is the first level if the wireless network information is the first wireless network type;

[0293] or,

[0294] The second processing module 64 is configured to determine that the level information of the third capacity is the second level if the wireless network information is the second wireless network type;

[0295] The first level represents a multiple of capacity increase, which is smaller than the second level represents a multiple of capacity increase.

[0296] In some embodiments, the wireless network information includes at least one of the following: signal strength, number of channels, number of devices, retransmission rate, and quality of service level; wherein the number of devices is the number of devices connected to and communicating with the first electronic device and / or the number of devices within a predetermined distance range;

[0297] The second processing module 64 is further configured to:

[0298] If the signal strength is the first signal strength, the number of channels is the first number of channels, the number of devices is the first number of electronic devices, the retransmission rate is the first retransmission rate, and the quality of service level is at least one of the first quality level, determining that the level information of the third capacity is the third level;

[0299] If the signal strength is the second signal strength, the number of channels is the second number of channels, the number of devices is the second number of electronic devices, the retransmission rate is the second retransmission rate, and the quality of service level is at least one of the second quality level, determining that the level information of the third capacity is the fourth level;

[0300] Wherein, the first signal strength is greater than the second signal strength; the first channel number is greater than the second channel number; the first electronic device number is less than the second electronic device number; the first retransmission rate is less than the second retransmission rate; the quality of the first quality level is higher than the quality of the second quality level;

[0301] The third level represents a multiple of capacity increase, which is smaller than the multiple of capacity increase represented by the fourth level.

[0302] like Fig.10 As shown, in some embodiments, the device further includes:

[0303] A second acquisition module 66, configured to acquire device capability information of the second electronic device;

[0304] The second processing module 64 is configured to determine the level information for increasing the third capacity based on the device capability information of the second electronic device and the wireless network information.

[0305] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0306] An embodiment of the present disclosure further provides an electronic device, characterized in that it includes:

[0307] processor;

[0308] a memory for storing processor-executable instructions;

[0309] The processor is configured to implement the information processing method described in any embodiment of the present disclosure when running the executable instructions.

[0310] In one embodiment, the electronic device is the first electronic device or the second electronic device in the above embodiment.

[0311] The memory may include various types of storage media, which are non-transitory computer storage media that can continue to memorize information stored thereon after the communication device loses power.

[0312] The processor may be connected to the memory through a bus or the like, and is used to read the executable program stored in the memory, for example, to implement the following Figure 1 , 3 , at least one of the methods shown in 5-6.

[0313] The embodiments of the present disclosure further provide a computer-readable storage medium, wherein the computer-readable storage medium stores an executable program, wherein the executable program, when executed by a processor, implements the information processing method described in any embodiment of the present disclosure. Figure 1 , 3 , at least one of the methods shown in 5-6.

[0314] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0315] Fig.11 8 is a block diagram of an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0316] Reference Fig.11 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0317] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0318] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0319] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

[0320] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0321] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0322] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0323] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0324] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0325] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0326] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0327] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0328] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. An information processing method, characterized in that: The method is executed by a first electronic device and includes: Acquire Bluetooth configuration information and wireless network information; wherein the wireless network information is used to indicate the communication quality of the first electronic device performing wireless communication; Determining a first capacity of a first buffer of the first electronic device based on the Bluetooth configuration information; Based on the wireless network information, determine the level information of the first capacity; wherein the level information is used to indicate the level of increase of the buffer capacity; the wireless network information includes at least one of the following: the number of channels, the number of devices, the retransmission rate and the service quality level; wherein the number of devices is the number of devices connected to and communicating with the first electronic device and / or the number of devices within a predetermined distance range; the determining the level information of the first capacity based on the wireless network information includes: if the number of channels is the first number of channels, the number of devices is the first number of electronic devices, the retransmission rate is the first retransmission rate and the service quality level is at least one of the first quality level, then determine the level information of the first capacity to be the third level; if the number of channels is the second number of channels, the number of devices is the second number of electronic devices, the retransmission rate is the second retransmission rate and the service quality level is at least one of the second quality level, then determine the level information of the first capacity to be the fourth level; wherein the first number of channels is greater than the second number of channels; the first number of electronic devices is less than the second number of electronic devices; the first retransmission rate is less than the second retransmission rate; the quality of the first quality level is higher than the quality of the second quality level; the third level represents a multiple of capacity increase, which is less than the multiple of capacity increase represented by the fourth level; A second capacity of the first buffer is determined based on the first capacity and the level information.

2. The method according to claim 1, characterized in that The method further comprises: Based on the Bluetooth connection with the second electronic device, the Bluetooth configuration information and the wireless network information are sent to the second electronic device; wherein the Bluetooth configuration information is used for the second electronic device to determine the third capacity of the second buffer; and the wireless network information is also used for the second electronic device to increase the third capacity of the second buffer to a fourth capacity; Based on the first buffer having the second capacity, a data packet is sent to the second electronic device; wherein the data packet is used for being buffered by the second electronic device in the second buffer having the fourth capacity.

3. The method according to claim 2, characterized in that The step of sending a data packet to the second electronic device based on the first buffer having the second capacity includes: If a confirmation message is received from the second electronic device based on the Bluetooth configuration information and the wireless network information, a data packet is sent to the second electronic device based on the first buffer having the second capacity; wherein the confirmation message is used to indicate that the second electronic device supports the configuration of the Bluetooth configuration information and the wireless network information.

4. The method according to claim 1, characterized in that: The Bluetooth configuration information includes at least one of the following: sampling frequency, block length, number of subbands, single data packet size, bit rate, number of channels, minimum bit pool, maximum bit pool, and encoding type information.

5. The method according to claim 1, characterized in that: The wireless network information includes: a first wireless network type and a second wireless network type; wherein the communication frequency band supported by the first wireless network type is greater than the communication frequency band supported by the second wireless network type; The determining, based on the wireless network information, level information of the first capacity includes: If the wireless network information is the first wireless network type, determining that the level information of the first capacity is the first level; If the wireless network information is the second wireless network type, determining that the level information of the first capacity is the second level; The first level represents a multiple of capacity increase, which is smaller than the second level represents a multiple of capacity increase.

6. The method according to claim 1, characterized in that The method further comprises: Acquire device capability information of the first electronic device; The determining, based on the wireless network information, level information of the first capacity includes: The level information for increasing the first capacity is determined based on the device capability information of the first electronic device and the wireless network information.

7. The method according to claim 1, characterized in that The first buffer is at least one of a buffer of a first Bluetooth module of the first electronic device, a buffer of an audio module of the first electronic device, a buffer of an audio DSP module of the first electronic device, and a buffer of a WIFI-BT module of the first electronic device.

8. The method according to claim 7, characterized in that The method further comprises: Using the first Bluetooth module to send the wireless network information to at least one of the audio module, the audio DSP module and the WIFI-BT module; The determining, based on the wireless network information, the level information of the first capacity includes at least one of the following: Determine, by using the first Bluetooth module based on the wireless network information, the level information of the first capacity of the first buffer of the first Bluetooth module; Determining, by the audio module based on the wireless network information, the level information of the first capacity of the first buffer of the audio module; determining, using the audio DSP module based on the wireless network information, the level information of the first capacity of the first buffer of the audio DSP module; The level information of the first capacity of the first buffer of the WIFI-BT module is determined by the WIFI-BT module based on the wireless network information.

9. A communication processing method, characterized in that: The method is executed by a second electronic device and includes: Based on a Bluetooth connection with a first electronic device, a data packet sent by the first electronic device using a first buffer with a second capacity is received; wherein the second capacity is a capacity determined by the first electronic device based on the first capacity of the first buffer and the level information of the first capacity; the level information is used to indicate the level of increase in the buffer capacity; the level information of the first capacity is determined by the first electronic device based on wireless network information, wherein the wireless network information includes at least one of the following: the number of channels, the number of devices, the retransmission rate and the service quality level; wherein, if the number of channels is the first number of channels, the number of devices is the first number of electronic devices, the retransmission rate is the first retransmission rate and the service quality, etc. If the first quality level is at least one of the first quality levels, the level information of the first capacity is determined to be the third level; if the number of channels is the second number of channels, the number of devices is the second number of electronic devices, the retransmission rate is the second retransmission rate, and the service quality level is at least one of the second quality level, the level information of the first capacity is determined to be the fourth level; wherein the first number of channels is greater than the second number of channels; the first number of electronic devices is less than the second number of electronic devices; the first retransmission rate is less than the second retransmission rate; the quality of the first quality level is higher than the quality of the second quality level; the third level represents a multiple of capacity increase, which is less than the multiple of capacity increase represented by the fourth level; The data packet is cached in a second buffer having a fourth capacity; wherein the fourth capacity is a capacity determined by the second electronic device based on a third capacity of the second buffer and level information of the third capacity.

10. The method according to claim 9, characterized in that The method comprises: Based on the Bluetooth connection, receiving Bluetooth configuration information and wireless network information sent by the first electronic device, wherein the wireless network information is used to indicate the communication quality of the wireless communication performed by the first electronic device; Determining the third capacity of the second buffer based on the Bluetooth configuration information; Determining the level information of the third capacity based on the wireless network information; The fourth capacity of the second buffer is determined based on the third capacity and the level information.

11. The method according to claim 10, characterized in that The method further comprises: If the second electronic device supports the configuration of the Bluetooth configuration information and the wireless network information, sending a confirmation message to the first electronic device; The determining the third capacity of the second buffer based on the Bluetooth configuration information includes: If the second electronic device supports configuration of the Bluetooth configuration information, determining the third capacity of the second buffer based on the Bluetooth configuration information; The determining, based on the wireless network information, the level information of the third capacity includes: If the second electronic device supports the configuration of the wireless network information, the level information of the third capacity is determined.

12. An information processing device, characterized in that: Applicable to a first electronic device, comprising: A first acquisition module, used to acquire Bluetooth configuration information and wireless network information; wherein the wireless network information is used to indicate the communication quality of the first electronic device performing wireless communication; A first determining module, configured to determine a first capacity of a first buffer of the first electronic device based on the Bluetooth configuration information; a first processing module, configured to determine the level information of the first capacity based on the wireless network information; wherein the level information is used to indicate the level of increase of the buffer capacity; the wireless network information includes at least one of the following: the number of channels, the number of devices, the retransmission rate and the service quality level; wherein the number of devices is the number of devices connected to and communicating with the first electronic device and / or the number of devices within a predetermined distance range; the first processing module is specifically configured to: if the number of channels is the first number of channels, the number of devices is the first number of electronic devices, the retransmission rate is the first retransmission rate and the service quality level is at least one of the first quality level, then determine that the level information of the first capacity is the third level; if the number of channels is the second number of channels, the number of devices is the second number of electronic devices, the retransmission rate is the second retransmission rate and the service quality level is at least one of the second quality level, then determine that the level information of the first capacity is the fourth level; wherein the first number of channels is greater than the second number of channels; the first number of electronic devices is less than the second number of electronic devices; the first retransmission rate is less than the second retransmission rate; the quality of the first quality level is higher than the quality of the second quality level; the third level represents a multiple of capacity increase, which is less than the multiple of capacity increase represented by the fourth level; The first processing module is used to determine a second capacity of the first buffer based on the first capacity and the level information.

13. The device according to claim 12, characterized in that The device also includes: a first sending module, configured to send the Bluetooth configuration information and the wireless network information to the second electronic device based on the Bluetooth connection with the second electronic device; wherein the Bluetooth configuration information is also used for the second electronic device to determine the third capacity of the second buffer; and the wireless network information is also used for the second electronic device to increase the third capacity of the second buffer to a fourth capacity; The first sending module is further used to send a data packet to the second electronic device based on the first buffer having the second capacity; wherein the data packet is used for the second electronic device to cache in the second buffer having the fourth capacity.

14. The device according to claim 13, characterized in that The first sending module is used to send a data packet to the second electronic device based on the first buffer having the second capacity if a confirmation message returned by the second electronic device based on the Bluetooth configuration information and the wireless network information is received; wherein the confirmation message is used to indicate that the second electronic device supports the configuration of the Bluetooth configuration information and the wireless network information.

15. The device according to claim 12, characterized in that The device also includes: The first acquisition module is used to acquire device capability information of the first electronic device; The first processing module is used to determine the level information for increasing the first capacity based on the device capability information of the first electronic device and the wireless network information.

16. An information processing device, characterized in that: Applicable to a second electronic device, comprising: A second receiving module is used to receive a data packet sent by a first electronic device using a first buffer with a second capacity based on a Bluetooth connection with a first electronic device; wherein the second capacity is a capacity determined by the first electronic device based on the first capacity of the first buffer and the level information of the first capacity; wherein the level information is used to indicate the level of increase in the buffer capacity; the level information of the first capacity is determined by the first electronic device based on wireless network information, wherein the wireless network information includes at least one of the following: the number of channels, the number of devices, the retransmission rate and the service quality level; wherein, if the number of channels is the first number of channels, the number of devices is the first number of electronic devices, the retransmission rate is the first retransmission rate and the If the service quality level is at least one of the first quality levels, the level information of the first capacity is determined to be the third level; if the number of channels is the second number of channels, the number of devices is the second number of electronic devices, the retransmission rate is the second retransmission rate, and the service quality level is at least one of the second quality level, the level information of the first capacity is determined to be the fourth level; wherein the first number of channels is greater than the second number of channels; the first number of electronic devices is less than the second number of electronic devices; the first retransmission rate is less than the second retransmission rate; the quality of the first quality level is higher than the quality of the second quality level; the third level represents a multiple of capacity increase, which is less than the multiple of capacity increase represented by the fourth level; A buffer module is used to cache the data packet in a second buffer having a fourth capacity; wherein the fourth capacity is a capacity determined by the second electronic device based on the third capacity of the second buffer and the level information of the third capacity.

17. The device according to claim 16, characterized in that The second receiving module is used to receive the Bluetooth configuration information and wireless network information sent by the first electronic device based on the Bluetooth connection, wherein the wireless network information is used to indicate the communication quality of the wireless communication performed by the first electronic device; The device comprises: A second determining module, configured to determine the third capacity of the second buffer based on the Bluetooth configuration information; The second processing module is used to determine the level information of the third capacity based on the wireless network information; and determine the fourth capacity of the second buffer based on the third capacity and the level information.

18. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: implement the information processing method described in any one of claims 1-8 or 9-11 when running the executable instructions.

19. A computer-readable storage medium, characterized in that: The readable storage medium stores an executable program, wherein the executable program, when executed by a processor, implements the information processing method of any one of claims 1-8, or 9-11.

Citation Information

Patent Citations

  • Communication processing method, apparatus, electronic device, and storage medium

    CN109275129A