Display device and method for switching broadcast audio to unicast audio
By sending broadcast and unicast connection requests in the display device and utilizing the scanning service and low-power audio service to detect the target Bluetooth device status, the problem of LE Audio devices being unable to play unicast audio was solved, enabling normal playback of unicast audio streams after reconnection and improving the user experience.
Patent Information
- Application Number
- CN202511326034.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-16
- Publication Date
- 2026-01-13
AI Technical Summary
In display devices, LE Audio devices that have synchronized Bluetooth broadcast audio cannot play unicast audio streams after reconnecting to other display devices, resulting in a poor user experience.
The display device sends broadcast connection requests and unicast connection requests in response to the connection operation of the target Bluetooth device. It uses the broadcast audio scanning service and low-power audio service to detect the status information of the target Bluetooth device, determine whether it is a unicast active device, and selectively delete broadcast sources to ensure that unicast connections are established quickly in complex Bluetooth environments.
This feature enables normal playback of unicast audio streams after the broadcast audio device is reconnected to other display devices, thus improving the user experience.
Smart Images

Figure CN121334433A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display device technology, and in particular to a display device and a method for switching broadcast audio to unicast audio. Background Technology
[0002] With the rapid development of display device functionality, the features they offer users are becoming increasingly diverse. Currently, display devices include smart TVs, smart set-top boxes, smart set-top boxes, and products with smart display screens. Taking a smart TV as an example, after smart TV B enables Bluetooth broadcast audio, it allows connected LE Audio (Low Energy Audio, Bluetooth Low Energy, a new generation low-power audio standard launched by the Bluetooth Special Interest Group) devices to synchronize with smart TV B's broadcast audio. However, if the LE Audio device has already synchronized Bluetooth broadcast audio, and the user re-establishes a unicast connection with this LE Audio device through smart TV A, the LE Audio device cannot play the unicast audio stream from smart TV A, resulting in a poor user experience. Summary of the Invention
[0003] This application provides a method for switching unicast audio to broadcast audio on a display device, in order to solve the problem that LE Audio devices that have synchronized Bluetooth broadcast audio cannot play unicast audio streams after being reconnected to other display devices.
[0004] In a first aspect, some embodiments provide a display device, including: a display, one or more external device interfaces, and at least one controller. The display is configured to display content from a broadcast system or network and / or a user interface; the one or more external device interfaces are used to communicate with one or more external devices according to a communication protocol, the communication protocol including at least the Bluetooth protocol; and at least one controller is connected to the display and the one or more external device interfaces and is configured to execute instructions to cause the display device to be configured to:
[0005] In response to a connection operation targeting a Bluetooth device, a broadcast connection request and a unicast connection request are sent to the target Bluetooth device.
[0006] Upon receiving a broadcast connection success event from the target Bluetooth device, the system obtains the broadcast reception status information sent by the target Bluetooth device through the broadcast audio scanning service. If third-party broadcast source information exists in the broadcast reception status information, the system determines whether the target Bluetooth device is a unicast active device based on the unicast device table. If the target Bluetooth device is a unicast active device, the system controls the target Bluetooth device to delete the broadcast source that matches the third-party broadcast source information.
[0007] Upon receiving a unicast connection success event from the target Bluetooth device, the Low Power Audio Service determines whether a broadcast source exists in the target Bluetooth device according to the broadcast device table. If a broadcast source exists in the target Bluetooth device, a broadcast source deletion request is sent to the Broadcast Audio Scan Service to instruct the Broadcast Audio Scan Service to control the target Bluetooth device to delete the broadcast source.
[0008] Upon receiving a broadcast source deletion success event from the target Bluetooth device, a preset audio source is sent to the target Bluetooth device to instruct the target Bluetooth device to play the preset audio source.
[0009] Technical Effects: Some embodiments provide a display device that, in response to a connection operation to a target Bluetooth device, simultaneously sends a broadcast connection request and a unicast connection request to the target Bluetooth device, ensuring rapid establishment of a communication connection with the target Bluetooth device in complex Bluetooth environments. The display device may receive a broadcast connection success event or a unicast connection success event returned by the target Bluetooth device sequentially. Upon receiving a broadcast connection success event, the display device uses a broadcast audio scanning service to detect whether there is third-party broadcast source information in the broadcast reception status information sent by the target Bluetooth device, and whether the target Bluetooth device is a unicast active device, thereby selectively deleting broadcast sources from the target Bluetooth device. Upon receiving a unicast connection success event, the display device uses a low-power audio service to determine whether there is a broadcast source according to the unicast device table, thereby requesting the broadcast audio scanning service to delete the broadcast source from the target Bluetooth device. Since the target Bluetooth device is a unicast-activated device, or a unicast connection success event is received, it indicates that a unicast connection has been established between the target Bluetooth device and the display device. Therefore, after the target Bluetooth device deletes the broadcast source, it can play the preset audio source of the display device normally. Regardless of the order in which the broadcast connection success event and the unicast connection success event are received, the broadcast audio is switched to unicast audio normally. In other words, the Bluetooth device that has synchronized broadcast audio can play the unicast audio stream normally after reconnecting to other display devices, meeting user expectations and improving the user experience.
[0010] Secondly, some embodiments also provide a method for switching broadcast audio to unicast audio, applied to the display device provided in the first aspect, the display device including: a display, one or more external device interfaces, and at least one controller, the method including:
[0011] In response to a connection operation for a target Bluetooth device, a broadcast connection request and a unicast connection request are sent to the target Bluetooth device;
[0012] Upon receiving a broadcast connection success event from the target Bluetooth device, the system obtains the broadcast reception status information sent by the target Bluetooth device through the broadcast audio scanning service. If third-party broadcast source information exists in the broadcast reception status information, the system determines whether the target Bluetooth device is a unicast active device based on the unicast device table. If the target Bluetooth device is a unicast active device, the system controls the target Bluetooth device to delete the broadcast source that matches the third-party broadcast source information.
[0013] Upon receiving a unicast connection success event from the target Bluetooth device, the Low Power Audio Service determines whether a broadcast source exists in the target Bluetooth device according to the broadcast device table. If a broadcast source exists in the target Bluetooth device, a broadcast source deletion request is sent to the Broadcast Audio Scan Service to instruct the Broadcast Audio Scan Service to control the target Bluetooth device to delete the broadcast source.
[0014] Upon receiving a broadcast source deletion success event from the target Bluetooth device, a preset audio source is sent to the target Bluetooth device to instruct the target Bluetooth device to play the preset audio source.
[0015] Technical Effects: Some embodiments provide a method for switching broadcast audio to unicast audio. In response to a connection operation to a target Bluetooth device, a broadcast connection request and a unicast connection request are simultaneously sent to the target Bluetooth device to ensure rapid establishment of a communication connection with the target Bluetooth device in complex Bluetooth environments. The display device may receive a broadcast connection success event or a unicast connection success event returned by the target Bluetooth device. Upon receiving a broadcast connection success event, the device uses a broadcast audio scanning service to detect whether there is third-party broadcast source information in the broadcast reception status information sent by the target Bluetooth device, and whether the target Bluetooth device is a unicast active device, thereby selectively deleting broadcast sources from the target Bluetooth device. Upon receiving a unicast connection success event, the device uses a low-power audio service to determine whether there is a broadcast source according to the unicast device table, thereby requesting the broadcast audio scanning service to delete the broadcast source from the target Bluetooth device. Since the target Bluetooth device is a unicast-activated device, or a unicast connection success event is received, it indicates that a unicast connection has been established between the target Bluetooth device and the display device. Therefore, after the target Bluetooth device deletes the broadcast source, it can play the preset audio source of the display device normally. Regardless of the order in which the broadcast connection success event and the unicast connection success event are received, the broadcast audio is switched to unicast audio normally. In other words, the Bluetooth device that has synchronized broadcast audio can play the unicast audio stream normally after reconnecting to other display devices, meeting user expectations and improving the user experience. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device provided in some embodiments of this application;
[0018] Figure 2 This is a schematic diagram of the hardware configuration of a display device provided in some embodiments of this application;
[0019] Figure 3 This is a schematic diagram of the hardware configuration of the control device provided in some embodiments of this application;
[0020] Figure 4 This is a schematic diagram of the software configuration of a display device provided in some embodiments of this application;
[0021] Figure 5 A flowchart illustrating a method for switching broadcast audio to unicast audio provided in some embodiments of this application;
[0022] Figure 6 Software architecture diagrams of display devices provided in some embodiments of this application;
[0023] Figure 7 Timing diagrams of methods for switching broadcast audio to unicast audio provided in some embodiments of this application;
[0024] Figure 8 A schematic diagram of the data processing flow for a broadcast audio scanning service provided in some embodiments of this application;
[0025] Figure 9 A schematic diagram of the data processing flow for low-power audio services provided in some embodiments of this application;
[0026] Figure 10 Structural block diagram of an apparatus for switching broadcast audio to unicast audio provided in some embodiments of this application;
[0027] Figure 11 This is an internal structural diagram of a computer device provided in some embodiments of this application. Detailed Implementation
[0028] The embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described below do not represent all embodiments consistent with this application. They are merely examples of systems and methods consistent with some aspects of this application as detailed in the claims.
[0029] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.
[0030] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.
[0031] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.
[0032] The term "module" refers to any known or subsequently developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0033] In this embodiment, the display device 200 generally refers to a device with screen display and data processing capabilities. For example, the display device 200 includes, but is not limited to, smart TVs, mobile terminals, computers, monitors, advertising screens, wearable devices, virtual reality devices, augmented reality devices, etc.
[0034] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device provided in some embodiments of this application. For example... Figure 1 As shown, users can operate the display device 200 via touch operation, mobile terminal 300, and control device 100. For example, control device 100 can be a remote control, stylus, gamepad, etc.
[0035] The mobile terminal 300 can function as a control device for human-computer interaction between the user and the display device 200. It can also function as a communication device for establishing a communication connection with the display device 200 and exchanging data. In some embodiments, the mobile terminal 300 can have software applications installed on it and communicate with the display device 200 via network communication protocols to achieve one-to-one control and data communication. Furthermore, it can transmit audio and video content displayed on the mobile terminal 300 to the display device 200 for synchronized display.
[0036] like Figure 1 The diagram also shows that the display device 200 communicates with the server 400 via various communication methods. This allows the display device 200 to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks.
[0037] Display device 200 can provide broadcast television reception function, and can also be equipped with intelligent network television function that provides computer support function, including but not limited to network television, smart television, Internet Protocol television (IPTV), etc.
[0038] Figure 2 Provided for some embodiments of this application Figure 1 Hardware configuration block diagram of display device 200.
[0039] In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface.
[0040] In some embodiments, detector 230 is used to acquire signals from the external environment or to interact with the outside world. For example, detector 230 includes a light receiver, a sensor for acquiring ambient light intensity; or, detector 230 includes an image acquisition device, such as a camera, which can be used to acquire external environmental scenes, user attributes, or user interaction gestures; or, detector 230 includes a sound acquisition device, such as a microphone, for receiving external sounds.
[0041] In some embodiments, the display 260 includes display function components for presenting images and driving components for driving image display. The display 260 is used to receive and display image signals output from the controller 250. For example, the display 260 can be used to display video content, image content, menu control interface components, and user control UI interfaces, etc.
[0042] In some embodiments, the communication device 220 is a component used to communicate with external devices or the server 400 according to various communication protocol types. The display device 200 may have multiple communication devices 220 depending on the supported communication methods. For example, when the display device 200 supports wireless network communication, it may have a communication device 220 with WiFi functionality. When the display device 200 supports Bluetooth connectivity, it needs to have a communication device 220 with Bluetooth functionality.
[0043] The communication device 220 enables the display device 200 to communicate with external devices or the server 400 via wireless or wired connections. Wired connections utilize data cables, interfaces, or other components to connect the display device 200 to external devices. Wireless connections utilize wireless signals or wireless networks. The display device 200 can directly establish a connection with external devices or indirectly through gateways, routers, or other connection devices.
[0044] In some embodiments, the controller 250 may include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor, and a first to an nth interface for input / output. The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in memory. The controller 250 controls the overall operation of the display device 200.
[0045] In some embodiments, the controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0046] In some embodiments, a user can input user commands through a graphical user interface (GUI) displayed on a display 260, and the user input interface receives user input commands through the graphical user interface (GUI).
[0047] In some embodiments, the audio output device 270 can be a built-in speaker of the display device 200 or an external audio output device connected to the display device 200. For the external audio output device connected to the display device 200, the display device 200 may also be provided with an external audio output terminal, through which the audio output device can be connected to the display device 200 to output sound from the display device 200.
[0048] In some embodiments, the user input interface 280 can be used to receive instructions from user input.
[0049] Figure 3 Provided for some embodiments of this application Figure 1 Hardware configuration block diagram of the central control device. (Example) Figure 3 As shown, the control device 100 may include: a controller 110, a communication interface 130, a user input / output interface, a memory, and a power supply.
[0050] The control device 100 is configured to control the display device 200, and to receive user input operation commands and convert the operation commands into commands that the display device 200 can recognize and respond to, thus acting as an intermediary for interaction between the user and the display device 200.
[0051] In some embodiments, the control device 100 may be an intelligent device. For example, the control device 100 may be equipped with various applications for controlling the display device 200 according to user needs.
[0052] In some embodiments, such as Figure 1 As shown, the mobile terminal 300 or other smart electronic devices can perform similar functions to the control device 100 after installing the application of the control display device 200.
[0053] The controller 110 includes a processor 112, RAM 113, ROM 114, a communication interface 130, and a communication bus. The controller 110 is used to control the operation of the control device 100, as well as the communication and cooperation between internal components and the external and internal data processing functions.
[0054] Under the control of the controller 110, the communication interface 130 enables communication of control signals and data signals with the display device 200. The communication interface 130 may include at least one of other near-field communication modules such as WiFi chip 131, Bluetooth module 132, and NFC module 133.
[0055] User input / output interface 140, wherein the input interface includes at least one of other input interfaces such as microphone 141, touchpad 142, sensor 143, and button 144.
[0056] In some embodiments, the control device 100 includes at least one of a communication interface 130 and an input / output interface 140. The control device 100 is configured with the communication interface 130, such as a WiFi, Bluetooth, or NFC module, which can encode user input commands via WiFi, Bluetooth, or NFC protocols and send them to the display device 200.
[0057] The memory 190 is used to store various operating programs, data, and applications for driving and controlling the control device 100 under the control of the controller. The memory 190 can also store various control signal instructions input by the user.
[0058] The power supply 180 is used to provide operating power support for the various components of the control device 100 under the control of the controller.
[0059] In order to perform user interaction, in some embodiments, the display device 200 may run an operating system. The operating system is a computer program used to manage and control the hardware and software resources in the display device 200. The operating system can (control the display device) provide a user interface, allowing users to interact with the display device 200 and supporting the running of various applications.
[0060] It should be noted that the operating system can be a native operating system based on a specific operating platform, a third-party operating system that is deeply customized based on a specific operating platform, or an independent operating system specifically developed for display devices.
[0061] An operating system can be divided into different modules or levels based on the functions it implements, for example... Figure 4 As shown, in some embodiments, the system is divided into four layers, from top to bottom: the Applications layer (referred to as the "Application Layer"), the Application Framework layer (referred to as the "Framework Layer"), the System Library layer, and the Kernel layer.
[0062] In some embodiments, the application layer provides services and interfaces for applications, enabling the display device 200 to run applications and interact with the user based on the applications. The application layer may contain at least one application, which may be a built-in Windows program, system settings program, or clock program of the operating system; or it may be an application developed by a third-party developer. In specific implementations, the application packages in the application layer are not limited to the examples above.
[0063] The framework layer provides application programming interfaces (APIs) and a programming framework for applications. The application framework layer includes predefined functions. It acts as a central processing unit, determining the actions taken by applications within the application layer. Through the API, applications can access system resources and obtain system services during execution.
[0064] like Figure 4As shown, the application framework layer in this embodiment includes a view system, managers, and content providers. The view system designs and implements the application's interface and interactions, and includes lists, grids, text boxes, and buttons. The managers include at least one of the following modules: an activity manager for interacting with all running activities in the system; a location manager for providing system services or applications with access to system location services; a package manager for retrieving various information related to application packages currently installed on the device; a notification manager for controlling the display and clearing of notification messages; and a window manager for managing icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.
[0065] In some embodiments, the Activity Manager manages the lifecycle of individual applications and common navigation and back functions, such as controlling application exit, opening, and back actions. The Window Manager manages all window programs, such as obtaining the screen size, determining if a status bar is present, locking the screen, capturing the screen, and controlling changes to the display window, such as shrinking the display window, shaking the display, or distorting the display.
[0066] In some embodiments, the system runtime library layer can provide support for the framework layer. When the framework layer is used, the operating system runs the instruction library contained in the system runtime library layer, such as the C / C++ instruction library, to implement the functions to be performed by the framework layer.
[0067] In some embodiments, the kernel layer is a functional layer situated between the hardware and software of the display device 200. The kernel layer can implement functions such as hardware abstraction, multitasking, and memory management. For example, ... Figure 4 As shown, hardware drivers can be configured in the kernel layer. The kernel layer can contain 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.
[0068] It should be noted that the above examples are merely a simple division of operating system functions and do not limit the specific form of the operating system of the display device 200 in this application embodiment. Depending on the function of the display device, the type of operating system, and other factors, the number of levels and the specific level type of the operating system may be expressed in other forms.
[0069] With the rapid development of display device functionality, the features they offer users are becoming increasingly diverse. Currently, display devices include smart TVs, smart set-top boxes, smart set-top boxes, and products with smart display screens. Taking a smart TV as an example, after enabling Bluetooth broadcast audio on smart TV B, it can establish a broadcast connection with an LE Audio device through a Bluetooth broadcast assistant, allowing the LE Audio device to synchronize the broadcast audio from smart TV B. If the user rescans for the LE Audio device on smart TV A and manually pairs it, attempting to establish a CIS connection (i.e., a unicast connection) and play a unicast audio stream, the LE Audio device cannot play the unicast audio stream from smart TV A. This is because the LE Audio device retains the Bluetooth broadcast information from smart TV B and synchronizes the broadcast audio stream from smart TV B, failing to meet the user's expected behavior and resulting in a poor user experience.
[0070] Based on this, this application proposes a method for switching unicast audio to broadcast audio on a display device. In response to a connection operation to a target Bluetooth device, a broadcast connection request and a unicast connection request are simultaneously sent to the target Bluetooth device to ensure rapid establishment of a communication connection with the target Bluetooth device in complex Bluetooth environments. The display device may receive a broadcast connection success event or a unicast connection success event returned by the target Bluetooth device. Upon receiving a broadcast connection success event, the display device uses a broadcast audio scanning service to detect whether there is third-party broadcast source information in the broadcast reception status information sent by the target Bluetooth device, and whether the target Bluetooth device is a unicast active device, thereby selectively deleting broadcast sources from the target Bluetooth device. Upon receiving a unicast connection success event, the display device uses a low-power audio service to determine whether there is a broadcast source according to the unicast device table, thereby requesting the broadcast audio scanning service to delete the broadcast source from the target Bluetooth device. Since the target Bluetooth device is a unicast-activated device, or a unicast connection success event is received, it indicates that a unicast connection has been established between the target Bluetooth device and the display device. Therefore, after the target Bluetooth device deletes the broadcast source, it can play the preset audio source of the display device normally. Regardless of the order in which the broadcast connection success event and the unicast connection success event are received, the broadcast audio is switched to unicast audio normally. In other words, the Bluetooth device that has synchronized broadcast audio can play the unicast audio stream normally after reconnecting to other display devices, meeting user expectations and improving the user experience.
[0071] In one exemplary embodiment, such as Figure 5 As shown, a method for switching broadcast audio to unicast audio is provided, which can be applied to... Figure 1 Taking the display device 200 as an example, the explanation includes the following steps 502 to 508. Wherein:
[0072] Step 502: In response to the connection operation for the target Bluetooth device, send a broadcast connection request and a unicast connection request to the target Bluetooth device.
[0073] The target Bluetooth device refers to a device that has Bluetooth communication capabilities and supports Bluetooth broadcast and Bluetooth unicast connection protocols. For example, the target Bluetooth device can be an LE Audio device, such as LE Audio headphones, LE Audio speakers, LE Audio hearing aids, etc.
[0074] The target Bluetooth device establishes a connection with the display device via the Bluetooth protocol. A broadcast connection request refers to a command sent based on the Bluetooth LE Audio broadcast protocol to request joining the broadcast stream, used to request a broadcast connection with the target device. For example, the broadcast protocol could be the BASS (Broadcast Audio Scan Service) specification, and sending a broadcast connection request could trigger a connection in the Bluetooth Broadcast Assistant (BSA) profile. A unicast connection request refers to a command sent based on the Bluetooth LE Audio unicast protocol to request establishing point-to-point communication, used to request a unicast connection with the target Bluetooth device. For example, the unicast protocol could be the ASCS (Audio Stream Control Service) specification, and the unicast connection could be a CIS (Connected Isochronous Stream) connection.
[0075] In some embodiments, the display shows a Bluetooth settings interface, which includes selection controls for at least one Bluetooth device. In response to the triggering operation of any selection control, the target Bluetooth device corresponding to the corresponding selection control is determined, a broadcast connection request and a unicast connection request for the target Bluetooth device are generated, and sent to the target Bluetooth device.
[0076] In other embodiments, the Bluetooth settings interface includes a scanning device control. In response to the triggering operation of the scanning device control, the device is shown scanning for surrounding Bluetooth devices. If any Bluetooth device is detected, a pairing request is initiated to that Bluetooth device. If pairing is successful, a selection control for that Bluetooth device is added to the Bluetooth settings interface. In response to the triggering operation of any selection control, the target Bluetooth device corresponding to the corresponding selection control is determined, a broadcast connection request and a unicast connection request for the target Bluetooth device are generated, and sent to the target Bluetooth device.
[0077] Step 504: Upon receiving a broadcast connection success event from the target Bluetooth device, obtain the broadcast reception status information sent by the target Bluetooth device through the broadcast audio scanning service. If third-party broadcast source information exists in the broadcast reception status information, determine whether the target Bluetooth device is a unicast active device based on the unicast device table. If the target Bluetooth device is a unicast active device, control the target Bluetooth device to delete the broadcast source matching the third-party broadcast source information.
[0078] Among them, the broadcast connection success event refers to the status notification that the target Bluetooth device has successfully established a broadcast connection with the display device based on the broadcast connection request, and the display device receives the broadcast connection success event returned by the target Bluetooth device.
[0079] like Figure 6 The diagram shows the software architecture of a display device in some embodiments. The operating system of the display device includes at least an application layer (APP), an application framework (Framework), a Bluetooth protocol stack (BTStack), and a Bluetooth driver layer (Bluetooth Driver). The application layer provides at least a settings application. The Bluetooth adapter (SettinsLib BluetoothAdapter) in the application framework communicates with the Bluetooth APK (Bluetooth APK) via Binder. The Bluetooth APK includes at least a broadcast audio scanning service (BassClientService), a low-power audio service (LeAudioService), a broadcast audio scanning service state machine (BassClientStateMachine), and a low-power audio service state machine (LeAudioStateMachine). The broadcast audio scanning service is the core service responsible for managing broadcast audio streams, used for discovering and synchronizing broadcast sources and obtaining broadcast reception status information of the device. The low-power audio service is the core service responsible for managing unicast audio streams, used for audio routing, device state coordination, etc.
[0080] Broadcast Receive State refers to the detailed status data of the broadcast source stored in the target Bluetooth device. Third-party broadcast source information refers to the information of broadcast sources from other devices connected to the target device, including the broadcast source identifier, broadcast source address type, and broadcast source physical address. If the target Bluetooth device has established a broadcast connection with other devices and played a broadcast from one of those devices, the broadcast receive state will contain third-party broadcast source information.
[0081] The broadcast connection success event returned by the target Bluetooth device is forwarded sequentially through the Bluetooth driver layer and the Bluetooth protocol stack, enters the application framework, is received by the broadcast audio scanning service in the application framework, and performs the process of obtaining broadcast reception status information, determining the unicast active device, and controlling the target Bluetooth device to delete the broadcast source.
[0082] The unicast device table refers to a data table in the Low Power Audio Service (LPAS) used to store device information and status information of Bluetooth devices that have established unicast connections with the display device. The Broadcast Audio Scanning Service retrieves information from the unicast device table by calling the LPAS interface. A unicast active device refers to a Bluetooth device that has successfully established a unicast connection with the display device. In some embodiments, the Broadcast Audio Scanning Service determines whether a target Bluetooth device is a unicast active device by using the status information of the target Bluetooth device in the unicast device table.
[0083] The target Bluetooth device is a unicast active device, indicating that a unicast connection (such as a CIS connection) has been established between the target Bluetooth device and the display device. The broadcast audio scanning service generates a deletion request that matches the third-party broadcast source information and sends it to the target Bluetooth device to instruct the target Bluetooth device to delete the broadcast source that matches the third-party broadcast source information according to the deletion request.
[0084] Step 506: Upon receiving a unicast connection success event from the target Bluetooth device, determine whether a broadcast source exists in the target Bluetooth device according to the broadcast device table via the Low Power Audio Service; if a broadcast source exists in the target Bluetooth device, send a broadcast source deletion request to the Broadcast Audio Scan Service to instruct the Broadcast Audio Scan Service to control the target Bluetooth device to delete the broadcast source.
[0085] The unicast connection success event refers to the status notification that the target Bluetooth device has successfully established a unicast connection with the display device based on the unicast connection request. The display device receives a broadcast connection success event returned by the target Bluetooth device. The unicast connection success event is forwarded sequentially through the Bluetooth driver layer and the Bluetooth protocol stack, enters the application framework, is received by the Low Power Audio service in the application framework, and the Low Power Audio service performs the process of determining the broadcast source and notifying the broadcast audio scanning service to control the target Bluetooth device to delete the broadcast source.
[0086] The broadcast device table refers to a data table in the broadcast audio scanning service, used to store device information and broadcast status values of Bluetooth devices that have established broadcast connections with the display device. The Low Power Audio service retrieves information from the broadcast device table by calling the broadcast audio scanning service's interface. In some embodiments, the Low Power Audio service determines whether a broadcast source exists in the target Bluetooth device by using the broadcast status value of the target Bluetooth device in the broadcast device table.
[0087] If a broadcast source exists in the target Bluetooth device, the Low Power Audio Service (LPAS) needs to notify the target Bluetooth device to remove the broadcast source via the Broadcast Audio Scanning Service (BAS). The LAS sends a broadcast source removal request to the BAS. This request instructs the BAS to generate a removal request matching the third-party broadcast source information, based on the removal request and the third-party broadcast source information in the broadcast reception status information, and then send this removal request to the target Bluetooth device. The removal request instructs the target Bluetooth device to remove the broadcast source matching the third-party broadcast source information.
[0088] Step 508: Upon receiving a broadcast source deletion success event from the target Bluetooth device, send the preset audio source to the target Bluetooth device to instruct the target Bluetooth device to play the preset audio source.
[0089] The "Broadcast source deletion success event" refers to the status notification returned by the target Bluetooth device to the display device, indicating that the specified broadcast source has been successfully deleted. This event is forwarded sequentially through the Bluetooth driver layer and the Bluetooth protocol stack, entering the application framework and being received by the broadcast audio scanning service within the application framework.
[0090] The preset audio source refers to the audio stream pre-configured in the display device, which can be local audio, online audio, etc. The controller sends the preset audio source to the target Bluetooth device. Since the target Bluetooth device has established a unicast connection with the display device (such as a CIS connection) and the broadcast source in the target Bluetooth device has been deleted, the target Bluetooth device can play the preset audio source directly after receiving it.
[0091] In the above method for switching broadcast audio to unicast audio, in response to a connection operation to the target Bluetooth device, a broadcast connection request and a unicast connection request are simultaneously sent to the target Bluetooth device to ensure a rapid establishment of a communication connection with the target Bluetooth device in a complex Bluetooth environment. The display device may receive a broadcast connection success event or a unicast connection success event returned by the target Bluetooth device. If a broadcast connection success event is received, the broadcast audio scanning service detects whether there is third-party broadcast source information in the broadcast reception status information sent by the target Bluetooth device, and whether the target Bluetooth device is a unicast active device, thereby selectively deleting broadcast sources from the target Bluetooth device. If a unicast connection success event is received, the low-power audio service determines whether there is a broadcast source according to the unicast device table, and then requests the broadcast audio scanning service to delete the broadcast source from the target Bluetooth device. Since the target Bluetooth device is a unicast-activated device, or a unicast connection success event is received, it indicates that a unicast connection has been established between the target Bluetooth device and the display device. Therefore, after the target Bluetooth device deletes the broadcast source, it can play the preset audio source of the display device normally. Regardless of the order in which the broadcast connection success event and the unicast connection success event are received, the broadcast audio is switched to unicast audio normally. In other words, the Bluetooth device that has synchronized broadcast audio can play the unicast audio stream normally after reconnecting to other display devices, meeting user expectations and improving the user experience.
[0092] In an exemplary embodiment, determining whether a target Bluetooth device is a unicast active device based on a unicast device table using a broadcast audio scanning service includes: calling a unicast device query interface of a low-power audio service through the broadcast audio scanning service. The unicast device query interface is used to traverse multiple device information entries in the unicast device table. If any device information matches the device information of the target Bluetooth device, the corresponding status information of the target Bluetooth device is obtained from the unicast device table. The status information returned by the unicast device query interface is received through the broadcast audio scanning service. If the status information indicates that the target Bluetooth device is in a unicast active state, the target Bluetooth device is determined to be a unicast active device.
[0093] The unicast device query interface refers to a function in the low-power audio service that provides the ability to query the unicast device table. The broadcast audio scanning service calls the unicast device query interface of the low-power audio service through an internal communication mechanism to obtain the query results returned by the unicast device query interface.
[0094] After the unicast device query interface is called, it iterates through multiple device information in the unicast device table. If any device information matches the device information of the target Bluetooth device, it continues to obtain the status information corresponding to that device information and returns it to the broadcast audio scanning service as the status information of the target Bluetooth device.
[0095] The status information returned by the unicast device query interface is forwarded sequentially through the Bluetooth driver layer and the Bluetooth protocol stack, entering the application framework. It is received by the broadcast audio scanning service within the application framework, which determines whether the target Bluetooth device is in a unicast active state based on the status information. For example, the status information can be represented by a status value. If the status information is a first preset value (e.g., the first preset value can be 1, TRUE, etc.), the broadcast audio scanning service determines that the target Bluetooth device is in a unicast active state and is a unicast active device. If the status information is a second preset value (e.g., the second preset value can be 0, FALSE, etc.), the broadcast audio scanning service determines that the target Bluetooth device is not in a unicast active state and is not a unicast active device.
[0096] In this embodiment, the broadcast audio scanning service and the low-power audio service are independent of each other. The broadcast audio scanning service processes broadcast audio and, by calling the unicast device query interface of the low-power audio service, can accurately traverse the unicast device table and match the device information and status information of the target Bluetooth device. The broadcast audio scanning service determines whether the target Bluetooth device is a unicast active device based on the status information. This method of querying the device table by calling the query interface ensures the consistency of information and status between the two services.
[0097] In an exemplary embodiment, the method for switching broadcast audio to unicast audio further includes: upon receiving a broadcast connection success event returned by the target Bluetooth device and finding that the broadcast reception status information contains third-party broadcast source information, obtaining the broadcast source identifier in the third-party broadcast source information through a broadcast audio scanning service; if the broadcast source identifier is a valid identifier and the third-party broadcast source information contains the physical address of the broadcast source, saving the device information of the target Bluetooth device to a broadcast device table, and updating the broadcast status value of the target Bluetooth device in the broadcast device table to a first preset value.
[0098] Specifically, upon receiving a broadcast connection success event from the target Bluetooth device, and if the broadcast reception status information contains third-party broadcast source information, the system uses a broadcast audio scanning service to determine if the third-party broadcast source information is valid. If it is valid, the target Bluetooth device's device information is saved to the broadcast device table, and the broadcast status value is updated to a first preset value (e.g., the first preset value can be 1, TRUE, etc.). A broadcast status value of the first preset value indicates that the target Bluetooth device retains a third-party broadcast source.
[0099] The third-party broadcast source information includes a broadcast source identifier and may also include the physical address of the broadcast source. After obtaining the third-party broadcast source information, the broadcast audio scanning service verifies the validity of the broadcast source identifier. For example, if the broadcast source identifier exists in a preset identifier table, it is determined to be a valid identifier. If the broadcast source identifier is valid, the service checks whether the field corresponding to the physical address of the broadcast source in the third-party broadcast source information is empty. If it is not empty, it indicates that the physical address of the broadcast source exists in the third-party broadcast source information; if it is empty, it indicates that it does not exist. If both the broadcast source identifier and the physical address of the broadcast source exist in the third-party broadcast source information, it indicates that the third-party broadcast source information obtained by the broadcast audio scanning service is valid.
[0100] In this embodiment, by verifying the validity of the broadcast source identifier and the existence of the physical address, the validity of the third-party broadcast source information is ensured, and interference from invalid information is avoided. When the third-party broadcast source information is valid, the device information of the target Bluetooth device is saved to the broadcast device table, and the broadcast status value is updated. The status of the target Bluetooth device in the broadcast device table is synchronized in a timely manner, which is beneficial to providing an accurate data foundation for switching broadcast audio to unicast audio.
[0101] In an exemplary embodiment, the method for switching broadcast audio to unicast audio further includes: upon receiving a broadcast source deletion success event returned by the target Bluetooth device, sending a first state update notification to the low-power audio service via the broadcast audio scanning service to instruct the low-power audio service to update the state information of the target Bluetooth device in the unicast device table to an inactive state.
[0102] In this process, after the broadcast source deletion success event is received by the broadcast audio scanning service through the Bluetooth driver layer and Bluetooth protocol stack, the broadcast audio scanning service sends a first state update notification to the low-power audio service. Upon receiving the first state update notification, the low-power audio service updates the state information of the target Bluetooth device in the unicast device table to an inactive state. For example, it updates the state information to a second preset value, which can be 0, FALSE, etc. The state information being the second preset value indicates that the target Bluetooth device is not in a unicast active state, i.e., it is in an inactive state.
[0103] In this embodiment, upon receiving a successful broadcast source deletion event, the broadcast audio scanning service notifies the low-power audio service to promptly update the status information of the target Bluetooth device in the unicast device table to an inactive state. This ensures that the status information in the unicast device table is consistent with the actual status of the target Bluetooth device, thus preventing the broadcast audio scanning service from mistakenly deleting the broadcast source if it detects that the target Bluetooth device is still in a unicast active state after the broadcast source has been deleted.
[0104] In an exemplary embodiment, determining whether a broadcast source exists in the target Bluetooth device using a low-power audio service based on a broadcast device table includes: calling the broadcast device query interface of a broadcast audio scanning service through the low-power audio service. The broadcast device query interface is used to traverse multiple device information entries in the broadcast device table. If any device information matches the device information of the target Bluetooth device, the broadcast status value corresponding to the target Bluetooth device is obtained from the broadcast device table. The broadcast status value returned by the broadcast device query interface is received through the low-power audio service. If the broadcast status value is a first preset value, it is determined whether a broadcast source exists in the target Bluetooth device.
[0105] The broadcast device query interface refers to a function in the broadcast audio scanning service that provides the ability to query the broadcast device table. The power audio service calls the broadcast device query interface of the broadcast audio scanning service through an internal communication mechanism to obtain the query results returned by the broadcast device query interface.
[0106] After the broadcast device query interface is called, it iterates through multiple device information in the broadcast device table. If any device information matches the device information of the target Bluetooth device, it continues to obtain the broadcast status value corresponding to that device information and returns it to the Low Power Audio service as the broadcast status value of the target Bluetooth device.
[0107] The broadcast status value returned by the broadcast device query interface is forwarded sequentially through the Bluetooth driver layer and the Bluetooth protocol stack, entering the application framework. It is received by the Low Power Audio (LPA) service within the application framework, which determines whether a broadcast source exists in the target Bluetooth device based on the broadcast status value. For example, if the broadcast status value is a first preset value (e.g., the first preset value can be 1, TRUE, etc.), the LPA service determines that a broadcast source exists in the target Bluetooth device. If the broadcast status value is a second preset value (e.g., the second preset value can be 0, FALSE, etc.), the LPA service determines that no broadcast source exists in the target Bluetooth device.
[0108] In this embodiment, the low-power audio service performs unicast audio processing. By calling the broadcast device query interface of the broadcast audio scanning service, it can accurately traverse the broadcast device table and match the device information and status information of the target Bluetooth device. The low-power audio service determines whether there is a broadcast source in the target Bluetooth device based on the status information. This method of querying the device table by calling the query interface ensures the consistency of information and status between the two services.
[0109] In an exemplary embodiment, the method for switching broadcast audio to unicast audio further includes: upon receiving a unicast connection success event returned by the target Bluetooth device, saving the device information of the target Bluetooth device to the unicast device table via a low-power audio service, and updating the status information of the target Bluetooth device in the unicast device table to a unicast active state.
[0110] Upon receiving a unicast connection success event from the target Bluetooth device, the device information of the target Bluetooth device is saved to the unicast device table via Low Power Audio Service, and the status information of the target Bluetooth device is updated to unicast active. For example, the status information is represented by a status value, and the status information of the target Bluetooth device is updated to a first preset value (e.g., the first preset value can be 1, TRUE, etc.). The status information being the first preset value indicates that the target Bluetooth device is in a unicast active state, and the unicast connection (e.g., CIS connection) between the target Bluetooth device and the display device has been successfully established.
[0111] In this embodiment, when the low-power audio service receives a unicast connection success event, it saves the device information of the target Bluetooth device to the unicast device table and updates the status information. This timely synchronization of the status of the target Bluetooth device in the unicast device table helps to provide an accurate data foundation for switching broadcast audio to unicast audio.
[0112] In an exemplary embodiment, the method for switching broadcast audio to unicast audio further includes: upon receiving a broadcast source deletion success event returned by the target Bluetooth device, sending a second status update notification to the broadcast audio scanning service via a low-power audio service to instruct the broadcast audio scanning service to update the broadcast status value of the target Bluetooth device in the broadcast device table to a second preset value.
[0113] The broadcast source deletion success event is received by the broadcast audio scanning service after being forwarded through the Bluetooth driver layer and Bluetooth protocol stack. It is then further forwarded to the low-power audio service. The low-power audio service sends a second state update notification to the broadcast audio scanning service. Upon receiving the second state update notification, the broadcast audio scanning service updates the broadcast state value of the target Bluetooth device in the broadcast device table to a second preset value (e.g., the second preset value can be 0, FALSE, etc.). A broadcast state value of the second preset value indicates that there is no third-party broadcast source in the target Bluetooth device.
[0114] In this embodiment, when the low-power audio service receives a broadcast source deletion success event returned by the target Bluetooth device, it notifies the broadcast audio scanning service to update the broadcast status value of the target Bluetooth device in the broadcast device table to the second preset value in a timely manner, so as to avoid misoperation due to status lag; after the broadcast status value is updated to the second preset value, the target Bluetooth device can quickly identify broadcast sources that are not currently associated with it, which is beneficial for quick decision-making when switching audio sources in the future.
[0115] To illustrate in detail the display device and the method for switching broadcast audio to unicast audio in this solution, a detailed embodiment is described below:
[0116] The method for switching broadcast audio to unicast audio in this application is applied to a display device, which includes: a display, one or more external device interfaces, and at least one controller. The display is configured to display content from a broadcast system or network and / or a user interface; the one or more external device interfaces are used to communicate with one or more external devices according to a communication protocol, which includes at least the Bluetooth protocol; and at least one controller is connected to the display and the one or more external device interfaces and is configured to execute instructions to configure the display device to perform the method of switching broadcast audio to unicast audio.
[0117] This example illustrates a scenario where the display device and the target Bluetooth device pair and connect after the target Bluetooth device has synchronized a third-party broadcast source. The target Bluetooth device can be an LE Audio device. Figure 7 The diagram shown is a timing diagram of a method for switching broadcast audio to unicast audio in some embodiments.
[0118] When a user initiates a connection to a target Bluetooth device from the display device, the display device's controller responds by generating a broadcast connection request and a unicast connection request, which are then sent to the target Bluetooth device via the Bluetooth protocol stack and Bluetooth driver. Upon receiving a broadcast connection success event (e.g., BSA connection) from the target Bluetooth device, the controller retrieves the broadcast reception status information sent by the target Bluetooth device via the BassClientService. If third-party broadcast source information is present in the broadcast reception status information, the controller determines whether the target Bluetooth device is a unicast active device based on the unicast device table. If the target Bluetooth device is a unicast active device, a deletion request is generated via the BassClientService, transmitted via the Bluetooth protocol stack and Bluetooth driver, and sent to the target Bluetooth device to instruct it to delete the broadcast source matching the third-party broadcast source information. Upon receiving a unicast connection success event (e.g., CIS connection) from the target Bluetooth device, the controller determines whether a broadcast source exists in the target Bluetooth device via the LeAudioService based on the broadcast device table. If a broadcast source exists in the target Bluetooth device, a broadcast source deletion request is sent to the BassClientService to instruct the BassClientService to control the target Bluetooth device to delete the broadcast source. Upon receiving a broadcast source deletion success event from the target Bluetooth device, a preset audio source is sent to the target Bluetooth device to instruct the target Bluetooth device to play the preset audio source.
[0119] like Figure 8 The diagram illustrates the data processing flow of the broadcast audio scanning service in some embodiments. The broadcast audio scanning service reads the broadcast reception status information. If third-party broadcast source information is present in the broadcast reception status information, the service saves the target Bluetooth device's device information to the broadcast device table. Based on the unicast device table, it determines whether the target Bluetooth device is a unicast active device. If it is, it notifies the target Bluetooth device to delete the broadcast source and notifies the low-power audio service to update the target Bluetooth device's status information to an inactive state.
[0120] In some embodiments, the data processing procedure of the broadcast audio scanning service further includes: when a broadcast connection success event is received from the target Bluetooth device and third-party broadcast source information is present in the broadcast reception status information, obtaining the broadcast source identifier in the third-party broadcast source information through the broadcast audio scanning service; when the broadcast source identifier is a valid identifier and the physical address of the broadcast source is present in the third-party broadcast source information, saving the device information of the target Bluetooth device to the broadcast device table, and updating the broadcast status value of the target Bluetooth device in the broadcast device table to a first preset value.
[0121] In some embodiments, the data processing of the broadcast audio scanning service further includes: calling the unicast device query interface of the low-power audio service through the broadcast audio scanning service. The unicast device query interface is used to traverse multiple device information in the unicast device table. If any device information matches the device information of the target Bluetooth device, the status information corresponding to the target Bluetooth device is obtained from the unicast device table. The status information returned by the unicast device query interface is received through the broadcast audio scanning service. If the status information indicates that the target Bluetooth device is in a unicast active state, the target Bluetooth device is determined to be a unicast active device.
[0122] In some embodiments, the data processing procedure of the broadcast audio scanning service further includes: upon receiving a broadcast source deletion success event returned by the target Bluetooth device, sending a status update notification to the low-power audio service through the broadcast audio scanning service to instruct the low-power audio service to update the status information of the target Bluetooth device in the unicast device table to an inactive state.
[0123] like Figure 9 The diagram illustrates the data processing flow of the Low Power Audio Service in some embodiments. The Low Power Audio Service triggers the `setActiveDevice` operation to call the broadcast device query interface of the Broadcast Audio Scanning Service to query the broadcast device table, determining whether a broadcast source exists in the target Bluetooth device. If it exists, the service requests the Broadcast Audio Scanning Service to remove the broadcast source from the target Bluetooth device and update the status value in the broadcast device table. If it does not exist, the service saves the device information of the target Bluetooth device to the unicast device table and updates it to a unicast active state.
[0124] In some embodiments, the data processing procedure of the low-power audio service further includes: upon receiving a unicast connection success event returned by the target Bluetooth device, saving the device information of the target Bluetooth device to the unicast device table through the low-power audio service, and updating the status information of the target Bluetooth device in the unicast device table to the unicast active state.
[0125] In some embodiments, the data processing of the low-power audio service further includes: triggering a setActiveDevice (set current active device) operation through the low-power audio service; in the setActiveDevice operation, calling the broadcast device query interface of the broadcast audio scanning service; the broadcast device query interface is used to traverse multiple device information in the broadcast device table; if any device information matches the device information of the target Bluetooth device, obtaining the broadcast status value corresponding to the target Bluetooth device in the broadcast device table; receiving the broadcast status value returned by the broadcast device query interface through the low-power audio service; and if the broadcast status value is a first preset value, determining whether there is a broadcast source in the target Bluetooth device.
[0126] In some embodiments, the data processing procedure of the Low Power Audio Service further includes: upon receiving a broadcast source deletion success event returned by the target Bluetooth device, sending a status update notification to the Broadcast Audio Scanning Service via the Low Power Audio Service to instruct the Broadcast Audio Scanning Service to update the broadcast status value of the target Bluetooth device in the broadcast device table to a second preset value.
[0127] The aforementioned display device and method for switching broadcast audio to unicast audio, in response to a connection operation with a target Bluetooth device, simultaneously sends a broadcast connection request and a unicast connection request to the target Bluetooth device to ensure rapid establishment of a communication connection with the target Bluetooth device in complex Bluetooth environments. The display device may receive a broadcast connection success event or a unicast connection success event returned by the target Bluetooth device. Upon receiving a broadcast connection success event, the display device uses a broadcast audio scanning service to detect whether there is third-party broadcast source information in the broadcast reception status information sent by the target Bluetooth device, and whether the target Bluetooth device is a unicast active device, thereby selectively deleting broadcast sources from the target Bluetooth device. Upon receiving a unicast connection success event, the display device uses a low-power audio service to determine whether there is a broadcast source according to the unicast device table, thereby requesting the broadcast audio scanning service to delete the broadcast source from the target Bluetooth device. Since the target Bluetooth device is a unicast-activated device, or a unicast connection success event is received, it indicates that a unicast connection has been established between the target Bluetooth device and the display device. Therefore, after the target Bluetooth device deletes the broadcast source, it can play the preset audio source of the display device normally. Regardless of the order in which the broadcast connection success event and the unicast connection success event are received, the broadcast audio is switched to unicast audio normally. In other words, the Bluetooth device that has synchronized broadcast audio can play the unicast audio stream normally after reconnecting to other display devices, meeting user expectations and improving the user experience.
[0128] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0129] Based on the same inventive concept, this application also provides an apparatus for implementing the above-described method of switching broadcast audio to unicast audio. The solution provided by this apparatus is similar to the implementation described in the above-described method. Therefore, the specific limitations of one or more apparatus embodiments for switching broadcast audio to unicast audio provided below can be found in the limitations of the method for switching broadcast audio to unicast audio described above, and will not be repeated here.
[0130] In one exemplary embodiment, such as Figure 10 As shown, a device 1000 for switching broadcast audio to unicast audio is provided, comprising: a request module 1002, a first processing module 1004, a second processing module 1006, and a playback module 1008, wherein:
[0131] Request module 1002 is used to send a broadcast connection request and a unicast connection request to the target Bluetooth device in response to a connection operation for the target Bluetooth device;
[0132] The first processing module 1004 is used to obtain the broadcast reception status information sent by the target Bluetooth device through the broadcast audio scanning service when a broadcast connection success event is received from the target Bluetooth device; if there is third-party broadcast source information in the broadcast reception status information, determine whether the target Bluetooth device is a unicast active device according to the unicast device table; if the target Bluetooth device is a unicast active device, control the target Bluetooth device to delete the broadcast source that matches the third-party broadcast source information.
[0133] The second processing module 1006 is used to determine whether there is a broadcast source in the target Bluetooth device according to the broadcast device table through the low power audio service when a unicast connection success event is received from the target Bluetooth device; if there is a broadcast source in the target Bluetooth device, send a broadcast source deletion request to the broadcast audio scanning service to instruct the broadcast audio scanning service to control the target Bluetooth device to delete the broadcast source.
[0134] The playback module 1008 is used to send a preset audio source to the target Bluetooth device when it receives a broadcast source deletion success event returned by the target Bluetooth device, so as to instruct the target Bluetooth device to play the preset audio source.
[0135] Some embodiments provide an apparatus for switching broadcast audio to unicast audio. In response to a connection operation to a target Bluetooth device, a broadcast connection request and a unicast connection request are simultaneously sent to the target Bluetooth device to ensure rapid establishment of a communication connection with the target Bluetooth device in complex Bluetooth environments. The display device may receive a broadcast connection success event or a unicast connection success event returned by the target Bluetooth device. Upon receiving a broadcast connection success event, the device uses a broadcast audio scanning service to detect whether there is third-party broadcast source information in the broadcast reception status information sent by the target Bluetooth device, and whether the target Bluetooth device is a unicast active device, thereby selectively deleting broadcast sources from the target Bluetooth device. Upon receiving a unicast connection success event, the device uses a low-power audio service to determine whether there is a broadcast source according to the unicast device table, thereby requesting the broadcast audio scanning service to delete the broadcast source from the target Bluetooth device. Since the target Bluetooth device is a unicast-activated device, or a unicast connection success event is received, it indicates that a unicast connection has been established between the target Bluetooth device and the display device. Therefore, after the target Bluetooth device deletes the broadcast source, it can play the preset audio source of the display device normally. Regardless of the order in which the broadcast connection success event and the unicast connection success event are received, the broadcast audio is switched to unicast audio normally. In other words, the Bluetooth device that has synchronized broadcast audio can play the unicast audio stream normally after reconnecting to other display devices, meeting user expectations and improving the user experience.
[0136] In some embodiments, the first processing module 1004 is further configured to: call the unicast device query interface of the low-power audio service through the broadcast audio scanning service, wherein the unicast device query interface is used to traverse multiple device information in the unicast device table, and if any device information matches the device information of the target Bluetooth device, obtain the status information corresponding to the target Bluetooth device in the unicast device table; receive the status information returned by the unicast device query interface through the broadcast audio scanning service, and determine that the target Bluetooth device is a unicast active device if the status information indicates that the target Bluetooth device is in a unicast active state.
[0137] In some embodiments, the first processing module 1004 is further configured to: upon receiving a broadcast connection success event returned by the target Bluetooth device and finding that the broadcast reception status information contains third-party broadcast source information, obtain the broadcast source identifier in the third-party broadcast source information through a broadcast audio scanning service; if the broadcast source identifier is a valid identifier and the third-party broadcast source information contains the physical address of the broadcast source, save the device information of the target Bluetooth device to the broadcast device table, and update the broadcast status value of the target Bluetooth device in the broadcast device table to a first preset value.
[0138] In some embodiments, the first processing module 1004 is further configured to: upon receiving a broadcast source deletion success event returned by the target Bluetooth device, send a first status update notification to the low-power audio service via the broadcast audio scanning service, instructing the low-power audio service to update the status information of the target Bluetooth device in the unicast device table to an inactive state.
[0139] In some embodiments, the low-power audio service performs the determination of whether a broadcast source exists in the target Bluetooth device according to the broadcast device table. The second processing module 1006 is further configured to: call the broadcast device query interface of the broadcast audio scanning service through the low-power audio service. The broadcast device query interface is used to traverse multiple device information in the broadcast device table. If any device information matches the device information of the target Bluetooth device, the broadcast status value corresponding to the target Bluetooth device is obtained from the broadcast device table. The low-power audio service receives the broadcast status value returned by the broadcast device query interface. If the broadcast status value is a first preset value, the second processing module 1006 is configured to determine whether a broadcast source exists in the target Bluetooth device.
[0140] In some embodiments, the second processing module 1006 is further configured to: upon receiving a unicast connection success event returned by the target Bluetooth device, save the device information of the target Bluetooth device to the unicast device table through the low-power audio service, and update the status information of the target Bluetooth device in the unicast device table to the unicast active state.
[0141] In some embodiments, the second processing module 1006 is further configured to: upon receiving a broadcast source deletion success event returned by the target Bluetooth device, send a second status update notification to the broadcast audio scanning service via a low-power audio service to instruct the broadcast audio scanning service to update the broadcast status value of the target Bluetooth device in the broadcast device table to a second preset value.
[0142] The modules in the aforementioned device for switching broadcast audio to unicast audio can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0143] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 11As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When executed by the processor, the computer program implements a method for switching broadcast audio to unicast audio. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0144] Those skilled in the art will understand that Figure 11 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0145] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0146] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0147] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0148] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0149] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0150] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0151] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A display device, characterized in that, include: The display is configured to show content from a broadcast system or network and / or a user interface; One or more external device interfaces for communicating with one or more external devices according to a communication protocol, said communication protocol including at least the Bluetooth protocol; and at least one controller, which is connected to the display and the one or more external device interfaces, and is configured to execute instructions to cause the display device to be configured as follows: In response to a connection operation for a target Bluetooth device, a broadcast connection request and a unicast connection request are sent to the target Bluetooth device; Upon receiving a broadcast connection success event returned by the target Bluetooth device, the broadcast reception status information sent by the target Bluetooth device is obtained through the broadcast audio scanning service. If third-party broadcast source information exists in the broadcast reception status information, it is determined whether the target Bluetooth device is a unicast activated device according to the unicast device table. If the target Bluetooth device is a unicast activated device, control the target Bluetooth device to delete the broadcast source that matches the third-party broadcast source information; Upon receiving a unicast connection success event from the target Bluetooth device, the low-power audio service determines whether a broadcast source exists in the target Bluetooth device according to the broadcast device table. If a broadcast source exists in the target Bluetooth device, a broadcast source deletion request is sent to the broadcast audio scanning service to instruct the broadcast audio scanning service to control the target Bluetooth device to delete the broadcast source; Upon receiving a broadcast source deletion success event from the target Bluetooth device, a preset audio source is sent to the target Bluetooth device to instruct the target Bluetooth device to play the preset audio source.
2. The display device according to claim 1, characterized in that, The controller, configured to determine whether the target Bluetooth device is a unicast-activated device based on the unicast device table via a broadcast audio scanning service, is configured as follows: The broadcast audio scanning service calls the unicast device query interface of the low power audio service. The unicast device query interface is used to traverse multiple device information in the unicast device table. If any device information matches the device information of the target Bluetooth device, the status information corresponding to the target Bluetooth device is obtained from the unicast device table. The status information returned by the unicast device query interface is received through the broadcast audio scanning service. If the status information indicates that the target Bluetooth device is in a unicast active state, the target Bluetooth device is determined to be a unicast active device.
3. The display device according to claim 1, characterized in that, The controller is further configured to: Upon receiving a broadcast connection success event from the target Bluetooth device, and if the broadcast reception status information contains third-party broadcast source information, the broadcast source identifier in the third-party broadcast source information is obtained through the broadcast audio scanning service. If the broadcast source identifier is a valid identifier and the physical address of the broadcast source is present in the third-party broadcast source information, the device information of the target Bluetooth device is saved to the broadcast device table, and the broadcast status value of the target Bluetooth device in the broadcast device table is updated to a first preset value.
4. The display device according to claim 3, characterized in that, The controller is further configured to: Upon receiving a broadcast source deletion success event returned by the target Bluetooth device, a first status update notification is sent to the low-power audio service through the broadcast audio scanning service to instruct the low-power audio service to update the status information of the target Bluetooth device in the unicast device table to an inactive state.
5. The display device according to claim 1, characterized in that, The controller, configured to perform a low-power audio service to determine whether a broadcast source exists in the target Bluetooth device according to the broadcast device table, is configured as follows: The broadcast device query interface of the broadcast audio scanning service is called through the low power audio service. The broadcast device query interface is used to traverse multiple device information in the broadcast device table. If any device information matches the device information of the target Bluetooth device, the broadcast status value corresponding to the target Bluetooth device is obtained from the broadcast device table. The broadcast status value returned by the broadcast device query interface is received through the Low Power Audio Service. If the broadcast status value is a first preset value, it is determined whether there is a broadcast source in the target Bluetooth device.
6. The display device according to claim 1, characterized in that, The controller is further configured to: Upon receiving a unicast connection success event from the target Bluetooth device, the device information of the target Bluetooth device is saved to the unicast device table via the low-power audio service, and the status information of the target Bluetooth device in the unicast device table is updated to unicast active status.
7. The display device according to claim 6, characterized in that, The controller is further configured to: Upon receiving a broadcast source deletion success event returned by the target Bluetooth device, a second status update notification is sent to the broadcast audio scanning service via the low-power audio service to instruct the broadcast audio scanning service to update the broadcast status value of the target Bluetooth device in the broadcast device table to a second preset value.
8. A method for switching broadcast audio to unicast audio, characterized in that, Applied to the display device according to any one of claims 1 to 7, comprising: In response to a connection operation for a target Bluetooth device, a broadcast connection request and a unicast connection request are sent to the target Bluetooth device; Upon receiving a broadcast connection success event from the target Bluetooth device, the broadcast reception status information sent by the target Bluetooth device is obtained through the broadcast audio scanning service. If third-party broadcast source information exists in the broadcast reception status information, it is determined whether the target Bluetooth device is a unicast active device according to the unicast device table. If the target Bluetooth device is a unicast active device, the target Bluetooth device is controlled to delete the broadcast source matching the third-party broadcast source information. Upon receiving a unicast connection success event from the target Bluetooth device, the Low Power Audio Service determines whether a broadcast source exists in the target Bluetooth device according to the broadcast device table; if a broadcast source exists in the target Bluetooth device, a broadcast source deletion request is sent to the Broadcast Audio Scanning Service to instruct the Broadcast Audio Scanning Service to control the target Bluetooth device to delete the broadcast source. Upon receiving a broadcast source deletion success event from the target Bluetooth device, a preset audio source is sent to the target Bluetooth device to instruct the target Bluetooth device to play the preset audio source.
9. The method according to claim 8, characterized in that, The step of determining whether the target Bluetooth device is a unicast-activated device based on the unicast device table via the broadcast audio scanning service is configured as follows: The broadcast audio scanning service calls the unicast device query interface of the low power audio service. The unicast device query interface is used to traverse multiple device information in the unicast device table. If any device information matches the device information of the target Bluetooth device, the status information corresponding to the target Bluetooth device is obtained from the unicast device table. The status information returned by the unicast device query interface is received through the broadcast audio scanning service. If the status information indicates that the target Bluetooth device is in a unicast active state, the target Bluetooth device is determined to be a unicast active device.
10. The method according to claim 8, characterized in that, The method further includes: Upon receiving a broadcast connection success event from the target Bluetooth device, and if the broadcast reception status information contains third-party broadcast source information, the broadcast source identifier in the third-party broadcast source information is obtained through the broadcast audio scanning service. If the broadcast source identifier is a valid identifier and the physical address of the broadcast source is present in the third-party broadcast source information, the device information of the target Bluetooth device is saved to the broadcast device table, and the broadcast status value of the target Bluetooth device in the broadcast device table is updated to a first preset value.