CN115696279A - Information processing method, device, electronic equipment and storage medium - Google Patents

Information processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115696279A
CN115696279A CN202110835495.XA CN202110835495A CN115696279A CN 115696279 A CN115696279 A CN 115696279A CN 202110835495 A CN202110835495 A CN 202110835495A CN 115696279 A CN115696279 A CN 115696279A
Authority
CN
China
Prior art keywords
capacity
information
electronic device
wireless network
buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110835495.XA
Other languages
Chinese (zh)
Inventor
廖小情
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110835495.XA priority Critical patent/CN115696279A/en
Publication of CN115696279A publication Critical patent/CN115696279A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the disclosure discloses an information processing method, an information processing device, user equipment and a storage medium; the information processing method is applied to first electronic equipment and comprises the following steps: acquiring Bluetooth configuration information and wireless network information; the wireless network information is used for indicating the communication quality of the first electronic equipment for wireless communication; determining a first capacity of a first buffer of the first electronic device based on the Bluetooth configuration information; determining level information of the first capacity based on the wireless network information, wherein the level information indicates a level of buffer increase; determining a second capacity of the first buffer based on the first capacity and the rank information. The method of the embodiment of the disclosure can improve the capacity of the first buffer of the first electronic device, that is, can improve the buffer space of the buffer data, thereby being beneficial to reducing delay, reducing blocking and the like.

Description

Information processing method, information processing device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to an information processing method and apparatus, an electronic device, and a storage medium.
Background
With the continuous development of wireless technology, electronic devices, such as mobile phones, gradually change wired earphones into wireless earphones; such as wireless bluetooth headsets, are becoming increasingly popular with users. When the electronic device establishes a bluetooth connection with another bluetooth device, for example, when the mobile phone is connected with a bluetooth headset, if the bluetooth headset is used to receive audio data, the user expects that the interface display content on the mobile phone and the sound heard by the bluetooth headset are synchronized. But subject to some limitations specific to the transmission of a bluetooth device (e.g., a handset or bluetooth headset) or the design of the bluetooth device itself, the actual audio data is transmitted from the handset to the bluetooth headset with some delay. For example, a user plays a game through a mobile phone, and the user listens to the sound on the mobile phone through a Bluetooth headset; when a user starts a gun on a mobile phone interface, the user needs to wait for a certain time to hear the sound of the gun in the Bluetooth headset.
Currently, in an application scenario of bluetooth connection for bluetooth devices, some low-latency schemes are provided to shorten the latency of audio data between bluetooth devices. However, in some environments where wireless network connection and bluetooth connection coexist, because bluetooth devices and the like need to download data at high speed in a wireless network or are interfered by the wireless network environment, a low-latency scheme is not ideal; such as delay of audio data, stutter of sound, and/or distortion of sound.
Disclosure of Invention
The disclosure provides an information processing method, an information processing device, user equipment and a storage medium.
According to a first aspect of the present disclosure, there is provided an information processing method, performed by a first electronic device, the method comprising:
acquiring Bluetooth configuration information and wireless network information; the wireless network information is used for indicating the communication quality of the first electronic equipment for wireless communication;
determining a first capacity of a first buffer of the first electronic device based on the Bluetooth configuration information;
determining level information of the first capacity based on the wireless network information; wherein the level information is used to indicate a level of buffer capacity increase;
determining a second capacity of the first buffer based on the first capacity and the level information.
According to a second aspect of the present disclosure, there is provided an information processing method, performed by a second electronic device, including:
receiving a data packet sent by a first electronic device by utilizing a first buffer with a second capacity based on Bluetooth connection with the first electronic device; wherein the second capacity is a capacity determined by the first electronic device based on a first capacity of the first buffer and level information of the first capacity; wherein the level information is used to indicate a level of buffer capacity increase;
buffering 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.
According to a third aspect of the embodiments of the present disclosure, there is provided an information processing apparatus applied to a first electronic device, including:
the first acquisition module is used for acquiring Bluetooth configuration information and wireless network information; the wireless network information is used for indicating the communication quality of the first electronic equipment for wireless communication;
a first determining module for determining 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 level information of the first capacity based on the wireless network information; wherein the level information is used to indicate a level of buffer capacity increase;
the first processing module is configured to determine a second capacity of the first buffer based on the first capacity and the level information.
According to a fourth aspect of the present disclosure, there is provided an information processing apparatus applied to a second electronic device, including:
the second receiving module is used for receiving a data packet sent by the first electronic device by utilizing a first buffer with a second capacity based on Bluetooth connection with the first electronic device; wherein the second capacity is a capacity determined by the first electronic device based on a first capacity of the first buffer and level information of the first capacity; wherein the level information is used to indicate a level of buffer capacity increase;
a buffer module for buffering 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.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the executable instructions are executed, the information processing method according to any embodiment of the disclosure is realized.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing an executable program, wherein the executable program, when executed by a processor, implements the information processing method according to any of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, the bluetooth configuration information and the wireless network information are acquired through the first electronic device; the wireless network information is used for indicating the communication quality of the first electronic equipment for wireless communication; determining a first capacity of a first buffer of the first electronic device based on the Bluetooth configuration information; determining level information of the first capacity based on the wireless network information; determining a second capacity of the first buffer based on the first capacity and the rank information.
In this way, the embodiment of the present disclosure may determine, based on the wireless network information, level information for increasing the first capacity of the first buffer to obtain the increased second capacity. Therefore, the embodiment of the disclosure 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 a high speed, or is influenced by the wireless network environment, more cache spaces can cache audio data and the like to be transmitted; therefore, the time delay of audio data transmission between the first electronic equipment and other equipment can be reduced, and the occurrence of the conditions of sound blockage and/or distortion can be reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
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 disclosure.
Fig. 1 is a schematic diagram illustrating an information processing method according to an example embodiment.
FIG. 2 is a block diagram illustrating a first electronic device in accordance with an example embodiment.
Fig. 3 is a schematic diagram illustrating an information processing method according to an example embodiment.
FIG. 4 is a block diagram illustrating a first electronic device and a second electronic device according to an example embodiment.
Fig. 5 is a schematic diagram illustrating an information processing method according to an example embodiment.
Fig. 6 is a schematic diagram illustrating an information processing method according to an example embodiment.
Fig. 7 is a block diagram illustrating an information processing apparatus according to an example embodiment.
Fig. 8 is a block diagram illustrating an information processing apparatus according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating an information processing apparatus according to an example embodiment.
Fig. 10 is a block diagram illustrating an information processing apparatus according to an exemplary embodiment.
FIG. 11 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like 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. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 1 is an information processing method according to an exemplary embodiment; as shown in fig. 1, the information processing method is executed by a first electronic device, and includes the following steps:
step S11: acquiring Bluetooth configuration information and wireless network information; the wireless network information is used for indicating the communication quality of the first electronic equipment for wireless communication;
step S12: determining a first capacity of a first buffer of the first electronic device based on the Bluetooth configuration information;
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 buffer capacity increase;
step S14: determining a second capacity of the first buffer based on the first capacity and the level information.
In one embodiment, the first electronic device may be a mobile device or a stationary device; for example, the first electronic device may be a mobile phone, a computer, a server, a tablet computer, a wearable device, or the like. For another example, the first electronic device may also be a device having a bluetooth module or capable of establishing a bluetooth connection with another device.
In one embodiment, the bluetooth configuration information may include, but is not limited to, at least one of: sampling Frequency (Sampling Frequency), block Length (Block Length), number of Subbands (Subbands), size of individual packet, bit rate, number of channels, minimum bit pool (Minimum B), maximum bit pool, coding type information.
The sampling frequency here may refer to the encoded sampling frequency of the first electronic device; for example, may refer to the number of samples of the discrete signal that the first electronic device extracts from the continuous audio signal per unit time. The sampling frequency may be 16KHZ, 32KHZ, 48KHZ, or the like.
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 sub-bands. 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 a plurality of subbands, and one subband is divided into a plurality of blocks; the block length refers to the bit size of the block.
The single packet size herein may refer to a bit size of one packet determined by the first electronic device. The bit rate here may refer to the number of bits of the data packet transmitted by the first electronic device per unit time.
The minimum bit pool herein may refer to a minimum value in the bit pool in the first electronic device; for example, the bit pool ranges from "2 to 250", the minimum bit pool may be "2". The maximum bitpool herein may refer to a maximum value of a bitpool in the first electronic device; for example, the range of the bitpool is "2 to 250", the maximum bitpool may be "250".
The encoding type information herein may refer to information of a type in which data is bluetooth encoded. For example, the encoding type information includes, but is not limited to: information indicating a child coding (SBC) type, information indicating a Low-Latency Audio Code (LLAC) type, or information indicating an aptX type. The SBC here is an encoding format mandatory by the bluetooth audio transport protocol; LLAC here is an optimized low-delay coding algorithm; herein aptX is a digital audio compression algorithm. Of course, the encoding type information may also be any bluetooth encoding type information, for example, information indicating Advanced Audio Coding (AAC) type; and are not intended to be limiting herein.
In another embodiment, the bluetooth configuration information may include, but is not limited to, at least one of: low delay mode parameters, bit rate, single packet size, and audio bit depth. The low latency mode parameter herein is a low latency mode parameter such as an SBC coding type, an ACC coding type, or an aptX coding type. The low latency mode parameters herein include, but are not limited to, at least one of: sampling frequency, block length, number of subbands, number of channels, minimum bit pool, maximum bit pool. The audio bit depth herein refers to a capacity required to store one audio data; for example, the audio bit depth refers to the number of bits or bytes required to store one audio data.
In one embodiment, the wireless network information includes: a first wireless network type and a second wireless network type; wherein the supported communication frequency band of the first wireless network type is greater than the supported communication frequency band of the second wireless network type. Illustratively, the first wireless network type is: WIFI 5G; the second wireless network type is: WIFI 2.4G; the WIFI 5G means that a communication frequency band supported by the network is 5GHZ, and the WIFI 2.4GHZ means that a 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 may be other frequency bands, and are not limited herein.
In one embodiment, the wireless network information may further include: a third wireless network type without a WIFI connection.
In one embodiment, the wireless network information includes, but is not limited to, at least one of: signal strength, channel number, equipment number, retransmission rate and quality of service level; the number of the devices is the number of the devices which are connected and communicated with the first electronic device and/or the number of the devices in a preset distance range.
The signal strength here may be the strength of the at least one channel received signal of the first electronic device, or the mean value of the strength of the received signal of the at least one signal received signal; and so on.
The retransmission rate here may be a probability that the first electronic device needs to repeatedly transmit the data packet. In one embodiment, the retransmission rate is a probability that the first electronic device needs to repeatedly transmit data packets within a predetermined time.
Here, the quality of service level is used to characterize the quality of data transmitted when the first electronic device is in a wireless network. In one embodiment, the quality of service classes include, but are not limited to, at least one of: a first quality level, a second quality level, a third quality level, \8230, and an nth quality level. The quality of the first quality level is higher than that of the second quality level, and the quality of the second quality level is higher than that of the third quality level; and so on; the quality of the Nth-1 quality class is higher than that of the Nth quality class; wherein N is an integer greater than 1.
The predetermined distance here may be less than or equal to a 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 the devices is the number of the devices for connecting and communicating with the first electronic device and the number of the devices in the preset distance range, the number of the devices is equal to the number of the devices for connecting and communicating with the first electronic device plus the number of the devices of the target device in the preset distance range, and the number of the devices for connecting and communicating with the first electronic device in the preset distance range is subtracted from the number of all the electronic devices in the preset distance range by the target device.
In one embodiment, the rank information may be used to characterize the multiple of buffer size increase. For example, the rank information may be used to characterize a multiple of the first capacity increase of the first buffer. For example, if the first capacity is B and the capacity is increased by 0.2, the first capacity is considered to be increased by 0.2; the increased first capacity may be: 1.2 XB. Here, the factor of increasing the characterization capacity in the rank information may be a real number greater than 0. The increased first capacity here is the second capacity.
In another embodiment, the rank information may be used to characterize multiples of the buffer capacity. For example, the rank 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, the first capacity is considered to be increased by 1 time; the increased first capacity is: 2 XB. The multiple of the characterization capacity in the rank information herein may be an integer greater than or equal to 1.
Illustratively, the rating information includes, but is not limited to: a first level or a second level. Here, the first level may be a level of a first multiple, and the second level may be a level of a second multiple; wherein the first multiple is less than the second multiple. For example, the first multiple may be 2 times the first capacity, and the second multiple may be 3 times the first capacity; as another example, the first multiple may be 1 or 2 times the first capacity, and the second multiple may be 3 or 4 times the first capacity; and so on. Both the first level and the second level here may be multiples characterizing the first capacity increase. For example, the first capacity may be B, and the first rank may be: l1 × B, the second level may be: l2 XB; wherein, L1 and L2 can be multiples of more than 0, and L1 is less than L2.
Exemplary, ranking information includes, but is not limited to: a first level, a second level, a third level, or a fourth level. Wherein the first level may be a first multiple of level, the second level may be a second multiple of level, the third level may be a third multiple of level, or the fourth level may be a fourth multiple of level; 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 first B, the first rank 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 in a predetermined range, for example, L1 may be a value from 1 to 2, L2 may be a value from 2 to 5, and L3 may be a value from 5 to 6; l4 may be a value from 6 to 9.
Here, step S14 may be: determining the second capacity of the first buffer after the capacity is increased based on the first capacity and the grade information.
In one embodiment, one implementation manner of step S14 is: determining a second capacity of the first buffer based on a product of the first capacity and a multiple of a characterizing capacity in the level information. For example, if the first capacity is B and the multiple indicated in the level information is 2 times, the second capacity of the first buffer is: 2 XB.
The embodiment of the disclosure can acquire the Bluetooth configuration information and the wireless network information through the first electronic device; determining a first capacity of a first buffer of the first electronic device based on the Bluetooth configuration information; determining level information of the first capacity based on the wireless network information; determining a second capacity of the first buffer based on the first capacity and the level information. In this way, the embodiment of the present disclosure may determine, based on the wireless network information, level information for increasing the first capacity of the first buffer to obtain the increased second capacity. Therefore, the embodiment of the disclosure 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 a high speed, or is influenced by the wireless network environment, more cache spaces can cache audio data and the like to be transmitted; therefore, the time delay of audio data transmission between the first electronic equipment and other equipment can be greatly reduced, and the occurrence of the situations of sound blockage and/or distortion and the like can be reduced.
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 Digital Signal Processing (DSP) module of the first electronic device, and a buffer of a wireless communication technology (WIFI) -Bluetooth technology (Bluetooth) module of the first electronic device.
Illustratively, as shown in fig. 2, the first electronic device includes: the system comprises 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); the first Bluetooth module, the audio DSP module and the WIFI-BT module can all comprise buffers. Here, the buffer of the first bluetooth module, the buffer of the audio DSP module, and/or the buffer of the WIFI-BT module 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 the first buffers may be determined based on step S12, and the level information of the first capacities of the first buffers may be determined based on step S13; the second capacities of the first buffers may be determined based on step S14.
For example, as shown in fig. 2, if the transmission process of the audio data is: the first electronic equipment can determine the first capacity of a first buffer of the audio module, a first buffer of the first Bluetooth module and a first buffer of the WIFI-BT. If the transmission process of the audio data is as follows: 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.
The second electronic device here may be a bluetooth headset, or a bluetooth speaker, etc.
In some embodiments, the method further comprises:
the first Bluetooth module is used for sending the wireless network information to at least one of the audio module, the audio DSP module and the WIFI-BT module;
the step S13 includes at least one of:
determining, with the first Bluetooth module, the level information of the first capacity of the first buffer of the first Bluetooth module based on the wireless network information;
determining, with the audio module, the level information of the first capacity of the first buffer of the audio module based on the wireless network information;
determining, with the audio DSP module, the level information of the first capacity of the first buffer of the audio DSP module based on the wireless network information;
determining, with the WIFI-BT module, the level information of the first capacity of the first buffer of the WIFI-BT module based on the wireless network information.
In this way, in the embodiment of the present disclosure, the first capacity of the first buffer in each module in the first electronic device, for example, the first capacity of the first buffer of each module of the audio data transmission process route, may be determined by the first electronic device based on the bluetooth configuration information. Determining the grade information of the first capacities of the first buffers and the second capacities of the first buffers with increased capacities based on the wireless network information; therefore, when the audio data are buffered in the first buffers with the second capacity, the situations of delay, blockage and the like of audio data transmission can be greatly reduced.
For example, when the first electronic device is in a wireless network environment, such as downloading data at a high speed, or is affected by the wireless network environment, more cache spaces may cache audio data to be transmitted, and the like; thereby reducing the time delay of audio data transmission between the first electronic device and another device (e.g., a second electronic device), reducing the occurrence of stutter and/or distortion of sound, and the like.
In some embodiments, the step S12 includes:
determining the first capacity of the first buffer of the first electronic device based on the low-latency mode parameter, a single data packet size, and an audio bit depth.
Exemplary, low latency mode parameters include: frame length (F _ l), number of subbands (n _ s), channel data (n _ c), block length (n _ b), and/or bitpool (b _ p). The first electronic device calculates a frame based on the number of subbands, the number of channels, the block length, and the bit poolLength. For example, for mono and binaural modes, the first electronic device calculates a frame length
Figure BDA0003176766480000091
For example, for stereo and joint stereo channel modes, the first electronic device calculates a frame length
Figure BDA0003176766480000092
Where join =1, indicating the use of a joint stereo channel mode; join =0, indicating when stereo channel mode is used. The first electronic equipment determines the number (F _ n) of frames based on the frame length, the size (H _ S) of the header of the data packet and the size (MTU) of a single data packet; e.g. number of frames
Figure BDA0003176766480000093
Where the packet header size is different for different coding types. The first electronic device calculates a 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)
Figure BDA0003176766480000094
For example, a 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 parameter, a single packet size, and an audio bit depth. When the first capacity of multiple frames is needed, the number of frames needing to be transmitted in unit time can be determined based on the bit rate; and determining the first capacity of the multiple frames according to the number of the frames and the length of the frames. Here, determining the first capacity of multiple frames according to the number of frames and the frame length may refer to: and determining the first capacity of the multiple frames according to the product of the number of the frames and the length of the frames.
For example, the first capacities 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 may all be set by
Figure BDA0003176766480000095
Determining, and the third capacity of the second buffer of the second audio module in the second electronic device may also be determined
Figure BDA0003176766480000096
And (4) determining. For example, the first capacity of the first buffers and the fourth capacity of the second buffers may be greater than or equal to B, or may be equal to a value within a predetermined range of B, or the like.
In the embodiment of the present disclosure, the first electronic device may accurately determine, based on the bluetooth configuration parameter, the first capacity of the first buffer and accurately determine the third capacity of the second buffer of the second electronic device without considering that the first electronic device is in a wireless network environment.
In some embodiments, the wireless network information comprises: a first wireless network type and a second wireless network type; wherein a supported communication frequency band of the first wireless network type is greater than a supported communication frequency band of the second wireless network type;
in some embodiments, the step S13 includes one of:
a, step a: if the wireless network information is the first wireless network type, determining that the grade information of the first capacity is a first grade;
step b: if the wireless network information is the second wireless network type, determining that the grade information of the first capacity is a second grade;
wherein, the first level representation capacity is increased by a multiple smaller than the second level representation capacity.
In one embodiment, the first wireless network type is: WIFI 5G; the second wireless network type is: WIFI 2.4G.
Exemplarily, if the first electronic device determines that the wireless network where the first electronic device is currently located is WIFI 2.4G, the current level information is determined to be a second level, wherein a multiple of a second-level representation capacity is 4 times; and if the fact that the wireless network where the wireless network is located is WIFI 5G is determined, determining that the current grade information is a first grade, wherein the multiple of the first grade representing capacity is 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 XB; if the current network of the first electronic device is WIFI 5G, the second capacity of the first buffer is 2 × B.
In one embodiment, a first identifier may be carried in a predetermined field in the bluetooth configuration information, and identifies a wireless network in which the first electronic device is located as a first wireless network type; and carrying a second identifier in a preset field in the Bluetooth configuration information, and identifying that the wireless network where the first electronic equipment is located is a second wireless network type. For example, the first identification is "01", the second identification is "10"; and so on.
In the embodiment of the disclosure, the suitable level information for increasing the multiple of the first capacity may be determined according to the type of the wireless network where the first electronic device is located. It can be understood that: because the protocols adopted by bluetooth are usually in the frequency bands from 2.402G to 2.480G, and the frequency band of 2.4G is relatively common, the frequency band around 2.4G is used by relatively more devices; therefore, if the wireless network where the first electronic device is located is WIFI 2.4G, the interference suffered by the first electronic device is large, and a buffer with a relatively large capacity is required to buffer data to reduce the data jamming as much as possible. Since the frequency band at 5G is not common, relatively few devices are used in this frequency band; therefore, if the wireless network where the first electronic device is located is WIFI 5G, the interference to the first electronic device is relatively small, and a buffer with a relatively small capacity needs to be used to reduce the data jamming as much as possible. In this way, when the first electronic device is in a wireless network of WIFI 2.4G, the first electronic device has a larger increase factor compared with the wireless network of WIFI 5G, so that the first buffer with the increased capacity can reduce delay of audio data transmission, and/or occurrence of stutter of sound.
It can be appreciated 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.
In one embodiment, the method further comprises: and if the wireless network information is the third wireless network type, determining not to increase the capacity of the first buffer. A third wireless network type herein, for characterizing that the first electronic device is not in a wireless network. A third identifier may be carried in a predetermined field of bluetooth configuration information, which indicates that the first electronic device is not in the wireless network; for example, the third flag is "00". As such, in the embodiments of the present disclosure, when the first electronic device is not in the wireless network, the first capacity of the first buffer does not need to be increased; the first electronic device is not influenced by the wireless network environment, and the delay of audio data transmission and the occurrence of the phenomenon of sound jamming can be reduced based on the first buffer with the first capacity.
In some embodiments, the wireless network information comprises at least one of: signal strength, channel number, equipment number, retransmission rate, and quality of service level; the number of the devices is the number of the devices which are connected and communicated with the first electronic device and/or the number of the devices in a preset distance range;
in some embodiments, the step S13 includes one of:
step d: if the signal strength is a first signal strength, the number of channels is a first number of channels, the number of devices is a first number of electronic devices, the retransmission rate is a first retransmission rate, and the quality of service level is at least one of a first quality level, determining that the level information of the first capacity is a third level;
step e: if the signal strength is a second signal strength, the number of channels is a second number of channels, the number of devices is a second number of electronic devices, the retransmission rate is a second retransmission rate, and the quality of service level is at least one of a second quality level, determining that the level information of the first capacity is a fourth level;
wherein the first signal strength is greater than the second signal strength; the first number of channels is greater than the second number of channels; the number of the first electronic devices is less than the number of the second 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;
and the multiple of the third-level representation capacity is smaller than the multiple of the fourth-level representation capacity.
In one embodiment, the magnitude of the signal strength is inversely proportional to the factor by which the rank information characterizes the first capacity increase. For example, if the strength of the signal received by the first electronic device is larger, it indicates 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 strength of the signal received by the first electronic device is smaller, which indicates that the wireless network environment in which the first electronic device is located is more unstable, the multiple of increasing the first capacity is larger.
For example, if the signal strength received by the first electronic device is the first signal strength, it may 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.
In one embodiment, the size of the number of channels is inversely proportional to the factor by which the rank information characterizes the increase in the first capacity. For example, if the number of channels of the wireless network in which the first electronic device is located is larger, it indicates that the wireless network environment in which the first electronic device is located is more stable, and the multiple of increasing the first capacity is smaller; if the number of channels of the wireless network where the first electronic device is located is smaller, it indicates that the environment of the wireless network where the first electronic device is located is more unstable, and the times for increasing the first capacity are larger.
For example, if the number of channels of the wireless network in which the first electronic device is located is the first number of channels, it may 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, the first electronic device can be configured to perform the first channel selection
Determining that the multiple of the first capacity is 3 times; wherein the first number of channels is greater than the second number of channels.
In one embodiment, the number of devices connected to the first electronic device is proportional to the factor by which the level information characterizes the first capacity increase. For example, if the number of devices connected to the first electronic device is smaller, the cleaner the wireless network environment where the first electronic device is located is, that is, the smaller the interference is, the smaller the multiple of increasing the first capacity is; if the number of devices connected to the first electronic device is larger, it means that the environment of the wireless network in which the first electronic device is located is less clean, that is, the interference is larger, and the factor of increasing the first capacity is larger.
For example, if the number of devices connected to the first electronic device is the first electronic device number, it may 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 number of the second electronic devices, it can be determined that the multiple of the first capacity is 3 times; wherein the number of the first electronic devices is smaller than the number of the second electronic devices.
In one embodiment, the size of the retransmission rate of the first electronic device is proportional to the factor by which the level information characterizes the first capacity increase. For example, if the retransmission rate of the first electronic device is smaller, which indicates that the wireless network environment where the first electronic device is located is more stable, the multiple of increasing the first capacity is smaller; if the larger the retransmission rate of the first electronic device is, the more unstable the environment of the wireless network in which the first electronic device is located is, the larger the multiple of increasing the first capacity is.
For example, if the retransmission rate of the first electronic device is the first retransmission rate, it may be determined that the first capacity is increased by a factor of 2; if the retransmission rate of the first electronic device is the second retransmission rate, it may be determined that the multiple of the first capacity is 3 times; wherein the first retransmission rate is less than the second retransmission rate.
In one embodiment, the level of the quality of service level of the wireless network in which the first electronic device is located is inversely proportional to the factor by which the level information characterizes the first capacity increase. For example, if the service quality level of the wireless network where the first electronic device is located is higher, it indicates that the wireless network environment where the first electronic device is located is more stable, 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 indicates that the environment of the wireless network where the first electronic device is located is more unstable, and the multiple of increasing the first capacity is larger.
For example, if the service quality level of the wireless network where the first electronic device is located is a first quality level, it may 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, determining that the multiple of the first capacity is 3 times; wherein the first quality level is higher than the second quality level.
In one embodiment, if the signal strength of the received signal of the first electronic device is higher, the number of channels of the wireless network in which the first electronic device is located is larger, the number of devices connected to the first electronic device is smaller, and/or the retransmission rate of the first electronic device is larger, it indicates that the quality of service of the wireless network in which the first electronic device is located is higher; if the signal of the received signal of the first electronic device is smaller, the number of channels of the wireless network in which the first electronic device is located is smaller, the number of devices connected to the first electronic device is larger, and/or the retransmission rate of the first electronic device is smaller, it indicates that the service quality of the wireless network in which the first electronic device is located is lower.
In the embodiment of the present disclosure, the stable and interfered degree of the wireless network environment where the first electronic device is located may be determined based on at least one of the signal strength of the received signal of the first electronic device, the number of channels of the wireless network where 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 quality of service level of the wireless network where the first electronic device is located; thereby determining a suitable large factor for increasing the first capacity based thereon. Therefore, the embodiment of the disclosure can give consideration to a wireless network environment, and determine the second capacity of the first buffer with the appropriate increased capacity, so that when the first electronic device sends audio data based on the first buffer with the second capacity, the delay of sound and the blocking condition of sound can be greatly reduced.
In some embodiments, the step S13 includes one of:
if the wireless network is the first wireless network type, determining to execute the operation of the step d and/or the step e;
and if the wireless network is the second wireless network type, determining to execute the operation of the step d and/or the step e.
For example, if the wireless network where the first electronic device is located is WIFI 5G, the first capacity of the first buffer may be increased to a first level; the first rating represents a multiple of 2 to 4 times the first capacity; if the wireless network where the first electronic device is located is WIFI 2.4G, the first capacity of the first buffer may be increased by a factor of 5 to 6.
If the wireless network where the first electronic device is located is WIFI 5G, if the signal strength received by the first electronic device is first signal strength, the number of channels of the wireless network where the first electronic device is located is first channel number, the number of devices connected with the first electronic device is first electronic device number, the retransmission rate of the first electronic device is first retransmission rate, and the service quality grade of the wireless network where the first electronic device is located is at least one of first quality grades, determining that the grade information of the first capacity is a third grade in the first grades; for example, it may be determined that the first capacity is a multiple of 2. If the signal strength received by the first electronic device is a second signal strength, the channel number of the wireless network where the first electronic device is located is a second channel number, the number of devices connected with the first electronic device is a second electronic device number, the retransmission rate of the first electronic device is a second retransmission rate, and the service quality level of the wireless network where the first electronic device is located is at least one of a second quality level, determining that the level information of the first capacity is a fourth level in the first level; for example, it may be determined that the first capacity is a multiple of 3.
If the signal intensity received by the first electronic device is first signal intensity, the number of channels of the wireless network where the first electronic device is located is first channel number, the number of devices connected with the first electronic device is first electronic device number, the retransmission rate of the first electronic device is first retransmission rate, and the service quality grade of the wireless network where the first electronic device is located is at least one of first quality grades, determining that the grade information of the first capacity is a third grade of the second grades; for example, it may be determined that the first capacity is 5 times larger. If the signal strength received by the first electronic device is a second signal strength, the channel number of the wireless network where the first electronic device is located is a second channel number, the number of devices connected with the first electronic device is a second electronic device number, the retransmission rate of the first electronic device is a second retransmission rate, and the service quality level of the wireless network where the first electronic device is located is at least one of a second quality level, determining that the level information of the first capacity is a fourth level in the second level; for example, it may be determined that the first capacity is 6 times larger.
Wherein the first signal strength is greater than the second signal strength; the first number of channels is greater than the second number of channels; the number of the first electronic devices is smaller than that of the second 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.
Thus, in the embodiment of the present disclosure, the first electronic device may determine, according to the type of the wireless network in which the first electronic device is located, to increase the multiple of the first capacity of the first buffer. Based on different wireless network types, further subdividing and increasing the multiple of the second capacity of the first buffer based on signal strength, channel quantity, equipment quantity, retransmission rate, service quality grade and the like; therefore, the method can be applied to more application scenes, and the capacity of the first buffer is increased by a proper multiple.
As shown in fig. 3, in some embodiments, the method further comprises:
step S15: based on Bluetooth connection with a second electronic device, sending the Bluetooth configuration information and the wireless network information to the second electronic device;
wherein the bluetooth configuration information is further used for the second electronic device to determine a third capacity of a second buffer; the wireless network information is further used for the second electronic device to increase a third capacity of the second buffer to a fourth capacity;
step S16: transmitting a data packet to the second electronic device based on the first buffer having the second capacity;
wherein the data packet is for buffering by the second electronic device in the second buffer having the fourth capacity.
In one embodiment, the second electronic device may be any device having a bluetooth connection function. For example, the second electronic device may be a bluetooth headset, a bluetooth speaker, or the like.
In one embodiment, the method further comprises: and establishing Bluetooth connection between the first electronic equipment and the second electronic equipment.
In one embodiment, the bluetooth connection of the first electronic device with 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: serial Port Profile (SPP), hands-free Profile (HFP), advanced Audio Distribution Profile (A2 DP).
In one embodiment, the data packet includes: data packets of audio data. For example, a packet of audio data of a gunshot in a game application, a packet of audio data of music in a music application, or a packet of voice data in a WeChat application, etc. Of course, in other embodiments, the packets may be any type of packet, including but not limited to packets that are audio data.
Here, one implementation of the step S16 is: the first electronic device determines bits of the data packet based on the second capacity, and transmits the data packet with the determined bit size to the second electronic device. For example, the bit size of one data packet may be equal to the second capacity, or the sum of the bit sizes of a plurality of data packets may be equal to the second capacity.
In one embodiment, the wireless network information is used for the second electronic device to determine the grade information of the third capacity; a product of the third capacity and a capacity multiple indicated in the rank information is used for the second electronic device to determine a fourth capacity of the second buffer. For example, a second electronic device obtains wireless network information and bluetooth configuration information, and determines a third capacity of a second buffer of the second electronic device based on the bluetooth configuration information, and determines level information of the third capacity based on the wireless network information; determining a fourth capacity of the second buffer based on the third capacity and the rank information. Here, the manner of determining the third capacity of the second buffer of the second electronic device based on the bluetooth configuration information is similar to the manner of determining the first capacity of the first buffer of the first electronic device based on the bluetooth configuration information; determining rank information for the third capacity based on the wireless network information, similar to determining rank information for the first capacity based on the wireless network information; and determining a fourth capacity of the second buffer based on the third capacity and the rank information, similar to determining a second capacity of the first buffer based on the first capacity and the rank information.
In one embodiment, the data packet may be an audio data related data packet. In an embodiment of the present disclosure, the data packet is buffered in the first electronic device based on a first buffer having a second capacity; when the data packet is transmitted to the second electronic device, the digital packet is buffered in a second buffer having a fourth capacity.
Illustratively, as shown in fig. 4, 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 comprises a second buffer (B2). And the first electronic equipment transmits the Bluetooth configuration information and the wireless network information to the second Bluetooth module of the second electronic equipment by utilizing the WIFI-BT module.
In the embodiment of the present disclosure, a first electronic device may send bluetooth configuration information and wireless network information to a second electronic device through bluetooth connection, so that the second electronic device can know information related to bluetooth configuration of the first electronic device and how good a wireless network environment the first electronic device is in (it is understood that the wireless network environment may be characterized by the wireless network information); thereby, the second electronic device can accurately determine the increased fourth capacity of the second buffer. In addition, the data packets transmitted by the first electronic device and the second electronic device can be buffered based on the increased second capacity of the first buffer and the increased fourth capacity of the second buffer, so that the delay of the data packets such as audio transmitted between the first electronic device and the second electronic device and the blocking of sound can be greatly reduced under the environments such as WIFI; therefore, the picture effect of the first electronic equipment and the sound effect of the second electronic equipment can be synchronously realized, and the user experience is further improved.
In other embodiments, the step S15 may also be: and sending the Bluetooth configuration information and the wireless network information to the second electronic equipment based on wireless communication connection. Thus, in the embodiment of the present disclosure, 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 where the first electronic device is located.
In some embodiments, the step S16 includes:
if receiving a confirmation message returned by the second electronic device based on the Bluetooth configuration information and the wireless network information, sending a data packet to the second electronic device based on the first buffer with the second capacity; wherein the confirmation message is used for indicating that the second electronic device supports the configuration of the Bluetooth configuration information and the wireless network information.
Here, the confirmation message may be returned by the second electronic device after receiving the bluetooth configuration information and the wireless network configuration information; alternatively, the confirmation information may be returned by the second device after determining the fourth capacity of the second buffer.
In the embodiment of the disclosure, when the first electronic device receives a 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. The first electronic device may then send a data packet, e.g. an audio data packet, to the second electronic device; so that the second electronic device can smoothly and synchronously play the audio data packet and the like.
In some embodiments, the method further comprises:
acquiring equipment capacity information of the first electronic equipment;
the step S13 includes:
determining the level information to increase the first capacity based on device capability information of the first electronic device and the wireless network information.
In one embodiment, the device capability information of the first electronic device includes, but is not limited to, at least one of: processing speed of the CPU, memory size, disk I/O size, and device type.
The CPU processing speed, memory size, and disk I/O size are all proportional to the factor in the rank information that characterizes the increase in the first capacity. Here, the newer generation device type, the smaller the factor of the increase of the first capacity is represented in the class information.
In one embodiment, the determining the level information to increase the first capacity based on the device capability information of the first electronic device and the wireless network information comprises:
determining the proportion of the equipment capability information as a first proportion and determining the proportion of the wireless network information as a second proportion;
determining the level information to increase the first capacity based on a product of the level information determined by the device capability information and a first weight and the level information determined by the wireless network information being a second weight.
In one embodiment, the first specific gravity is less than the second specific gravity.
Illustratively, if the first specific gravity 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 specific gravity of the wireless network information is 0.8, the multiple of the first capacity represented by the grade information determined by the wireless network information is 5 times. The multiple of the increased first capacity is: 0.2 × 2+0.8 × 5=4.4 times; the 4.4 times corresponding level information is the level information of the increased first capacity.
In the embodiment of the present disclosure, the level information of the first capacity may also be determined by combining the own device capability information of the first electronic device with the wireless network information; therefore, the increased capacity of the first buffer can be determined by considering different types of equipment and wireless network environments where the equipment is located, so that the method can be suitable for the different types of equipment in the wireless network environment, the transmission delay of audio data can be greatly reduced, and the occurrence of the blocking condition of sound can be reduced; therefore, the effect of synchronizing the picture display of the first electronic device and the audio data playing of the second electronic device is achieved, and the user experience is improved.
It is to be noted here that: the following description of an information processing method applied to the second electronic device corresponds to the above description of an information processing method applied to the first electronic device. For technical details that are not disclosed in the embodiment of the information processing method applied to the second electronic device in the present disclosure, please refer to the description of the embodiment of the information processing method applied to the first electronic device in the present disclosure, and the detailed description is not provided herein.
FIG. 5 illustrates an information processing method in accordance with an exemplary embodiment; as shown in fig. 5, the method is performed by a second electronic device, comprising:
step S21: receiving a data packet sent by a first electronic device by utilizing a first buffer with 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 a first capacity of the first buffer and level information of the first capacity; wherein the level information is used to indicate a level of buffer capacity increase;
step S22: buffering 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.
In some embodiments, the method further comprises:
receiving 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 for indicating the communication quality of the first electronic device for wireless communication;
determining the third capacity of the second buffer based on the Bluetooth configuration information;
determining the rank information of the third capacity based on the wireless network information;
determining the fourth capacity of the second buffer based on the third capacity and the rank information.
In an embodiment, the grade information may be used to characterize the multiple of capacity increase. For example, the rank information may characterize a multiple of the second capacity increase.
In another embodiment, the rating information may be used to characterize multiples of capacity. For example, the hierarchy information department characterizes a multiple of the second capacity.
In one embodiment, the bluetooth configuration information includes at least one of: sampling frequency, block length, number of subbands, single packet size, bit rate, number of channels, minimum pool of bits, maximum pool of bits, coding type information.
In the embodiment of the present disclosure, the third capacity of the second buffer is determined based on the bluetooth configuration information, which is similar to the first capacity of the first buffer determined 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 is within a predetermined capacity threshold range from the first capacity of the first buffer.
Illustratively, the third capacity of the second buffer is calculated based on the bluetooth configuration information
Figure BDA0003176766480000181
Wherein the content of the first and second substances,
Figure BDA0003176766480000182
wherein, F _ n is the number of frames, F _ l is the length of the frames, n _ s is the number of sub-bands, n _ c is the channel data, and n _ b is the length of the block; "MTU" is the single packet size, (H _ S) packet header size, and p _ S is the audio bit depth.
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.
For example, in some embodiments, the wireless network information includes: a first wireless network type and a second wireless network type; wherein a supported communication frequency band of the first wireless network type is greater than a supported communication frequency band of the second wireless network type;
the determining the rank information of the third capacity based on the wireless network information comprises one of:
if the wireless network information is the first wireless network type, determining that the grade information of the third capacity is a first grade;
if the wireless network information is the second wireless network type, determining that the grade information of the third capacity is a second grade;
wherein, the first level representation capacity is increased by a multiple smaller than the second level representation capacity.
As another example, in some embodiments, the wireless network information includes at least one of: signal strength, channel number, equipment number, retransmission rate and quality of service level; the number of the devices is the number of the devices which are connected and communicated with the first electronic device and/or the number of the devices in a preset distance range;
said determining said ranking information for said third capacity based on said wireless network information comprises one of:
if the signal strength is a first signal strength, the channel number is a first channel number, the device number is a first electronic device number, the retransmission rate is a first retransmission rate, and the service quality level is at least one of a first quality level, determining that the level information of the third capacity is a third level;
if the signal strength is a second signal strength, the number of channels is a second number of channels, the number of devices is a second number of electronic devices, the retransmission rate is a second retransmission rate, and the quality of service level is at least one of a second quality level, determining that the level information of the third capacity is a fourth level;
wherein the first signal strength is greater than the second signal strength; the first number of channels is greater than the second number of channels; the number of the first electronic devices is smaller than that of the second 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 representation capacity is increased by a factor smaller than the fourth level representation capacity.
In the embodiment of the present disclosure, the manner of determining the fourth capacity of the second buffer based on the third capacity and the level information is similar to the manner 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.
For example, in one embodiment, the determining the fourth capacity of the second buffer based on the third capacity and the rank information comprises: determining a fourth capacity of the second buffer based on a product of the third capacity and a multiple of a characterizing capacity in the rank information. Illustratively, 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 XB.
In this disclosure, the second electronic device may determine, based on the received wireless network information, level information for increasing the second capacity of the second buffer to obtain the increased fourth capacity. Therefore, the second electronic device can cache more data through the second buffer with the increased capacity, and when the first electronic device is in a wireless network environment such as high-speed downloading data or is influenced by the wireless network environment, more cache spaces can cache audio data and the like needing to be transmitted; and furthermore, the time delay of the second electronic equipment for receiving the audio data can be greatly reduced, and the occurrence of the conditions of sound blockage and/or distortion and the like can be reduced.
In some embodiments, the method further comprises:
if the second electronic equipment supports the configuration of the Bluetooth configuration information and the wireless network information, sending a confirmation message to the first electronic equipment;
the determining the third capacity of the second buffer based on the Bluetooth configuration information comprises:
if the second electronic device supports the configuration of the Bluetooth configuration information, determining the third capacity of the second buffer based on the Bluetooth configuration information;
said determining the rank information of the third capacity based on the wireless network information comprises:
and if the second electronic equipment supports the configuration of the wireless network information, determining the grade information of the third capacity.
In some embodiments, the method further comprises:
acquiring equipment capacity information of the second electronic equipment;
the determining the rank information of the third capacity based on the wireless network information comprises:
determining the level information to increase the third capacity based on the device capability information of the second electronic device and the wireless network information.
In other embodiments, the method further comprises:
acquiring equipment capacity information of the first electronic equipment;
the determining the rank information of the third capacity based on the wireless network information comprises:
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;
alternatively, the first and second electrodes may be,
determining the level information to increase the third capacity based on the device capability information of the first electronic device and the wireless network information.
Illustratively, if the first specific gravity 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 proportion of the equipment capacity information of the second electronic equipment is 0.2, and the multiple of the third capacity represented by the grade information determined by the equipment capacity information of the second electronic equipment is 2 times; and if the second specific gravity of the wireless network information is 0.6, the multiple of the third capacity represented by the grade information determined by the wireless network information is 5 times. The increased third capacity is multiplied by: 0.2 × 2+0.6 × 5=3.8 times; the 3.8 times corresponding rank information is the rank information of the increased third capacity.
In this disclosure, the level information of the third capacity may also be determined by combining the device capability information of the first electronic device and/or the device capability information of the second electronic device with the wireless network information; therefore, the increased capacity of the second buffer can be determined by considering different types of equipment and wireless network environments where the equipment is located, so that the method can be suitable for the different types of equipment in the wireless network environment, the transmission delay of audio data can be greatly reduced, and the occurrence of the blocking condition of sound can be reduced; therefore, the effect of synchronizing the picture display of the first electronic device and the audio data playing of the second electronic device is achieved, and the user experience is improved.
One specific example is provided below in connection with any of the embodiments described above:
fig. 6 is a diagram illustrating an information processing method according to an exemplary embodiment, applied to a bluetooth communication processing system including a first electronic device and a second electronic device. Referring to fig. 6 and 6, the method includes the following steps:
step S401: establishing a Bluetooth connection;
in an optional embodiment, the first electronic device is paired with a second electronic device to establish a bluetooth connection between the first electronic device and the second electronic device.
Step S402: starting a game application program;
in an alternative embodiment, the first electronic device launches a gaming application with a foreground gaming application module (21).
Step S403: starting a low delay mode;
in an alternative embodiment, the first electronic device turns on a low latency mode with a first bluetooth module (23); and acquiring Bluetooth configuration information in a low-delay mode, acquiring wireless network parameters and sending the wireless network parameters to the WIFI-BT module.
Step S404: the Bluetooth configuration information and the wireless network information are sent to the WIFI-BT module;
in an optional embodiment, the first electronic device sends the bluetooth configuration information and the wireless network parameters to the WIFI-BT module by using the first bluetooth module.
Step S405: sending the Bluetooth configuration information and the wireless network information to second electronic equipment;
in an optional embodiment, the first electronic device sends the bluetooth configuration information and the wireless network information to a second electronic device by using the WIFI-BT module.
Step S406: if the Bluetooth configuration information and the wireless network information are determined to be supported, determining a third capacity of a second buffer of the second electronic device based on the Bluetooth configuration information, and determining grade information of the third capacity based on the wireless network information; determining a fourth capacity of the second buffer based on the third capacity and the level information; determining a confirmation message based on the Bluetooth configuration information and the wireless network information;
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.
In an optional embodiment, the second electronic device receives the bluetooth configuration information and the wireless network information by using a second bluetooth module (26); if the second electronic equipment determines that the Bluetooth configuration information and the wireless network information are supported, determining a third capacity of a second buffer (B2) of the second electronic equipment based on the Bluetooth configuration information, and determining grade information of the third capacity based on the wireless network information; and determining a fourth capacity of the second buffer based on the third capacity and the rank information.
In an optional embodiment, after determining that the configuration of the bluetooth configuration information and the wireless network information is supported, the second electronic device sends a confirmation message to the first electronic device.
Step S407: receiving a confirmation message;
in an optional embodiment, the first electronic device receives, by using the WIFI-BT module, a confirmation message sent by the second electronic device, where 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.
Step S408: sending the confirmation message to a first Bluetooth module;
in an optional embodiment, the first electronic device sends a confirmation message to the first bluetooth module by using the WIFI-BT module.
Step S409: if the confirmation message is received, determining the first capacity of a first buffer based on the Bluetooth configuration information, and determining the grade information of the first capacity based on the wireless network information; determining a second capacity of the first buffer based on the first capacity and the level information;
in an optional embodiment, if the first bluetooth module of the first electronic device receives an acknowledgement message, determining a first capacity of a first buffer (B12) of the first bluetooth module based on bluetooth configuration information, and determining level information of the first capacity based on the wireless network information; determining a second capacity of the first buffer (B12) based on the first capacity and the level information.
Step S410: sending the Bluetooth configuration information and the wireless network information to an audio module;
in an optional embodiment, the first electronic device sends the bluetooth configuration information and the wireless network information to an audio module (22) by using the first bluetooth module.
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; determining a second capacity of the first buffer based on the first capacity and the level information;
in an optional embodiment, the first electronic device determines a first capacity of a first buffer (B11) of the audio module based on bluetooth configuration information and level information of the first capacity based on the wireless network information, using the audio module; determining a second capacity of the first buffer (B11) based on the first capacity and the rank information.
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; determining a second capacity of the first buffer based on the first capacity and the rank information;
in an optional embodiment, the first electronic device determines, with the WIFI-BT module, a first capacity of a first buffer (B14) of the WIFI-BT based on bluetooth configuration information, and determines level information of the first capacity based on the wireless network information; determining a second capacity of the first buffer (B14) based on the first capacity and the rank information.
Step S413: sending the Bluetooth configuration information and the wireless network information to an audio DSP module;
in an optional embodiment, the first electronic device sends the bluetooth configuration information and the wireless network information to an audio DSP module (24) using a first bluetooth module.
Step S414: 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; determining a second capacity of the first buffer based on the first capacity and the level information;
in an optional embodiment, the first electronic device determines a first capacity of a first buffer (B13) of the audio DSP module based on bluetooth configuration information and level information of the first capacity based on the wireless network information, using the audio DSP module; determining a second capacity of the first buffer (B13) based on the first capacity and the level information.
Step S415: and sending the data packet to a second electronic device.
In an optional embodiment, the first electronic device sends the data packet to the second electronic device by using the WIFI-BT module.
In an optional embodiment, the first electronic device sends the data packet to the audio module by using a foreground game application module; the first electronic device sends the data packet to a first Bluetooth module by using an audio module; the first electronic equipment transmits the data packet to the WIFI-BT module by using the first Bluetooth module; and the first electronic equipment transmits the data packet to second electronic equipment by utilizing the WIFI-BT module.
In another optional embodiment, the first electronic device sends the data packet to the audio module by using the foreground game application module; the first electronic equipment sends the data packet to an audio DSP module by using an audio module; the first electronic equipment transmits the data packet to the WIFI-BT module by using the audio DSP module; and the first electronic equipment transmits the data packet to second electronic equipment by utilizing the WIFI-BT module.
In the embodiment of the disclosure, the first electronic device may determine, based on the bluetooth configuration information and the wireless network information, a second capacity of the first buffer of each module in the first electronic device after the capacity is increased; and the first electronic device may send the bluetooth configuration information and the wireless network information to the second electronic device, so that the second electronic device may determine, based on the bluetooth configuration information and the wireless network information, a fourth capacity of the second buffer of the second electronic device after the capacity is increased. In this way, when the first electronic device transmits a packet to the second electronic device, for example, when transmitting a packet of audio data, the audio data may be buffered by the first buffer having the increased capacity and the second buffer having the increased capacity; therefore, the transmission delay of data packets of audio data and the like between the first electronic device and the second electronic device can be greatly reduced, and the blockage of sound can be reduced. In addition, the method and the device for determining the capacity of the first buffer and the second buffer are suitable for the wireless network environment, and the wireless network environment where the first electronic device is located is considered; therefore, the embodiment of the disclosure can also reduce the delay of audio data transmission and the blockage of sound on the premise of ensuring the throughput of wireless network data transmission; and further, the picture content played by the first electronic equipment and the audio data played by the first electronic equipment are synchronized. For example, a picture of playing a rush sound in a game on a first electronic device such as a mobile phone is synchronized with a second electronic device such as a bluetooth headset playing the voice of the gunshot sound. Thus, the user experience can be improved.
Fig. 7 provides an information processing apparatus shown in an exemplary embodiment, the apparatus including:
a first obtaining module 51, configured to obtain bluetooth configuration information and wireless network information; the wireless network information is used for indicating the communication quality of the first electronic equipment for wireless communication;
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;
a first processing module 53, configured to determine, based on the wireless network information, level information of the first capacity; wherein the level information is used to indicate a level of buffer capacity increase;
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.
In one embodiment, the information processing apparatus is used in the first electronic device of the above embodiment.
As shown in fig. 8, in some embodiments, the apparatus further comprises:
a first sending module 54, configured to send the bluetooth configuration information and the wireless network information to a second electronic device based on bluetooth connection with the second electronic device; wherein the bluetooth configuration information is further used for the second electronic device to determine a third capacity of a second buffer; the wireless network information is further used for the second electronic device to increase the third capacity of the second buffer to a fourth capacity;
the first sending module 54 is further configured to send a data packet to the second electronic device based on the first buffer with the second capacity; wherein the data packet is for buffering by the second electronic device in the second buffer having the fourth capacity.
In some embodiments, the first sending module 54 is configured to send a data packet to the second electronic device based on the first buffer with the second capacity if an acknowledgement 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 for indicating that the second electronic device supports the configuration of the Bluetooth configuration information and the wireless network information.
In some embodiments, the bluetooth configuration information comprises at least one of: sampling frequency, block length, number of subbands, single packet size, bit rate, number of channels, minimum pool of bits, maximum pool of bits, coding type information.
In some embodiments, the wireless network information comprises: a first wireless network type and a second wireless network type; wherein a supported communication frequency band of the first wireless network type is greater than a supported communication frequency band of the second wireless network type;
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;
alternatively, the first and second electrodes may be,
the first processing module 53 is configured to determine that the level information of the first capacity is a second level if the wireless network information is the second wireless network type;
wherein the first level representation capacity is increased by a factor smaller than the second level representation capacity.
In some embodiments, the wireless network information comprises at least one of: signal strength, channel number, equipment number, retransmission rate, and quality of service level; the number of the devices is the number of the devices which are connected and communicated with the first electronic device and/or the number of the devices in a preset distance range;
the first processing module 53 is configured to determine that the level information of the first capacity is a third level if the signal strength is a first signal strength, the number of channels is a first number of channels, the number of devices is a first number of electronic devices, the retransmission rate is a first retransmission rate, and the quality of service level is a first quality level;
alternatively, the first and second liquid crystal display panels may be,
the first processing module 53 is configured to determine that the level information of the first capacity is a fourth level if the signal strength is a second signal strength, the channel number is a second channel number, the device number is a second electronic device number, the retransmission rate is a second retransmission rate, and the service quality level is at least one of a second quality level;
wherein the first signal strength is greater than the second signal strength; the first number of channels is greater than the second number of channels; the number of the first electronic devices is less than the number of the second 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 representation capacity is increased by a factor smaller than the fourth level representation capacity.
In some embodiments, the apparatus further comprises:
the first obtaining module 51 is configured to obtain device capability information of the first electronic device;
the first processing module 53 is configured 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.
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 DSP module of the first electronic device, and a buffer of a WIFI-BT module of the first electronic device.
In some embodiments, the first sending module 54 is configured to send the wireless network information to at least one of the audio module, the audio DSP module, and the WIFI-BT module by using the first bluetooth module;
the first processing module 53 is configured to at least one of:
determining, with the first Bluetooth module, the level information of the first capacity of the first buffer of the first Bluetooth module based on the wireless network information;
determining, with the audio module, the level information of the first capacity of the first buffer of the audio module based on the wireless network information;
determining, with the audio DSP module, the level information of the first capacity of the first buffer of the audio DSP module based on the wireless network information;
determining, with the WIFI-BT module, the level information of the first capacity of the first buffer of the WIFI-BT module based on the wireless network information.
Fig. 9 provides an information processing apparatus shown in an exemplary embodiment, the apparatus including:
a second receiving module 61, configured to receive, based on a bluetooth connection with a first electronic device, a data packet sent by the first electronic device by using a first buffer with a second capacity; wherein the second capacity is a capacity determined by the first electronic device based on a first capacity of the first buffer and level information of the first capacity; wherein the level information is used to indicate a level of buffer capacity increase;
a buffer module 62, configured to buffer the data packet in the second buffer with 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.
As shown in fig. 10, in some embodiments, the second receiving module 61 is configured to receive, based on the bluetooth connection, bluetooth configuration information and wireless network information sent by the first electronic device, where the wireless network information is used to indicate communication quality of wireless communication performed by the first electronic device;
the device comprises:
a second determining module 63, configured to determine the third capacity of the second buffer based on the bluetooth configuration information;
a second processing module 64, configured to determine the rank information of the third capacity based on the wireless network information; determining the fourth capacity of the second buffer based on the third capacity and the rank information.
In one embodiment, the information processing apparatus is used in the second electronic device of the above-described embodiment.
As shown in fig. 10, in some embodiments, the second receiving module 61 is configured to receive a data packet sent by the first electronic device;
a buffering module 62, configured to buffer the data packet in the second buffer with the fourth capacity.
In some embodiments, the apparatus further comprises:
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;
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;
the second processing module 64 is configured to determine the level information of the third capacity if the second electronic device supports the configuration of the wireless network information.
In some embodiments, the bluetooth configuration information comprises at least one of: sampling frequency, block length, number of subbands, single packet size, bit rate, number of channels, minimum pool of bits, maximum pool of bits, coding type information.
In some embodiments, the wireless network information comprises: a first wireless network type and a second wireless network type; wherein a supported communication frequency band of the first wireless network type is greater than a supported communication frequency band of the second wireless network type;
the second processing module 64 is configured to determine that the level information of the third capacity is a first level if the wireless network information is the first wireless network type;
alternatively, the first and second electrodes may be,
the second processing module 64 is configured to determine that the level information of the third capacity is a second level if the wireless network information is the second wireless network type;
wherein, the first level representation capacity is increased by a multiple smaller than the second level representation capacity.
In some embodiments, the wireless network information comprises at least one of: signal strength, channel number, equipment number, retransmission rate and quality of service level; the number of the devices is the number of the devices which are connected and communicated with the first electronic device and/or the number of the devices in a preset distance range;
the second processing module 64 is further configured to at least one of:
if the signal strength is a first signal strength, the number of channels is a first number of channels, the number of devices is a first number of electronic devices, the retransmission rate is a first retransmission rate, and the service quality level is at least one of a first quality level, determining that the level information of the third capacity is a third level;
if the signal strength is a second signal strength, the number of channels is a second number of channels, the number of devices is a second number of electronic devices, the retransmission rate is a second retransmission rate, and the quality of service level is at least one of a second quality level, determining that the level information of the third capacity is a fourth level;
wherein the first signal strength is greater than the second signal strength; the first number of channels is greater than the second number of channels; the number of the first electronic devices is less than the number of the second 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 representation capacity is increased by a factor smaller than the fourth level representation capacity.
As shown in fig. 10, in some embodiments, the apparatus further comprises:
a second obtaining module 66, configured to obtain device capability information of the second electronic device;
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.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An embodiment of the present disclosure further provides an electronic device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the executable instructions are executed, the information processing method according to any embodiment of the disclosure is realized.
In one embodiment, the electronic device is the first electronic device or the second electronic device of the above embodiments.
The memory may include various types of storage media, which are non-transitory computer storage media capable of continuing to remember the information stored thereon after a communication device has been powered down.
The processor may be connected to the memory via a bus or the like for reading the executable program stored on the memory, e.g. for implementing at least one of the methods as shown in fig. 1, 3, 5-6.
Embodiments of the present disclosure also provide a computer-readable storage medium storing an executable program, wherein the executable program, when executed by a processor, implements the information processing method according to any of the embodiments of the present disclosure. For example, at least one of the methods shown in fig. 1, 3, 5-6 is implemented.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 11 is a block diagram illustrating an electronic device 800 in accordance with an example 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, an exercise device, a personal digital assistant, and the like.
Referring to fig. 11, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communications component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices 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 or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a 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 an input signal from a 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 boundary of a 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 facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 814 may also include a light 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 acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may 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 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
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, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements 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 invention is limited only by the appended claims.

Claims (20)

1. An information processing method, performed by a first electronic device, comprising:
acquiring Bluetooth configuration information and wireless network information; the wireless network information is used for indicating the communication quality of the first electronic equipment for wireless communication;
determining a first capacity of a first buffer of the first electronic device based on the Bluetooth configuration information;
determining level information of the first capacity based on the wireless network information; wherein the level information is used to indicate a level of buffer capacity increase;
determining a second capacity of the first buffer based on the first capacity and the level information.
2. The method of claim 1, further comprising:
based on Bluetooth connection with a second electronic device, sending the Bluetooth configuration information and the wireless network information to the second electronic device; wherein the bluetooth configuration information is used for the second electronic device to determine a third capacity of a second buffer; the wireless network information is further used for the second electronic device to increase the third capacity of the second buffer to a fourth capacity;
transmitting a data packet to the second electronic device based on the first buffer having the second capacity; wherein the data packet is for buffering by the second electronic device in the second buffer having the fourth capacity.
3. The method of claim 2, wherein the sending a data packet to the second electronic device based on the first buffer having the second capacity comprises:
if a confirmation message returned by the second electronic device based on the Bluetooth configuration information and the wireless network information is received, sending a data packet to the second electronic device based on the first buffer with the second capacity; wherein the confirmation message is used for indicating that the second electronic device supports the configuration of the Bluetooth configuration information and the wireless network information.
4. The method of claim 1, wherein the Bluetooth configuration information comprises at least one of: sampling frequency, block length, number of subbands, single packet size, bit rate, number of channels, minimum pool of bits, maximum pool of bits, coding type information.
5. The method of claim 1, wherein the wireless network information comprises: a first wireless network type and a second wireless network type; wherein a supported communication frequency band of the first wireless network type is greater than a supported communication frequency band of the second wireless network type;
the determining level information of the first capacity based on the wireless network information includes one of:
if the wireless network information is the first wireless network type, determining that the grade information of the first capacity is a first grade;
if the wireless network information is the second wireless network type, determining that the grade information of the first capacity is a second grade;
wherein the first level representation capacity is increased by a factor smaller than the second level representation capacity.
6. The method of claim 1, wherein the wireless network information comprises at least one of: signal strength, channel number, equipment number, retransmission rate, and quality of service level; the number of the devices is the number of the devices which are connected and communicated with the first electronic device and/or the number of the devices in a preset distance range;
the determining level information of the first capacity based on the wireless network information includes one of:
if the signal strength is a first signal strength, the number of channels is a first number of channels, the number of devices is a first number of electronic devices, the retransmission rate is a first retransmission rate, and the quality of service level is at least one of a first quality level, determining that the level information of the first capacity is a third level;
if the signal strength is at least one of a second signal strength, the number of channels is a second number of channels, the number of devices is a second number of electronic devices, the retransmission rate is a second retransmission rate, and the quality of service class is a second quality class, determining that the class information of the first capacity is a fourth class;
wherein the first signal strength is greater than the second signal strength; the first number of channels is greater than the second number of channels; the number of the first electronic devices is less than the number of the second 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 representation capacity is increased by a factor smaller than the fourth level representation capacity.
7. The method of claim 1, further comprising:
acquiring equipment capacity information of the first electronic equipment;
the determining level information of the first capacity based on the wireless network information includes:
determining the level information to increase the first capacity based on device capability information of the first electronic device and the wireless network information.
8. The method of claim 1,
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 DSP module of the first electronic device, and a buffer of a WIFI-BT module of the first electronic device.
9. The method of claim 8, further comprising:
the first Bluetooth module is used for sending the wireless network information to at least one of the audio module, the audio DSP module and the WIFI-BT module;
the determining level information of the first capacity based on the wireless network information includes at least one of:
determining, with the first Bluetooth module, the level information of the first capacity of the first buffer of the first Bluetooth module based on the wireless network information;
determining, with the audio module, the level information of the first capacity of the first buffer of the audio module based on the wireless network information;
determining, with the audio DSP module, the level information of the first capacity of the first buffer of the audio DSP module based on the wireless network information;
determining, with the WIFI-BT module, the level information of the first capacity of the first buffer of the WIFI-BT module based on the wireless network information.
10. A communication processing method, performed by a second electronic device, comprising:
receiving a data packet sent by a first electronic device by utilizing a first buffer with 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 a first capacity of the first buffer and level information of the first capacity; the level information is used for indicating the level of buffer capacity increase;
buffering 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 a third capacity of the second buffer and level information of the third capacity.
11. The method of claim 10, wherein the method comprises:
receiving Bluetooth configuration information and wireless network information sent by the first electronic equipment based on the Bluetooth connection, wherein the wireless network information is used for indicating the communication quality of the first electronic equipment for wireless communication;
determining the third capacity of the second buffer based on the Bluetooth configuration information;
determining the rank information of the third capacity based on the wireless network information;
determining the fourth capacity of the second buffer based on the third capacity and the rank information.
12. The method of claim 11, further comprising:
if the second electronic equipment supports the configuration of the Bluetooth configuration information and the wireless network information, sending a confirmation message to the first electronic equipment;
said determining the third capacity of the second buffer based on the Bluetooth configuration information comprises:
if the second electronic device supports the configuration of the bluetooth configuration information, determining the third capacity of the second buffer based on the bluetooth configuration information;
the determining the rank information of the third capacity based on the wireless network information comprises:
and if the second electronic equipment supports the configuration of the wireless network information, determining the grade information of the third capacity.
13. An information processing apparatus, applied to a first electronic device, comprising:
the first acquisition module is used for acquiring Bluetooth configuration information and wireless network information; the wireless network information is used for indicating the communication quality of the first electronic equipment for wireless communication;
a first determining module for determining 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 level information of the first capacity based on the wireless network information; wherein the level information is used to indicate a level of buffer capacity increase;
the first processing module is configured to determine a second capacity of the first buffer based on the first capacity and the level information.
14. The apparatus of claim 13, further comprising:
the first sending module is used for sending the Bluetooth configuration information and the wireless network information to a second electronic device based on Bluetooth connection with the second electronic device; wherein the bluetooth configuration information is further used for the second electronic device to determine a third capacity of a second buffer; the wireless network information is further used for the second electronic device to increase a third capacity of the second buffer to a fourth capacity;
the first sending module is further configured to send a data packet to the second electronic device based on the first buffer with the second capacity; wherein the data packet is for buffering by the second electronic device in the second buffer having the fourth capacity.
15. The apparatus of claim 14,
the first sending module is configured to send a data packet to the second electronic device based on the first buffer with 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 for indicating that the second electronic device supports the configuration of the Bluetooth configuration information and the wireless network information.
16. The apparatus of claim 13, further comprising:
the first obtaining module is used for obtaining the equipment capability information of the first electronic equipment;
the first processing module is configured 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.
17. An information processing apparatus, applied to a second electronic device, comprising:
the second receiving module is used for receiving a data packet sent by the first electronic device by utilizing a first buffer with a second capacity based on Bluetooth connection with the first electronic device; wherein the second capacity is a capacity determined by the first electronic device based on a first capacity of the first buffer and level information of the first capacity; wherein the level information is used to indicate a level of buffer capacity increase;
a buffer module for buffering 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.
18. The apparatus of claim 17,
the second receiving module is configured to receive, based on the bluetooth connection, bluetooth configuration information and wireless network information sent by the first electronic device, where the wireless network information is used to indicate communication quality of wireless communication performed by the first electronic device;
the device comprises:
a second determining module to determine the third capacity of the second buffer based on the bluetooth configuration information;
a second processing module for determining the level information of the third capacity based on the wireless network information; determining the fourth capacity of the second buffer based on the third capacity and the rank information.
19. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: for implementing the information processing method of any one of claims 1-9, or 10-12 when executing the executable instructions.
20. A computer-readable storage medium, characterized in that the computer-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 to 9, or 10 to 12.
CN202110835495.XA 2021-07-23 2021-07-23 Information processing method, device, electronic equipment and storage medium Pending CN115696279A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110835495.XA CN115696279A (en) 2021-07-23 2021-07-23 Information processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110835495.XA CN115696279A (en) 2021-07-23 2021-07-23 Information processing method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115696279A true CN115696279A (en) 2023-02-03

Family

ID=85045107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110835495.XA Pending CN115696279A (en) 2021-07-23 2021-07-23 Information processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115696279A (en)

Similar Documents

Publication Publication Date Title
CN112868244B (en) Point-to-multipoint data transmission method and device
EP1855483A2 (en) Apparatus and method for transmitting and receiving moving pictures using near field communication
JP6382345B2 (en) Network jitter processing method, apparatus, terminal device, program, and recording medium
EP4061027B1 (en) Bluetooth communication method and apparatus
US10827455B1 (en) Method and apparatus for sending a notification to a short-range wireless communication audio output device
JP6336119B2 (en) Information processing method, apparatus, program, and recording medium
JP2016535545A (en) Image quality adjustment method, apparatus, program, and recording medium based on network environment
CN113099428A (en) Audio information transmission method, audio information transmission device, and storage medium
CN112771828B (en) Audio data communication method and electronic equipment
WO2020056751A1 (en) Transmission configuration method and apparatus, device, system, and storage medium
CN115811720A (en) Audio data processing method and device, storage medium and electronic equipment
CN115552518A (en) Signal encoding and decoding method and device, user equipment, network side equipment and storage medium
CN109196936A (en) A kind of resource allocation indicating method and device, base station and terminal
CN111739538B (en) Translation method and device, earphone and server
CN111696552A (en) Translation method, translation device and earphone
WO2023216119A1 (en) Audio signal encoding method and apparatus, electronic device and storage medium
CN115696279A (en) Information processing method, device, electronic equipment and storage medium
WO2020019296A1 (en) Data transmission method, device, equipment, system and storage medium
CN113905128B (en) Call reminding method and terminal
WO2021073394A1 (en) Data transmission method and apparatus, electronic device and storage medium
WO2018058331A1 (en) Method and apparatus for controlling volume
CN112313972B (en) Apparatus and associated method for audio presentation
EP4260568A1 (en) Multimedia playback synchronization
US11689690B2 (en) Method and device for audio and video synchronization
CN116074795A (en) Data transmission method and device, storage medium and electronic equipment

Legal Events

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