Display device and channel resource allocation method
By reporting BQR information through the Bluetooth module, the controller can allocate channel resources reasonably based on the BQR information, which solves the channel allocation problem of Bluetooth applications under limited bandwidth resources and ensures the stability and efficiency of Bluetooth applications.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2026-03-20
AI Technical Summary
When Bluetooth applications use limited bandwidth resources simultaneously, the inability to allocate channel resources reasonably can lead to problems such as control failure and audio stuttering.
The Bluetooth module reports Bluetooth Quality Report (BQR) information to the controller, including A2DP audio stuttering information, channel sharing tracking information, and connected link tracking information. The controller then allocates channel resources accordingly based on this information.
This enables the efficient use of channel resources in Bluetooth applications, avoiding control failures and audio stuttering, and ensuring the stability and efficiency of Bluetooth applications.
Smart Images

Figure CN115942284B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of communication, and in particular to a display device and a channel resource allocation method. BACKGROUND
[0002] Bluetooth usage scenarios are becoming more and more, taking some televisions as examples, the Bluetooth applications that can be used in the televisions at the same time can include: Bluetooth Mesh, Bluetooth remote control, Bluetooth sound box, Bluetooth near-field voice, Bluetooth network distribution, health monitoring, electronic fence and the like. If multiple applications in the television use the channel resources of Bluetooth at the same time, the tasks cannot be completed on the limited bandwidth resources, and therefore it is urgent to reasonably allocate channel resources for Bluetooth applications. SUMMARY
[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a display device and a channel resource allocation method, which can report Bluetooth Quality Report (BQR) information to a controller through a Bluetooth module, so that the controller can reasonably allocate channel resources for Bluetooth applications according to the BQR information.
[0004] In order to achieve the above purpose, the technical scheme provided by the embodiments of the present disclosure is as follows:
[0005] In a first aspect, a display device is provided, comprising:
[0006] a Bluetooth module configured to: obtain Bluetooth Quality Report (BQR) information, and send the BQR information to a controller; the BQR information includes at least one of A2DP audio stuttering information, channel common tracking information, and connected link tracking information;
[0007] the controller is configured to: receive the BQR information; in response to receiving a channel resource request of a first Bluetooth application, allocate channel resources for the first Bluetooth application according to the BQR information;
[0008] The A2DP audio stuttering information is used to indicate whether audio will stutter in a first preset time period; the channel common tracking information includes channel occupation information of Bluetooth applications and Wi-Fi applications of each protocol in 2.4G channel resources; and the connected link tracking information is used to indicate whether the connected link will time out or frequency hop in a second preset time period.
[0009] In a second aspect, a channel resource allocation method is provided, comprising:
[0010] obtain Bluetooth quality report (BQR) information, wherein the BQR information comprises at least one of A2DP audio stall information, channel-common tracking information, and connected-link tracking information;
[0011] allocate channel resources for the first Bluetooth application according to the BQR information in response to receiving a channel resource request of the first Bluetooth application;
[0012] The A2DP audio stall information is used to indicate whether audio will be stalled within a first preset time length. The channel-common tracking information comprises channel occupation information of Bluetooth applications and Wi-Fi applications of each protocol in 2.4G channel resources. The connected-link tracking information is used to indicate whether the connected link will be timed out or frequency-hopped within a second preset time length.
[0013] In a third aspect, the present disclosure provides a computer-readable storage medium, comprising: a computer program stored on the computer-readable storage medium, the computer program being executed by a processor to implement the channel resource allocation method according to the first aspect.
[0014] In a fourth aspect, the present disclosure provides a computer program product, comprising a computer program, which, when executed on a computer, causes the computer to implement the channel resource allocation method according to the first aspect.
[0015] The display device and the channel resource allocation method provided by the embodiments of the present disclosure can obtain BQR information and send the BQR information to the controller. The BQR information comprises at least one of A2DP audio stall information, channel-common tracking information, and connected-link tracking information. The controller can receive the BQR information. In response to receiving a channel resource request of a first Bluetooth application, the controller can allocate channel resources for the first Bluetooth application according to the BQR information. Through the scheme, the Bluetooth module can report the BQR information to the controller. When the controller receives a channel resource request of a Bluetooth application, the controller can allocate channel resources for the Bluetooth application based on the BQR information, considering one or more of the following information: whether Bluetooth audio will be stalled, channel occupation information of Bluetooth applications and Wi-Fi applications of each protocol in 2.4G channel resources, and whether the connected link will be timed out or frequency-hopped. In this way, the Bluetooth application can be allocated channel resources reasonably, and the channel resources can be utilized reasonably, based on the information about resource allocation, transmission effect of Bluetooth audio, and connection stability of the connected link. BRIEF DESCRIPTION OF DRAWINGS
[0016] The accompanying drawings, which are incorporated herein and form part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, further serve to explain the principles of the present disclosure.
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
[0018] Figure 1 The scene schematic diagram in some embodiments provided by the present disclosure;
[0019] Figure 2 The configuration block diagram of the control device 100 in some embodiments provided by the present disclosure;
[0020] Figure 3 The hardware configuration block diagram of the display device 200 in some embodiments provided by the present disclosure;
[0021] Figure 4 The software configuration schematic diagram in the display device 200 according to one or more embodiments of the present disclosure;
[0022] Figure 5 The flowchart of reporting BQR information in a Bluetooth system in some embodiments provided by the present disclosure;
[0023] Figure 6 The flowchart of a channel resource allocation method provided by the present disclosure;
[0024] Figure 7 The schematic diagram of acquiring BOR parameters after enabling BOR mechanism provided by the present disclosure;
[0025] Figure 8A The flowchart of allocating channel resources according to BQR information provided by the present disclosure Figure 1 ;
[0026] Figure 8B The flowchart of allocating channel resources according to BQR information provided by the present disclosure Figure 2 ;
[0027] Figure 9 The flowchart of allocating channel resources according to BQR information provided by the present disclosure Figure 3 ;
[0028] Figure 10 The flowchart of allocating channel resources according to BQR information provided by the present disclosure Figure 4 ;
[0029] Figure 11AA flowchart of allocating channel resources according to BQR information provided by an embodiment of the present disclosure Figure 5 ;
[0030] Figure 11B A flowchart of allocating channel resources according to BQR information provided by an embodiment of the present disclosure Figure 6 . DETAILED DESCRIPTION
[0031] In order to more clearly understand the above-mentioned purposes, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0032] In the following description, a large number of specific details are set forth in order to facilitate a thorough understanding of the present disclosure, but the present disclosure can also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some of the embodiments of the present disclosure, not all the embodiments.
[0033] At present, the use scenarios of Bluetooth are becoming more and more, taking some televisions as an example, the Bluetooth applications that can be used in the television at the same time can include: Bluetooth Mesh, Bluetooth remote control, Bluetooth sound box, Bluetooth near-field voice, Bluetooth network distribution, health monitoring, electronic fence and other functions. If multiple applications in the television use the channel resources of Bluetooth at the same time at the same time, these tasks cannot be completed on the limited bandwidth resources, so it is urgent to reasonably allocate channel resources for Bluetooth applications.
[0034] Low-power Bluetooth audio (LE Audio) occupies more underlying channel resources, so the current application development guidelines indicate that the Bluetooth application developed by the application developer needs to obtain the underlying working mode to enable the optimal configuration for the underlying channel resources. However, for Bluetooth applications, the usage of the underlying channel resources cannot be known through a general way when the Bluetooth application is started, resulting in a conflict between the Bluetooth application and the supported channel resources of the hardware, and ultimately leading to a series of problems such as Bluetooth control failure, Bluetooth sound box audio playback lag, etc.
[0035] In the related art, in order to solve the above-mentioned problems, the following two ways are usually used to solve them:
[0036] (1) The chip manufacturer optimizes the chip itself, formulates a strategy for Bluetooth and Wi-Fi coexistence, time-division multiplexing / frequency-division multiplexing channel resources, and performs aggregated transmission of data packets, etc.
[0037] (2) Device manufacturers or application developers generally use a private scheme to monitor the signal strength and signal quality of the connected device in a polling manner to adjust the channel resource usage of the Bluetooth application, because they cannot change the chip bottom program.
[0038] However, the above-mentioned method (1) cannot improve the use of channel resources in the scenario where the Bluetooth application is frequently used. The above-mentioned method (2) has the following problems: on the one hand, only specific Bluetooth applications or specific device manufacturers can use the above-mentioned method (2) for optimization, so the method is not universal; on the other hand, the Bluetooth application uses a private protocol to detect the connected device, and frequently detects the signal strength or signal quality, which will aggravate the channel congestion in the case of channel congestion.
[0039] To solve the above problems, we provide a display device and a channel resource allocation method, which can report BQR information to the controller through the Bluetooth module, so that the controller can allocate channel resources to the Bluetooth application according to the BQR information.
[0040] In the Android operating system developed after the Android R version, the BQR mechanism is developed, and the Bluetooth module (also referred to as the Bluetooth module) is included in the mechanism. In the embodiment of the present disclosure, the BQR mechanism can be used to report BQR information to the controller through the Bluetooth module, so that the controller can allocate channel resources to the Bluetooth application according to the BQR information, so as to realize the reasonable allocation of channel resources.
[0041] The BQR information involved in the embodiment of the present disclosure can include but is not limited to at least one of the following:
[0042] (1) A2DP audio choppy information (Advanced Audio Distribution Profile Audio Choppy, A2DP Audio Choppy);
[0043] The above-mentioned A2DP Audio Choppy is used to indicate whether the audio will appear choppy in the first preset time length.
[0044] (2) Multi-profile / coex scheduling trace information;
[0045] The above-mentioned Multi-profile / coex scheduling trace includes: channel occupation information of Bluetooth applications and Wi-Fi applications of each protocol in the 2.4G channel resource.
[0046] (3) Link Layer Message Trace (LL Message Trace) of the connected link.
[0047] The LL Message Trace is used to indicate whether the connected link will time out or hop in a second preset time length.
[0048] The first preset time length and the second preset time length can be set according to actual conditions, and embodiments of the present disclosure are not limited.
[0049] Figure 1 A scene schematic diagram in some embodiments provided by the present disclosure.
[0050] As shown in Figure 1 , the scene schematic diagram can include a control device 100, a display device 200, a smart device 300, and a server 400. A user can operate the display device 200 through the smart device 300 or the control device 100, and the display device 200 can establish a Bluetooth connection with the control device 100 or the smart device 300.
[0051] In some embodiments, the control device 100 can be a remote controller, and communication between the remote controller and the display device includes infrared protocol communication, Bluetooth protocol communication, wireless or other wired methods to control the display device 200. A user can input a user instruction through a button on the remote controller, voice input, control panel input, etc. to control the display device 200. In some embodiments, a mobile terminal, a tablet computer, a computer, a notebook computer, and other smart devices can also be used to control the display device 200.
[0052] In some embodiments, the smart device 300 can install a software application on the display device 200, and implement connection communication through a network communication protocol to achieve the purpose of one-to-one control operation and data communication. The smart device 300 can also transmit audio and video content displayed thereon to the display device 200 to achieve a synchronous display function. The display device 200 also communicates data with the server 400 through various communication methods. The display device 200 can be allowed to communicate and connect through a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 can provide various content and interaction to the display device 200. The display device 200 can be a liquid crystal display, an OLED display, or a projection display device. In addition to providing a broadcast receiving television function, the display device 200 can also provide a smart network television function with computer support function.
[0053] Figure 2 A configuration block diagram of the control device 100 in some embodiments provided by the present disclosure is shown in Figure 2As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive user input commands and convert them into commands that the display device 200 can recognize and respond to, acting as an intermediary for interaction between the user and the display device 200. The communication interface 130 is used for external communication and includes at least one of a Wi-Fi chip, a Bluetooth module, NFC, or a replacement module. The user input / output interface 140 includes at least one of a microphone, a touchpad, a sensor, buttons, or a replacement module.
[0054] Figure 3 Hardware configuration block diagrams of display device 200 in some embodiments provided for this disclosure. For example... Figure 3 The display device 200 includes: a tuner / demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, etc. The controller 250 includes a central processing unit, a video processor, an audio processor, a graphics processor, RAM, ROM, and a first to nth interface for input / output. The display 260 can be at least one of a liquid crystal display, an OLED display, a touch display, and a projection display, and can also be a projection device and a projection screen. The tuner / demodulator 210 receives broadcast television signals via wired or wireless means, and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals. The detector 230 is used to collect signals from the external environment or signals interacting with the external environment. The controller 250 and the tuner / demodulator 210 can be located in different separate devices; that is, the tuner / demodulator 210 can also be an external device of the main device where the controller 250 is located, such as an external set-top box.
[0055] In some embodiments, the display device described above is a terminal device with display function, such as a television, mobile phone, computer, or learning machine.
[0056] In some embodiments, the controller 250 controls the operation of the display device and responds to user operations via various software control programs stored in memory. The controller 250 controls the overall operation of the display device 200. The user can input user commands through a graphical user interface (GUI) displayed on the monitor 260, and the user input interface receives the user input commands through the GUI. Alternatively, the user can input user commands by inputting specific sounds or gestures, and the user input interface receives the user input commands by recognizing the sounds or gestures through sensors. Output interfaces (monitor 260, and / or audio output interface 270) are configured to output user interaction information.
[0057] The communicator 220 is configured to communicate with the server 400 or other devices.
[0058] In some embodiments, the Bluetooth module in the communicator 220 can acquire Bluetooth quality report (BQR) information and send the Bluetooth module BQR information to the controller; the Bluetooth module BQR information includes at least one of A2DP audio stutter information, channel-common tracking information, and connected-link tracking information; the Bluetooth module controller 250 can receive the Bluetooth module BQR information; in response to receiving a channel resource request of a first Bluetooth application, the Bluetooth module controller 250 can allocate channel resources to the first Bluetooth application according to the Bluetooth module BQR information.
[0059] The A2DP audio stutter information is used to indicate whether audio will stutter in a first preset time period; the channel-common tracking information includes channel occupation information of Bluetooth applications and Wi-Fi applications of each protocol in 2.4G channel resources; and the connected-link tracking information is used to indicate whether a timeout or frequency hopping will occur in a second preset time period.
[0060] In some embodiments, the Bluetooth module BQR information includes the connected-link tracking information.
[0061] The controller 250, in response to receiving a channel resource request of a first Bluetooth application, allocates Bluetooth channel resources to the first Bluetooth application according to the BQR information, including:
[0062] In response to receiving a channel resource request of a first Bluetooth application;
[0063] In a case where the connected-link tracking information indicates that a timeout or frequency hopping will occur in a second preset time period, it is determined that no channel resources are allocated to the first Bluetooth application.
[0064] In a case where the connected-link tracking information indicates that no timeout or frequency hopping will occur in a second preset time period, channel resources are allocated to the first Bluetooth application.
[0065] In some embodiments, the controller 250, in a case where the connected-link tracking information indicates that no timeout or frequency hopping will occur in a second preset time period, allocates channel resources to the first Bluetooth application, including:
[0066] In a case where the connected-link tracking information indicates that no timeout or frequency hopping will occur in a second preset time period, the application type of the first Bluetooth application is determined.
[0067] In a case where the application type is a Bluetooth audio type, channel resources are allocated to the first Bluetooth application, and in a case where a detection function of the A2DP audio stutter information is not turned on, the detection function of the A2DP audio stutter information is turned on, so that the Bluetooth module listens to the A2DP audio stutter information.
[0068] In some embodiments, the controller 250 is configured to, in response to receiving the channel resource request of the first Bluetooth application, allocate the Bluetooth channel resource for the first Bluetooth application according to the BQR information, comprising:
[0069] In response to receiving the channel resource request of the first Bluetooth application, determining whether the first remaining channel resource meets the requirement of the first Bluetooth application according to the tracking information of the channel sharing;
[0070] In the case that the remaining channel resource meets the requirement of the first Bluetooth application, allocating the channel resource for the first Bluetooth application based on the remaining channel resource;
[0071] In the case that the remaining channel resource does not meet the requirement of the first Bluetooth application, determining a second Bluetooth application with a priority lower than the first Bluetooth application; adjusting the channel resource occupied by the second Bluetooth application from the first channel resource to a second channel resource, the resource amount of the second channel resource being less than that of the first channel resource;
[0072] Receiving the tracking information of the channel sharing again;
[0073] Determining whether the remaining channel resource meets the requirement of the first Bluetooth application again according to the tracking information of the channel sharing received again;
[0074] In the case that the remaining channel resource determined again meets the requirement of the first Bluetooth application, allocating the channel resource for the first Bluetooth application based on the remaining channel resource determined again.
[0075] In some embodiments, the first Bluetooth application is a control device voice application;
[0076] The controller is specifically configured to, in response to receiving the channel resource request of the first Bluetooth application, determine whether the first remaining channel resource meets the requirement of the first Bluetooth application according to the tracking information of the channel sharing, comprising:
[0077] In response to receiving the channel resource request of the control device voice application, determining whether the channel resource has been allocated for the Bluetooth audio application;
[0078] In the case that the channel resource has been allocated for the Bluetooth audio application, terminating the Bluetooth audio transmission of the Bluetooth audio application to release the channel resource occupied by the Bluetooth audio application;
[0079] Determining whether the first remaining channel resource meets the requirement of the first Bluetooth application according to the tracking information of the channel sharing.
[0080] In some embodiments, the first Bluetooth application is a Bluetooth audio application;
[0081] The controller 250 is also configured to, after allocating channel resources for the first Bluetooth application based on BQR information, respond to receiving the A2DP audio stuttering information indicating that audio stuttering will occur within the first preset duration, output a prompt message, the prompt message being used to prompt the user to reduce the audio quality to avoid audio stuttering;
[0082] In response to receiving an input command to reduce audio quality, the sampling rate of the Bluetooth audio application is adjusted from a first sampling rate to a second sampling rate, where the first sampling rate is greater than the second sampling rate.
[0083] In some embodiments, the controller 250 is further configured to, in response to the A2DP audio stuttering information indicating that audio stuttering will occur within the first preset duration, output a prompt message, and then, based on the channel sharing tracking information, determine other Bluetooth applications that share the 2.4G channel resources with the Bluetooth audio application, adjust the channel resources occupied by the other Bluetooth applications from the third channel resources to the fourth channel resources, wherein the amount of resources in the fourth channel resources is less than the amount of resources in the third channel resources.
[0084] In some embodiments, the controller 250 is further configured to send BQR parameters to the Bluetooth module before receiving the BQR information. The BQR parameters include: the type of reported BQR information and the period for reporting BQR information. The type of BQR information includes at least one of the A2DP audio stuttering information, the channel shared tracking information, and the tracking information of the connected link.
[0085] The Bluetooth module is further configured to receive the BQR parameters before acquiring the BQR information, and to enable the detection function of the information corresponding to the reported BQR information type according to the reported BQR information type, so as to acquire the BQR information.
[0086] like Figure 4 As shown, Figure 4 This is a schematic diagram of the software configuration in a display device 200 according to one or more embodiments of the present disclosure, such as... Figure 4As shown, the system is divided into four layers, from top to bottom, Applications layer (referred to as "application layer" for short), Application Framework layer (referred to as "framework layer" for short), Android runtime and system library (Native) layer (referred to as "system runtime library layer" for short), and kernel layer. The kernel layer at least includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power supply driver, etc. The video data transmission method provided by the embodiment of the disclosure can be implemented based on the above display device, and specifically can be implemented through a player in the display device.
[0087] In the embodiment of the disclosure, an application management module can be arranged in the system library (Native) layer of the Android system, and the Bluetooth module reports the BQR information to the application management module, so that the controller in the display device can comprehensively schedule the channel resources of the Bluetooth application through the application management module, and ensure the reasonable use of the channel resources. As an example, the application management module can be arranged in the Native layer in the system runtime library layer as shown, and the BQR information reported by the Bluetooth module is received, so as to comprehensively schedule the channel resources for the Bluetooth application. Figure 4 As shown, the application management module is arranged in the Native layer in the system runtime library layer, and the BQR information reported by the Bluetooth module is received, so as to comprehensively schedule the channel resources for the Bluetooth application.
[0088] Figure 5 The flowchart of reporting the BQR information in the Bluetooth system in some embodiments provided by the embodiment of the disclosure is shown.
[0089] As shown, Figure 5 The Bluetooth system mainly includes two parts: Host and Controller. The Host refers to a functional module (implemented by code) running in the System on Chip (SOC), and the Controller refers to the Bluetooth module (also referred to as Bluetooth module). At the beginning, the BQR mechanism needs to be enabled in the Bluetooth protocol stack of the Host, and the BQR information types to be reported and the period of reporting the BQR information (referred to as BQR parameters in the embodiment of the disclosure) are issued to the Controller to start the BQR mechanism of the Controller. In this process, the BQR parameters can be default settings, and in the subsequent process of using the BQR mechanism, the application management module can set and modify the BQR parameters, and the BQR parameters set by the application management module are transmitted to the Bluetooth module layer by layer. Specifically, the application management module can first transmit the set BQR parameters to the Framework layer, and then transmit the BQR parameters to the Bluetooth protocol stack by the Framework layer, and finally transmit the BQR parameters to the Bluetooth module by the Bluetooth protocol stack.
[0090] After the Bluetooth module obtains the BQR information according to the BQR parameters, the Bluetooth module will transmit the BQR information to the application management module through the uplink channel. Specifically, after obtaining the BQR information, the Bluetooth module first transmits the BQR information to the Bluetooth protocol stack, and then the Bluetooth protocol stack transmits the BQR information to the Framework layer, and finally the Framework layer transmits the BQR information to the application management module.
[0091] After the application management module obtains the A2DP audio stall information in the BQR information, it can be perceived that the audio will start to stall in the scenario of playing Bluetooth audio. After the application management module obtains the channel-shared tracking information in the BQR information, it can also know how many Bluetooth applications or Wi-Fi applications are currently using the Bluetooth channel, and can perform task scheduling according to the priority. The application management module can also know the situation of 2.4G channel resource occupation, and can know the influence of Wi-Fi application occupying channel resources on Bluetooth application. In this way, the channel resources of the background running application can be limited, and the channel resources of the foreground running application can be preferentially guaranteed. Further, when the application management module obtains the tracking information of the connected link in the BQR information, it can also know whether the connection status of the connected link is stable, whether timeout or frequency hopping will occur, so as to judge whether more channel resources can be allocated to Bluetooth applications.
[0092] To further illustrate the present scheme, the following will be described in an exemplary manner in combination with Figure 6 It should be understood that Figure 6 The steps involved in the above-mentioned embodiments can include more steps or fewer steps, and the order between the steps can be different, as long as the channel resource allocation method provided in the embodiments of the present disclosure can be implemented. The channel resource allocation method can be applied to the display device 200 as shown in Figure 3 .
[0093] Figure 6 A flowchart of a channel resource allocation method provided by the embodiments of the present disclosure is shown in Figure 6 , which can include but is not limited to the following steps:
[0094] 601, obtaining BQR information.
[0095] Among the BQR information, at least one of the A2DP audio stall information, the channel-shared tracking information, and the tracking information of the connected link is included.
[0096] The above-mentioned BQR information can be obtained by the Bluetooth module in the display device.
[0097] In some embodiments, the BQR information can be acquired based on default BQR parameters, and the BQR information can also be acquired based on BQR parameters set by an application management module in the display device. The BQR parameters include a type of reported BQR information and a period of reporting the BQR information. The type of BQR information includes at least one of A2DP audio stall information, channel-common tracking information, and connected-link tracking information.
[0098] The A2DP audio stall information is used to indicate whether audio will be stalled in a first preset time period. The channel-common tracking information includes channel occupation information of Bluetooth applications and Wi-Fi applications in each protocol in 2.4G channel resources. The connected-link tracking information is used to indicate whether a timeout or frequency hopping will occur in a second preset time period.
[0099] In some embodiments, the application management module can send the BQR parameters to the Bluetooth module before the Bluetooth module acquires the BQR information. The Bluetooth module can receive the BQR parameters, and according to the type of reported BQR information in the BQR parameters, start the detection function corresponding to the type of reported BQR information to acquire the BQR information.
[0100] The BQR mechanism in the embodiments of the present disclosure needs to be enabled in the Bluetooth protocol stack of the Host. The enabling method of enabling the BQR mechanism can include: when the system is started, performing a starting operation of the Bluetooth system, and enabling the BQR mechanism in the Bluetooth protocol stack in the Bluetooth system. The Bluetooth system can be as shown in the above Figure 5 .
[0101] Figure 7 A schematic diagram of enabling the BOR mechanism and then acquiring the BOR parameters is provided in the embodiments of the present disclosure.
[0102] As shown in Figure 7 , after the Bluetooth system is started, the Bluetooth protocol stack performs instruction packetization, and the type of BQR information to be reported and the period of reporting the BQR information (referred to as BQR parameters in the embodiments of the present disclosure) are sent to the Bluetooth module. In this way, the Bluetooth module can obtain the default BQR parameters, and the transmission process is as shown by the dashed arrow in Figure 7 . In the subsequent process of using the BQR mechanism, the application management module can set and modify the BQR parameters, and the BQR parameters set by the application management module are sent to the Bluetooth module layer by layer. Specifically, the application management module can first send the set BQR parameters to the Framework layer, and then the Framework layer sends the BQR parameters to the Bluetooth protocol stack, and finally the Bluetooth protocol stack sends the BQR parameters to the Bluetooth module. The transmission process is as shown by the solid arrow in Figure 7 .
[0103] The BQR parameter can include, but is not limited to, the following information:
[0104] (1) The type of reported BQR information;
[0105] According to the type of reported BQR information, it can be set which information can be reported by the Bluetooth module. The Android operating system defines that the Bluetooth module can report 8 events, and in the embodiment of the present disclosure, only the flag bits related to 3 events of “A2DP Audio Choppy”, “Multi-profile / Coex scheduling Tarce” and “LL Message Trace” need to be set, and at least one of “A2DP Audio Choppy”, “Multi-profile / Coex scheduling Tarce” and “LL Message Trace” is reported.
[0106] For example, 4 bytes (byte) can be used in Android to indicate whether to report “A2DP Audio Choppy”, “Multi-profile / Coex scheduling Tarce” or “LL Message Trace”.
[0107] For example, “A2DP Audio Choppy” is reported, and the flag bit corresponding to the “A2DP Audio Choppy” event can be represented by a hexadecimal number as 0X00000004.
[0108] For example, “Multi-profile / Coex scheduling Tarce” is reported, and the flag bit corresponding to the “Multi-profile / Coex scheduling Tarce” event can be represented by a hexadecimal number as 0X00020000.
[0109] For example, “LL Message Trace” is reported, and the flag bit corresponding to the “LL Message Trace” event can be represented by a hexadecimal number as 0X00010000.
[0110] In the case of indicating that “A2DP Audio Choppy”, “Multi-profile / Coex scheduling Tarce” and “LL Message Trace” are reported, the identification bits of the above three events can be operated by OR, and the result of the OR operation can be represented as 0X00030004.
[0111] (2) the period of reporting BQR information
[0112] The period of reporting BQR information can be adjusted based on the use case of the Bluetooth application. For example, based on the use case of the Bluetooth application, the period of reporting BQR information is set to about 1 second. In this way, the Bluetooth application can detect the event without increasing the load of the Bluetooth module. For example, the period of reporting BQR information can be set to 1 second, 0.9 seconds, or 1.1 seconds.
[0113] In the embodiments of the present disclosure, the application management module can adjust the above-mentioned (1) and (2) two parameters included in the BQR parameter on demand, and trigger the function of resetting the BQR parameter.
[0114] For example, in the case where the Bluetooth audio application is not started, the A2DP Choppy event can not be started.
[0115] In the embodiments of the present disclosure, after the Bluetooth module reports the BQR information to the application management module according to the BQR parameter, the application management module allocates and schedules the channel resources for the Bluetooth application according to the BQR information through the channel resource allocation strategy.
[0116] 602, receiving a channel resource request of a first Bluetooth application.
[0117] The first Bluetooth application can be any Bluetooth application, for example, a voice application of a control device (which can be a remote controller), a Bluetooth audio application, a new form Bluetooth application, etc.
[0118] The above-mentioned new form Bluetooth application can include a Bluetooth network configuration application, an electronic fence application, etc.
[0119] The above-mentioned channel resource request is used to request to allocate channel resources for the first Bluetooth application to establish a Bluetooth link. The application management module can receive the first channel resource request, and in response to the request, the application management module allocates channel resources for the first Bluetooth application according to the BQR information.
[0120] 603, allocating channel resources for the first Bluetooth application according to the BQR information.
[0121] In response to receiving the channel resource request of the first Bluetooth application, channel resources are allocated for the first Bluetooth application according to the BQR information.
[0122] In the embodiments of the present disclosure, for the scenario where multiple Bluetooth applications coexist, channel resources can be allocated for the Bluetooth application based on the priority of the multiple Bluetooth applications in addition to the BQR information.
[0123] For example, the priority of the Bluetooth application can be set as: the priority of the control device application is higher than that of the Bluetooth audio application; the priority of the Bluetooth audio application is higher than that of the new form application.
[0124] In the above example, it is assumed that the control device application includes a control device key application and a control device voice application; the new form Bluetooth application includes a Bluetooth network configuration application and an electronic fence application. The priority of the Bluetooth application from high to low can be: the control device key application, the control device voice application, the Bluetooth audio application, the Bluetooth network configuration application, and the electronic fence application.
[0125] It should be noted that the priority of the Bluetooth application described above is only an example, and other priority orders can also be set in actual applications, and the embodiments of the present disclosure are not limited thereto.
[0126] The channel resource allocation method provided by the embodiments of the present disclosure can allocate channel resources for the Bluetooth application based on the BOR information when receiving a channel resource request of the Bluetooth application, considering one or more of the following information: whether the Bluetooth audio will appear to be stuck, channel occupation information of the Bluetooth application and the Wi-Fi application in the 2.4G channel resource, and whether the connected link will appear to be timed out or frequency hopping. In this way, the resource allocation situation is known in advance, and the transmission effect of the Bluetooth audio and the connection stability of the connected link are known in the current resource allocation situation. The channel resources can be reasonably allocated to the Bluetooth application to ensure the reasonable use of channel resources.
[0127] In the embodiments of the present disclosure, there are various embodiments for allocating channel resources for the first Bluetooth application according to the BQR information, which will be described in an exemplary manner below.
[0128] In some embodiments, when the tracking information of the connected link indicates that the connected link will appear to be timed out or frequency hopping within the second preset time length, it can be determined that the connected link is unstable, and the situation of insufficient channel resources may occur. In this case, the channel resources can no longer be allocated to the first Bluetooth application, or the channel resources of other Bluetooth applications with a priority lower than that of the first Bluetooth application are limited, and the channel resources are preferentially allocated to the first Bluetooth application with a high priority. When the tracking information of the connected link indicates that the connected link will not appear to be timed out or frequency hopping within the second preset time length, the channel resources can be normally allocated to the first Bluetooth application.
[0129] Figure 8A A flowchart of a method for allocating channel resources according to the BQR information provided by the embodiments of the present disclosure Figure 1 As shown in FIG. 8, the flow of allocating channel resources can include the following steps: Figure 8A
[0130] 801, start the first Bluetooth application.
[0131] 802, receive a channel resource request of the first Bluetooth application.
[0132] 803, view tracking information of the connected link.
[0133] 804, determine whether the connected link is normal according to the tracking information of the connected link.
[0134] If it is determined according to the tracking information of the connected link that the connected link will time out or hop within a second preset time length, it indicates that the connected link is not normal at this time, and then 805 and 806 are executed; if it is determined according to the tracking information of the connected link that the connected link will not time out or hop within the second preset time length, it indicates that the connected link is normal at this time, and then 807 is executed.
[0135] 805, reject the channel resource request of the first Bluetooth application.
[0136] 806, output prompt information to prompt that the Bluetooth application is overloaded.
[0137] The rejection of the channel resource request of the first Bluetooth application can be that no channel resource is configured for the first Bluetooth application.
[0138] 807, allocate a channel resource to the first Bluetooth application and establish a Bluetooth link.
[0139] In the above embodiment, whether the connected link is normal can be known through the tracking information of the connected link, and whether to allocate a channel resource to the first Bluetooth application is determined according to the state of the connected link, so that the state of the currently connected link is considered when the channel resource is allocated, and reasonable allocation of the channel resource is ensured.
[0140] In some embodiments, in the case where the tracking information of the connected link indicates that there will be no timeout or hop within the second preset time length, the application type of the first Bluetooth application is determined; in the case where the application type is a Bluetooth audio type, a channel resource is allocated to the first Bluetooth application, and in the case where the detection function of A2DP audio stall information is not started, the detection function of A2DP audio stall information is started, so that the Bluetooth module listens to the A2DP audio stall information.
[0141] Figure 8B A process of allocating a channel resource according to BQR information provided by the embodiments of the present disclosure Figure 2 . In combination with Figure 8A , as shown in Figure 8B , 807 in the above embodiment can be replaced by 807a, 807b and 807c as follows: Figure 8A
[0142] 807a, judging an application type of the first Bluetooth application.
[0143] In a case where the first Bluetooth application is a Bluetooth audio application, 807b described below is executed; in a case where the first Bluetooth application is not a Bluetooth audio application, 807b described below is executed.
[0144] 807b, allocating a channel resource for the first Bluetooth application and establishing a Bluetooth link, and starting a detection function of A2DP audio stall information after the Bluetooth link is established.
[0145] 807c, allocating a channel resource for the first Bluetooth application and establishing a Bluetooth link.
[0146] In the embodiments of the present disclosure, whether to report A2DP audio stall information in the BOR parameter can be set according to the type of the first Bluetooth application. For the scenario of starting a Bluetooth audio application, the detection function of A2DP audio stall information is started. In this way, the Bluetooth module can be controlled not to detect A2DP audio stall information in the scenario of other Bluetooth applications, so as to reduce power consumption and avoid invalid detection.
[0147] In some embodiments, in a case where a channel resource has been allocated for a Bluetooth audio application and the first application conflicts with the Bluetooth audio application, a higher-priority application of the first Bluetooth application and the Bluetooth audio application can be preferentially guaranteed, the channel resource allocated for the higher-priority application is allocated, and a lower-priority application is stopped. The channel resource allocated for the higher-priority application is released. In a case where the first Bluetooth application is a control device voice application, since the control device voice application and the Bluetooth audio application both involve audio transmission, a conflict exists. The control device can be a remote controller.
[0148] Figure 9 A process of allocating a channel resource according to BQR information provided in the embodiments of the present disclosure Figure 3 . As shown in FIG. 8, the process of allocating a channel resource according to BQR information can include but is not limited to the following steps: Figure 9
[0149] 901, allocating a channel resource for a Bluetooth audio application.
[0150] 902, starting a remote controller voice application.
[0151] Generally, the use of the remote controller related application is preferentially guaranteed, so the priority of the remote controller voice application is higher than that of the Bluetooth audio application.
[0152] 903, the remote controller voice application conflicts with the Bluetooth audio application.
[0153] After the voice application of the remote controller is started, it can be detected whether the Bluetooth audio application has been started. If the Bluetooth audio application has been started, there is a conflict because both the voice application of the control device and the Bluetooth audio application involve audio transmission.
[0154] In the case of conflict between the two applications, the application with a higher priority is preferentially ensured to be allocated channel resources, and the application with a lower priority is suspended, and the channel resources allocated to the application with the higher priority are released.
[0155] 904, suspending the Bluetooth audio application.
[0156] The suspending of the Bluetooth audio application can include releasing the channel resources allocated to the Bluetooth audio application.
[0157] 905, allocating channel resources to the voice application of the remote controller according to the BQR information, and establishing a Bluetooth link.
[0158] In the above embodiments, the channel resource allocation of the application with a higher priority can be preferentially ensured in the case of conflict between the applications.
[0159] In some embodiments, in response to receiving a channel resource request of a first Bluetooth application, it is determined whether remaining channel resources meet the demand of the first Bluetooth application according to tracking information of channel sharing; and in the case where the remaining channel resources meet the demand of the first Bluetooth application, channel resources are allocated to the first Bluetooth application based on the remaining channel resources.
[0160] Correspondingly, in the case where the remaining channel resources do not meet the demand of the first Bluetooth application, a second Bluetooth application with a lower priority than the first Bluetooth application is determined; the channel resources occupied by the second Bluetooth application are adjusted from first channel resources to second channel resources, and the amount of resources of the second channel resources is less than that of the first channel resources; the tracking information of channel sharing is received again; it is determined again whether the remaining channel resources meet the demand of the first Bluetooth application according to the tracking information of channel sharing received again; and in the case where the remaining channel resources determined again meet the demand of the first Bluetooth application, channel resources are allocated to the first Bluetooth application based on the remaining channel resources determined again.
[0161] Figure 10 A flowchart of allocating channel resources according to BQR information provided by the embodiments of the present disclosure Figure 4 As shown in FIG. 8, the flow of allocating channel resources according to BQR information can include but is not limited to the following steps: Figure 10
[0162] 1001, receiving a channel resource request of a first Bluetooth application.
[0163] 1002. Determine whether the remaining channel resources meet the requirement of the first Bluetooth application according to the tracking information shared by the channels.
[0164] In a case where the remaining channel resources meet the requirement of the first Bluetooth application, perform 1003 below; in a case where the remaining channel resources do not meet the requirement of the first Bluetooth application, perform 1004 and 1005 below and then return to perform 1002 above.
[0165] In some embodiments, the first Bluetooth application is a control device voice application; and the controller is specifically configured to: in response to receiving the channel resource request of the first Bluetooth application, determine whether the first remaining channel resources meet the requirement of the first Bluetooth application according to the tracking information shared by the channels, including: in response to receiving the channel resource request of the control device voice application, determining whether channel resources have been allocated to a Bluetooth audio application; in a case where channel resources have been allocated to the Bluetooth audio application, terminating Bluetooth audio transmission of the Bluetooth audio application to release the channel resources occupied by the Bluetooth audio application; and determining whether the first remaining channel resources meet the requirement of the first Bluetooth application according to the tracking information shared by the channels.
[0166] 1003. Allocate channel resources for the first Bluetooth application based on the remaining channel resources.
[0167] 1004. Determine a second Bluetooth application with a priority lower than the first Bluetooth application.
[0168] For example, assuming that the first Bluetooth application is a remote controller voice application and the second Bluetooth application is a Bluetooth scanning application, the priority of the remote controller voice application is higher than that of the Bluetooth scanning application.
[0169] 1005. Adjust the channel resources occupied by the second Bluetooth application from first channel resources to second channel resources.
[0170] The resource amount of the second channel resources is less than that of the first channel resources.
[0171] For example, assuming that the first Bluetooth application is a remote controller voice application and the second Bluetooth application is a Bluetooth scanning application, the priority of the remote controller voice application is higher than that of the Bluetooth scanning application. The channel resources occupied by the second Bluetooth application can be adjusted from first channel resources to second channel resources by changing the scanning parameters of the Bluetooth scanning application, for example, adjusting the scanning period to be longer and adjusting the scanning frequency to be smaller.
[0172] For example, assuming that the first Bluetooth application is a remote control voice application, the first Bluetooth application is a Bluetooth broadcast application, and the priority of the remote control voice application is higher than that of the Bluetooth broadcast application, the channel resources occupied by the second Bluetooth application can be adjusted from the first channel resources to the second channel resources by setting a longer broadcast period for the Bluetooth broadcast application.
[0173] In the above embodiment, the current channel resource occupation is obtained through the channel-shared tracking information, and it is determined whether the remaining channel resources can meet the channel resource requirement of the first Bluetooth application, so as to determine whether to allocate channel resources to the first Bluetooth application. In this way, the channel resources can be reasonably allocated.
[0174] Further, in the above embodiment, in the case that the remaining channel resources do not meet the channel resource requirement of the first Bluetooth application, the channel resources occupied by the low-priority Bluetooth application are further limited to preferentially meet the channel resource allocation of the high-priority first Bluetooth application, so that the channel resources can be preferentially allocated to the high-priority Bluetooth application.
[0175] In some embodiments, in the case that the channel resources have been allocated to the Bluetooth audio application, and the A2DP audio stall information indicates that the audio will not be stalled within the first preset time period, the channel resources can be normally allocated to the first Bluetooth application.
[0176] Correspondingly, in the case that the channel resources have been allocated to the Bluetooth audio application, and the A2DP audio stall information indicates that the audio will be stalled within the first preset time period, in response to receiving the A2DP audio stall information indicating that the audio will be stalled within the first preset time period, prompt information is outputted, the prompt information being used to prompt the user to reduce the audio quality to avoid audio stall; and in response to receiving an input instruction of reducing the audio quality, the sampling rate of the audio transmitted by the Bluetooth audio application is adjusted from the first sampling rate to the second sampling rate.
[0177] The first sampling rate is greater than the second sampling rate.
[0178] Figure 11A A flowchart of allocating channel resources according to BQR information provided by the embodiment of the present disclosure Figure 5 As shown in FIG. 11, the flowchart of allocating channel resources according to BQR information can include but is not limited to the following steps: Figure 11A
[0179] 1101, allocating channel resources to a Bluetooth audio application.
[0180] 1102, obtaining A2DP audio stall information.
[0181] 1103. Determine whether the current audio quality of the Bluetooth audio application can be supported according to the A2DP audio stall information.
[0182] If the A2DP audio stall information indicates that there will be a stall within the first preset time length, it means that the current audio quality of the Bluetooth audio application cannot be supported, and steps 1104 and 1105 can be performed before step 1106. If the A2DP audio stall information indicates that there will be no stall within the first preset time length, it means that the current audio quality of the Bluetooth audio application can be supported, and step 1106 can be directly performed.
[0183] 1104. Output prompt information for prompting the user to reduce the audio quality to avoid audio stall.
[0184] 1105. In response to receiving an input instruction to reduce the audio quality, adjust the sampling rate of the Bluetooth audio application from the first sampling rate to the second sampling rate.
[0185] 1106. Continue to monitor the A2DP audio stall information.
[0186] In the above embodiment, the first sampling rate is greater than the second sampling rate, so after adjusting the sampling rate from the first sampling rate to the second sampling rate, the sampling rate of the Bluetooth audio application is reduced, which can reduce the channel resources required by the Bluetooth audio application and avoid audio stall.
[0187] In some embodiments, after the channel resources have been allocated for the Bluetooth audio application and the A2DP audio stall information indicates that there will be a stall within the first preset time length, in response to receiving the A2DP audio stall information indicating that there will be a stall within the first preset time length, output prompt information for prompting the user to reduce the audio quality to avoid audio stall; then according to the channel common tracking information, determine other Bluetooth applications that share 2.4G channel resources with the Bluetooth audio application, and adjust the channel resources occupied by the other Bluetooth applications from the third channel resources to the fourth channel resources.
[0188] The resource amount of the fourth channel resources is less than that of the third channel resources.
[0189] Figure 11B A process of allocating channel resources according to BQR information provided by the embodiments of the present disclosure Figure 6 As shown in FIG. 11, the process of allocating channel resources according to BQR information can further include, but is not limited to, the following steps after step 1106 in the above process. Figure 11B Figure 11A
[0190] 1107. Determine other Bluetooth applications sharing the 2.4G channel resource with the Bluetooth audio application according to the tracking information shared by the channel.
[0191] 1108. Adjust the channel resource occupied by the other Bluetooth applications from the third channel resource to the fourth channel resource.
[0192] In some embodiments, the priority of the other Bluetooth applications can also be considered, the step of 1108 can be performed for the part of the other Bluetooth applications whose priority is lower than that of the Bluetooth audio application, and the application whose priority is equal to or higher than that of the Bluetooth audio application can not limit the channel resource it occupies.
[0193] In the above embodiments, since the resource amount of the fourth channel resource is less than that of the third channel resource, after adjusting the channel resource occupied by the other Bluetooth applications from the third channel resource to the fourth channel resource, the channel resource occupied by the other Bluetooth applications is reduced, so that more channel resources can be provided for the Bluetooth audio application, and the Bluetooth audio application can be ensured to be allocated channel resources.
[0194] The embodiments of the present disclosure provide a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement each process performed by the above channel resource allocation method, and achieve the same technical effects. To avoid repetition, details are not described here.
[0195] The computer readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0196] The present disclosure provides a computer program product, which includes a computer program. When the computer program runs on a computer, the computer implements the above channel resource allocation method.
[0197] For the convenience of explanation, the above description has been made in combination with specific embodiments. However, the above description in some embodiments is not intended to exhaust or limit the embodiments to the specific forms disclosed above. Various modifications and variations can be derived according to the above teachings. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and adapt various different embodiments of the embodiments to specific use considerations.
Claims
1. A display device, characterized in that, include: The Bluetooth module is configured to: acquire Bluetooth Quality Report (BQR) information and send the BQR information to the controller; The BQR information includes: channel sharing tracking information and connected link tracking information; wherein, the channel sharing tracking information includes channel occupancy information of Bluetooth and Wi-Fi applications of various protocols in the 2.4G channel resources; the connected link tracking information is used to indicate whether the connected link will experience timeout or frequency hopping within a second preset time period. The controller is configured to: receive the BQR information; in response to receiving a channel resource request from a first Bluetooth application, if the tracking information of the connected link indicates that a timeout or frequency hopping will occur within a second preset period, determine not to allocate channel resources to the first Bluetooth application; if the tracking information of the connected link indicates that a timeout or frequency hopping will not occur within a second preset period, allocate channel resources to the first Bluetooth application according to the channel-shared tracking information. The controller is specifically configured as follows: In response to receiving a channel resource request from the first Bluetooth application, the remaining channel resources are determined based on the channel sharing tracking information to meet the needs of the first Bluetooth application. If the remaining channel resources meet the needs of the first Bluetooth application, channel resources are allocated to the first Bluetooth application based on the remaining channel resources; If the remaining channel resources do not meet the needs of the first Bluetooth application, a second Bluetooth application with a lower priority than the first Bluetooth application is identified, and the channel resources occupied by the second Bluetooth application are adjusted from the first channel resources to the second channel resources, wherein the amount of the second channel resources is less than the amount of the first channel resources. Receive the tracking information shared by the channel again; Based on the channel-shared tracking information received again, it is determined whether the remaining channel resources meet the requirements of the first Bluetooth application. If the remaining channel resources are determined to meet the needs of the first Bluetooth application, channel resources are allocated to the first Bluetooth application based on the re-determined remaining channel resources.
2. The display device according to claim 1, characterized in that, The controller is specifically configured as follows: When the tracking information of the connected link indicates that no timeout or frequency hopping will occur within a second preset time period, the allocation of channel resources to the first Bluetooth application includes: If the tracking information of the connected link indicates that no timeout or frequency hopping will occur within a second preset time period, the application type of the first Bluetooth application is determined. When the application type is Bluetooth audio, channel resources are allocated to the first Bluetooth application. If the A2DP audio stuttering information detection function is not enabled, the A2DP audio stuttering information detection function is enabled so that the Bluetooth module can listen to the A2DP audio stuttering information.
3. The display device according to claim 1, characterized in that, The first Bluetooth application is a voice application for controlling the device; The controller is specifically configured as follows: The step of responding to receiving a channel resource request from a first Bluetooth application and determining whether the remaining channel resources meet the needs of the first Bluetooth application based on the channel-shared tracking information includes: In response to receiving a channel resource request from the voice application of the control device, determine whether channel resources have been allocated for the Bluetooth audio application; If channel resources have already been allocated to a Bluetooth audio application, terminate the Bluetooth audio transmission of the Bluetooth audio application to release the channel resources occupied by the Bluetooth audio application. Based on the shared channel tracking information, determine whether the remaining channel resources meet the requirements of the Bluetooth application.
4. The display device according to claim 1, characterized in that, The first Bluetooth application is a Bluetooth audio application; The controller is also configured to: after allocating channel resources to the first Bluetooth application according to the BQR information, in response to receiving A2DP audio stuttering information indicating that audio stuttering will occur within a first preset duration, output a prompt message, the prompt message being used to prompt the user to reduce the audio quality to avoid audio stuttering; In response to receiving an input command to reduce audio quality, the sampling rate of the Bluetooth audio application is adjusted from a first sampling rate to a second sampling rate, wherein the first sampling rate is greater than the second sampling rate.
5. The display device according to claim 4, characterized in that, The controller is further configured to: in response to receiving the A2DP audio stuttering information indicating that audio stuttering will occur within the first preset duration, and after outputting a prompt message, determine other Bluetooth applications that share the 2.4G channel resources with the Bluetooth audio application based on the channel sharing tracking information, and adjust the channel resources occupied by the other Bluetooth applications from the third channel resource to the fourth channel resource, wherein the amount of the fourth channel resource is less than the amount of the third channel resource.
6. The display device according to claim 1, characterized in that, The controller is also configured to: Before receiving the BQR information, BQR parameters are sent to the Bluetooth module. The BQR parameters include: the type of BQR information to be reported and the period for reporting BQR information. The type of BQR information includes: the tracking information shared by the channel and the tracking information of the connected link. The Bluetooth module is further configured to: receive the BQR parameters before acquiring the BQR information, and, based on the reported BQR information type, enable the detection function corresponding to the reported BQR information type to acquire the BQR information.
7. A channel resource allocation method, characterized in that, include: Obtain Bluetooth Quality Report (BQR) information, which includes A2DP audio stuttering information, channel sharing tracking information, and connected link tracking information. The channel sharing tracking information includes channel occupancy information for Bluetooth and Wi-Fi applications using 2.4G channel resources. The connected link tracking information indicates whether the connected link will experience timeout or frequency hopping within a second preset time period. In response to receiving a channel resource request from a first Bluetooth application, if the tracking information of the connected link indicates that a timeout or frequency hopping will occur within a second preset period, it is determined not to allocate channel resources to the first Bluetooth application; if the tracking information of the connected link indicates that no timeout or frequency hopping will occur within the second preset period, channel resources are allocated to the first Bluetooth application according to the channel-shared tracking information. The step of allocating channel resources to the first Bluetooth application based on the shared channel tracking information includes: In response to receiving a channel resource request from the first Bluetooth application, the remaining channel resources are determined based on the channel sharing tracking information to meet the needs of the first Bluetooth application. If the remaining channel resources meet the needs of the first Bluetooth application, channel resources are allocated to the first Bluetooth application based on the remaining channel resources; If the remaining channel resources do not meet the needs of the first Bluetooth application, a second Bluetooth application with a lower priority than the first Bluetooth application is identified, and the channel resources occupied by the second Bluetooth application are adjusted from the first channel resources to the second channel resources, wherein the amount of the second channel resources is less than the amount of the first channel resources. Receive the tracking information shared by the channel again; Based on the channel-shared tracking information received again, it is determined whether the remaining channel resources meet the requirements of the first Bluetooth application. If the remaining channel resources are determined to meet the needs of the first Bluetooth application, channel resources are allocated to the first Bluetooth application based on the re-determined remaining channel resources.
Citation Information
Patent Citations
Display equipment and scheduling method for Bluetooth communication resources of display equipment
CN111050199A
Bluetooth BLE communication method and Bluetooth chip system
CN112469020A