CN114640740B - Communication processing method, device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN114640740B
CN114640740B CN202210287315.3A CN202210287315A CN114640740B CN 114640740 B CN114640740 B CN 114640740B CN 202210287315 A CN202210287315 A CN 202210287315A CN 114640740 B CN114640740 B CN 114640740B
Authority
CN
China
Prior art keywords
audio
buffer
audio playing
playing device
preset
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.)
Active
Application number
CN202210287315.3A
Other languages
Chinese (zh)
Other versions
CN114640740A (en
Inventor
罗正宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210287315.3A priority Critical patent/CN114640740B/en
Publication of CN114640740A publication Critical patent/CN114640740A/en
Application granted granted Critical
Publication of CN114640740B publication Critical patent/CN114640740B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
    • H04M1/6066Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone including a wireless connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a communication processing method, a device, electronic equipment and a storage medium, and relates to the technical field of electronic equipment. The method is applied to an audio providing apparatus, and comprises: and under the condition that Bluetooth connection is established between the audio providing equipment and the audio playing equipment, acquiring the position information of the audio providing equipment, and if the position information is in a preset clamping area, sending a buffer adjusting instruction to the audio playing equipment, wherein the buffer adjusting instruction is used for indicating the audio playing equipment to increase the buffer threshold value of a buffer node of the audio playing equipment. According to the method and the device, the buffer threshold value of the buffer node of the audio playing device is increased under the condition that the audio playing device is located in the clamping area according to the position information of the audio providing device, so that the size of the buffer area can be increased in advance under the condition that a user does not feel, the stability of Bluetooth transmission is improved, and the use experience of the user is improved.

Description

Communication processing method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a communication processing method, an apparatus, an electronic device, and a storage medium.
Background
With the development of science and technology, electronic devices are increasingly widely used, and have more and more functions, and become one of the necessities in daily life. When a user plays audio using an electronic device, audio information of the electronic device is often received using an audio playing device connected to the electronic device. However, the electronic device may interrupt the sending of the audio data, so that the audio data received by the audio playing device is also interrupted, and the sound played by the audio playing device is blocked.
Disclosure of Invention
In view of the above, the present application proposes a communication processing method, apparatus, electronic device, and storage medium to solve the above problems.
In a first aspect, an embodiment of the present application provides a communication processing method, which is applied to an audio providing apparatus, where the method includes: acquiring position information of the audio providing device under the condition that Bluetooth connection is established between the audio providing device and the audio playing device; and if the position information is in the preset clamping area, sending a buffer adjustment instruction to the audio playing device, wherein the buffer adjustment instruction is used for indicating the audio playing device to increase the buffer threshold value of the buffer node of the audio playing device.
In a second aspect, an embodiment of the present application provides a communication processing apparatus, applied to an audio providing device, including: the position information acquisition module is used for acquiring the position information of the audio providing equipment under the condition that Bluetooth connection is established between the audio providing equipment and the audio playing equipment; and the buffer adjustment instruction sending module is used for sending a buffer adjustment instruction to the audio playing device if the position information is in a preset clamping area, wherein the buffer adjustment instruction is used for indicating the audio playing device to increase the buffer threshold value of the buffer node of the audio playing device.
In a third aspect, embodiments of the present application provide an electronic device comprising a memory coupled to a processor and a processor, the memory storing instructions that when executed by the processor perform the above-described method.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having program code stored therein, the program code being callable by a processor to perform the above method.
According to the communication processing method, the device, the electronic equipment and the storage medium, under the condition that Bluetooth connection is established between the audio providing equipment and the audio playing equipment, the position information of the audio providing equipment is acquired, if the position information is in the preset cartoon area, a buffer adjusting instruction is sent to the audio playing equipment, the buffer adjusting instruction is used for indicating the audio playing equipment to increase the buffer threshold value of the buffer node of the audio playing equipment, and therefore the buffer threshold value of the buffer node of the audio playing equipment is increased under the condition that the audio playing equipment is determined to be in the cartoon area according to the position information of the audio providing equipment, the size of the buffer area can be increased in advance under the condition that a user does not feel, and the stability of Bluetooth transmission is improved, so that the use experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic view of an application environment that can be used for a communication processing method provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a communication processing method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a communication processing method according to an embodiment of the present application;
fig. 4 is a schematic flow chart of a communication processing method according to an embodiment of the present application;
fig. 5 is a schematic flow chart of a communication processing method according to an embodiment of the present application;
fig. 6 is a flowchart schematically showing step S410 of the communication processing method shown in fig. 5 of the present application;
fig. 7 is a schematic flow chart of a communication processing method according to an embodiment of the present application;
FIG. 8 shows a block diagram of a communication processing apparatus according to an embodiment of the present application;
Fig. 9 shows a block diagram of an electronic device for performing a communication processing method according to an embodiment of the present application;
fig. 10 shows a storage unit for storing or carrying program codes for implementing the communication processing method according to the embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.
It should be noted that: in the examples of this application, "first," "second," etc. are used to distinguish similar objects and not necessarily to describe a particular order or precedence.
Currently, most electronic devices, such as audio providing devices, e.g., computers, mobile phones, etc., can play audio data. With the development of science and technology and the increase of user demands, the electronic device may be connected to an external audio playing device, so as to realize that the audio providing device plays audio data (sound signals) through the external audio playing device. The audio playing device may include headphones, speakers, and the like. The audio playing device can receive the audio data sent by the audio providing device and play the received audio data. The audio providing apparatus may be connected to the audio playing apparatus by a wired or wireless method, which is not particularly limited herein.
When actually playing audio data transmitted by an audio providing apparatus using an audio playing apparatus, a user often uses headphones of a wireless communication method to receive and play audio data, for example, headphones using wireless fidelity (Wireless Fidelity, wiFi) communication or headphones using Bluetooth (BT) communication. Particularly, for users with higher demands, the receiving and playing of the audio data can be performed through the TWS earphone with the left channel and the right channel separated in a wireless mode. The TWS earphone can realize the real wireless separation of the left channel and the right channel of the Bluetooth, namely, the two earphones of the TWS earphone do not need wired connection.
The TWS earphone consists of a master earphone and a slave earphone, and the working principle is that the electronic equipment is connected with the master earphone through Bluetooth, and the master earphone is connected with the slave earphone through a near magnetic field induction technology (Near Field Magnetic Induction, abbreviated as NFMI) or TWS protocol. In a downlink scene, data signals on the electronic equipment are transmitted to a master earphone through Bluetooth, and then the master earphone is transmitted to a slave earphone through NFMI or TWS protocols, so that the left earphone and the right earphone can receive the data signals transmitted by the electronic equipment; or in the downlink scenario, the data signal on the electronic device is transmitted to the master earphone through bluetooth, and the slave earphone can be disguised as the master earphone to intercept and receive the data signal sent to the master earphone by the electronic device, or the slave earphone can also receive the data signal sent to the master earphone by the electronic device forwarded by the master earphone. In the uplink scene, the master earphone directly works and the slave earphone does not work, and the master earphone directly transmits the collected audio data to the electronic equipment through Bluetooth.
Wherein, bluetooth wireless channel: the information of wireless communication is transmitted on a wireless propagation Channel by electromagnetic waves, and the wireless Channel is called a wireless "Channel", which is a data signal transmission Channel using a wireless signal as a transmission medium; the Bluetooth communication frequency band is 2400-2483.5MHz, the bandwidth of each channel of classical Bluetooth is 1MHz, 79 channels are provided in total, and the frequency is 2402-2480MHz; the fading of the wireless channel is related to the loss of the transmission medium, and the Bluetooth signal can generate strong loss if encountering metal shielding, concrete walls, human body penetration and the like; there is a large amount of interference in the same frequency band and adjacent frequency bands on the wireless channel;
among these, the usual interference areas in life include the following:
first, wireless network camera, the passback of some wireless network cameras has adopted 2.4G frequency channel, and the interference is stronger when its passback video data, if: traffic lights at the road, large malls, etc.
And the second communication base station, the Band 40/41 of LTE communication is very close to the 2.4G frequency Band of Bluetooth work, and the sidebands of signals of the Band can fall into the Bluetooth frequency Band to interfere with the Bluetooth communication street.
Thirdly, the wireless AP/router works in a 2.4G frequency band and a 5G frequency band, wherein the 2.4G frequency band and Bluetooth are the same frequency and interfere with each other; the closer the home wireless router works in the 2.4G frequency band to the router antenna, the larger the interference is, such as: subway stations, high-speed rail stations, train stations, airports, etc.
When a user is in a severe interference environment, such as a railway station, a high-speed rail station, an airport and a large-scale market, the Bluetooth headset receives data and is affected by instability of wireless transmission, so that the received audio data is firstly put into a buffer zone for buffering, the Bluetooth headset sequentially plays sound data from the buffer zone, when the wireless transmission is unstable, the headset terminal cannot acquire the data in time, but the buffer zone can play certain data, and the sound is not interrupted. The size of the buffer determines how long the headset can support the data. When the buffer is small, the wireless transmission will cause the sound to be stuck silent as long as a slight interruption of the transmission occurs. When the buffer is large, large radio transmission fluctuations can be resisted, but a sound delay occurs.
In view of the above problems, the inventors have found that the following two ways can be adopted:
first, fixed start caching scheme. The scheme is the simplest scheme, after the audio is started to play, a fixed buffer size is used, and after the buffer is buffered to the data with the set size, the sound needing to be played is output.
Second, dynamically setting a buffer size scheme. The receiving end of the Bluetooth audio data dynamically adjusts the buffer according to different conditions (such as whether the Bluetooth audio data is stuck, signal strength, retransmission rate and the like), and under the condition of interference environment or poor transmission, the buffer area is increased to buffer more data so as to optimize unstable fluctuation of Bluetooth transmission. Under the scene of stable transmission, the buffer area can be reduced, so that the delay size is reduced, and better game and movie viewing experience is brought. The play stability and delay are balanced by dynamic de-tuning.
However, in the above two modes, when the bluetooth headset is interfered and Buffer is not available, the software solves the problem of blocking through the scheme of automatically adjusting Buffer and the like, and at this time, the user hears the sound blocking, which results in poor physical examination.
In view of the above problems, the inventor has found through long-term research and proposed a communication processing method, an apparatus, an electronic device, and a storage medium according to embodiments of the present application, by determining, according to location information of an audio providing device, that an audio playing device is in a katon area, a buffer threshold of a buffer node of the audio playing device is increased, so that the size of the buffer area can be increased in advance without perception of a user, and stability of bluetooth transmission is improved, so as to improve use experience of the user. The specific communication processing method is described in detail in the following embodiments.
An application environment usable for the communication processing method provided in the embodiment of the present application will be described below.
Referring to fig. 1, fig. 1 is a schematic view of an application environment of a communication processing method according to an embodiment of the present application. As shown in fig. 1, it includes an audio providing apparatus 100 and an audio playing apparatus (for example, a first bluetooth headset 200 and a second bluetooth headset 300). As one way, the first bluetooth headset 200 may be established as a master headset with the audio providing device 100 with a first bluetooth link for audio data transmission, and the second bluetooth headset 300 may be established as a slave headset with the first bluetooth headset 200 with a second bluetooth link for audio data transmission, at which time the second bluetooth headset 300 may be established with the audio providing device 100 with a listening link for listening to audio data transmission between the audio providing device 100 and the first bluetooth headset 200. As still another way, the second bluetooth headset 300 may be established as a master headset with the audio providing apparatus 100 with a first bluetooth link for audio data transmission, and the first bluetooth headset 200 may be established as a slave headset with the second bluetooth headset 300 with a second bluetooth link for audio data transmission, at which time the first bluetooth headset 200 may be established with the audio providing apparatus 100 with a listening link for listening to audio data transmission between the audio providing apparatus 100 and the second bluetooth headset 300.
In some embodiments, the first bluetooth headset 200 may be a headset that plays left channel audio data, and the second bluetooth headset 300 may be a headset that plays right channel audio data; the second bluetooth headset 300 may be a headset that plays left channel audio data, and the first bluetooth headset 200 may be a headset that plays right channel audio data.
Referring to fig. 2, fig. 2 is a flow chart illustrating a communication processing method according to an embodiment of the present application. The method is used for increasing the buffer threshold value of the buffer node of the audio playing device under the condition that the audio playing device is in the cartoon area according to the position information of the audio providing device, so that the size of the buffer area can be increased in advance under the condition that a user does not feel, the stability of Bluetooth transmission is improved, and the use experience of the user is improved. In a specific embodiment, the communication processing method is applied to the communication processing apparatus 400 shown in fig. 8 and the electronic device 100 (fig. 9) configured with the communication processing apparatus 400. The specific flow of the present embodiment will be described below by taking an electronic device as an example, and it will be understood that the electronic device applied in the present embodiment may include a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. The following details about the flow shown in fig. 2, the communication processing method specifically may include the following steps:
Step S110: and under the condition that Bluetooth connection is established between the audio providing device and the audio playing device, acquiring the position information of the audio providing device.
Wherein, the audio providing device transmits the audio data to the audio playing device for playing through connecting the audio playing device. And for users with higher demands, the Bluetooth function of the audio providing device and the audio playing device can be utilized, so that the audio playing device is connected with the audio providing device through Bluetooth, and playing of audio data is realized.
In the embodiment of the application, the connection state between the audio providing device and the audio playing device may be detected first. In the case that the Bluetooth connection between the audio providing device and the audio playing device is detected, the position information of the audio providing device can be acquired.
Wherein the connection state between the audio providing apparatus and the audio playing apparatus may include: bluetooth connection is established between the audio providing device and the audio playing device, or Bluetooth connection is not established between the audio providing device and the audio playing device. As an implementation manner, a bluetooth state value corresponding to the audio providing device may be detected, and when it is detected that the bluetooth state value of the audio providing device meets a preset state value, it may be determined that bluetooth connection is established between the audio providing device and the audio playing device; in the case that the bluetooth state value of the audio providing apparatus is detected not to satisfy the preset state value, it may be determined that the audio providing apparatus and the audio playing apparatus have not established a bluetooth connection.
In some embodiments, in the event that it is determined that the audio providing device has established a bluetooth connection with the audio playback device, then it may be detected whether the audio playback device is transmitting audio data to the audio playback device. Under the condition that the audio providing device is detected to transmit the audio data to the audio playing device, the position information of the audio providing device can be acquired to ensure the transmission stability of the audio data; in the case where it is detected that the audio providing apparatus does not transmit audio data to the audio playing apparatus, the position information of the audio providing apparatus may not be acquired to reduce power consumption of the audio providing apparatus.
In some implementations, obtaining location information of the audio providing device may include: the method includes, but is not limited to, acquiring position information of an audio providing apparatus in real time, acquiring position information of the audio providing apparatus at preset time intervals, acquiring position information of the audio providing apparatus at preset time points, acquiring position information of the audio providing apparatus at other preset rules, acquiring position information of the audio providing apparatus when the audio providing apparatus is in a moving state, acquiring position information of the audio providing apparatus when a moving distance of the audio providing apparatus is greater than a preset distance, and the like.
As one way, the audio providing apparatus may be built-in with a positioning module, and then the audio providing apparatus may acquire its position information through the built-in positioning module, for example, the audio passing apparatus may be built-in with a global positioning system or a beidou satellite navigation system, and then the audio providing apparatus may acquire its position information through the built-in global positioning system or the beidou satellite navigation system. As yet another way, the audio playing device may have a software development kit (software development kit, SDK) for third party navigation built in, and the audio providing device may be located by accessing the SDK to the third party navigation.
Step S120: and if the position information is in the preset clamping area, sending a buffer adjustment instruction to the audio playing device, wherein the buffer adjustment instruction is used for indicating the audio playing device to increase the buffer threshold value of the buffer node of the audio playing device.
In some embodiments, the audio providing device may preset and store a preset click region, where the preset click region is used as a basis for determining the location information of the audio providing device. Therefore, in this embodiment, in the case where the position information of the audio providing apparatus is acquired, the position information of the audio providing apparatus may be compared with a preset click region to determine whether the position information of the audio providing apparatus is within the preset click region. If it is determined that the position information of the audio providing device is in the preset blocking area, network interference is easy to occur at the position of the audio providing device, so that sound of the audio playing device is blocked, a buffer adjusting instruction can be sent to the audio playing device, and the audio playing device is instructed to increase the buffer threshold of the buffer node of the audio playing device, so that stability of Bluetooth transmission is improved. If it is determined that the position information of the audio providing device is not in the preset blocking area, the network interference cannot occur at the position of the audio providing device, and the blocking of the sound of the audio playing device cannot be caused, the buffer adjusting instruction may not be sent to the audio playing device, that is, the buffer threshold of the buffer node of the audio playing device is maintained.
In some embodiments, the preset click region may be detected and stored by the audio providing device itself, the preset click region may be obtained by the audio providing device from the cloud end of the communication, and the preset click region may be obtained by the audio providing device from the reference device of the communication, which is not limited herein.
In some embodiments, the audio providing apparatus may acquire the preset click region in advance, or may acquire the preset click region when acquiring the position information thereof, which is not limited herein. The audio providing device may obtain the preset blocking area from the local area, or may obtain the preset blocking area from the cloud end, which is not limited herein.
It will be appreciated that when the audio providing apparatus acquires the audio data and then transmits the audio data to the audio playing apparatus, the buffer node of the audio playing apparatus will buffer the received audio data. The Buffer node of the audio playing device is preset with a Buffer register (Buffer), wherein the size of the Buffer is fixed, and in general, the Buffer node of the audio playing device is provided with a Buffer threshold value, and the Buffer threshold value is used for processing the buffered audio data by the processing module of the audio playing device when the buffered audio data of the Buffer node reaches the Buffer threshold value, so that playing of the audio data is realized.
In addition, the Buffer threshold of the Buffer node of the audio playing device may be adjusted, that is, the Buffer threshold of the Buffer node of the audio playing device may be dynamically controlled by software to change, and the Buffer threshold may be less than or equal to the Buffer. For example, when the Buffer of the Buffer node of the audio playback apparatus is 5KB, the Buffer threshold thereof may be set to 5KB, 4KB, 3KB, or the like. Therefore, in this embodiment, in the case where the position information of the audio playback apparatus is within the preset katon area, the buffer adjustment instruction may be sent to the audio playback apparatus, so that the audio playback apparatus increases the buffer threshold of its buffer node according to the buffer adjustment instruction. It can be understood that the audio playing device increases the buffer threshold value of the buffer node according to the buffer adjustment instruction, so that the audio playing device increases the buffer threshold value on the basis of the current buffer threshold value of the buffer node, and the increased buffer threshold value is larger than the current buffer threshold value, thereby achieving the effect of increasing the amount of audio data which can be buffered by the audio playing device. Therefore, when the audio providing device is blocked in transmission of the audio data due to the position of the audio providing device, the audio playing device can play more audio data, and the blocking of the audio playing device when the audio playing device plays sound is avoided.
According to the communication processing method provided by the embodiment of the application, under the condition that Bluetooth connection is established between the audio providing equipment and the audio playing equipment, the position information of the audio providing equipment is obtained, if the position information is in the preset clamping area, a buffer adjusting instruction is sent to the audio playing equipment, the buffer adjusting instruction is used for instructing the audio playing equipment to increase the buffer threshold value of the buffer node of the audio playing equipment, and therefore the buffer threshold value of the buffer node of the audio playing equipment is increased under the condition that the audio playing equipment is determined to be in the clamping area according to the position information of the audio providing equipment, the size of the buffer area can be increased in advance under the condition that a user does not feel, and the stability of Bluetooth transmission is improved, so that the use experience of the user is improved.
Referring to fig. 3, fig. 3 is a flow chart illustrating a communication processing method according to an embodiment of the present application. The method is applied to an audio providing device, and will be described in detail with respect to a flow shown in fig. 3, in this embodiment, the audio providing device is connected to a cloud, and the communication processing method specifically includes the following steps:
step S210: and acquiring the preset clamping area from the cloud, wherein the preset clamping area is uploaded to the cloud by a plurality of reference devices.
In some embodiments, a plurality of reference devices (which may include the audio providing device) may be preset, and the plurality of reference devices are connected to the cloud. Based on the above, the plurality of reference devices are respectively connected with the audio playing device, and the plurality of reference devices respectively transmit audio data to the corresponding connected audio playing devices, wherein when the audio playing device plays audio clips, the reference devices can identify an area corresponding to the position where the audio is played as a clip area, and upload the clip area to the cloud as a preset clip area to be stored in the cloud.
In one mode, when the audio playing device plays audio clips, the reference device can automatically identify the position of the played audio clips, and identify the area corresponding to the position of the played audio clips as a clip area. As still another way, when the audio playing device presents the audio clip, the reference device can automatically identify the position of the played audio clip and output the marking prompt information, wherein the marking prompt information is used for prompting the position based on the played audio clip to mark the clip region, and when receiving the marking instruction input based on the marking prompt information, the marked region can be determined as the clip region in response to the marking instruction.
In some embodiments, when the reference device uses an area corresponding to the position of the played audio clip as the clip area, the determined size of the clip area may be consistent with the positioning range of the played audio clip, and the determined size of the clip area may be greater than the positioning range of the played audio clip, which is not limited herein.
In some embodiments, the reference device may check its network status when it obtains the stuck area. When the network state of the cloud computing device meets the preset network state, uploading the stuck area to the cloud computing device; when the network state of the cloud computing device is detected to not meet the preset network state, the blocking area can be cached, and the blocking area is uploaded to the cloud computing device and deleted when the network state of the cloud computing device is detected to meet the preset network state. The preset network state includes that the signal strength is greater than the preset signal strength, or the network speed is greater than the preset network speed.
Step S220: and storing the preset clamping area to the local of the audio providing equipment.
In some embodiments, after the cloud obtains the preset jamming area, the cloud may send the preset jamming area to the audio playing device through the application program, and accordingly, the audio playing device may store the preset jamming area to a local area of the audio providing device, so that the preset jamming area may be directly obtained from the local area when needed subsequently, and an influence of network failure on obtaining the preset jamming area is avoided.
As an implementation manner, after the cloud obtains the preset clamping area, whether the audio providing device is in communication connection with the cloud can be detected. And under the condition that the audio providing equipment is detected to be in communication connection with the cloud, the preset clamping area is sent to the audio providing equipment.
As still another implementation manner, the cloud terminal may detect whether the audio providing device is in communication connection with the cloud terminal after obtaining the preset clamping area. And under the condition that the audio providing device is detected to be in communication connection with the cloud, monitoring a request uploaded by the audio providing device, wherein the request can be triggered by a user on the audio providing device, and under the condition that the request uploaded by the audio providing device is monitored, sending the preset blocking area to the audio providing device.
Step S230: and under the condition that Bluetooth connection is established between the audio providing device and the audio playing device, acquiring the position information of the audio providing device.
The specific description of step S230 is referred to step S110, and will not be repeated here.
Step S240: and acquiring the preset clamping area from the local of the audio providing equipment.
In some embodiments, since the audio providing device may obtain the preset click region from the cloud in advance and store the preset click region locally, the preset click region may be directly obtained from the local of the audio providing device, so as to reduce the effect of obtaining the preset click region.
Step S250: and if the position information is in the preset clamping area, sending a buffer adjustment instruction to the audio playing device, wherein the buffer adjustment instruction is used for indicating the audio playing device to increase the buffer threshold value of the buffer node of the audio playing device.
The specific description of step S250 is referred to step S120, and will not be repeated here.
According to the communication processing method provided by the embodiment of the application, a preset clamping area is obtained from a cloud end, the preset clamping area is uploaded to the cloud end by a plurality of reference devices, the local of the sub-audio providing device is stored in the preset clamping area, under the condition that Bluetooth connection is established between the audio providing device and the audio playing device, the position information of the audio providing device is obtained, the preset clamping area is obtained from the local of the audio providing device, if the position information is in the preset clamping area, a buffer adjusting instruction is sent to the audio playing device, and the buffer adjusting instruction instructs the audio playing device to increase the buffer threshold value of a buffer node of the audio playing device. Compared with the communication processing method shown in fig. 2, the embodiment further marks the stuck area through the reference device and uploads the stuck area to the cloud end, so that other electronic devices can directly download the stuck area from the cloud end for use, and accuracy and applicability of the stuck area determination are improved. In addition, the embodiment can directly obtain the preset cartoon area from the local of the electronic equipment, so that the influence of poor network can be weakened, and the stability of Bluetooth transmission is improved.
Referring to fig. 4, fig. 4 is a flow chart illustrating a communication processing method according to an embodiment of the present application. The method is applied to the audio providing device, and will be described in detail with respect to the flow shown in fig. 4, and the communication processing method specifically may include the following steps:
step S310: and under the condition that Bluetooth connection is established between the audio providing device and the audio playing device, acquiring the position information of the audio providing device.
The specific description of step S310 is referred to step S110, and will not be repeated here.
Step S320: and if the position information is in the preset blocking area, outputting prompt information.
In this embodiment, if the position information of the audio playing device is in the preset katon area, a prompt message may be output, where the prompt message is used to prompt the user to select whether to adjust the buffer threshold of the buffer node of the audio playing device.
In some embodiments, the alert information may include one or a combination of several of an audible alert information, a vibration alert information, and a text alert information. Under the condition that the prompt information is text prompt information, the audio playing device can display the prompt information in a popup frame mode.
In some embodiments, the audio providing apparatus may further output the description information when outputting the prompt information. The description information may be used to describe the benefit and the bad part of adjusting the buffer threshold of the buffer node of the audio playing device, and describe the benefit and the bad part of not adjusting the buffer threshold of the buffer node of the audio playing device, so as to provide the user with reference selection.
Step S330: and under the condition that an adjustment instruction input based on the prompt information is received, sending a buffer adjustment instruction to the audio playing device, wherein the buffer adjustment instruction is used for instructing the audio playing device to increase the buffer threshold of a buffer node of the audio playing device.
In some embodiments, the audio playing device may detect the instruction input based on the prompt information during the process of displaying the prompt information. Under the condition that the adjustment instruction input based on the prompt information is determined to be received, the user can be characterized as expecting to adjust the buffer threshold value of the buffer node of the audio playing device, and then the buffer adjustment instruction can be sent to the audio playing device so as to instruct the audio playing device to increase the buffer threshold value of the buffer node of the audio playing device. And if the adjustment instruction input based on the prompt information is not received, or if the adjustment instruction input based on the prompt information is not received, the user can be characterized as expecting not to adjust the buffer threshold of the buffer node of the audio playing device, and the buffer adjustment instruction can not be sent to the audio playing device so as to keep the buffer threshold of the buffer node of the audio playing device unchanged.
In some implementations, the audio providing device may display an "adjust" control and an "do not adjust" control when outputting the alert message. Therefore, in this embodiment, the audio providing device may detect the touch operation on the "adjust" control and the "do not adjust" control in the process of outputting the prompt information. When a touch operation acting on the "adjustment" control is detected, it may be determined that an adjustment instruction input based on the prompt information is received. In the case that the touch operation on the "not adjust" control is detected, it may be determined that a not adjust instruction input based on the prompt information is received. As one approach, the touch operation may include, but is not limited to: pressing operation, clicking operation, sliding operation.
According to the communication processing method provided by the embodiment of the application, under the condition that Bluetooth connection is established between the audio providing equipment and the audio playing equipment, the position information of the audio providing equipment is obtained, if the position information is in the preset blocking area, prompt information is output, and under the condition that an adjustment instruction input based on the prompt information is received, a buffer adjustment instruction is sent to the audio playing equipment, wherein the buffer adjustment instruction is used for instructing the audio playing equipment to increase the buffer threshold value of the buffer node of the audio playing equipment. Compared with the communication processing method shown in fig. 2, in this embodiment, when the audio providing device is in the preset katon area, the prompt message is output, so that the user can select whether to adjust the buffer threshold of the buffer node, so as to improve the interactive experience of the user.
Referring to fig. 5, fig. 5 is a flow chart illustrating a communication processing method according to an embodiment of the present application. The method is applied to the audio providing device, and will be described in detail with respect to the flow shown in fig. 5, and the communication processing method specifically may include the following steps:
step S410: and under the condition that Bluetooth connection is established between the audio providing equipment and the audio playing equipment, acquiring the data type of audio data transmitted to the audio playing equipment by the audio providing equipment.
In this embodiment, in the case where it is determined that the audio providing apparatus and the audio playing apparatus establish a bluetooth connection, the data type of the audio data transmitted by the audio providing apparatus to the audio playing apparatus may be acquired. The data type may include a music data type, a call data type, a video data type, etc., which are not limited herein.
In some embodiments, an identification corresponding to audio data transmitted by the audio providing device to the audio playing device may be obtained, and based on the identification, a data type of the audio data transmitted by the audio providing device to the audio playing device may be determined. As an implementation manner, the audio providing device may preset different data types to correspond to different identifiers, and when the audio providing device outputs the audio data, the audio providing device may carry the corresponding identifier in the audio data, so in this embodiment, the data type of the audio data transmitted by the audio providing device to the audio playing device may be determined by acquiring the identifier of the audio data transmitted by the audio providing device to the audio playing device.
Referring to fig. 6, fig. 6 is a flow chart schematically illustrating step S410 of the communication processing method shown in fig. 5 of the present application. The following will describe the flow shown in fig. 6 in detail, and the method may specifically include the following steps:
step S411: and acquiring an application program corresponding to the audio data transmitted to the audio playing device by the audio providing device.
In some embodiments, when it is determined that the audio providing device and the audio playing device establish a bluetooth connection, an application program corresponding to audio data transmitted by the audio providing device to the audio playing device may be acquired.
As an implementation manner, during the process of transmitting the audio data to the audio playing device by the audio providing device, the source of the audio data may be detected, and the source of the audio data may be determined as an application program corresponding to the audio data transmitted to the audio playing device by the audio providing device. It will be appreciated that the audio data transmitted from the audio providing apparatus to the audio playing apparatus is provided by an application program at the audio providing apparatus, and thus, by detecting the source of the audio data, the application program corresponding to the audio data transmitted from the audio providing apparatus to the audio playing apparatus can be determined.
In some embodiments, the application may include: music-based applications, video-based applications, telephony-based applications, etc., are not limited herein.
Step S412: based on the application program, a data type of audio data transmitted by the audio providing device to the audio playing device is determined.
In some embodiments, in the case of determining an application program corresponding to audio data transmitted by the audio providing apparatus to the audio playing apparatus, the data type of the audio data transmitted by the audio providing apparatus to the audio playing apparatus may be determined based on the application program.
For example, assuming that the application is a video-type application, it may be determined that the data type of the audio data transmitted by the audio providing apparatus to the audio playing apparatus is a video data type; assuming that the application is a music-like application, it may be determined that the data type of the audio data transmitted from the audio providing apparatus to the audio playing apparatus is a music data type; assuming that the application is a call-like application, it may be determined that the data type of the audio data transmitted from the audio providing apparatus to the audio playing apparatus is a call data type or the like, which is not limited herein.
Step S420: and acquiring the position information of the audio providing equipment under the condition that the data type meets the preset data type.
In some embodiments, the audio playing device may preset and store a preset data type, where the preset data type may be used as a basis for determining a data type of the audio data transmitted by the audio providing device to the audio playing device. Therefore, in the present embodiment, in the case of obtaining the data type of the audio data transmitted by the audio providing apparatus to the audio playing apparatus, the data type of the audio data transmitted by the audio providing apparatus to the audio playing apparatus may be compared with a preset data type to determine whether the data type of the audio data transmitted by the audio providing apparatus to the audio playing apparatus satisfies the preset data type. The preset data type is used for representing that the requirement of the audio data on real-time performance is low (the requirement level is lower than a requirement level threshold value).
Under the condition that the data type of the audio data transmitted to the audio playing device by the audio providing device is determined to meet the preset data type, the audio data transmitted to the audio playing device by the audio providing device is not high in real-time requirement, the influence of the buffer of the data on the playing of the audio data is not great, the influence on the receiving of the audio data by a user is not great, the position information of the audio providing device can be obtained, and the buffer threshold value of the buffer node of the audio playing device is increased based on the position. For example, if the audio data transmitted from the audio providing apparatus to the audio playing apparatus is music data or video data, the location information of the audio providing apparatus may be acquired, and the buffer threshold of the buffer node of the audio playing apparatus may be increased based on the location.
Under the condition that the data type of the audio data transmitted to the audio playing device by the audio providing device is determined not to meet the preset data type, the audio data transmitted to the audio playing device by the audio providing device can be considered to have higher requirement on real-time performance, the buffer of the data has larger influence on playing of the audio data, the buffer threshold of the buffer node of the audio playing device can not be adjusted, or the buffer threshold of the buffer node of the audio playing device can be reduced. For example, if the audio data transmitted by the audio providing apparatus to the audio playing apparatus is call data, the buffer threshold of the buffer node of the audio playing apparatus may not be adjusted, or the buffer threshold of the buffer node of the audio playing apparatus may be reduced.
Step S430: and if the position information is in the preset clamping area, sending a buffer adjustment instruction to the audio playing device, wherein the buffer adjustment instruction is used for indicating the audio playing device to increase the buffer threshold value of the buffer node of the audio playing device.
The specific description of step S420-step S430 refer to step S110-step S120, and are not repeated here.
According to the communication processing method provided by the embodiment of the application, under the condition that Bluetooth connection is established between the audio providing device and the audio playing device, the data type of audio data transmitted to the audio playing device by the audio providing device is obtained, under the condition that the data type meets the preset data type, the position information of the audio providing device is obtained, if the position information is in the preset katon area, a buffer adjusting instruction is sent to the audio playing device, and the buffer adjusting instruction is used for indicating the audio playing device to increase the buffer threshold value of the buffer node of the audio playing device. Compared to the communication processing method shown in fig. 2, the embodiment further obtains the data type of the audio data transmitted between the devices, and determines whether to adjust the buffer threshold of the buffer node based on the position information according to the data type, so as to improve the accuracy of the buffer area adjustment.
Referring to fig. 7, fig. 7 is a flow chart illustrating a communication processing method according to an embodiment of the present application. The method is applied to the audio providing device, and will be described in detail with respect to the flowchart shown in fig. 7, and the communication processing method specifically may include the following steps:
step S510: and under the condition that Bluetooth connection is established between the audio providing device and the audio playing device, acquiring the position information of the audio providing device.
The specific description of step S510 refers to step S110, and is not repeated here.
Step S520: and if the position information is in the preset clamping area, acquiring the moving speed and the moving direction of the audio providing equipment.
In this embodiment, in the case where it is determined that the position information of the audio providing apparatus is within the preset katon area, the moving speed and moving direction of the audio providing apparatus may be acquired.
In some embodiments, the audio providing device may include a speed sensor and an acceleration sensor. In the case where it is determined that the position information of the audio providing apparatus is within the preset click region, the moving speed of the audio providing apparatus may be detected by a speed sensor of the audio playing apparatus, and the moving direction of the audio providing apparatus may be detected by an acceleration sensor of the audio playing apparatus.
Step S530: and determining the stay time of the audio providing equipment in the preset clamping area based on the moving speed and the moving direction.
The size of a preset click zone is fixed and known for the audio providing device, and the distance between the audio providing device and each edge position of the preset click zone can be calculated when the position information of the audio providing device is in the preset click zone.
In this embodiment, in the case where the moving speed and moving direction of the audio providing apparatus are obtained, the stay time period of the audio providing apparatus in the preset click region may be determined based on the moving speed and moving direction. As an implementation manner, after the moving speed and the moving direction of the audio providing apparatus are obtained, a distance between the audio providing apparatus and an edge position corresponding to the preset click region in the moving direction may be determined as a preset distance based on the moving direction, then, an obtained time length is calculated based on the preset distance and the moving speed, and the calculated obtained time length is determined as a residence time length of the audio providing apparatus in the preset click region.
Step S540: and sending a buffer adjustment instruction to the audio playing device, wherein the buffer adjustment instruction is used for instructing the audio playing device to increase the buffer threshold value of the buffer node of the audio playing device to correspond to the stay time.
In this embodiment, when the audio playing device obtains the stay time, the audio playing device may send a buffer adjustment instruction to the audio playing device based on the stay time, so as to instruct the audio playing device to increase the buffer threshold of the buffer node to correspond to the stay time.
In some embodiments, the audio providing device may preset and store a correspondence between a plurality of durations and a plurality of thresholds, where the correspondence between the plurality of durations and the plurality of thresholds may include: one time period corresponds to one threshold value, or a plurality of time periods corresponds to one threshold value, which is not limited herein. Therefore, in this embodiment, in the case of obtaining the stay time, the threshold corresponding to the stay time may be determined based on the correspondence between the prestored multiple time durations and the multiple thresholds, and the buffer adjustment instruction may be sent to the audio playing device, so as to instruct the audio playing device to increase the buffer node thereof to the threshold corresponding to the stay time.
For example, assume that the plurality of time periods includes a first time period, a second time period, and a third time period, the plurality of thresholds includes a first threshold, a second threshold, and a third threshold, and there is a correspondence between the first time period and the first threshold, a correspondence between the second time period and the second threshold, and a correspondence between the third time period and the third threshold. Then, in the case of obtaining the residence time length, the residence time length may be compared with the first time length, the second time length, and the third time length, so as to obtain a time length matching the residence time length from the first time length, the second time length, and the third time length, and if it is determined that the second time length matches the residence time length, it may be determined that the threshold corresponding to the residence time length is the second threshold. The time length matching may include that a difference between time lengths is within a preset range.
In some embodiments, in the case where the stay time period is greater than the time period threshold, a buffer adjustment instruction is sent to the audio playback device, where the buffer adjustment instruction is used to instruct the audio playback device to increase the buffer threshold of its buffer node to correspond to the stay time period. As an implementation manner, the audio providing device may preset and store a duration threshold, where the duration threshold is used as a basis for determining the residence time, so in this embodiment, when the residence time is obtained, the residence time may be compared with the duration threshold to determine whether the residence time is greater than the duration threshold. Under the condition that the stay time length is larger than the time length threshold value, the audio providing device is characterized to stay for a long time in a preset blocking area, the transmission of audio data is affected by the long time, and then a buffer adjusting instruction can be sent to the audio playing device, wherein the buffer adjusting instruction is used for indicating the audio playing device to increase the buffer threshold value of a buffer node of the audio playing device to correspond to the stay time length. Under the condition that the stay time is smaller than the time threshold, the audio providing device is characterized to stay in the preset cartoon area for a short time, the transmission of the audio data is affected by the short time, and a buffer adjusting instruction is not sent to the audio playing device, so that the buffer threshold of a buffer node of the audio playing device is kept unchanged.
According to the communication processing method provided by the embodiment of the application, under the condition that Bluetooth connection is established between the audio providing device and the audio playing device, position information of the audio providing device is obtained, if the position information is in a preset cartoon area, the moving speed and the moving direction of the audio providing device are obtained, the stay time of the audio providing device in the preset cartoon area is determined based on the moving speed and the moving direction, and a buffer adjusting instruction is sent to the audio playing device, wherein the buffer adjusting instruction is used for prompting the audio playing device to increase the buffer threshold value of the buffer node of the audio playing device to be corresponding to the stay time. Compared with the communication processing method shown in fig. 2, the embodiment also determines the stay time in the preset jamming area according to the moving speed and moving direction of the audio providing device, and determines the increased buffering threshold value according to the stay time, so that the power consumption can be reduced and the stability of bluetooth transmission can be improved.
Referring to fig. 8, fig. 8 is a block diagram illustrating a communication processing apparatus according to an embodiment of the present application. The communication processing apparatus 400 is applied to the above-described electronic device, and will be described below with respect to a block diagram shown in fig. 8, the communication processing apparatus 400 including: the location information acquisition module 410 and the buffer adjustment instruction transmission module 420, wherein:
And the location information obtaining module 410 is configured to obtain location information of the audio providing device when the audio providing device establishes a bluetooth connection with the audio playing device.
Further, the location information obtaining module 410 includes: a data type acquisition sub-module and a position information acquisition sub-module, wherein:
and the data type acquisition sub-module is used for acquiring the data type of the audio data transmitted to the audio playing device by the audio providing device under the condition that the audio providing device and the audio playing device are connected by Bluetooth.
Further, the data type acquisition submodule includes: an application acquisition unit and a data type acquisition unit, wherein:
and the application program acquisition unit is used for acquiring an application program corresponding to the audio data transmitted to the audio playing device by the audio providing device.
And the data type acquisition unit is used for determining the data type of the audio data transmitted to the audio playing device by the audio providing device based on the application program.
And the position information acquisition sub-module is used for acquiring the position information of the audio providing equipment under the condition that the data type meets the preset data type.
And the buffer adjustment instruction sending module 420 is configured to send a buffer adjustment instruction to the audio playing device if the location information is in a preset katon area, where the buffer adjustment instruction is used to instruct the audio playing device to increase a buffer threshold of a buffer node of the audio playing device.
Further, the buffer adjustment instruction sending module 420 includes: the system comprises a prompt information output submodule and a buffer adjustment instruction sending submodule, wherein:
and the prompt information output sub-module is used for outputting prompt information if the position information is in a preset clamping area.
And the buffer adjustment instruction sending sub-module is used for sending a buffer adjustment instruction to the audio playing device under the condition that an adjustment instruction input based on the prompt information is received, wherein the buffer adjustment instruction is used for instructing the audio playing device to increase the buffer threshold value of a buffer node of the audio playing device.
Further, the buffer adjustment instruction sending module 420 includes: the mobile parameter acquisition sub-module, the stay time determination sub-module and the buffer adjustment instruction sending sub-module, wherein:
and the movement parameter acquisition sub-module is used for acquiring the movement speed and the movement direction of the audio providing equipment if the position information is in a preset clamping area.
And the stay time determining submodule is used for determining the stay time of the audio providing equipment in the preset clamping area based on the moving speed and the moving direction.
And the buffer adjusting instruction sending submodule is used for sending a buffer adjusting instruction to the audio playing device, and the buffer adjusting instruction is used for instructing the audio playing device to increase the buffer threshold value of the buffer node of the audio playing device to correspond to the stay time.
Further, the buffering adjustment instruction sending submodule includes: a buffer adjustment instruction transmitting unit, wherein:
and the buffer adjustment instruction sending unit is used for sending a buffer adjustment instruction to the audio playing device under the condition that the stay time length is larger than a time length threshold value, and the buffer adjustment instruction is used for instructing the audio playing device to increase the buffer threshold value of a buffer node of the audio playing device to correspond to the stay time length.
Further, the communication processing apparatus 400 further includes: a preset clamping area acquisition module, wherein:
the preset clamping area acquisition module is used for acquiring the preset clamping area from the local of the audio providing equipment.
Further, the audio providing apparatus is connected to the cloud, and the communication processing device 200 further includes: a preset blocking area downloading module and a preset blocking area storing module, wherein:
The cloud terminal comprises a preset clamping area downloading module, a cloud terminal and a cloud terminal, wherein the preset clamping area downloading module is used for acquiring the preset clamping area from the cloud terminal, and the preset clamping area is uploaded to the cloud terminal through a plurality of reference devices.
And the preset clamping area storage module is used for storing the preset clamping area to the local of the audio providing equipment.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided herein, the coupling of the modules to each other may be electrical, mechanical, or other.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
Referring to fig. 9, a block diagram of an electronic device (audio providing device) 100 according to an embodiment of the present application is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or the like capable of running an application program. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein the one or more application programs may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more program(s) configured to perform the method as described in the foregoing method embodiments.
Wherein the processor 110 may include one or more processing cores. The processor 110 utilizes various interfaces and lines to connect various portions of the overall electronic device 100, perform various functions of the electronic device 100, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 110 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 110 and may be implemented solely by a single communication chip.
The Memory 120 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Memory 120 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The storage data area may also store data created by the electronic device 100 in use (e.g., phonebook, audiovisual data, chat log data), and the like.
Referring to fig. 10, a block diagram of a computer readable storage medium according to an embodiment of the present application is shown. The computer readable medium 500 has stored therein program code which may be invoked by a processor to perform the methods described in the method embodiments above.
The computer readable storage medium 500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 500 comprises a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 500 has storage space for program code 510 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 510 may be compressed, for example, in a suitable form.
In summary, in the communication processing method, the device, the electronic device and the storage medium provided in the embodiments of the present application, when the audio providing device and the audio playing device establish bluetooth connection, location information of the audio providing device is obtained, if the location information is in a preset blocking area, a buffer adjustment instruction is sent to the audio playing device, where the buffer adjustment instruction is used to instruct the audio playing device to increase a buffer threshold of a buffer node of the audio playing device, so that the buffer threshold of the buffer node of the audio playing device is increased when the audio playing device is determined to be in the blocking area according to the location information of the audio providing device, and therefore, the size of the buffer area can be increased in advance under the condition that a user does not feel, and stability of bluetooth transmission is improved, so as to improve use experience of the user.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, one of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. A communication processing method, characterized by being applied to an audio providing apparatus, comprising:
acquiring position information of the audio providing device under the condition that Bluetooth connection is established between the audio providing device and the audio playing device;
and if the position information is in the preset clamping area, sending a buffer adjustment instruction to the audio playing device, wherein the buffer adjustment instruction is used for instructing the audio playing device to increase a buffer threshold value of a buffer node of the audio playing device, and the Bluetooth channel of the preset clamping area fades, or the interference of the same Bluetooth frequency band and adjacent Bluetooth frequency bands exists on the Bluetooth channel of the preset clamping area.
2. The method of claim 1, further comprising, before the sending a buffer adjustment command to the audio playback device if the location information is within a preset katon area:
and acquiring the preset clamping area from the local of the audio providing equipment.
3. The method of claim 2, wherein the audio providing device is connected to a cloud, and further comprising, prior to the locally obtaining the preset katon zone from the audio providing device:
Acquiring the preset clamping area from the cloud, wherein the preset clamping area is uploaded to the cloud by a plurality of reference devices;
and storing the preset clamping area to the local of the audio providing equipment.
4. The method of claim 1, wherein if the location information is within a preset katon area, sending a buffer adjustment instruction to the audio playback device, where the buffer adjustment instruction is configured to instruct the audio playback device to increase a buffer threshold of a buffer node of the audio playback device, and the method includes:
if the position information is in the preset blocking area, outputting prompt information;
and under the condition that an adjustment instruction input based on the prompt information is received, sending a buffer adjustment instruction to the audio playing device, wherein the buffer adjustment instruction is used for instructing the audio playing device to increase the buffer threshold of a buffer node of the audio playing device.
5. The method according to any one of claims 1-4, wherein, in a case where the audio providing apparatus establishes a bluetooth connection with an audio playing apparatus, acquiring location information of the audio providing apparatus includes:
acquiring the data type of audio data transmitted to the audio playing device by the audio providing device under the condition that Bluetooth connection is established between the audio providing device and the audio playing device;
And acquiring the position information of the audio providing equipment under the condition that the data type meets the preset data type.
6. The method of claim 5, wherein the obtaining the data type of the audio data transmitted by the audio providing device to the audio playing device comprises:
acquiring an application program corresponding to audio data transmitted to the audio playing device by the audio providing device;
based on the application program, a data type of audio data transmitted by the audio providing device to the audio playing device is determined.
7. The method according to any one of claims 1-4, wherein if the location information is within a preset katon area, sending a buffer adjustment instruction to the audio playback device, where the buffer adjustment instruction is configured to instruct the audio playback device to increase a buffer threshold of a buffer node of the audio playback device includes:
if the position information is in the preset clamping area, acquiring the moving speed and the moving direction of the audio providing equipment;
determining the stay time of the audio providing equipment in the preset clamping area based on the moving speed and the moving direction;
And sending a buffer adjustment instruction to the audio playing device, wherein the buffer adjustment instruction is used for instructing the audio playing device to increase the buffer threshold value of the buffer node of the audio playing device to correspond to the stay time.
8. The method of claim 7, wherein the sending a buffer adjustment instruction to the audio playback device, the buffer adjustment instruction for instructing the audio playback device to increase a buffer threshold of its buffer node to correspond to the dwell time period, comprises:
and under the condition that the stay time length is greater than a time length threshold value, sending a buffer adjustment instruction to the audio playing device, wherein the buffer adjustment instruction is used for instructing the audio playing device to increase the buffer threshold value of a buffer node of the audio playing device to correspond to the stay time length.
9. A communication processing apparatus, characterized by being applied to an audio providing device, comprising:
the position information acquisition module is used for acquiring the position information of the audio providing equipment under the condition that Bluetooth connection is established between the audio providing equipment and the audio playing equipment;
and the buffer adjustment instruction sending module is used for sending a buffer adjustment instruction to the audio playing device if the position information is in a preset clamping area, wherein the buffer adjustment instruction is used for indicating the audio playing device to increase the buffer threshold value of a buffer node of the audio playing device, and the Bluetooth channel of the preset clamping area is faded, or the Bluetooth channel of the preset clamping area is interfered by the same Bluetooth frequency band and adjacent Bluetooth frequency bands.
10. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that when executed by the processor perform the method of any of claims 1-8.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is callable by a processor for executing the method according to any one of claims 1-8.
CN202210287315.3A 2022-03-22 2022-03-22 Communication processing method, device, electronic equipment and storage medium Active CN114640740B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210287315.3A CN114640740B (en) 2022-03-22 2022-03-22 Communication processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210287315.3A CN114640740B (en) 2022-03-22 2022-03-22 Communication processing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114640740A CN114640740A (en) 2022-06-17
CN114640740B true CN114640740B (en) 2024-03-12

Family

ID=81950664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210287315.3A Active CN114640740B (en) 2022-03-22 2022-03-22 Communication processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114640740B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872974A (en) * 2016-05-05 2016-08-17 捷开通讯(深圳)有限公司 Cache preloading system and method and mobile terminal
CN108304516A (en) * 2018-01-23 2018-07-20 维沃移动通信有限公司 A kind of Web content pre-add support method and mobile terminal
CN108551358A (en) * 2018-03-16 2018-09-18 恒玄科技(上海)有限公司 A kind of method of adjustment of bluetooth headset difference model subaudio frequency data
CN109275129A (en) * 2018-08-14 2019-01-25 Oppo广东移动通信有限公司 Communication processing method, device, electronic equipment and storage medium
CN109831689A (en) * 2019-01-28 2019-05-31 维沃移动通信有限公司 A kind of data buffering method and mobile terminal
CN111526246A (en) * 2020-04-07 2020-08-11 咪咕音乐有限公司 Caching method, electronic device and computer-readable storage medium
CN111556361A (en) * 2020-04-29 2020-08-18 腾讯科技(深圳)有限公司 Buffer zone setting method, device, equipment and storage medium for Bluetooth audio playing
CN111586152A (en) * 2020-04-30 2020-08-25 北京小米移动软件有限公司 Bluetooth transmission data playing method and device and Bluetooth transmission data sending method and device
CN112105006A (en) * 2019-12-12 2020-12-18 炬力(珠海)微电子有限公司 Bluetooth device playing method and device
CN112866851A (en) * 2020-12-23 2021-05-28 广东思派康电子科技有限公司 Bluetooth headset self-adaptive cache region algorithm
WO2021190090A1 (en) * 2020-03-27 2021-09-30 北京金山云网络技术有限公司 Playback stuttering determination method and apparatus, and electronic terminal

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872974A (en) * 2016-05-05 2016-08-17 捷开通讯(深圳)有限公司 Cache preloading system and method and mobile terminal
CN108304516A (en) * 2018-01-23 2018-07-20 维沃移动通信有限公司 A kind of Web content pre-add support method and mobile terminal
CN108551358A (en) * 2018-03-16 2018-09-18 恒玄科技(上海)有限公司 A kind of method of adjustment of bluetooth headset difference model subaudio frequency data
CN109275129A (en) * 2018-08-14 2019-01-25 Oppo广东移动通信有限公司 Communication processing method, device, electronic equipment and storage medium
CN109831689A (en) * 2019-01-28 2019-05-31 维沃移动通信有限公司 A kind of data buffering method and mobile terminal
CN112105006A (en) * 2019-12-12 2020-12-18 炬力(珠海)微电子有限公司 Bluetooth device playing method and device
WO2021190090A1 (en) * 2020-03-27 2021-09-30 北京金山云网络技术有限公司 Playback stuttering determination method and apparatus, and electronic terminal
CN111526246A (en) * 2020-04-07 2020-08-11 咪咕音乐有限公司 Caching method, electronic device and computer-readable storage medium
CN111556361A (en) * 2020-04-29 2020-08-18 腾讯科技(深圳)有限公司 Buffer zone setting method, device, equipment and storage medium for Bluetooth audio playing
CN111586152A (en) * 2020-04-30 2020-08-25 北京小米移动软件有限公司 Bluetooth transmission data playing method and device and Bluetooth transmission data sending method and device
CN112866851A (en) * 2020-12-23 2021-05-28 广东思派康电子科技有限公司 Bluetooth headset self-adaptive cache region algorithm

Also Published As

Publication number Publication date
CN114640740A (en) 2022-06-17

Similar Documents

Publication Publication Date Title
US11202300B2 (en) Method and system for adjusting sound quality, and host terminal
CN109445740B (en) Audio playing method and device, electronic equipment and storage medium
CN109413555B (en) Audio output method and device, earphone and electronic equipment
US11582791B2 (en) PUCCH collision processing method and terminal
CN109151212B (en) Equipment control method and device and electronic equipment
CN109151194B (en) Data transmission method, device, electronic equipment and storage medium
CN109819303B (en) Data output method and related equipment
WO2017181365A1 (en) Earphone channel control method, related apparatus, and system
US10950238B2 (en) Bluetooth speaker base, method and system for controlling thereof
CN109107158B (en) Sound effect processing method and device, electronic equipment and computer readable storage medium
CN113542479B (en) Recording method, recording device, wireless earphone and storage medium
CN109379490B (en) Audio playing method and device, electronic equipment and computer readable medium
CN102981613A (en) Terminal and terminal control method
WO2020192547A1 (en) Information transmission and reception method, terminal and network side device
WO2023273701A1 (en) Coding control method and apparatus, wireless earphone, and storage medium
CN113223539A (en) Audio transmission method and electronic equipment
CN107682553B (en) Call signal sending method and device, mobile terminal and storage medium
CN116795753A (en) Audio data transmission processing method and electronic equipment
CN109102816B (en) Encoding control method and device and electronic equipment
CN109298846B (en) Audio transmission method and device, electronic equipment and storage medium
CN112995829B (en) Audio processing assembly for wireless communication and signal processing method thereof
CN114640740B (en) Communication processing method, device, electronic equipment and storage medium
CN112669859B (en) Communication mode control method and device
CN115022766B (en) Audio data playing method and equipment
CN114466099B (en) Control method and device of Bluetooth equipment and storage medium

Legal Events

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