Display device and Bluetooth broadcast switching processing method
By responding to the Bluetooth broadcast start operation in the smart TV device, setting the Bluetooth audio device to the inactive state and switching the audio routing strategy to LEAudiohal, the audio routing strategy switching problem of the LEAudio protocol device when switching Bluetooth broadcasts is solved, and the audio playback experience is improved.
Patent Information
- Application Number
- CN202311864227.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-30
- Filing Date
- 2023-12-29
- Publication Date
- 2024-10-01
AI Technical Summary
Existing technology is difficult to effectively handle the audio routing strategy switching of smart TV devices that support the LEAudio protocol when switching Bluetooth broadcasts. As a result, the device cannot smoothly switch to LEAudiohal, affecting the audio playback experience.
By responding to the Bluetooth broadcast opening trigger operation in the display device, it is determined whether the current Bluetooth audio device is in the active state, and is set to the inactive state for offline processing. At the same time, the audio routing strategy is switched to LEaudiohal to implement Bluetooth broadcast switching processing.
It achieves smooth audio routing strategy switching for smart TV devices when switching Bluetooth broadcasts, improving the audio playback experience and the device's Bluetooth broadcast switching efficiency.
Smart Images

Figure CN118740299A_ABST
Abstract
Description
[0001] This application claims priority to Chinese patent application No. 2023103316700 filed in China on March 30, 2023, the contents of which are incorporated by reference into this application. Technical Field
[0002] The present disclosure relates to the field of Bluetooth technology, and in particular to a display device and a Bluetooth broadcast switching processing method. Background Art
[0003] With the launch of the new generation of Bluetooth audio technology standard - Bluetooth-based low-energy audio (LE Audio) technology, more and more smart TVs can support the Bluetooth-based low-energy audio (LE Audio) protocol. Currently, for smart TVs that support the LE Audio protocol, a Bluetooth broadcast switching processing method is urgently needed. Summary of the invention
[0004] 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 Bluetooth broadcast switching processing method. Specifically, when the display device receives a start trigger operation for Bluetooth broadcast, the a2dp device or Bluetooth hearing aid device in the active state is set to the inactive state, and the audio module is controlled to perform offline processing on the above Bluetooth audio device, and the audio routing strategy is switched to LEaudiohal, thereby realizing the Bluetooth broadcast switching processing of the display device.
[0005] In order to achieve the above objectives, the technical solutions provided by the embodiments of the present disclosure are as follows:
[0006] In a first aspect, the present disclosure provides a display device, comprising: a controller, and a Bluetooth module connected to the controller;
[0007] The controller is configured to:
[0008] In response to a start trigger operation for a Bluetooth broadcast, determining whether there is a Bluetooth audio device currently in an active state;
[0009] If it is determined that there is currently an active Bluetooth audio device, determine whether the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device;
[0010] If it is determined that the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device, the device information of the Bluetooth audio device is saved, and the Bluetooth protocol stack is controlled to set the Bluetooth audio device to an inactive state;
[0011] The audio module is controlled to perform offline processing on the Bluetooth audio device and the audio routing strategy is switched out from the current HAL.
[0012] In a second aspect, the present disclosure provides a Bluetooth broadcast switching processing method, comprising:
[0013] In response to a start trigger operation for a Bluetooth broadcast, determining whether there is a Bluetooth audio device currently in an active state;
[0014] If it is determined that there is currently an active Bluetooth audio device, determine whether the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device;
[0015] If it is determined that the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device, the device information of the Bluetooth audio device is saved, and the Bluetooth protocol stack is controlled to set the Bluetooth audio device to an inactive state;
[0016] The audio module is controlled to perform offline processing on the Bluetooth audio device and the audio routing strategy is switched out from the current HAL.
[0017] In a third aspect, the present disclosure provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the Bluetooth broadcast switching processing method as shown in the second aspect.
[0018] In a fourth aspect, the present disclosure provides a computer program product, which includes a computer program. When the computer program is executed on a computer, the computer implements the Bluetooth broadcast switching processing method as shown in the second aspect.
[0019] The display device and Bluetooth broadcast switching processing method provided by the embodiments of the present disclosure, wherein the display device includes a controller and a Bluetooth module connected to the controller, wherein the controller first responds to a start trigger operation for Bluetooth broadcasting to determine whether there is a Bluetooth audio device in an active state; if it is determined that there is an active Bluetooth audio device, then determine whether the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device; if it is determined that the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device, then save the device information of the Bluetooth audio device, and control the Bluetooth protocol stack to set the Bluetooth audio device to an inactive state; control the audio module to perform offline processing on the Bluetooth audio device, and cut out the audio routing strategy from the current HAL, thereby realizing the Bluetooth broadcast switching processing of the display device. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0022] Figure 1 A schematic diagram of one-to-one audio transmission of unicast media audio in the related art;
[0023] Figure 2 A schematic diagram of one-to-two audio transmission of unicast media audio provided in the related art;
[0024] Figure 3 A schematic diagram of a scenario architecture of a Bluetooth broadcast switching processing method provided in an embodiment of the present application;
[0025] Figure 4 A configuration block diagram of a control device 100 provided in an embodiment of the present application;
[0026] Figure 5 A configuration block diagram of a display device 200 provided in an embodiment of the present application;
[0027] Figure 6 A hardware configuration block diagram of a terminal device 300 provided in an embodiment of the present application;
[0028] Figure 7 A configuration block diagram of an audio receiving device 400 provided in an embodiment of the present application;
[0029] Figure 8 A schematic diagram of an operating system of a display device 200 provided in an embodiment of the present application;
[0030] Fig. 9 A schematic diagram of a software system architecture of a display device 100 provided in an embodiment of the present disclosure;
[0031] Fig.10 A flowchart of a Bluetooth broadcast switching processing method provided in an embodiment of the present application;
[0032] Fig.11 A schematic diagram of a process of starting Bluetooth broadcasting provided in an embodiment of the present disclosure;
[0033] Fig.12 A schematic diagram of switching from an audio output channel to a target output channel provided by an embodiment of the present disclosure;
[0034] Fig.13 A schematic diagram of a process for shutting down Bluetooth broadcasting provided in an embodiment of the present application;
[0035] Fig.14 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0036] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme 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.
[0037] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0038] The display device and the audio receiving device provided in the present disclosure can support the low-power audio (LE Audio) technology based on Bluetooth, wherein the display device is used as an audio playback device or a device for configuring an audio receiving device. For example, the display device can be a TV, a mobile phone, a projector, etc., and the audio receiving device can be a Bluetooth speaker, a Bluetooth headset, etc.
[0039] Compared with classic Bluetooth, LE Audio has the following advantages:
[0040] 1. One audio playback device can be connected to multiple audio receiving devices at the same time;
[0041] 2. A broadcast audio device can send broadcast audio to an unlimited number of audio receiving devices, supporting encrypted broadcasting;
[0042] 3. Adopt the latest Low Complexity Communication Codec (LC3) audio format, and the sound quality is improved;
[0043] 4. Support Internet phone and HD calls;
[0044] 5. Support hearing aid / assisted listening applications.
[0045] The LE Audio application layer specification Telephony and Media Audio Profile (TMAP) defines two media audio applications: unicast media audio and broadcast media audio.
[0046] Unicast Media Audio
[0047] Compared with the current media audio application specification (Advanced Audio Distribution Profile. A2DP) in classic Bluetooth, the unicast media audio in TMAP uses a more advanced audio codec to provide better sound quality, and at the same time provides richer control functions than the current classic Bluetooth media playback control specification (Audio / Video Remote Control Profile, AVRCP). TMAP defines two roles for unicast media audio applications: Unicast Media Sender (UMS) and Unicast Media Receiver (UMR). Unicast media audio transmission is achieved between UMS and UMR through the connection isochronous stream (CIS).
[0048] It should be noted that the unicast media audio defined in TMAP is not limited to one-to-one audio transmission, but also supports a unicast media sender transmitting unicast media audio to two unicast media receivers.
[0049] Figure 1 FIG. 1 is a schematic diagram of a one-to-one audio transmission of unicast media audio in the related art. Figure 1 As shown, UMS11 sends unicast media audio to UMR12.
[0050] Figure 2 FIG. 1 is a schematic diagram of a one-to-two audio transmission of unicast media audio provided in the related art. Figure 2 As shown, UMS21 sends unicast media audio to UMR22 and UMR23 respectively.
[0051] Broadcast Media Audio
[0052] Broadcast media audio in TMAP is transmitted synchronously based on multiple connectionless broadcast isochronous streams (BIS). The biggest advantage of broadcast media audio is that it can transmit audio data synchronously to multiple audio receiving devices.
[0053] The broadcast synchronization channel of broadcast media audio in TMAP has two concepts: broadcast isochronous group (BIG) and BIS. An audio sending device can send multiple BIGs at the same time, each BIG can be composed of multiple BISs, and a BIG can contain up to 31 BISs. Each BIS has a unique access address (Access Address), and the access address of the BIS is generated according to a unified algorithm based on the seed access address (Seed Access Address) of the BIG to which it belongs.
[0054] Broadcast media audio may include multiple broadcasts with different access addresses, for example, including:
[0055] Extended Advertising: Extended advertising on the main advertising channel, using ADV_EXT_IND packets, and pointing to the subsidiary advertising through time and frequency information. Its access address uses the main advertising access address specified in the Bluetooth core specification: 0x8E89BED6.
[0056] Periodic Advertising: The subsidiary broadcast uses the AUX_ADV_IND packet and points to the periodic broadcast through time, frequency hopping map and access address. The periodic broadcast uses the AUX_SYNC_IND packet and contains BIG information (BIGInfo).
[0057] Broadcast Isochronous Stream (BIS): A broadcast isochronous stream that periodically broadcasts digital audio using a time, frequency hopping map, access address, and BIGInfo pointing to the BIS, using BIS Protocol Data Unit (PDU) packets.
[0058] The Bluetooth broadcast switching processing method of the embodiment of the present disclosure can be implemented through a display device and an audio receiving device. The display device can be a mobile phone, a television, a computer, etc. The audio receiving device can be a speaker, a headset, a keyboard, a mouse, etc. The Bluetooth broadcast switching processing method provided in the embodiment of the present disclosure mainly involves a pairing connection phase and a low-power Bluetooth device scanning phase. The pairing connection phase is mainly implemented through a display device and / or a control terminal. Among them, the control terminal can be a mobile terminal, for example, a mobile phone, a tablet computer, a remote control, a wearable device, etc., which can be used to establish a Bluetooth connection with a target device, wherein the wearable device can be a smart watch, a smart bracelet, etc.
[0059] Figure 3 A schematic diagram of the scenario architecture of the Bluetooth broadcast switching processing method provided in the embodiment of the present application. Figure 3 As shown, the scenario architecture provided by the embodiment of the present application includes: a control device 100, a display device 200, a terminal device 300 and a Bluetooth audio device 400.
[0060] The user can operate the display device 200 through the terminal device 300 or the control apparatus 100. When the display device 200 receives the start trigger operation for the Bluetooth broadcast, the Bluetooth audio device 400 in the active state is set to the inactive state, and the audio module is controlled to perform offline processing on the Bluetooth audio device 400, and the audio routing strategy is switched to LEaudiohal, thereby realizing the Bluetooth broadcast switching of the display device.
[0061] The display device 200 provided in the embodiment of the present application may have various implementation forms, for example, the display device 200 may be a television, a smart speaker refrigerator with a display function, a curtain with a display function, a personal computer (PC), a laser projection device, a monitor, an electronic whiteboard, a wearable device, a vehicle-mounted device, an electronic table, etc. This application does not limit this.
[0062] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device 200 may be infrared protocol communication, Bluetooth protocol communication, or other short-range communication methods, and the display device 200 may be controlled wirelessly or wired. The user may input user instructions through buttons on the remote controller, voice input, control panel input, etc. to control the display device 200. In some embodiments, the control device 100 may also be a terminal device (such as a mobile phone, a tablet computer, a computer, a laptop computer, etc.). For example, the display device 200 is controlled using an application running on the terminal device.
[0063] In some embodiments, the display device 200 may also be controlled by a terminal device 300 (such as a mobile phone, a tablet computer, a computer, a laptop computer, etc.). For example, the display device 200 may be controlled by an application program running on a smart device.
[0064] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100. For example, the display device 200 can directly receive the user's voice command control through a module for obtaining voice commands configured inside the display device 200, or receive the user's key operation through physical keys on the display device 200, or receive the user's touch operation through a touch control panel of the display device 200.
[0065] In some embodiments, the display device 200 can also communicate data with the server to obtain relevant media resources from the server. The display device 200 can be allowed to communicate with the server through a local area network (LAN) or a wireless local area network (WLAN). The server can provide media resource services and various content and interactions to the display device 200. The server can be a cluster or multiple clusters, and can include one or more types of servers.
[0066] Figure 4 An example is shown Figure 3 FIG. 1 is a block diagram of a configuration of the control device 100 in the embodiment shown. Figure 4 As 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 an operation instruction input by a user, and convert the operation instruction into an instruction that can be recognized and responded to by the display device 200, and send the operation instruction or the instruction converted from the voice instruction to the display device 200, playing the role of an interactive intermediary between the user and the display device 200.
[0067] Figure 5 An example is shown Figure 3 FIG. 2 is a block diagram of a configuration of a display device 200 in the embodiment shown. Figure 5 As shown, the display device 200 includes: a tuner and 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, and at least one of a user interface.
[0068] In some embodiments, the tuner-demodulator 210 receives broadcast television signals by wired or wireless reception, and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals. In some embodiments, the tuner-demodulator 210 can be located in different split devices, that is, the tuner-demodulator 210 can also be in an external device of the physical device where the controller 250 is located, such as an external set-top box.
[0069] The communicator 220 is a component for communicating with external devices (such as the controller 100, the server 400, the hearing aid 500, etc.) according to various communication protocol types. For example, the communicator 220 may include at least one of a WiFi module, a Bluetooth module, a wired Ethernet module, and other network communication protocol chips or a near field communication protocol chip, and an infrared receiver. The display device 200 can send and receive control signals and data signals with external devices through the communicator 220.
[0070] The detector 230 is used to collect signals from the external environment or the external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.
[0071] The external device interface 240 may include, but is not limited to, any one or more of the following interfaces: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input / output interface formed by the above multiple interfaces.
[0072] The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object to be displayed on the display 260, the controller 250 can perform operations related to the object selected by the user command.
[0073] In some embodiments, the controller includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), RAM Random Access Memory (RAM), ROM (Read-Only Memory, ROM), a first interface to an nth interface for input / output, a communication bus (Bus), etc.
[0074] The display 260 includes a display screen component for presenting images, and a driving component for driving image display, which is used to receive image signals output from the controller, and display video content, image content, and menu control interface components and user control UI interface.
[0075] The display 260 may be a liquid crystal display, an OLED display, or a projection display, and may also be a projection device and a projection screen.
[0076] The user may input a user command through a graphical user interface (GUI) displayed on the display 260, and the user interface receives the user input command through the graphical user interface (GUI). Alternatively, the user may input a user command through a specific sound or gesture, and the user interface recognizes the sound or gesture through a sensor to receive the user input command.
[0077] Among them, the user interface is the medium interface for interaction and information exchange between the application or operating system and the user, which realizes the conversion between the internal form of information and the form acceptable to the user. The commonly used form of user interface is the Graphical User Interface (GUI), which refers to the user interface related to computer operation displayed in a graphical way. It can be an interface element such as an icon, window, control, etc. displayed on the display screen of an electronic device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc.
[0078] The audio output interface 270 is an audio output component for outputting audio signals, including a speaker, an external audio output terminal, and the like.
[0079] The user interface may be used to receive control signals input by the user through the control device 100 (eg, an infrared remote controller, etc.) or through touch or gesture.
[0080] When implementing the Bluetooth broadcast switching processing method provided in the embodiment of the present disclosure, each component in the display device 100 can implement the following functions:
[0081] In some embodiments, the controller 150 is configured to:
[0082] In response to a start trigger operation for Bluetooth broadcasting, determine whether there is a Bluetooth audio device in active state; if it is determined that there is a Bluetooth audio device in active state, determine whether the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device; if it is determined that the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device, save the device information of the Bluetooth audio device, and control the Bluetooth protocol stack to set the Bluetooth audio device to inactive state; control the audio module to take the Bluetooth audio device offline, and cut out the audio routing strategy from the current HAL.
[0083] When the above-mentioned display device receives a trigger operation to start Bluetooth broadcasting, it sets the active a2dp device or Bluetooth hearing aid device to the inactive state, controls the audio module to offline the above-mentioned Bluetooth audio device, and switches the audio routing strategy to LEaudiohal, thereby realizing the Bluetooth broadcast switching processing of the display device.
[0084] In some embodiments, the controller 150 is further configured to:
[0085] The audio module is controlled to bring the Bluetooth broadcast device online and switch the audio routing strategy to LE audiohal.
[0086] In some embodiments, the controller 150 is further configured to:
[0087] In response to the trigger operation for starting the Bluetooth broadcast, controlling the Bluetooth protocol stack to create a Bluetooth broadcast and start the Bluetooth broadcast;
[0088] Correspondingly, if it is determined that the Bluetooth audio device belongs to an a2dp device or a Bluetooth hearing aid device, the Bluetooth protocol stack is controlled to set the Bluetooth audio device to an inactive state, including: if it is determined that the Bluetooth audio device belongs to an a2dp device or a Bluetooth hearing aid device, and it is determined that the Bluetooth broadcast is successfully turned on, the Bluetooth protocol stack is controlled to set the Bluetooth audio device to an inactive state.
[0089] In some embodiments, the controller 150 is further configured to:
[0090] In response to a triggering operation of switching the audio output channel to a target output channel, the mute setting of the music stream is released; wherein the target output channel includes an HDMI channel or a local speaker.
[0091] In some embodiments, the controller 150 is further configured to:
[0092] If it is determined that the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device, the method further includes:
[0093] The device information of the Bluetooth audio device is saved; wherein the device information includes a MAC address.
[0094] In some embodiments, the controller 150 is further configured to:
[0095] In response to a close trigger operation for the Bluetooth broadcast, determining whether the currently saved Bluetooth audio device is in a connected state; if the Bluetooth audio device is in a connected state, setting the Bluetooth audio device to an active state.
[0096] In some embodiments, the controller 150 is further configured to:
[0097] In response to a trigger operation for closing the Bluetooth broadcast, it is determined whether there is an audio output device connected to the current audio output channel; if it is determined that there is an audio output device connected to the current audio output channel, the audio output device is set to an active state.
[0098] In some embodiments, the controller 150 is further configured to:
[0099] If it is determined that there is an audio output device connected to the current audio output channel, setting the audio output device to an active state includes: if it is determined that there is an audio output device connected to the current audio output channel, controlling the display to display a prompt pop-up window; the prompt pop-up window is used to determine whether to apply the audio output device;
[0100] If a confirmation message to apply the audio output device is received based on the prompt pop-up window, the audio output device is set to an active state.
[0101] In some embodiments, the controller 150 is further configured to:
[0102] In response to a shutdown trigger operation for the Bluetooth broadcast, if it is determined that the current audio output channel is in the Bluetooth audio channel, a target Bluetooth audio device is determined based on a preset priority relationship; the target Bluetooth audio device is in a connected state; and the target Bluetooth audio device is set to an active state.
[0103] Figure 6 An example is shown Figure 3 The hardware configuration block diagram of the terminal device 300 in the illustrated embodiment. It should be understood that Figure 6 The control terminal 300 shown is only an example, and the control terminal 300 may have more Figure 6 More or fewer components may be shown, two or more components may be combined, or there may be a different configuration of components. Figure 6 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
[0104] like Figure 6 As shown, the control terminal 300 includes: a radio frequency (RF) circuit 310, a memory 320, a display unit 330, a camera 340, a sensor 350, an audio circuit 360, a wireless fidelity (Wi-Fi) module 370, a controller 380, a Bluetooth module 381, and a power supply 390 and other components.
[0105] The RF circuit 310 can be used to receive and send signals during the process of sending and receiving information or making calls. It can receive downlink data from the base station and hand it over to the controller 380 for processing; it can send uplink data to the base station. The memory 320 can be used to store software programs and data. The memory 320 stores an operating system that enables the control terminal 300 to run. In the present application, the memory 320 can store an operating system and various application programs, and can also store program codes for executing the channel configuration processing method implemented based on the control terminal in some embodiments of the present application.
[0106] The display unit 330 can be used to receive input digital or character information and generate signal input related to user settings and function control of the control terminal 300. Specifically, the display unit 330 may include a touch screen 331 arranged on the front of the control terminal 300, which can collect user touch operations on or near it, such as clicking a button.
[0107] The display unit 330 can also be used to display information input by the user or information provided to the user and a graphical user interface (GUI) of various menus of the control terminal 300. The display unit 330 may include a display screen 332 arranged on the front of the control terminal 300. Among them, the touch screen 331 can be covered on the display screen 332, or the touch screen 331 and the display screen 332 can be integrated to realize the input and output functions of the control terminal 300, and the integration can be referred to as a touch display screen. The control terminal 300 may also include at least one sensor 350, such as an acceleration sensor 351, a distance sensor 352, a fingerprint sensor 353, and a temperature sensor 354.
[0108] The audio circuit 360, the speaker 361, and the microphone 362 can provide an audio interface between the user and the control terminal 300. Wi-Fi is a short-range wireless transmission technology. The control terminal 300 can help the user to send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 370, which provides the user with wireless broadband Internet access.
[0109] The controller 380 is the control center of the control terminal 300. It uses various interfaces and lines to connect various parts of the entire control terminal. It executes various functions and processes data of the control terminal 300 by running or executing software programs stored in the memory 320 and calling data stored in the memory 320. In some embodiments, the controller 380 may include one or more processing units; the controller 380 may also integrate an application processor and a baseband processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the baseband processor mainly processes wireless communications. It is understandable that the above-mentioned baseband processor may not be integrated into the controller 380. In this application, the controller 380 can run an operating system, application programs, user interface display, and touch response.
[0110] The Bluetooth module 381 is used to exchange information with other Bluetooth devices having Bluetooth modules through the Bluetooth protocol. For example, the control terminal 300 can establish a Bluetooth connection with a display device that also has a Bluetooth module through the Bluetooth module 381 to exchange data. The control terminal 300 also includes a power supply 390 (such as a battery) for supplying power to each component.
[0111] Figure 7 4 shows an exemplary configuration block diagram of a Bluetooth audio device 400. Figure 7 As shown, the Bluetooth audio device 400 includes: a controller 410, a communicator 420, a user input / output interface 430, a memory 440, and a power supply 450. The communicator 420 is used to communicate with the outside, and includes at least one of a WIFI chip, a Bluetooth module, NFC or an alternative module. The user input / output interface 430 includes at least one of a speaker, a microphone, a touchpad, a sensor, a button or an alternative module.
[0112] See also Figure 8 As shown, in some embodiments, the operating system of the display device 200 is divided into four layers, namely, from top to bottom, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (ApplicationFramework) layer (referred to as "framework layer"), the Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and the kernel layer.
[0113] In some embodiments, at least one application is running in the application layer, and these applications can be window programs, system settings programs, clock programs, etc. provided by the operating system, or applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.
[0114] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.
[0115] like Figure 8 As shown, in the embodiment of the present application, the application framework layer includes managers, content providers, etc., wherein the manager includes at least one of the following modules: an activity manager (ActivityManager) is used to interact with all activities running in the system; a location manager (LocationManager) is used to provide system services or applications with access to system location services; a package manager (PackageManager) is used to retrieve various information related to applications currently installed on the device; a notification manager (Notification Manager) is used to control the display and clearing of notification messages; a window manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.
[0116] In some embodiments, the activity manager is used to manage the life cycle of each application and the common navigation back function, such as controlling the exit, opening, and back of the application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes (for example, reducing the display window, shaking the display, distorting the display, etc.).
[0117] In some embodiments, the system runtime layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system will run the C / C++ library contained in the system runtime layer to implement the functions to be implemented by the framework layer.
[0118] In some embodiments, the kernel layer is a layer between hardware and software. Figure 7 As shown, the kernel layer 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 driver, etc.
[0119] Fig. 9 FIG. 1 is a schematic diagram of a software system architecture of a display device 100 provided in an embodiment of the present disclosure. Fig. 9As shown, the software system may include: an application (App) layer, a system framework (Framework) layer (referred to as "framework layer"), a dynamic library (Library) and a Bluetooth driver (BluetoothDriver).
[0120] The application layer includes: TV settings (TVSettings) or TV services (TVService).
[0121] The system framework layer includes: Bluetooth interface (BluetoothAPI), Bluetooth application (BluetoothAPK) and audio (audio) module.
[0122] Bluetooth applications can include: A2DP application specification, LE Audio application specification and HearingAid application specification. Among them, A2DP (Advanced Audio Distribution Profile) application specification is the media audio application specification in classic Bluetooth, LE Audio application specification is the low-power audio application specification based on Bluetooth, and HearingAid application specification is the hearing aid application specification based on low power consumption (BLE).
[0123] The dynamic library includes: Bluetooth protocol stack and Bluetooth audio HAL layer, among which the Bluetooth protocol stack is mainly responsible for scanning, connecting and configuring Bluetooth devices. When the display device establishes a Bluetooth connection with a Bluetooth device, the Bluetooth application in the display device can send relevant data to the Bluetooth protocol stack.
[0124] The audio module may include an audio manager (audioManager), an audio service (audioService), etc. The audio module is mainly responsible for sending audio-related data from the Bluetooth application to the Bluetooth protocol stack.
[0125] The Bluetooth driver is mainly responsible for the Bluetooth connection between the display device and surrounding Bluetooth devices.
[0126] The Bluetooth protocol stack also includes the Generic Audio Framework (GAF); GAF also includes the Common Audio Profile (CAP), Common Audio Service (CAS), audio stream transmission management and volume control, among which the audio stream transmission management includes the Basic Audio Profile (BAP), Audio Capability Presentation Service (PACS), Audio Stream Control Service (ASCS) and Broadcast Audio Scan Service (BASS). Volume control includes: Voice Control Profile (VCP), Volume Control Service (VCS), Voice Offset Control Service (VOCS), Audio Input Control Service (AICS).
[0127] Fig.10 The flowchart of the Bluetooth broadcast switching processing method provided in the embodiment of the present application is exemplarily shown in FIG. Figure 3 The display device 200 in the illustrated embodiment. Fig.10 As shown in FIG. 1 , a flow chart of a Bluetooth broadcast switching processing method provided by an embodiment of the present disclosure is shown. Fig.10 As shown, the method may include but is not limited to the following steps S1001-S1004:
[0128] S1001: In response to a start trigger operation for Bluetooth broadcasting, determining whether there is a Bluetooth audio device currently in an active state.
[0129] The Bluetooth broadcast switching processing method provided in the embodiment of the present disclosure corresponds to the scenario of switching from the Bluetooth audio output channel to the Bluetooth broadcast when the display device is in the Bluetooth audio output channel and several types of Bluetooth audio devices are currently connected, and does not involve the scenario of switching from traditional audio output channels such as local speakers or USB to Bluetooth broadcast.
[0130] In actual applications, Bluetooth broadcast and Bluetooth audio output channels correspond to different device lists. When using Bluetooth audio output channels to play sound, the device that emits sound is a Bluetooth audio device, such as an a2dp device, a Bluetooth hearing aid device, etc. When using Bluetooth broadcast to play sound, the device that emits sound is a Bluetooth broadcast device, such as a broadcast device that supports the LEaudio protocol, etc. Among them, the Bluetooth broadcast stream and the Bluetooth audio stream are two parallel audio streams.
[0131] Since the Bluetooth broadcast stream and the Bluetooth audio stream are mutually exclusive, after the display device turns on Bluetooth broadcast, it can only play the broadcast stream through the Bluetooth broadcast device that supports the LEaudio protocol. At this time, Bluetooth audio devices such as a2dp devices and Bluetooth hearing aids cannot play the Bluetooth audio stream.
[0132] In the embodiment of the present disclosure, the triggering operation for starting the Bluetooth broadcast may include: clicking on a control to start the Bluetooth broadcast on the device management page to trigger an operation of entering the Bluetooth broadcast page, etc.
[0133] like Fig.11 As shown, it is a schematic diagram of the process of starting Bluetooth broadcasting provided by an embodiment of the present disclosure, such as Fig.11 As shown in (a), the sound setting page displays audio output channels and Bluetooth broadcast sound output options, where the current audio output channel is set to the Bluetooth audio output channel and the Bluetooth broadcast is turned off. After the display device receives the user's trigger operation for Bluetooth broadcasting and successfully turns on Bluetooth broadcasting, Fig.11 As shown in (b), the Bluetooth broadcast is turned on at this time.
[0134] In some embodiments, when receiving a trigger operation to start a Bluetooth broadcast, the display device may first control the Bluetooth protocol stack to create a Bluetooth broadcast, start the Bluetooth broadcast, and determine whether there is an active Bluetooth audio device; if it is determined that the active Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device, and it is determined that the Bluetooth broadcast is successfully started, the Bluetooth protocol stack is controlled to set the A2DP device or the Bluetooth hearing aid device to an inactive state.
[0135] In actual applications, if the Bluetooth broadcast fails to start, the sound continues to be played based on the active a2dp device or Bluetooth hearing aid device.
[0136] S1002: If it is determined that there is a Bluetooth audio device in an active state, determine whether the Bluetooth audio device is an a2dp device or a Bluetooth hearing aid device.
[0137] In actual applications, when the display device switches from the Bluetooth audio output channel to the Bluetooth broadcast, it is first necessary to determine the device type of the connected Bluetooth audio device. For different types of Bluetooth audio devices, different offline processing methods need to be adopted when switching to the Bluetooth broadcast.
[0138] In the embodiment of the present disclosure, when the display device receives a start trigger operation for Bluetooth broadcasting, it first determines whether there is a Bluetooth audio device in an active state, and when it is determined that there is a Bluetooth audio device in an active state, it determines whether the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device.
[0139] The Bluetooth hearing aid device in the embodiment of the present disclosure refers to a hearing aid device that supports the HearingAid protocol, wherein the HearingAid protocol is a hearing aid application specification based on Bluetooth Low Energy (BLE), which describes how to connect and disconnect between two Bluetooth hearing aid devices to ensure interoperability between devices.
[0140] The A2DP device in the disclosed embodiment refers to a Bluetooth audio device that supports the A2DP protocol, where the A2DP protocol is the Advanced Audio Distribution Profile (AADDP) in classic Bluetooth. The A2DP protocol is a transmission protocol for Bluetooth audio streams that can select different encoding methods and bandwidth occupancy to provide high-quality sound quality and a smooth experience.
[0141] S1003: If it is determined that the Bluetooth audio device is an a2dp device or a Bluetooth hearing aid device, save the device information of the Bluetooth audio device, and control the Bluetooth protocol stack to set the Bluetooth audio device to an inactive state.
[0142] In the embodiment of the present disclosure, when the display device receives a start trigger operation for Bluetooth broadcasting, if it is determined that the Bluetooth audio device in the active state is an A2DP device or a Bluetooth hearing aid device, the device information of the Bluetooth audio device is saved, and the Bluetooth protocol stack is controlled to set the Bluetooth audio device to the inactive state.
[0143] In actual applications, a Bluetooth audio device in an active state is a Bluetooth audio device that is playing audio data (or making sound). After the display device controls the Bluetooth protocol stack to set the Bluetooth audio device in an active state to an inactive state, the Bluetooth audio device stops playing audio data (or does not make sound).
[0144] In the disclosed embodiment, the device information may include the MAC address of the Bluetooth audio device. The MAC address of the Bluetooth audio device is stored in the memory of the display device, so that when the Bluetooth broadcast is turned off later, the device that was originally emitting sound can be found and the device can continue to play the audio data. The MAC address of the Bluetooth audio device can be used to uniquely identify the Bluetooth audio device.
[0145] In actual applications, since the display device saves the device information of the active A2DP device and the Bluetooth hearing aid device in the memory in advance after turning on the Bluetooth broadcast, for the user, when turning off the Bluetooth broadcast (that is, switching from the Bluetooth broadcast to the original Bluetooth audio output), it is more desirable to use the device before turning on the Bluetooth broadcast (that is, the device saved in the memory) to continue playing the audio data.
[0146] Therefore, when the display device receives a shutdown trigger operation for the Bluetooth broadcast, it can also determine whether the currently saved Bluetooth audio device is in a connected state, and when it is determined that the currently saved Bluetooth audio device is in a connected state, it sets the Bluetooth audio device to an active state so that the Bluetooth audio device continues to play audio data.
[0147] S1004: Control the audio module to perform offline processing on the Bluetooth audio device, and switch the audio routing strategy from the current HAL.
[0148] In the disclosed embodiment, after the display device controls the Bluetooth protocol stack to set the A2DP device or Bluetooth hearing aid device in the active state to the inactive state, it can also control the audio module to take the A2DP device or Bluetooth hearing aid device offline and cut out the audio routing strategy from the current HAL.
[0149] In the disclosed embodiment, controlling the audio module to perform offline processing on the A2DP device or the Bluetooth hearing aid device refers to cutting the audio routing policy of the audio module from the HAL (hardware abstraction layer). After cutting the audio routing policy from the HAL, the display device cannot send audio data to the HAL based on the Bluetooth connection, nor can it send audio data to the A2DP device or the Bluetooth hearing aid device through the HAL. That is, the A2DP device or the Bluetooth hearing aid device cannot receive the audio data and cannot make any sound.
[0150] In some embodiments, after the display device controls the audio module to offline the a2dp device or the Bluetooth hearing aid device, it can also control the audio module to bring the Bluetooth broadcast device online and switch the audio routing strategy to LEaudiohal. At this time, the display device can send audio data to LEaudiohal based on the LEaudio connection, and then send the audio data to the Bluetooth broadcast device through LEaudiohal, and the Bluetooth broadcast device plays the audio data.
[0151] In the embodiment of the present disclosure, the Bluetooth broadcasting device refers to an audio receiving device in which the BMS working mode is in the active state, that is, a broadcasting audio device that supports the LEaudio protocol.
[0152] In the switching processing method of Bluetooth broadcast provided by the embodiment of the present disclosure, first, in response to the start trigger operation for Bluetooth broadcast, it is determined whether there is a Bluetooth audio device in the active state; if it is determined that there is a Bluetooth audio device in the active state, it is determined whether the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device; if it is determined that the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device, the device information of the Bluetooth audio device is saved, and the Bluetooth protocol stack is controlled to set the Bluetooth audio device to the inactive state; then, the audio module is controlled to perform offline processing on the Bluetooth audio device, and the audio routing strategy is cut out by the current HAL, thereby realizing the Bluetooth broadcast switching processing of the display device.
[0153] In actual applications, after the display device turns on Bluetooth broadcasting, the user can also manually switch from the Bluetooth audio channel to traditional audio output channels such as the local speaker, HDMI channel or coaxial channel. After switching to any of the above channels, the display device can simultaneously play audio data through the above traditional audio output channels while broadcasting audio data.
[0154] Specifically, the display device releases the mute setting of the music stream in response to the triggering operation of switching the audio output channel to the target output channel, wherein the target audio output channel may include an HDMI channel, a local speaker, or a coaxial channel.
[0155] In the embodiment of the present disclosure, the triggering operation of switching the audio output channel to the target output channel may include, on the sound setting page in the device manager, a selection operation for the target output channel in the sound output channel, and the like.
[0156] like Fig.12 FIG. 1 is a schematic diagram of switching from an audio output channel to a target output channel provided by an embodiment of the present disclosure. Fig.12 The current audio output channel displayed on the sound setting page shown in (a) is Bluetooth audio; when Bluetooth broadcasting is turned on, the display device jumps to Fig.12 (b) shows an audio output channel selection page, which also displays audio output channels such as HDMI channel, coaxial channel and local speaker. When the display device receives a selection operation for an HDMI channel, Fig.12 As shown in (c), the HDMI channel is determined as the target output channel, and the mute setting of the music stream corresponding to the HDMI channel is released; after successfully switching to the HDMI channel, as shown in Fig.12As shown in (d), the current audio output channel displayed on the sound setting page is the HDMI channel. At this time, the Bluetooth broadcast and the HDMI channel produce sound at the same time.
[0157] It can be seen that during the process of broadcasting the audio stream, after the display device in the embodiment of the present disclosure switches from the current audio output channel to the target audio channel, it can make the Bluetooth broadcasting device and the target audio channel sound at the same time by unmuting the music stream.
[0158] In actual applications, the LEaudio application layer specification Telephone and Media Audio Profile (TMAP) defines two media audio applications, namely unicast media audio and broadcast media audio, where unicast media audio includes unicast media sender UMS and unicast media receiver UMR, and broadcast media audio includes broadcast media sender BMS and broadcast media receiver BMR. In actual applications, the unicast media sender UMS and the broadcast media sender BMS are mutually exclusive, that is, the working mode of the audio receiving device cannot be in the unicast state and the broadcast state at the same time.
[0159] Since the working mode of the Bluetooth audio device cannot be in the unicast state and the broadcast state at the same time, when the display device receives the user's start trigger operation for Bluetooth broadcast and determines that the audio receiving device currently in the active state is a unicast (UMS) device that supports the LEaudio protocol, it first controls the Bluetooth protocol stack to set the UMS working mode device of the audio receiving device to the inactive state, and sets the BMS working mode device of the audio receiving device to the active state.
[0160] In some embodiments, after the display device controls the Bluetooth protocol stack to set the UMS working mode device of the audio receiving device to the inactive state, and sets the BMS working mode device of the audio receiving device to the active state, it can also use the built-in Bluetooth application to monitor the event that the UMS working mode of the audio receiving device is set to the inactive state, and after monitoring the event, control the audio module to mute the music stream, and perform Bluetooth audio offline processing on the audio receiving device, and temporarily cut the audio routing strategy from LEaudiohal.
[0161] In actual applications, after the display device controls the audio module to take the audio receiving device offline, the audio receiving device may have some popping sounds or sudden interference sounds, which seriously affects the user experience when turning on Bluetooth broadcasting. Therefore, when the audio receiving device is taken offline, the embodiment of the present disclosure can also set the music stream to mute, so that the display device can seamlessly switch from the unicast state to the broadcast state.
[0162] In actual applications, after the display device cuts off the audio routing strategy from LEaudiohal, it can also use the Bluetooth application to monitor the event of the audio receiving device going offline. If it is determined that the offline audio receiving device is the same device as the audio receiving device in the inactive state of the UMS working state, the Bluetooth protocol stack is controlled to establish a Bluetooth broadcast and start the Bluetooth broadcast.
[0163] In actual applications, after the display device establishes and turns on the Bluetooth broadcast, there may be problems such as the failure to turn on the Bluetooth broadcast, or the audio receiving device cannot receive the Bluetooth broadcast, resulting in the display device being unable to broadcast audio data to the audio receiving device. Therefore, after turning on the Bluetooth broadcast, the display device also needs to determine whether the Bluetooth broadcast is turned on successfully; if it is determined that the Bluetooth broadcast is turned on successfully, the audio module is controlled to switch the audio routing strategy back to LEaudiohal. At this time, the display device can send the broadcast stream to LEaudiohal, and then LEaudiohal broadcasts the Bluetooth broadcast stream to the audio receiving device.
[0164] In some embodiments, if it is determined that the Bluetooth broadcast startup fails, the audio data continues to be played based on the Bluetooth connection established by the original unicast media receiver UMR.
[0165] In some embodiments, in order to make the user have certain expectations about the failure of Bluetooth broadcast activation, the display device can also control the display to display prompt information about the failure of Bluetooth broadcast activation or to restart Bluetooth broadcast when it is determined that the Bluetooth broadcast activation has failed, so as to prompt the user that the current activation trigger for Bluetooth broadcast has failed.
[0166] In some embodiments, when the display device turns off the Bluetooth broadcast, that is, when it switches back to the Bluetooth audio output channel from the Bluetooth broadcast, it can also determine whether the currently saved Bluetooth audio device is in a connected state, and when it is determined that the currently saved Bluetooth audio device is in a connected state, the Bluetooth audio device is set to an active state so that the Bluetooth audio device continues to play audio data.
[0167] In actual applications, suppose that the display device is playing audio data based on the a2dp device before turning on the Bluetooth broadcast. At this time, after receiving the start trigger operation for the Bluetooth broadcast and saving the device information of the a2dp device in the memory, if the user turns off the a2dp device first and then turns off the Bluetooth broadcast, the a2dp device has been offline before turning off the Bluetooth broadcast. Therefore, when the display device receives the user's turn off trigger operation for the Bluetooth broadcast, it cannot find the connected Bluetooth audio device.
[0168] Based on this, the display device in the embodiment of the present disclosure can also first determine whether the currently saved Bluetooth audio device is in a connected state when receiving a shutdown trigger operation for Bluetooth broadcasting; if it is determined that the currently saved Bluetooth audio device is in an unconnected state, then determine whether the current audio output channel is in a Bluetooth audio channel; if it is determined that the current audio output channel is in a Bluetooth audio channel, then determine the target Bluetooth audio device for playing audio data based on a preset priority relationship. Among them, the target Bluetooth audio device is in a connected state.
[0169] In actual applications, due to the limited radio frequency capability of the Bluetooth module in the display device, when multiple Bluetooth audio devices are connected, it cannot be guaranteed that all devices can play audio data. Therefore, when the display device receives a shutdown trigger operation for the Bluetooth broadcast, it can also determine the target Bluetooth audio device for playing audio data from the connected Bluetooth audio devices based on a preset priority relationship.
[0170] In the embodiments of the present disclosure, the preset priority relationship may be used to characterize the audio output priority relationship between Bluetooth audio devices supporting different application layer Bluetooth protocols.
[0171] In some embodiments, the preset priority relationship can be determined based on actual needs. For example, the Bluetooth audio output priority relationship between the Bluetooth audio devices with the above-mentioned different application layer Bluetooth protocols can be characterized in the order of Bluetooth hearing aid devices supporting the hearingaid protocol being the best, Bluetooth audio devices supporting the A2DP protocol being the second, and Bluetooth audio devices supporting the LEAudio protocol being the last.
[0172] Exemplarily, assuming that the preset priority relationship is hearingaid>A2DP>LEAudio, the Bluetooth audio devices currently connected to the display device include Bluetooth audio device 1 that supports the A2DP protocol and Bluetooth audio device 2 that supports the LEAudio protocol. When the display device receives a close trigger operation for the Bluetooth broadcast, based on the above preset priority relationship, it determines the target Bluetooth audio device from the currently connected Bluetooth audio devices, that is, determines Bluetooth audio device 1 as the target Bluetooth audio device.
[0173] In actual applications, for a connected Bluetooth audio device, the audio data transmitted by the display device can only be played when it is in the active state. Therefore, after determining the target Bluetooth audio device, the state of the target Bluetooth audio device can also be set to the active state, and the Bluetooth protocol stack can be notified that the target Bluetooth audio device is currently in the active state, so that the Bluetooth protocol stack can be controlled to output the audio data of the display device to the target Bluetooth audio device.
[0174] In some embodiments, when receiving a shutdown trigger operation for Bluetooth broadcasting, the display device may first determine the device type of the connected Bluetooth audio device. If there are multiple device types of connected Bluetooth audio devices, the Bluetooth audio device used to play the audio data is determined based on a preset priority relationship. If the Bluetooth audio device used to play the audio data is determined to be a Bluetooth hearing aid device that supports the hearingaid protocol, the last connected Bluetooth hearing aid device in the device connection list of the display device is determined as the target Bluetooth audio device, so that the Bluetooth hearing aid device can subsequently play the audio data of the display device.
[0175] In the embodiment of the present disclosure, after the last connected Bluetooth hearing aid device in the device connection list is determined as the target Bluetooth hearing aid device based on the preset priority relationship, the Audio module can also be controlled to route audio data to the target Bluetooth audio device so that the target Bluetooth audio device can synchronously play the audio data of the display device.
[0176] In some embodiments, the display device may also, upon receiving a shutdown trigger operation for a Bluetooth broadcast, first determine the device type of a connected Bluetooth audio device; if there are multiple device types of connected Bluetooth audio devices, determine the Bluetooth audio device for playing audio data based on a preset priority relationship; if the device for playing audio data is determined to be an A2dp device that supports the A2dp protocol, determine the target A2dp device in the device connection list of the display device as the target Bluetooth audio device.
[0177] Among them, the target A2dp device can also be determined based on the number of connected A2dp devices in the device connection list. Specifically, if it is determined that the number of connected A2dp devices in the device connection list is 1, the connected A2dp device is determined as the target A2dp device; if it is determined that the number of connected A2dp devices in the device connection list is 2, any A2dp device in the connected A2dp devices is determined as the target A2dp device.
[0178] In actual applications, after determining that the number of connected A2dp devices is 2 and determining any of the connected A2dp devices as the target A2dp device, the Bluetooth protocol stack can be controlled to open two audio streams for the connected A2dp device. The two audio streams are used to output the audio data of the display device to the connected A2dp device respectively.
[0179] In some embodiments, when it is determined that the number of connected A2dp devices in the device connection list is 2, the Bluetooth protocol stack can also be controlled to open two audio streams for the connected A2dp devices, thereby outputting the audio data of the display device to the connected A2dp devices respectively.
[0180] It can be seen that when the display device in the embodiment of the present disclosure determines that the number of connected A2dp devices in the device connection list is 2, it can control the Bluetooth protocol stack to open two audio streams, so as to realize the function of synchronously playing the audio data of the display device by multiple connected A2dp devices.
[0181] In some embodiments, the display device may also, upon receiving a shutdown trigger operation for a Bluetooth broadcast, first determine the device type of a connected Bluetooth audio device; if there are multiple device types of connected Bluetooth audio devices, determine a Bluetooth audio device for playing audio data based on a preset priority relationship; if it is determined that the device for playing audio data is an LE audio device that supports the LE audio protocol, then the first connected LE audio device in the device connection list of the display device is determined as the target Bluetooth audio device.
[0182] After the first connected LE audio device in the device connection list is determined as the target Bluetooth audio device based on the preset priority relationship, the Audio module can also be controlled to route the audio data to the target Bluetooth audio device so that the target Bluetooth audio device can synchronously play the audio data of the display device.
[0183] It can be seen that the embodiment of the present disclosure can determine the target Bluetooth audio device based on the preset priority relationship when the Bluetooth broadcast is turned off (that is, when the Bluetooth broadcast is switched to the Bluetooth audio output channel), so as to control the audio module to route the audio data of the display device to the target Bluetooth audio device, thereby realizing the function of synchronously playing the audio data of the display device using the Bluetooth audio device when the Bluetooth broadcast is turned off.
[0184] In some embodiments, the display device may also determine the target Bluetooth audio device for playing audio data by determining whether there is a recently connected device when receiving a shutdown trigger operation for Bluetooth broadcasting.
[0185] Specifically, the display device responds to the shutdown trigger operation for the Bluetooth broadcast, determines whether there is a connected audio output device on the current audio output channel, and when it is determined that there is a connected audio output device on the current audio output channel, sets the audio output device to the active state for playing the audio data of the display device.
[0186] The connected audio output device may include an audio output device manually connected by a user after the display device starts Bluetooth broadcasting.
[0187] In some embodiments, when the display device determines that there is a connected audio output device in the current audio output channel, it can also control the display to display a prompt pop-up window so that the user can determine whether to use the audio output device to play audio data based on the connected audio output device displayed in the prompt pop-up window.
[0188] In the embodiment of the present disclosure, during the process of the display device controlling the display to display the prompt pop-up window, a confirmation message of the application audio output device can also be received based on the prompt pop-up window. Fig.13 As shown in FIG. 1 , a schematic diagram of a process of shutting down Bluetooth broadcasting provided by an embodiment of the present disclosure is shown. Fig.13 As shown in (a), at this time, the Bluetooth broadcast is in the on state. When the display device receives a trigger operation to turn off the Bluetooth broadcast, if it is determined that there is an audio output device 1 connected to the current audio output channel, a prompt pop-up window is displayed on the current page; Fig.13 As shown in (b), the prompt pop-up window may display a prompt message "After turning off Bluetooth broadcasting, do you want to use audio output device 1?"; when the display device receives a confirmation message to use audio output device 1, it sets audio output device 1 to the active state for playing the audio data of the display device.
[0189] In actual applications, if the display device does not receive a confirmation message from any audio output device of the application, the target Bluetooth audio device is determined from the connected audio output devices based on a preset priority relationship, and the target Bluetooth audio device is set to an active state for playing audio data.
[0190] In some embodiments, when the display device receives a close trigger operation for the Bluetooth broadcast, if it is determined that the currently saved Bluetooth audio device is in an unconnected state or there is no Bluetooth audio device in an active state, the display device uses the Bluetooth application to broadcast to the TV service (TVservices) to notify the TV service to perform the following steps:
[0191] First, it is determined whether there is a connected audio output device for the current audio output channel manually switched by the user; if it is determined that there is a connected audio output device for the current audio output channel (for example, the display device is connected to a USB speaker device during Bluetooth broadcasting), the display is controlled to display a prompt pop-up window to prompt the user whether to switch to the audio output device; if a selection operation for the audio output device by the user is received based on the prompt pop-up window, the audio output device is set to the active state.
[0192] In some embodiments, after the display device sets the audio output device to the active state, the display device may further control the Audio module to route the audio data to the audio output device so that the audio data of the display device can be synchronously played by the audio output device.
[0193] Fig.14 Schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure, the electronic device may be the above-mentioned display device, control terminal or audio receiving device. Fig.14 As shown, the electronic device includes: a processor 1401, a memory 1402, and a computer program stored in the memory 1402 and executable on the processor 1401. When the computer program is executed by the processor 1401, the various processes of the following methods involved in the above method embodiment are implemented: a Bluetooth broadcast switching processing method executed by a display device.
[0194] The embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned Bluetooth broadcast switching processing method is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0195] The present disclosure provides a computer program product, which includes a computer program. When the computer program is executed on a computer, the computer implements the above-mentioned Bluetooth broadcast switching processing method.
[0196] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above discussion in some embodiments is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. According to the above teachings, various modifications and variations can be obtained. 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 various different variations of the embodiments suitable for specific use considerations.
Claims
1. A display device, It is characterized in that include: A controller, and a Bluetooth module connected to the controller; The controller is configured to: In response to a start trigger operation for a Bluetooth broadcast, determining whether there is a Bluetooth audio device currently in an active state; If it is determined that there is currently an active Bluetooth audio device, determine whether the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device; If it is determined that the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device, the device information of the Bluetooth audio device is saved, and the Bluetooth protocol stack is controlled to set the Bluetooth audio device to an inactive state; The audio module is controlled to perform offline processing on the Bluetooth audio device and the audio routing strategy is switched out from the current HAL.
2. The display device according to claim 1, It is characterized in that The controller is further configured to: Control the audio module to bring the Bluetooth broadcast device online and switch the audio routing strategy to the LE audio hal.
3. The display device according to claim 1, It is characterized in that The controller is further configured to: In response to the trigger operation for starting the Bluetooth broadcast, controlling the Bluetooth protocol stack to create a Bluetooth broadcast and start the Bluetooth broadcast; Correspondingly, if it is determined that the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device, controlling the Bluetooth protocol stack to set the Bluetooth audio device to an inactive state includes: If it is determined that the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device, and it is determined that the Bluetooth broadcast is successfully started, the Bluetooth protocol stack is controlled to set the Bluetooth audio device to an inactive state.
4. The display device according to claim 1, It is characterized in that The controller is further configured to: In response to a triggering operation of switching the audio output channel to a target output channel, the mute setting of the music stream is released; wherein the target output channel includes an HDMI channel or a local speaker.
5. The display device according to claim 1, It is characterized in that The controller is further configured to: If it is determined that the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device, the method further includes: The device information of the Bluetooth audio device is saved; wherein the device information includes a MAC address.
6. The display device according to claim 5, It is characterized in that The controller is further configured to: In response to a close trigger operation for the Bluetooth broadcast, determining whether the currently saved Bluetooth audio device is in a connected state; If the Bluetooth audio device is in a connected state, the Bluetooth audio device is set to an active state.
7. The display device according to claim 1, It is characterized in that The controller is further configured to: In response to a close trigger operation for the Bluetooth broadcast, determining whether there is an audio output device connected to the current audio output channel; If it is determined that there is an audio output device connected to the current audio output channel, the audio output device is set to an active state.
8. The display device according to claim 7, It is characterized in that The controller is specifically configured as follows: If it is determined that there is an audio output device connected to the current audio output channel, the audio output device is set to an active state, including: If it is determined that there is an audio output device connected to the current audio output channel, control the display to display a prompt pop-up window; the prompt pop-up window is used to determine whether to use the audio output device; If a confirmation message to apply the audio output device is received based on the prompt pop-up window, the audio output device is set to an active state.
9. The display device according to claim 1, It is characterized in that The controller is further configured to: In response to a shutdown trigger operation for the Bluetooth broadcast, if it is determined that the current audio output channel is in the Bluetooth audio channel, a target Bluetooth audio device is determined based on a preset priority relationship; the target Bluetooth audio device is in a connected state; Set the target Bluetooth audio device to active state.
10. A method for processing Bluetooth broadcast switching, It is characterized in that The method comprises: In response to a start trigger operation for a Bluetooth broadcast, determining whether there is a Bluetooth audio device currently in an active state; If it is determined that there is currently an active Bluetooth audio device, determine whether the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device; If it is determined that the Bluetooth audio device is an A2DP device or a Bluetooth hearing aid device, the device information of the Bluetooth audio device is saved, and the Bluetooth protocol stack is controlled to set the Bluetooth audio device to an inactive state; The audio module is controlled to perform offline processing on the Bluetooth audio device and the audio routing strategy is switched out from the current HAL.
