CN111510900B - Bluetooth transmission method, terminal device and computer readable storage medium - Google Patents

Bluetooth transmission method, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN111510900B
CN111510900B CN202010311545.XA CN202010311545A CN111510900B CN 111510900 B CN111510900 B CN 111510900B CN 202010311545 A CN202010311545 A CN 202010311545A CN 111510900 B CN111510900 B CN 111510900B
Authority
CN
China
Prior art keywords
communication
bluetooth
preset
application program
load
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
CN202010311545.XA
Other languages
Chinese (zh)
Other versions
CN111510900A (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 CN202010311545.XA priority Critical patent/CN111510900B/en
Publication of CN111510900A publication Critical patent/CN111510900A/en
Application granted granted Critical
Publication of CN111510900B publication Critical patent/CN111510900B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a Bluetooth transmission method, terminal equipment and a computer readable storage medium, wherein the method comprises the following steps: the first device detecting a communication load of another communication sharing a wireless communication channel with the bluetooth communication; and judging whether the communication load of the other communication exceeds the standard, if the communication load exceeds the standard, reducing the communication quality of the Bluetooth communication by the first equipment, or if the communication load does not exceed the standard, not reducing the communication quality of the Bluetooth communication by the first equipment. Through the mode, the communication between the Bluetooth communication and the other communication can be coordinated, and the communication performance between the devices is improved.

Description

Bluetooth transmission method, terminal device and computer readable storage medium
Technical Field
The present application relates to the field of device communication, and in particular, to a bluetooth transmission method, a terminal device, and a computer readable storage medium.
Background
With the development of wireless technology, the application of wireless technology is also becoming more and more widespread, such as users being able to listen to music, watch video, etc. in a wireless manner. The terminal device can be connected with the audio device in a wireless connection mode, so that music selected to be played on the terminal device can be played or played on the audio device, the terminal device can be a mobile terminal, a computer or the like, and the audio device can be a Bluetooth earphone, a Bluetooth loudspeaker box or the like. At present, when a plurality of communication modes are simultaneously used by the terminal equipment, the communication among the plurality of communication modes can interfere with each other, and the use is affected.
Disclosure of Invention
The application provides a Bluetooth transmission method, a terminal device and a computer readable storage medium, which can coordinate communication between Bluetooth communication and another communication and improve communication performance between devices.
In order to solve the technical problems, the application adopts a technical scheme that: a Bluetooth transmission method is provided. The method comprises the following steps: the first device detecting a communication load of another communication sharing a wireless communication channel with the bluetooth communication; and judging whether the communication load of the other communication exceeds the standard, if the communication load exceeds the standard, reducing the communication quality of the Bluetooth communication by the first equipment, or if the communication load does not exceed the standard, not reducing the communication quality of the Bluetooth communication by the first equipment.
In order to solve the technical problems, the application adopts another technical scheme that: a Bluetooth transmission method is provided. The method comprises the following steps: the second device is connected with the first device through Bluetooth communication, so that the first device detects the communication load of the other communication sharing the wireless communication channel with the Bluetooth communication and judges whether the communication load of the other communication exceeds the standard; if the communication load exceeds the standard, the second device communicates with the first device through Bluetooth communication with reduced communication quality, or if the communication load does not exceed the standard, the second device communicates with the first device through Bluetooth communication with reduced communication quality.
In order to solve the technical problems, the application adopts another technical scheme that: a terminal device is provided. The device comprises a detection module, a judging module and a control module, wherein the detection module is used for detecting the communication load of another communication sharing a communication channel with Bluetooth communication; the judging module is used for judging whether the communication load of the other communication exceeds the standard; the control module is used for reducing the communication quality of the Bluetooth communication when the judging module judges that the communication load exceeds the standard, or is used for not reducing the communication quality of the Bluetooth communication when the judging module judges that the communication load does not exceed the standard.
In order to solve the technical problems, the application adopts another technical scheme that: a terminal device is provided. The device comprises a processor, a memory and a Bluetooth module, wherein the processor is respectively connected with the memory and the Bluetooth module, the memory is used for storing a computer program, and the computer program is executed by the processor to realize the Bluetooth transmission method.
In order to solve the technical problems, the application adopts another technical scheme that: a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program that is executed to implement the above-described bluetooth transmission method.
The beneficial effects of the application are as follows: the application detects the communication load of the other communication when the Bluetooth communication shares the communication channel with the other communication, and if the communication load of the other communication exceeds the standard, the communication performance of the Bluetooth communication is affected, so the communication quality of the Bluetooth communication is reduced, the communication load occupied by the Bluetooth communication in the shared communication channel is reduced, and the interruption or instability of the Bluetooth communication is avoided. If the communication load of the other communication is not out of standard, the communication process of the Bluetooth communication is not affected, and the communication quality of the Bluetooth communication can not be reduced at the moment, so that the communication quality of the Bluetooth communication is maintained, and the communication performance of the Bluetooth communication is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a first embodiment of a bluetooth transmission method according to the present application;
fig. 2 is a schematic flow chart of the first embodiment of step S120 in fig. 1 according to the present application;
FIG. 3 is a flowchart of a second embodiment of step S120 in FIG. 1 according to the present application;
fig. 4 is a schematic flow chart of a second embodiment of a bluetooth transmission method according to the present application;
fig. 5 is a schematic flow chart of a third embodiment of a bluetooth transmission method according to the present application;
fig. 6 is a flowchart of a fourth embodiment of a bluetooth transmission method according to the present application;
fig. 7 is a schematic structural diagram of a first embodiment of a terminal device provided by the present application;
fig. 8 is a schematic structural diagram of a second embodiment of a terminal device provided by the present application;
fig. 9 is a schematic diagram of a computer-readable storage medium according to the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," "third," and the like in this disclosure are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first", "a second", and "a third" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise. All directional indications (such as up, down, left, right, front, back … …) in embodiments of the present application are merely used to explain the relative positional relationship, movement, etc. between the components in a particular gesture (as shown in the drawings), and if the particular gesture changes, the directional indication changes accordingly. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
The long-term research of the applicant of the present application shows that in the prior art, for example, when a terminal device is connected to a bluetooth device and music is played through the bluetooth device, because the bluetooth device supports multiple audio codes, the bit rate of each audio code is different, and thus the load of occupying the bluetooth channel is different, for example, the sound quality of the high-quality audio code is better, but the load of occupying the bluetooth channel is larger, if the terminal device uses multiple communications simultaneously, and multiple communications share a communication resource such as a communication channel, for example, bluetooth communications using the same communication channel simultaneously and another communication channel simultaneously, and if the communication load of the other channel exceeds standard, phenomena such as slow audio playing, and blocking occur when the high-quality audio of the bluetooth device.
In order to solve the above-described problems, the present application provides the following embodiments.
The present application provides a first embodiment of a bluetooth transmission method, referring to fig. 1, the method includes the following steps:
s110: the first device detects a communication load of another communication sharing a wireless communication channel with the bluetooth communication.
The first device of the present application may be an electronic terminal device having a communication function to make a communication connection with other devices. For example, the first device of the present application may be a cell phone, a mobile computer, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), a media player, a smart television, etc. Of course, the first device of the present application may be other devices, such as a bluetooth audio device, etc. The application is not limited herein to the first device.
The first device may detect a communication load of another communication sharing a wireless communication channel with the bluetooth communication. When the first device is in use, the first device may have multiple communications using the same communication channel at the same time, for example, while using bluetooth communication, the first device also uses another communication, and the bluetooth communication shares a wireless communication channel with the other communication. At this time, the communication load of another communication can be detected to be used as a basis for adjusting various parameters of the Bluetooth communication, so that the Bluetooth communication is ensured to be normal. The communication load may indicate a degree of occupying a wideband resource of a communication channel, for example, the first device uses bluetooth communication and also uses WIFI communication (Wireless broadband, wireless wideband), if the bluetooth communication and the WIFI communication of the first device share a 2.4GHz band, the bluetooth communication and the WIFI communication share the same antenna to perform signal transmission, and at this time, the load of the WIFI communication may affect the communication performance of the bluetooth communication, so the first device detects a current transmission rate of the WIFI communication sharing the communication channel with the bluetooth communication, and further obtains a communication load of the WIFI communication on the shared communication channel.
Alternatively, the communication load of another communication sharing the communication channel with the bluetooth communication is detected in a preset period, and the preset period may be a period of time in which the communication load of another communication is detected a plurality of times. Therefore, the first device also determines whether the communication load of another communication in the preset period is always out of standard or the average value is out of standard, so as to select the communication quality of the bluetooth communication according to the determination condition. The preset period may be set according to a communication usage requirement of the first device, which is not limited herein.
S120: it is determined whether the communication load of another communication exceeds a standard.
If yes in step S120, step S130 is executed; if step S120 is negative, step S140 is executed.
Because the Bluetooth communication shares a wireless communication channel with the other communication, if the communication load of the other communication exceeds the standard, excessive communication channel load resources are occupied, and the Bluetooth communication performance is affected. Therefore, the application detects the communication load of the other communication and judges whether the communication load of the other communication exceeds the standard so as to execute the corresponding steps and reduce the influence on the Bluetooth communication performance.
In some application scenarios, when another communication is a WIFI communication, the current transmission rate of the WIFI communication that shares the same antenna for signal transmission with the bluetooth communication is detected, and whether the WIFI communication load exceeds the standard can be determined according to the current transmission rate of the WIFI communication. Specifically, if the current transmission rate of the WIFI communication is greater than a first preset rate threshold, the communication load of the other communication exceeds the standard; if the current transmission rate of the WIFI communication is smaller than or equal to the first preset rate threshold, the communication load of the other communication is not out of standard. For example, the first preset threshold is 200KB/s, if the current rate of WIFI communication is 350KB/s, the communication load of WIFI communication exceeds the preset threshold, and if the current rate of WIFI communication is 150KB/s, the communication load of WIFI communication is less than the preset threshold, and the communication load of WIFI communication does not exceed the preset threshold. The first preset rate threshold may be set according to a specific communication, which is not limited by the present application.
In other application scenarios, a preset list is set for an application program on the first terminal, so as to judge whether the communication load of another communication exceeds the standard according to the set preset list.
The application program on the first preset list may be an application program whose transmission rate used on the other communication is greater than the second preset rate threshold, or an application program requiring WIFI communication, and if it is detected that the communication load of the other communication exceeds the standard when the first device uses the application program on the first preset list on the other communication. Specifically, the second preset rate threshold may be set according to the use condition of the application. In addition, when the other communication is a WIFI channel, the transmission rate of the application program on the first preset list is larger, and the occupied WIFI broadband is more when the application program on the first preset list is used. For example, the second preset rate threshold is 100KB/s, and the first preset list includes applications with a transmission rate greater than 100KB/s when the first preset list is used on a WIFI channel, such as online music players, online video players, online games, and the like, which have relatively high requirements on WIFI broadband. If it is detected that the first device uses the application program on the first preset list on WIFI communication, the transmission rate used on WIFI communication may be large, so that it may be determined that the communication load of WIFI communication is out of standard without performing communication load measurement such as communication speed.
The second preset list at least comprises any one or more than two of the following combinations: an application that uses a transmission rate on another communication that is less than the second preset rate threshold, an application that does not occupy the transmission rate locally, and an application that is offline to a third party. If it is detected that the first device uses the application on the second preset list on the other communication, it usually means that the communication load of the other communication is not exceeded. Specifically, if the other communication is WIFI, the second preset list may include applications whose transmission rate is less than or equal to the second preset rate threshold when used on the WIFI channel, where such applications occupy less WIFI bandwidth, such as applications like novels, books, and the like. In addition, the second preset list may further include applications that do not occupy the transmission rate locally, such as a local music player, a local video player, and the like. In addition, the second preset list may further include an application program of a third party offline, and the like. If the first device detects that the first device uses the application program on the second preset list on the WIFI communication, the communication load of the WIFI communication is determined to be not out of standard without performing communication load measurement such as communication speed, because the transmission rate used on the WIFI communication is smaller. The application does not limit the application program of the first preset list or the second preset list.
Referring to the above setting of the preset list and detection of the current transmission rate of the WIFI channel, for step S120, whether the communication load of another communication exceeds the standard may be determined as follows.
For step S120, a first embodiment is provided, please refer to fig. 2, specifically as follows:
s1211: and judging whether the current transmission rate of the WIFI communication is larger than a first preset rate threshold value.
In step S1211, if the current transmission rate of the WIFI communication is greater than the first preset rate threshold, step S1212 is performed, and if not, step S1213 is performed if the current transmission rate of the WIFI communication is less than or equal to the first preset rate threshold.
S1212: the communication load of the other communication exceeds the standard.
S1213: it is determined whether the first device is using an application on a first preset list on another communication.
In S1213, if the first device uses the application on the first preset list on another communication, step S1212 is performed, otherwise step S1214 is performed, and it is determined that the communication load of the other communication is not exceeded.
In some embodiments, step S1213 may also be to determine whether the first device is using an application on a second preset list on another communication; and if the first equipment uses the application program on the second preset list on the other communication, judging that the communication load of the other communication is not out of standard, otherwise, judging that the communication load of the other communication is out of standard.
S1214: the communication load of the other communication is not exceeded.
The specific implementation process of this embodiment may refer to the implementation process of the foregoing embodiment, and will not be described herein.
For step S120, a second embodiment is provided, please refer to fig. 3, specifically as follows:
s1221: it is determined whether the first device is using an application on a first preset list on another communication.
In step S1221, if the first device uses the application on the first preset list on another communication, step S1223 is performed, otherwise, step S1222 is performed.
In some embodiments, step S1221 may further be to determine whether the first device uses an application on a second preset list on another communication; if the first device uses the application on the second preset list on the other communication, step S1222 is executed to determine that the communication load of the other communication is not exceeded, otherwise, step S1223 is further executed.
S1222: the communication load of the other communication is not exceeded.
S1223: and judging whether the current transmission rate of the other communication is larger than a first preset rate threshold value.
In step S1223, if the current transmission rate on the other communication is greater than the first preset rate threshold, step S1224 is performed, otherwise, step S1222 is performed.
S1224: the communication load of the other communication exceeds the standard.
The specific implementation process of this embodiment may refer to the implementation process of the foregoing embodiment, and will not be described herein.
Optionally, the present application further provides an exit mechanism, if the first device uses the application on the first preset list on another communication, determining whether the application on the first preset list is no longer used in the subsequent process, and using the application on the second preset list; if the application program on the first preset list is not used later and the application program on the second preset list is used, whether the current transmission rate of the WIFI communication is larger than a first preset rate threshold value is further judged. And if the current transmission rate of the WIFI communication is not greater than the first preset rate threshold, improving the communication quality of the Bluetooth communication.
In addition, the application program used in another communication of the present application may be an application program for audio output, and when determining whether the current transmission rate of WIFI communication is greater than the first preset rate threshold, specifically, when determining that the current transmission rate of WIFI communication is an application program for current audio output.
The system of the first device stores a first preset list and a second preset list, wherein the preset list respectively comprises application configuration files of corresponding application programs, so that the first preset list or the second preset list can be judged by reading the configuration files.
S130: the first device reduces the communication quality of bluetooth communication.
If the communication load of the other communication exceeds the standard, the load resource of the shared communication channel is occupied too much, so that the communication quality of the Bluetooth communication is reduced, and the influence on the Bluetooth communication performance when the communication load exceeds the standard is reduced. If the first device is connected with the second device through Bluetooth communication, the first device acquires a first audio coding mode supported by the second device and matches the first audio coding mode supported by the first device for use, if the communication load of the other communication exceeds the standard, the first audio coding mode of the current output audio is switched to a second audio coding mode, wherein the coding quality of the second audio coding mode is lower than that of the first audio coding mode, and the high-quality audio coding mode can be switched to a low-quality audio coding mode.
Ending the flow.
S140: the first device does not degrade the communication quality of bluetooth communication.
If the communication load of the other communication is not out of standard, the load resource of the shared communication channel is not occupied too much, and the Bluetooth communication performance is not affected, so that the communication quality of the Bluetooth communication is not reduced, and the first audio coding mode, such as the high-quality audio coding mode, can be continuously used.
According to the Bluetooth transmission method, the use condition of the WIFI communication or the application program is combined to judge whether the communication load in the WIFI communication exceeds the standard, the communication quality of the Bluetooth communication is reduced when the communication load exceeds the standard, and the communication quality of the Bluetooth communication is not reduced when the communication load does not exceed the standard, so that the interference between the Bluetooth communication and the WIFI communication sharing the communication channel is reduced, and the communication quality is improved. Of course, the other communication is not limited to WIFI communication, and may be any other communication method sharing communication resources.
The present application provides a second embodiment of a bluetooth transmission method, referring to fig. 4, the method includes the following steps:
s210: the first device is connected with the second device through Bluetooth communication.
The first device may be an electronic terminal device having a communication function to perform communication connection with other devices. For example, the first device may be a cell phone, mobile computer, tablet, personal digital assistant (Personal Digital Assistant, PDA), media player, smart television, or the like. The second device may be an audio device such as a bluetooth headset, a speaker, a bluetooth car, etc. This embodiment is described as an example. Of course, the first device may also be an audio device, such as a bluetooth audio device, and the second device an electronic terminal device, such as a mobile terminal, having communication capabilities. The application is not limited in this regard.
The first device and the second device are connected through bluetooth communication, and can be used for transmitting audio, wherein the protocol for bluetooth audio transmission is A2DP (Advenced Audio Distribution Profile, advanced audio transmission model protocol), and LDAC is an encoding technology capable of wirelessly transmitting high-resolution audio, so as to achieve high-resolution audio transmission.
S220: and acquiring a first audio coding mode supported by the second equipment, and matching the first audio coding mode supported by the first equipment for use.
Wherein, the first device or the second device supports a plurality of audio coding modes, such as high-quality audio coding modes of LDAC (LowDelay Digital Audio Codec, low-delay digital audio coding), APT-X (Audio Processing Technology) or AAC (Advanced Audio Coding ) and the like; such as SBC (Sub Band Codec). In addition, the first device initiates a request to the second device, inquires the first audio coding mode supported by the second device, and the second device sends the first audio coding mode to the first device, so that the first device matches the first audio coding mode supported by the first device for use. For example, the first device acquires the high-quality audio coding mode supported by the second device, and defaults to use the high-quality audio coding mode.
S230: the current transmission rate of WIFI communication sharing a communication channel with bluetooth communication is detected.
The specific implementation of this step may refer to the implementation process of step S110 in the above embodiment, and will not be described herein.
S240: and judging whether the current transmission rate of the WIFI communication sharing the communication channel with the Bluetooth communication is larger than a first preset rate threshold value.
If step S240 determines that the current transmission rate of the WIFI communication is greater than the first preset rate threshold, step S250 is executed, and the current flow is ended. If step S240 determines that the current transmission rate of the WIFI communication is not greater than the first preset rate threshold, step S260 is continuously performed. The specific implementation of this step may refer to the implementation process of step S120 in the above embodiment, and will not be described herein.
S250: and switching the first audio coding mode of the current output audio to a second audio coding mode, wherein the coding quality of the second audio coding mode is lower than that of the first audio coding mode.
Because bluetooth communication and WIFI communication share 2.4GHz frequency channel, when the current transmission rate of WIFI communication is greater than first preset rate threshold value, the communication load of WIFI communication exceeds standard, and the phenomenon such as WIFI slows down, bluetooth audio card is led to use WIFI communication and bluetooth high-quality coding mode this moment, in order to coordinate the communication between WIFI communication and the bluetooth communication, switch the first audio coding mode of current output audio into the second audio coding mode, and the coding quality of second audio coding mode is less than first audio coding mode, if first audio coding mode can be high-quality audio coding mode, second audio coding mode can be low-quality coding mode or well quality coding mode. Because the broadband resources occupied by the low-quality audio coding mode in the Bluetooth channel are smaller than those of the high-quality audio coding mode, the Bluetooth communication is ensured to be normal, and the mutual interference of the WIFI communication and the Bluetooth communication is reduced.
Specifically, when the first audio coding mode of the current output audio is switched to the second audio coding mode, for example, when the high-quality audio coding mode of the current output audio is switched to the low audio coding mode, the system layer of the first device sends an instruction request for closing the high-quality audio to the bluetooth module of the first device, after receiving the instruction request, the bluetooth module sends instruction information for reducing audio coding to the bluetooth protocol stack of the first device, so that after receiving the instruction information for reducing audio coding, the bluetooth protocol stack sends instruction information for switching audio coding to the second device on a communication frequency band of bluetooth communication, and the second device can receive the instruction information for switching audio coding on the communication frequency band to respond to the instruction information for switching audio coding mode of the high quality audio to the low audio coding mode. Similarly, the first device may switch the low audio encoding mode of the current output audio to the high quality audio encoding mode by using the same procedure.
Ending the flow.
S260: and judging whether the application program used by the first device on the WIFI communication is on a first preset list or not.
When the current transmission rate of the WIFI communication is not greater than the first preset rate threshold, the communication load of the WIFI communication cannot exceed the standard, and the first audio coding mode and the high-quality audio coding mode can be continuously used. Reference may be made to the implementation procedure in the above first embodiment, and the details are not repeated here.
In addition, because the transmission rates of the WIFI communication required by different applications are different, consider two cases that the current transmission rate of the WIFI communication is not greater than the first preset rate threshold, and in the first case, the required transmission rate of the WIFI communication required by the application is less than the first preset rate threshold, and a high-quality audio encoding mode can be used. And secondly, when the required transmission rate of the WIFI communication occupied by the application program is greater than a first preset rate threshold, the current transmission rate of the WIFI communication is not greater than the first preset rate threshold, for example, when the signal of the WIFI communication is weaker, a low-quality audio coding mode is used.
Therefore, a preset list to which the application program used by the first device on the WIFI communication belongs is further detected. The preset list may include a plurality of preset lists, for example, the preset lists are divided into a plurality of preset lists according to a transmission rate of the application program, where each preset list may be associated with a corresponding audio coding mode. In this embodiment, the first preset list and the second preset list in the above embodiment are taken as examples, and the implementation process of step S120 in the above first embodiment may be specifically referred to for the first preset list and the second preset list, which are not described herein again.
Step S260 is executed if detecting that the application program used by the first device in WIFI communication is in the first preset list, and step S250 is executed; step S260 is executed if it is detected that the application program used by the first device in WIFI communication is not in the first preset list, and step S270 is executed in the second preset list.
S270: the first audio encoding mode continues to be used.
If the application program used by the first device in WIFI communication is detected in the second preset list, for example, the application program used in WIFI communication is detected to be a local music player, and the local music player does not need to use WIFI, does not occupy the load of the WIFI channel, and uses the first audio coding mode, such as a high-quality audio coding mode, in the second preset list.
In some application scenarios, after the low-quality audio coding is switched, the communication load of WIFI communication sharing a communication channel with bluetooth communication can be detected in a preset period, and whether the communication load of another communication exceeds the standard or the average value exceeds the standard in the preset period is judged. Specifically, the current transmission rate of the WIFI communication which shares the same antenna for signal transmission with the bluetooth communication is detected in a preset period, and whether the current transmission rate of the WIFI communication which shares the same antenna for signal transmission with the bluetooth communication is greater than a first preset rate threshold is determined, if the current transmission rate of the WIFI communication is not greater than the first preset rate threshold, the low-quality audio coding mode of the current output audio is switched to the high-quality audio coding mode.
According to the Bluetooth transmission method, the current transmission rate of WIFI communication sharing a communication channel with Bluetooth communication is detected first to judge whether the current transmission rate exceeds the first preset rate threshold value, so that the audio coding mode is changed according to the use condition of the WIFI, specifically, whether the Bluetooth channel can meet the high-quality audio coding mode is judged according to the current transmission rate of the WIFI, when the high-quality audio coding mode is not met, a preset list of an application program is judged to be used, so that whether the audio coding mode needs to be switched is judged, if the application program is judged to be used in the second preset list, the high-quality audio coding mode can still be used under the condition that the Bluetooth channel cannot meet the high-quality audio coding mode, the high-quality audio coding mode can be used under more conditions, the preset list of the application program and the transmission rate of the WIFI are combined, the audio coding mode can be switched according to different conditions, and mutual communication interference between the WIFI communication and the Bluetooth communication is reduced.
The present application provides a third embodiment of a bluetooth transmission method, referring to fig. 5, the method includes the following steps:
s310: the first device is connected with the second device through Bluetooth communication.
The specific implementation of this step may refer to the implementation process of step S210 in the above embodiment, and will not be described herein.
S320: and acquiring a first audio coding mode supported by the second equipment, and matching the first audio coding mode supported by the first equipment for use.
And after the first audio coding mode supported by the second equipment is acquired, the default matching high-quality audio coding mode is used. The specific implementation of this step may refer to the implementation process of step S220 in the above embodiment, and will not be described herein.
S330: and judging whether the application program used by the first device on the WIFI communication is on a first preset list or not.
Step S330 is executed if it is detected that the application program used by the first device in WIFI communication is not in the first preset list, and step S340 is executed in the second preset list; step S330 is executed if it is detected that the application program used by the first device in WIFI communication is in the first preset list, and step S350 is executed. The specific implementation of this step may refer to the implementation process of step S260 in the above embodiment, and will not be described herein.
S340: the first audio encoding mode continues to be used.
If it is detected that the application program used by the first device in WIFI communication is in the second preset list, because the application program in the second preset list does not substantially occupy the communication load in WIFI communication, the application program in the second preset list used by the first device does not affect the communication performance of bluetooth communication, and the first audio coding mode may still be used, that is, the audio coding mode does not need to be changed, and the high-quality audio coding mode is used. The specific implementation of this step may refer to the implementation procedure in the foregoing embodiment, and will not be described herein.
If it is detected that the application program used by the first device in WIFI communication is in the first preset list, because transmission rates of WIFI communication required by different application programs are different, two situations of the application program in the first preset list are considered, in which case one case, the required transmission rate of the application program in WIFI communication is larger, for example, the required transmission rate is larger than the second preset rate threshold, but the communication transmission rate of the current WIFI communication can support the application program to use a high quality audio coding mode.
Ending the flow.
S350: the current transmission rate of WIFI communication sharing a communication channel with bluetooth communication is detected.
The specific implementation of this step may refer to the implementation process of step S110 in the above embodiment, and will not be described herein.
S360: and judging whether the current transmission rate of the WIFI communication sharing the communication channel with the Bluetooth communication is larger than a first preset rate threshold value.
If step S360 determines that the current transmission rate of the WIFI communication is greater than the first preset rate threshold, step S370 is executed; if step S360 determines that the current transmission rate of the WIFI communication is not greater than the first preset rate threshold, step S340 is performed to continue using the first audio encoding mode, that is, the high quality audio encoding mode.
S370: and switching the first audio coding mode of the current output audio to a second audio coding mode, wherein the coding quality of the second audio coding mode is lower than that of the first audio coding mode.
Detecting that an application program used by a first device on WIFI communication is in a first preset list, and when judging that the current transmission rate of the WIFI communication is larger than a first preset rate threshold, exceeding the communication load of the WIFI communication at the moment, switching a first audio coding mode of current output audio into a second audio coding mode in order to reduce interference to Bluetooth communication, for example, switching a high-quality audio coding mode of current output audio into a low-quality audio coding mode, thereby achieving the communication performance of Bluetooth communication and not affecting the use of the Bluetooth communication.
In some application scenarios, the communication load of WIFI communication sharing a communication channel with bluetooth communication may be detected in a preset period, and it may be determined whether the communication load of another communication in the preset period is always out of standard or the average value is out of standard. Specifically, the current transmission rate of the WIFI communication sharing a communication channel with the bluetooth communication is detected in a preset period, and whether the current transmission rate of the WIFI communication sharing the communication channel with the bluetooth communication is greater than a first preset rate threshold is determined, if the current transmission rate of the WIFI communication is not greater than the first preset rate threshold, the low-quality audio coding mode of the current output audio is switched to the high-quality audio coding mode.
According to the Bluetooth transmission method provided by the embodiment, whether the Bluetooth channel can meet the high-quality audio coding mode is judged by judging the preset list of the application program, according to the preset list to which the currently used application program belongs, if the currently used application program is in the first preset list, the Bluetooth channel can not meet the high-quality audio coding mode, then the current transmission rate of WIFI communication sharing the communication channel with Bluetooth is detected, whether the current transmission rate exceeds the first preset rate threshold value is judged, whether the Bluetooth channel can meet the high-quality audio coding mode is judged according to the current transmission rate of WIFI, if the current transmission rate of WIFI is lower, the communication of WIFI communication does not exceed the first preset rate threshold value, and when the Bluetooth channel can be considered to meet the high-quality audio coding mode, and then under the condition that the preset list does not meet the high-quality audio coding mode, the high-quality audio coding mode can still be used, under more conditions, the preset audio coding mode of the application program and the transmission rate of WIFI can be combined, and the mutual interference of the WIFI communication and the Bluetooth list can be switched according to different conditions.
For the above embodiment, the present application also provides a fourth embodiment of a bluetooth transmission method, referring to fig. 6, the method includes the following steps:
s410: the second device is connected with the first device through Bluetooth communication, so that the first device detects the communication load of the other communication sharing the wireless communication channel with Bluetooth communication and judges whether the communication load of the other communication exceeds the standard.
The first device may be a mobile terminal, such as a mobile phone, a tablet computer, a notebook computer, a wearable device, etc., and the second device may be an audio device, such as a bluetooth headset, a sound box, a bluetooth vehicle, etc., however, the first device of the present application may also be an audio device, and the second device is a mobile terminal, etc., which is not limited in this aspect of the present application.
The second device and the first device may be connected through bluetooth communication, if another communication is used at this time, for example, another communication is WIFI communication, if the WIFI communication and the bluetooth communication share a wireless communication channel, interference may exist between the bluetooth communication and the another communication, and a communication load of the WIFI communication sharing the communication channel with the bluetooth communication is detected, so as to adjust a communication quality of the bluetooth communication according to the communication load of the another communication.
When the other communication is WIFI communication, if the WIFI communication and the Bluetooth communication share a wireless communication channel, detecting the current transmission rate of the WIFI communication sharing the communication channel with the Bluetooth communication, judging whether the communication load of the WIFI communication exceeds the standard or not through the current transmission rate of the WIFI communication, and if the current transmission rate of the WIFI communication is larger than a first preset rate threshold, exceeding the standard; if the current transmission rate of the WIFI communication is smaller than or equal to the first preset rate threshold, the communication load of the WIFI communication is not out of standard.
In some application scenarios, it may be determined whether the communication load of another communication exceeds a standard through the preset list of application programs currently used by the first program. Specifically, the application on the first preset list is an application that uses a transmission rate on another communication that is greater than the second preset rate threshold. The second preset list at least comprises the following steps: one or a combination of more than two of an application program with a transmission rate less than a second preset rate threshold, an application program with a local unoccupied transmission rate, and an application program with a third party offline, which are used on another communication. If the first device is detected to use the application program on the first preset list on the other communication, the communication load of the other communication is out of standard, wherein if the first device is detected to use the application program on the second preset list on the other communication, the communication load of the other communication is not out of standard.
In other application scenarios, judging whether the current transmission rate of the WIFI communication is greater than a first preset rate threshold, if the current transmission rate of the WIFI communication is greater than the first preset rate threshold, judging that the communication load of the other communication is out of standard, otherwise, continuously judging whether an application program on a first preset list is used on the other communication, if the application program on the first preset list is used on the other communication, judging that the communication load of the other communication is out of standard, otherwise, judging that the communication load of the other communication is not out of standard. Of course, the judgment of the preset list can be performed first, and then the current transmission rate of the WIFI communication can be further detected to judge whether the communication load of another communication exceeds the standard. The specific implementation of this step may refer to the implementation of the foregoing embodiment, and will not be described herein.
If it is determined in step S410 that the communication load of the other communication exceeds the standard, step S420 is executed, otherwise, step S430 is executed if the communication load of the other communication does not exceed the standard.
S420: if the communication load exceeds the standard, the second device and the first device communicate through Bluetooth communication with reduced communication quality.
When the second device establishes Bluetooth communication with the first device, a first audio coding mode supported by the first device can be acquired to be used in a mode of matching with the audio coding mode supported by the second device, and if the communication load exceeds the standard, the second device communicates with the first device through Bluetooth communication with reduced communication quality. The communication quality of Bluetooth communication is reduced, the first audio coding mode of the current output audio is switched to a second audio coding mode, wherein the coding quality of the second audio coding mode is lower than that of the first audio coding mode, and the high-quality audio coding mode can be switched to a low-quality audio coding mode. Specifically, after receiving instruction information for reducing audio coding sent by the first device on a communication frequency band of bluetooth communication, the second device responds to the instruction information to switch a first audio coding mode on the bluetooth communication into a second audio coding mode for communication, wherein the coding quality of the second audio coding mode is lower than that of the first audio coding mode, and can switch a high-quality audio coding mode into a low-quality audio coding mode for communication.
In some application scenarios, after the second device communicates with the first device through the bluetooth communication with reduced communication quality, according to the communication usage situation, the communication quality may need to be improved, the second device receives instruction information for improving audio coding sent by the first device on a communication frequency band of the bluetooth communication, and the second device responds to the instruction information to switch the second audio coding mode on the bluetooth communication to the first audio coding mode for communication, and can switch the low-quality audio coding mode to the high-quality audio coding mode for communication.
The specific implementation of this step may refer to the implementation of the foregoing embodiment, and will not be described herein.
S430: if the communication load is not exceeded, the second device and the first device communicate through Bluetooth communication without reducing the communication quality.
If the communication load is not out of standard, the second device and the first device communicate through the communication quality without reducing the Bluetooth communication, without reducing the communication quality of the Bluetooth communication, and the first audio coding mode is continuously used, for example, the high-quality audio coding mode is continuously used. The specific implementation of this step may refer to the implementation of the foregoing embodiment, and will not be described herein.
According to the Bluetooth transmission method, when the communication load exceeds the standard, the communication quality of Bluetooth communication is reduced, and when the communication load does not exceed the standard, the second equipment does not reduce the communication quality of Bluetooth communication, so that interference between Bluetooth communication and WIFI communication sharing a communication channel is reduced, and the communication quality is improved.
The present application provides a first embodiment of a terminal device, referring to fig. 7, the terminal device may be a mobile phone, a tablet computer, a notebook computer, a wearable device, etc., and in addition, the terminal device 500 may be a bluetooth audio device, such as a bluetooth headset, a sound box, a bluetooth vehicle, etc. The terminal device includes a detection module 510, a judgment module 520, and a control module 530. Wherein the detection module 510, the judgment module 520 and the control module 530 are connected to each other. The detection module 510 is configured to detect a communication load of another communication sharing a communication channel with bluetooth communication; the judging module 520 is configured to judge whether the communication load of another communication exceeds a standard; the control module 530 is configured to reduce the communication quality of bluetooth communication when the determination module 520 determines that the communication load exceeds the standard, or is configured to not reduce the communication quality of bluetooth communication when the determination module 520 determines that the communication load does not exceed the standard.
The terminal device of the present application may further include a bluetooth module 540, where the bluetooth module 540 is connected to the control module 530, and may be used for bluetooth connection between the terminal device and other devices to perform bluetooth communication, for example, in the foregoing embodiment, the bluetooth module 540 may perform communication between the first device and the second device to switch the audio coding manner. In addition, the terminal device of the present application may further include an audio module 550, and the audio module 550 is connected to the control module 530, for transmitting and receiving sound signals. In addition, the device of the present application may further include a WIFI module 560, where the WIFI module 560 is connected to the control module 530, and is configured to receive and transmit WIFI signals, and the detection module 510 may detect the signals of the WIFI module 560, so as to obtain a communication load of WIFI communication.
In some application scenarios, the terminal devices of the present application may communicate with each other, for example, when the detection module 510 detects a signal of the WIFI module 560 of the first device, and when the audio of the audio module 550 needs to be switched, the first device or the second device may perform control switching. Or when the detection module 510 of the second device detects the signal of the WIFI module 560 of the first device, the second device may switch the audio of the audio module 550. The present application is not limited herein, and the devices may perform detection and control of the audio module 550 after the terminal devices communicate with each other.
In the terminal device provided in this embodiment, because the bluetooth communication shares a communication channel with another communication, when the judging module 520 judges that the communication load of the other communication exceeds the standard, the broadband resource occupied by the other communication in the shared communication channel is larger, which affects the communication quality of the bluetooth communication, and the control module 530 reduces the communication quality of the bluetooth communication, so as to reduce the influence of the other communication on the bluetooth communication. When the judging module 520 judges that the communication load of the other communication is not out of standard, the other communication will not substantially affect the communication quality of the bluetooth communication, and the control module 530 will not reduce the communication quality of the bluetooth communication, so as to obtain better communication quality.
For the above embodiment, the present application provides a second example of a terminal device, referring to fig. 8, the terminal device 600 includes: the Bluetooth transmission system comprises a processor 610, a memory 620 and a Bluetooth module 630, wherein the processor 610 is respectively connected with the memory 620 and the Bluetooth module 630, the memory 620 is used for storing a computer program, and the computer program is executed by the processor 610 to realize the Bluetooth transmission method.
In this embodiment, the processor 610 may also be referred to as a CPU (Central Processing Unit ). The processor 610 may be an integrated circuit chip having signal processing capabilities. Processor 610 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor 610 may be any conventional processor or the like.
In some embodiments, the terminal device may further comprise other elements mentioned in the first embodiment above, and the description of the other elements may refer to the description of the first embodiment.
For the method of the above embodiment, which may exist in the form of a computer program, the present application proposes a computer readable storage medium, please refer to fig. 9, and fig. 9 is a schematic structural diagram of the computer readable storage medium according to the present application. The computer-readable storage medium 700 of the present embodiment stores therein a computer program 710 that can be executed to implement the method in the above embodiment.
The computer readable storage medium 700 of this embodiment may be a medium such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disc, which may store program instructions, or may be a server storing the program instructions, where the server may send the stored program instructions to another device for execution, or may also self-execute the stored program instructions.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be apparent to those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing description is only of embodiments of the present application, and is not intended to limit the scope of the application, and all equivalent structures or equivalent processes using the descriptions and the drawings of the present application or directly or indirectly applied to other related technical fields are included in the scope of the present application.

Claims (16)

1. A bluetooth transmission method, the method comprising:
the terminal device detects a communication load of another communication sharing a wireless communication channel with the Bluetooth communication;
Judging whether the communication load of the other communication exceeds a standard or not;
if the communication load exceeds the standard, the terminal equipment reduces the communication quality of the Bluetooth communication, or if the communication load does not exceed the standard, the terminal equipment does not reduce the communication quality of the Bluetooth communication;
wherein the judging whether the communication load of the other communication exceeds the standard comprises: the current transmission rate of the other communication is larger than a first preset rate threshold, or the current transmission rate of the other communication is smaller than or equal to the first preset rate threshold, and the terminal equipment uses an application program on a first preset list on the other communication, so that the communication load of the other communication is judged to be out of standard; the application program on the first preset list is an application program of which the transmission rate used on the other communication is larger than a second preset rate threshold value;
if the terminal equipment uses the application program on the first preset list on the other communication, judging whether the application program on the first preset list is not used any more in the follow-up process, and using the application program on a second preset list; if the application program on the first preset list is not used later and the application program on the second preset list is used, judging whether the current transmission rate of the other communication is larger than the first preset rate threshold value, wherein the application program on the second preset list at least comprises the following steps: one or more combination of an application program with a transmission rate smaller than the second preset rate threshold, an application program without occupying the transmission rate locally, and an application program offline by a third party, which are used on the other communication; and if the current transmission rate of the other communication is not greater than the first preset rate threshold, improving the communication quality of the Bluetooth communication of the terminal equipment.
2. The method according to claim 1, wherein the other communication is a WIFI communication, and the terminal device detects a communication load of the other communication sharing a communication channel with a bluetooth communication, comprising:
and the terminal equipment detects the current transmission rate of the WIFI communication which shares the same antenna with the Bluetooth communication for signal transmission.
3. The method of claim 2, wherein said determining whether the communication load of the other communication is excessive comprises:
judging whether the current transmission rate of the WIFI communication is larger than the first preset rate threshold value or not;
and if the current transmission rate of the WIFI communication is greater than the first preset rate threshold, judging that the communication load of the other communication exceeds the standard.
4. The method of claim 3, wherein the determining whether the current transmission rate of the WIFI communication is greater than the first preset rate threshold comprises:
if the current transmission rate of the WIFI communication is smaller than or equal to the first preset rate threshold, continuing to judge whether the terminal equipment uses the application program on the first preset list on the other communication;
And if the terminal equipment uses the application program on the first preset list on the other communication, judging that the communication load of the other communication exceeds the standard, otherwise, judging that the communication load of the other communication does not exceed the standard.
5. The method of claim 3, wherein the determining whether the current transmission rate of the WIFI communication is greater than the first preset rate threshold comprises:
if the current transmission rate of the WIFI communication is smaller than or equal to the first preset rate threshold, continuing to judge whether the terminal equipment uses the application program on the first preset list on the other communication;
and if the terminal equipment uses the application program on the second preset list on the other communication, judging that the communication load of the other communication is not out of standard.
6. The method of claim 1, wherein said determining whether the communication load of the other communication is excessive comprises:
judging whether the terminal equipment uses the application program on the first preset list on the other communication;
if the terminal equipment uses the application program on the first preset list on the other communication, continuously judging whether the current transmission rate of the other communication is greater than the first preset rate threshold;
And if the current transmission rate of the other communication is greater than the first preset rate threshold, judging that the communication load of the other communication exceeds the standard.
7. The method according to any one of claim 1 to 6, wherein,
before the terminal device detects a communication load of another communication sharing a wireless communication channel with bluetooth communication, it includes:
the terminal equipment is connected with the second equipment through Bluetooth communication;
the terminal equipment acquires a first audio coding mode supported by the second equipment and matches the first audio coding mode supported by the terminal equipment for use;
and if the communication load exceeds the standard, the terminal device reduces the communication quality of the bluetooth communication, including:
and if the communication load of the other communication exceeds the standard, switching the first audio coding mode of the current output audio to a second audio coding mode, wherein the coding quality of the second audio coding mode is lower than that of the first audio coding mode.
8. The method of claim 7, wherein switching the first audio encoding mode of the current output audio to a second audio encoding mode comprises:
The system layer of the terminal equipment sends an instruction request for switching the audio coding mode to the Bluetooth module of the terminal equipment;
the Bluetooth module receives the instruction request and sends instruction information for switching audio codes to a Bluetooth protocol stack of the terminal equipment;
the Bluetooth protocol stack receives the instruction information and sends the instruction information to the second device on a communication frequency band of the Bluetooth communication, so that the second device can receive and respond to the instruction information on the communication frequency band and switch the first audio coding mode to the second audio coding mode.
9. The method of claim 7, wherein the terminal device does not degrade communication quality of the bluetooth communication if the communication load is not exceeded, further comprising:
and if the communication load of the other communication is not out of standard, continuing to use the first audio coding mode.
10. The method according to claim 1, wherein the terminal device detects a communication load of another communication sharing a communication channel with bluetooth communication, comprising:
detecting a communication load of the other communication sharing a communication channel with the bluetooth communication in a preset period;
The judging whether the communication load of the other communication exceeds the standard or not further comprises:
and judging whether the communication load of the other communication in the preset period exceeds the standard or not.
11. A bluetooth transmission method, the method comprising:
the second device is connected with the terminal device through Bluetooth communication, so that the terminal device detects the communication load of another communication sharing a wireless communication channel with the Bluetooth communication and judges whether the communication load of the other communication exceeds the standard;
if the communication load exceeds the standard, the second device communicates with the terminal device through the Bluetooth communication with reduced communication quality, or if the communication load does not exceed the standard, the second device communicates with the terminal device through the Bluetooth communication with reduced communication quality;
wherein the judging whether the communication load of the other communication exceeds the standard comprises: the current transmission rate of the other communication is larger than a first preset rate threshold, or the current transmission rate of the other communication is smaller than or equal to the first preset rate threshold, and the terminal equipment uses an application program on a first preset list on the other communication, so that the communication load of the other communication is judged to be out of standard; the application program on the first preset list is an application program of which the transmission rate used on the other communication is larger than a second preset rate threshold value;
If the terminal equipment uses the application program on the first preset list on the other communication, judging whether the application program on the first preset list is not used any more in the follow-up process, and using the application program on a second preset list; if the application program on the first preset list is not used later and the application program on the second preset list is used, judging whether the current transmission rate of the other communication is larger than the first preset rate threshold value, wherein the application program on the second preset list at least comprises the following steps: one or more combination of an application program with a transmission rate smaller than the second preset rate threshold, an application program without occupying the transmission rate locally, and an application program offline by a third party, which are used on the other communication; and if the current transmission rate of the other communication is not greater than the first preset rate threshold, improving the communication quality of the Bluetooth communication of the terminal equipment.
12. The method of claim 11, wherein the step of determining the position of the probe is performed,
and if the communication load exceeds the standard, the second device communicates with the terminal device through the bluetooth communication with reduced communication quality, including:
The second device receives instruction information for reducing audio coding sent by the terminal device, responds to the instruction information, and switches a first audio coding mode on Bluetooth communication to a second audio coding mode for communication, wherein the coding quality of the second audio coding mode is lower than that of the first audio coding mode.
13. The method of claim 11, wherein the step of determining the position of the probe is performed,
after the second device communicates with the terminal device through the bluetooth communication with reduced communication quality, the method further includes:
the second equipment receives instruction information for improving audio coding sent by the terminal equipment, responds to the instruction information, and switches a second audio coding mode on Bluetooth communication into a first audio coding mode for communication, wherein the coding quality of the second audio coding mode is lower than that of the first audio coding mode.
14. A terminal device, the device comprising:
a detection module for detecting a communication load of another communication sharing a communication channel with bluetooth communication;
the judging module is used for judging whether the communication load of the other communication exceeds the standard;
The control module is used for reducing the communication quality of the Bluetooth communication when the judging module judges that the communication load exceeds the standard, or is used for not reducing the communication quality of the Bluetooth communication when the judging module judges that the communication load does not exceed the standard;
wherein the judging whether the communication load of the other communication exceeds the standard comprises: the current transmission rate of the other communication is larger than a first preset rate threshold, or the current transmission rate of the other communication is smaller than or equal to the first preset rate threshold, and the terminal equipment uses an application program on a first preset list on the other communication, so that the communication load of the other communication is judged to be out of standard; the application program on the first preset list is an application program of which the transmission rate used on the other communication is larger than a second preset rate threshold value;
if the terminal equipment uses the application program on the first preset list on the other communication, judging whether the application program on the first preset list is not used any more in the follow-up process, and using the application program on a second preset list; if the application program on the first preset list is not used later and the application program on the second preset list is used, judging whether the current transmission rate of the other communication is larger than the first preset rate threshold value, wherein the application program on the second preset list at least comprises the following steps: one or more combination of an application program with a transmission rate smaller than the second preset rate threshold, an application program without occupying the transmission rate locally, and an application program offline by a third party, which are used on the other communication; and if the current transmission rate of the other communication is not greater than the first preset rate threshold, improving the communication quality of the Bluetooth communication of the terminal equipment.
15. A terminal device, the device comprising: the device comprises a processor, a memory and a Bluetooth module, wherein the processor is respectively connected with the memory and the Bluetooth module, the memory is used for storing a computer program, and the computer program is executed by the processor to realize the method of any one of claims 1 to 13.
16. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which is executed by a processor to implement the method of any one of claims 1 to 13.
CN202010311545.XA 2020-04-20 2020-04-20 Bluetooth transmission method, terminal device and computer readable storage medium Active CN111510900B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010311545.XA CN111510900B (en) 2020-04-20 2020-04-20 Bluetooth transmission method, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010311545.XA CN111510900B (en) 2020-04-20 2020-04-20 Bluetooth transmission method, terminal device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111510900A CN111510900A (en) 2020-08-07
CN111510900B true CN111510900B (en) 2023-08-25

Family

ID=71864849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010311545.XA Active CN111510900B (en) 2020-04-20 2020-04-20 Bluetooth transmission method, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111510900B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112203132A (en) * 2020-11-13 2021-01-08 四川长虹电器股份有限公司 Method for quickly connecting Bluetooth remote controller during startup of android smart television

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010037641A (en) * 1999-10-19 2001-05-15 윤종용 Bluetooth interface module and method for transmission ofhi-quality audio data
KR20040026753A (en) * 2002-09-26 2004-04-01 한국전자통신연구원 Adaptive Frequency Hopping Sequence Generation Method for Bluetooth Communication
CN101925134A (en) * 2010-09-21 2010-12-22 中南民族大学 High throughput WLAN (Wireless Local Area Network) Mesh network rate selection method
CN107404339A (en) * 2017-08-14 2017-11-28 青岛海信电器股份有限公司 A kind of method and apparatus for adjusting bluetooth A2DP encoding settings
CN108737658A (en) * 2018-05-22 2018-11-02 Oppo(重庆)智能科技有限公司 Mobile terminal and its switching method of Bluetooth audio frequency coding mode, storage medium
CN109151861A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Encoding rate method of adjustment, device and electronic equipment
CN110086486A (en) * 2019-03-25 2019-08-02 普联技术有限公司 Signal receiving anti-jamming method, device, wireless telecom equipment and storage medium
CN110830970A (en) * 2019-11-19 2020-02-21 Oppo广东移动通信有限公司 Audio transmission method, device, equipment and storage medium between Bluetooth equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8666319B2 (en) * 2011-07-15 2014-03-04 Cisco Technology, Inc. Mitigating effects of identified interference with adaptive CCA threshold
CN107170460B (en) * 2017-06-30 2020-12-08 深圳Tcl新技术有限公司 Sound quality adjusting method, system, host terminal and storage medium
US20200044769A1 (en) * 2018-08-03 2020-02-06 Qualcomm Incorporated Adaptive bit rates for wi-fi and bluetooth coexistence

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010037641A (en) * 1999-10-19 2001-05-15 윤종용 Bluetooth interface module and method for transmission ofhi-quality audio data
KR20040026753A (en) * 2002-09-26 2004-04-01 한국전자통신연구원 Adaptive Frequency Hopping Sequence Generation Method for Bluetooth Communication
CN101925134A (en) * 2010-09-21 2010-12-22 中南民族大学 High throughput WLAN (Wireless Local Area Network) Mesh network rate selection method
CN107404339A (en) * 2017-08-14 2017-11-28 青岛海信电器股份有限公司 A kind of method and apparatus for adjusting bluetooth A2DP encoding settings
CN108737658A (en) * 2018-05-22 2018-11-02 Oppo(重庆)智能科技有限公司 Mobile terminal and its switching method of Bluetooth audio frequency coding mode, storage medium
CN109151861A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Encoding rate method of adjustment, device and electronic equipment
CN110086486A (en) * 2019-03-25 2019-08-02 普联技术有限公司 Signal receiving anti-jamming method, device, wireless telecom equipment and storage medium
CN110830970A (en) * 2019-11-19 2020-02-21 Oppo广东移动通信有限公司 Audio transmission method, device, equipment and storage medium between Bluetooth equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Interference analysis of IEEE 802.11n;Pritesh Chandaliya等;2012 International Conference on Communication, Information & Computing Technology (ICCICT);全文 *

Also Published As

Publication number Publication date
CN111510900A (en) 2020-08-07

Similar Documents

Publication Publication Date Title
US11202300B2 (en) Method and system for adjusting sound quality, and host terminal
CN107659987B (en) Method for adjusting terminal transmitting power, mobile terminal and storage device
US20180192396A1 (en) Method for bluetooth data forwarding, electronic device, bluetooth device, and bluetooth system
US20120020348A1 (en) Coexistence interface and arbitration for multiple radios sharing an antenna
CN109413526B (en) Earphone control method, earphone control device, electronic equipment and storage medium
CN108810749B (en) Player control method, device, terminal equipment and storage medium
CN109151212B (en) Equipment control method and device and electronic equipment
CN109275129B (en) Communication processing method, communication processing device, electronic equipment and storage medium
US11201598B2 (en) Volume adjusting method and mobile terminal
CN107566618B (en) Volume adjusting method and device, terminal equipment and storage medium
CN113891297A (en) Method for controlling Bluetooth connection and electronic equipment
CN110799936B (en) Volume adjusting method, volume adjusting device, terminal equipment and storage medium
CN104320699B (en) The dynamic adjusting method of bluetooth sound-producing device
CN111510900B (en) Bluetooth transmission method, terminal device and computer readable storage medium
WO2019033942A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
CN107483734B (en) Volume adjusting method and device, terminal equipment and storage medium
CN111343541A (en) Control method and device of wireless earphone, mobile terminal and storage medium
WO2019033941A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
CN105679350A (en) Audio playing method and device
KR101649203B1 (en) Peer setup of predefined modulation transmission
CN112995829B (en) Audio processing assembly for wireless communication and signal processing method thereof
CN114063967A (en) Play control method and device, electronic equipment and storage medium
CN112866970B (en) Communication connection method and device, electronic equipment and wireless transmission system
CN111918351B (en) Method and device for adjusting network parameters
US11853637B2 (en) Electronic device for synchronizing output time point of content output by external devices and method of operating same

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