Display device and audio mode switching processing method
By mute the audio stream when the Bluetooth device is offline to process and unmute the device is online to process, the problem of speaker bursting during Bluetooth audio mode switching is solved, improving the user experience.
Patent Information
- Application Number
- CN202510279605.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-10
- Publication Date
- 2025-06-27
AI Technical Summary
During the Bluetooth audio mode switching process, when the device in the previous audio mode is successfully offline but the device in the next audio mode is not successfully online, it may cause the speaker to burst briefly.
When the Bluetooth device in the previous audio mode is offline for processing, the current audio stream is muted; when the Bluetooth device in the next audio mode is successfully online, the current audio stream is desilenced.
Effectively reduces the short-term pop problem of speakers during audio mode switching, improving user experience.
Smart Images

Figure CN120223948A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Bluetooth technology, and particularly to a display device and an audio mode switching processing method. Background Art
[0002] With the introduction of the new generation of Bluetooth audio technology standard - Bluetooth Low Energy Audio (LE audio) technology, more and more display devices can support the Bluetooth Low Energy Audio (LE audio) protocol, such as devices like televisions and mobile phones. For display devices that support the LE audio protocol, during the process of switching between two audio modes, if the device in the previous audio mode has been successfully offline, and the device in the subsequent audio mode has not been successfully online, there may be a problem of brief popping sound from the speaker during this period. Summary of the Invention
[0003] To solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a display device and an audio mode switching processing method. By muting the current audio stream during the process of performing device offline processing on the Bluetooth device in the previous audio mode, and unmuting the current audio stream when the Bluetooth device in the subsequent audio mode is successfully online, the problem of popping sound from the speaker during the period when the Bluetooth device in the previous audio mode has been successfully offline and the device in the subsequent audio mode has not been successfully online is reduced.
[0004] To achieve the above object, the technical solutions provided by the embodiments of the present disclosure are as follows:
[0005] In a first aspect, the present disclosure provides a display device, including: a display; a sound output module; a Bluetooth module;
[0006] After receiving a message for switching from a first audio mode to a second audio mode, perform device offline processing on the first type of Bluetooth device in the first audio mode, and perform device online processing on the second type of Bluetooth device in the second audio mode;
[0007] During the process of performing device offline processing on the first type of Bluetooth device in the first audio mode, send a mute instruction to the audio module to instruct the audio module to mute the current audio stream;
[0008] In response to a successful online notification message from the audio module for the second type of Bluetooth device corresponding to the second audio mode, send an unmute instruction to the audio module to instruct the audio module to unmute the current audio stream.
[0009] Second aspect, the present disclosure provides an audio mode switching processing method, including:
[0010] After receiving a message for switching from a first audio mode to a second audio mode, performing a device offline process on a first type of Bluetooth device in the first audio mode, and performing a device online process on a second type of Bluetooth device in the second audio mode;
[0011] During the process of performing the device offline process on the first type of Bluetooth device in the first audio mode, sending a mute instruction to an audio module to instruct the audio module to perform a mute process on the current audio stream;
[0012] In response to a successful online notification message from the audio module for the second type of Bluetooth device corresponding to the second audio mode, sending an unmute instruction to the audio module to instruct the audio module to perform an unmute process on the current audio stream.
[0013] Third aspect, the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the audio mode switching processing method as shown in the second aspect is implemented.
[0014] Fourth aspect, the present disclosure provides a computer program product, which includes a computer program, and when the computer program runs on a computer, enables the computer to implement the audio mode switching processing method as shown in the second aspect.
[0015] The display device and the audio mode switching processing method provided by the embodiments of the present disclosure, wherein the display device includes: a display, a sound output module, a Bluetooth module, and a controller connected to the Bluetooth module, and the controller is configured to: after receiving a message for switching from a first audio mode to a second audio mode, perform a device offline process on a first type of Bluetooth device in the first audio mode, and perform a device online process on a second type of Bluetooth device in the second audio mode; during the process of performing the device offline process on the first type of Bluetooth device in the first audio mode, send a mute instruction to the audio module to instruct the audio module to perform a mute process on the current audio stream; in response to a successful online notification message from the audio module for the second type of Bluetooth device, send an unmute instruction to the audio module to instruct the audio module to perform an unmute process on the current audio stream.
[0016] It can be seen that in the embodiment of the present disclosure, during the process of offline processing of a Bluetooth device in the previous audio mode, the current audio stream is muted, and when the Bluetooth device in the subsequent audio mode is successfully online, the current audio stream is unmuted, reducing the problem of speaker popping that occurs during the period when the Bluetooth device in the previous audio mode has been successfully offline and the device in the subsequent audio mode has not been successfully online. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or in the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0019] Figure 1 It is a schematic diagram of one-to-one audio transmission of unicast media audio in the related art;
[0020] Figure 2 It is a schematic diagram of one-to-two audio transmission of unicast media audio provided in the related art;
[0021] Figure 3 It is a schematic diagram of the relationship between extended broadcast, periodic broadcast, and BIS;
[0022] Figure 4 It is a schematic diagram of the relationship between extended broadcast packets, affiliated broadcast packets, periodic broadcast packets, and BIS;
[0023] Figure 5 It is a schematic diagram of continuously sending BIG in the related art;
[0024] Figure 6 It is a hardware configuration block diagram of a display device 100 provided in an embodiment of the present disclosure;
[0025] Figure 7 It is a schematic diagram of the software system architecture of a display device 100 provided in an embodiment of the present disclosure;
[0026] Figure 8 It is a hardware configuration block diagram of an audio receiving device 200 provided in an embodiment of the present disclosure;
[0027] Figure 9 It is a hardware configuration block diagram of a control terminal 300 provided in an embodiment of the present disclosure;
[0028] Figure 10 Schematic diagram of a process for an audio mode switching processing method provided by an embodiment of the present disclosure;
[0029] Figure 11 Schematic diagram of a process for another audio mode switching processing method provided by an embodiment of the present disclosure;
[0030] Figure 12 Schematic diagram of an interface display for switching from unicast to Bluetooth broadcast mode provided by an embodiment of the present disclosure;
[0031] Figure 13 Timing diagram for switching from LE audio unicast audio mode to Bluetooth broadcast mode provided by an embodiment of the present disclosure;
[0032] Figure 14 Schematic diagram of a process for yet another audio mode switching processing method provided by an embodiment of the present disclosure;
[0033] Figure 15 Schematic diagram of an interface display for switching from Bluetooth broadcast to unicast audio mode provided by an embodiment of the present disclosure;
[0034] Figure 16 Timing diagram for switching from Bluetooth broadcast mode to unicast audio mode provided by an embodiment of the present disclosure;
[0035] Figure 17 Schematic diagram of a process for yet another audio mode switching processing method provided by an embodiment of the present disclosure;
[0036] Figure 18 Schematic diagram of an interface display for switching from classic Bluetooth to unicast audio mode provided by an embodiment of the present disclosure;
[0037] Figure 19 Timing diagram for switching from classic Bluetooth to LE audio unicast audio mode provided by an embodiment of the present disclosure;
[0038] Figure 20 Schematic diagram of a process for yet another audio mode switching processing method provided by an embodiment of the present disclosure;
[0039] Figure 21 Schematic diagram of an interface display for switching from unicast to classic Bluetooth audio mode provided by an embodiment of the present disclosure;
[0040] Figure 22 Timing diagram for switching from LE audio unicast to classic Bluetooth mode provided by an embodiment of the present disclosure;
[0041] Figure 23 Schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners
[0042] To better understand the above objects, features, and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments may be combined with each other.
[0043] In the following description, many specific details are set forth to facilitate a thorough understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all of the embodiments.
[0044] The display device and the audio receiving device provided by the present disclosure can both support Low Energy Audio (LE audio) technology based on Bluetooth, where the display device serves as an audio playback device or a device for configuring an audio receiving device. Exemplarily, the display device may be a television, a mobile phone, a projector, etc., and the audio receiving device may be a Bluetooth speaker, a Bluetooth headset, etc.
[0045] Compared with classic Bluetooth, LE audio has the following advantages:
[0046] 1. An audio playback device can be connected to multiple audio receiving devices simultaneously;
[0047] 2. A broadcast audio device can send broadcast audio to an unlimited number of audio receiving devices and supports encrypted broadcasting;
[0048] 3. Adopting the latest Low Complexity Communication Codec (LC3) audio format, the sound quality is improved;
[0049] 4. Supports Internet telephony and high-definition calls;
[0050] 5. Supports hearing aid / assistive listening applications.
[0051] Two media audio applications are defined in the Telephony and Media audio Profile (TMAP) of the application layer specification of LE audio: unicast media audio and broadcast media audio.
[0052] Unicast media audio
[0053] The unicast media audio in TMAP adopts a more advanced audio codec compared to the current media audio application specification (Advanced Audio Distribution Profile, A2DP) in classic Bluetooth to provide better sound quality, and at the same time provides richer control functions than the current classic Bluetooth media playback control specification (Audio / Video Remote Control Profile, AVRCP). TMAP defines two roles for unicast media audio applications: Unicast Media Sender (UMS) and Unicast Media Receiver (UMR). Unicast media audio transmission is achieved between UMS and UMR through a Connected Isochronous Stream (CIS).
[0054] It should be noted that the unicast media audio defined in TMAP is not limited to one-to-one audio transmission, and it also supports a unicast media sender transmitting unicast media audio to two unicast media receivers.
[0055] Figure 1 It is a schematic diagram of one-to-one audio transmission of unicast media audio in the related art. As Figure 1 shown, UMS11 sends unicast media audio to UMR12.
[0056] Figure 2 It is a schematic diagram of one-to-two audio transmission of unicast media audio provided in the related art. As Figure 2 shown, UMS21 sends unicast media audio to UMR22 and UMR23 respectively.
[0057] Broadcast media audio
[0058] The broadcast media audio in TMAP is synchronously transmitted based on multiple connectionless Broadcast Isochronous Streams (BIS). The biggest advantage of broadcast media audio is that it can synchronously transmit audio data to multiple audio receiving devices.
[0059] There are two concepts for the broadcast synchronization channels of the broadcast media audio in TMAP: Broadcast Isochronous Group (BIG) and BIS. An audio sending device can send multiple BIGs simultaneously. Each BIG can consist of multiple BISs. One BIG can contain up to 31 BISs. Each BIS has a unique Access Address, and the access address of the BIS is generated according to a unified algorithm based on the Seed Access Address of the BIG to which it belongs.
[0060] The audio of the broadcast media may include multiple broadcasts with different access addresses. Exemplarily, it may include:
[0061] Extended Advertising: It is an extended broadcast on the primary broadcast channel. The ADV_EXT_IND packet is used, and it points to the secondary broadcast through time and frequency information. Its access address adopts the primary broadcast access address specified in the Bluetooth Core Specification: 0x8E89BED6.
[0062] Periodic Advertising: The secondary broadcast uses the AUX_ADV_IND packet and points to this periodic broadcast through time, hopping map, and access address, etc. This periodic broadcast uses the AUX_SYNC_IND packet, and the periodic broadcast contains BIG information (BIGInfo).
[0063] Broadcast Isochronous Stream (BIS): It is the BIS pointed to by the periodic broadcast through time, hopping map, access address, and BIG information (BIGInfo). The BIS Protocol Data Unit (PDU) packet is used to broadcast digital audio for the broadcast isochronous stream.
[0064] Figure 3 It is a schematic diagram of the relationship between extended advertising, periodic advertising, and BIS. It should be noted that Bluetooth operates in the 2.4GHz frequency band. The frequency range of the 2.4GHz frequency band is between 2402MHz and 2480MHz. There is one channel every 2MHz, and there are a total of 40 channels. Among them, there are 3 primary broadcast channels, namely channel 37, channel 38, and channel 39. The remaining 37 channels are secondary broadcast channels, and these 37 channels are channels 0 to 36 respectively. As Figure 3 shown, the primary broadcast channels include channel 37, channel 38, and channel 39; the secondary broadcast channels include: channels 0 to 36. The extended broadcast on the primary broadcast channel can use the ADV_EXT_IND packet and point to the secondary broadcast on the secondary broadcast channel through time and frequency information. Then the secondary broadcast uses the AUX_ADV_IND packet and points to the periodic broadcast through time, hopping map, and access address. Further, this periodic broadcast uses the AUX_SYNC_IND packet and points to the BIS through time, hopping map, access address, and BIG information (BIGInfo). The BIS then uses the BIS PDU packet to broadcast digital audio.
[0065] Figure 4 It is a schematic diagram of the relationship between the extended broadcast packet, secondary broadcast packet, periodic broadcast packet, and BIS. As Figure 4As shown, the audio transmission device transmits an extended broadcast packet (ADV_EXT_IND) on the primary broadcast channels (37, 38, 39). The extended broadcast packet includes: a broadcast device address (AdvA), broadcast data information (ADI), and a pointer to an auxiliary broadcast packet (AuxiliaryPointer, AuxPtr). Among them, AuxPtr indicates that the affiliated broadcast is to be carried out on the subsequent secondary broadcast channel. The affiliated broadcast packet (AUX_ADV_IND) includes: extended broadcast data (AdvData), the universally unique identifier for the broadcast audio announcement service (Broadcastaudio Announcement Service UUID), other service universally unique identifiers (Others ServiceUUIDs). The affiliated broadcast packet indicates the data channel and broadcast period for periodic broadcast. The periodic broadcast packet (AUX_SYNC_IND) includes: additional broadcast data BIG information (Additional Controller Advertising Data BIGinfo, ACAD BIGinfo), the basic audio announcement service universally unique identifier for the extended broadcast data (AdvData Basicaudio Announcement Service UUID), BASE. The periodic broadcast packet contains all the information of the broadcast isochronous stream BIS. After receiving the periodic broadcast packet, the broadcast receiver receives the BIS data at a specific time anchor on a specific channel according to the data it includes, and obtains the BIS audio stream.
[0066] In practical applications, when broadcasting digital audio in the BIS mode, it is achieved by continuously sending BIGs. Each time a BIG is sent, it can be called a BIG event, and each BIG event can include multiple BISs.
[0067] Figure 5 It is a schematic diagram of continuously sending BIGs in the related art. As Figure 5 shown, during the process of continuously sending BIGs, the BIG events are continuously executed periodically. Figure 5 The BIG anchor shown in it indicates the start moment of each BIG event, and the time interval between two anchors is a period for executing the BIG event. It should be noted that Figure 5 it is described by taking 3 BIG events, with each BIG event including 2 BISs as an example. Figure 5 shows the continuous execution of BIG event X, BIG event (X + 1), and BIG event (X + 2), where each BIG event includes 2 BIS streams, which are respectively Figure 5BIS1 and BIS2 shown therein. Among them, during the execution of the BIG time, the BIS stream is broadcast. During the broadcast of the BIS stream, the BIS stream is broadcast once every fixed time interval.
[0068] In the audio mode switching processing method of the display device according to the embodiments of the present disclosure, the display device may be a mobile phone, a television, a computer, etc.
[0069] Figure 6 This is a hardware configuration block diagram of a display device 100 provided by the embodiments of the present disclosure. As Figure 6 shown, the display device 100 includes: a tuner demodulator 110, a communicator 120, a detector 130, an external device interface 140, a controller 150, a display 160, an audio output interface 170, a memory, a power supply, etc. Among them, the controller 150 includes a central processing unit, a video processor, an audio processor, a graphics processor, a random access memory (Random Access Memory, RAM), a read-only memory (Read-Only Memory, ROM), and first to nth interfaces for input / output. The display 160 may be at least one of a liquid crystal display, an OLED display, a touch display, and a projection display, and may also be a projection device and a projection screen. The tuner demodulator 110 receives broadcast television signals through wired or wireless reception, and demodulates audio and video signals from multiple wireless or wired broadcast television signals, such as and an electronic program guide (Electrical Program Guide, EPG) data signal. The detector 130 is used to collect signals of the external environment or interact with the outside. The controller 150 and the tuner demodulator 110 may be located in different split devices, that is, the tuner demodulator 110 may also be in an external device of the main device where the controller 150 is located, such as an external set-top box, etc.
[0070] Each component in the display device 100 can implement the following functions:
[0071] In some embodiments, the controller 150 is configured to: after receiving a message for switching from a first audio mode to a second audio mode, perform device offline processing on a first type of Bluetooth device in the first audio mode, and perform device online processing on a second type of Bluetooth device in the second audio mode; during the process of performing device offline processing on the first type of Bluetooth device in the first audio mode, send a mute instruction to the audio module to instruct the audio module to perform mute processing on the current audio stream; in response to a successful online notification message from the audio module for the second type of Bluetooth device corresponding to the second audio mode, send an unmute instruction to the audio module to instruct the audio module to perform unmute processing on the current audio stream.
[0072] In some embodiments, the controller 150 is further configured to: the performing device offline processing on the first type of Bluetooth device in the first audio mode and performing device online processing on the second type of Bluetooth device in the second audio mode after receiving a message for switching from a first audio mode to a second audio mode includes: after receiving a message for switching from the LE audio unicast audio mode to the LE audio Bluetooth broadcast mode, controlling the Bluetooth protocol stack to set the unicast audio state to the inactive state, and controlling the Bluetooth protocol stack to start creating a Bluetooth broadcast.
[0073] In some embodiments, the controller 150 is further configured to: the sending a mute instruction to the audio module to instruct the audio module to perform mute processing on the current audio stream during the process of performing device offline processing on the first type of Bluetooth device in the first audio mode includes: during the process of performing device offline processing on the LE audio device in the LE audio unicast audio mode, if a Bluetooth broadcast creation start message is received, send a mute instruction to the audio module to instruct the audio module to perform mute processing on the current audio stream; wherein, the Bluetooth broadcast creation start message is used to notify the start of creating a Bluetooth broadcast.
[0074] In some embodiments, the controller 150 is specifically configured to: during the process of handling the offline of the first type of Bluetooth device in the first audio mode, send a mute instruction to the audio module to instruct the audio module to mute the current audio stream, including: during the process of handling the offline of the LE audio device in the LE audio unicast audio mode, if a notification message indicating that the unicast audio status is successfully set to the inactive state is received, send a mute instruction to the audio module to instruct the audio module to mute the current audio stream.
[0075] In some embodiments, the controller 150 is further configured to: before sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream, further include: controlling the Bluetooth module to disconnect the volume control protocol (VCP) connection with the connected LE audio device.
[0076] In some embodiments, the controller 150 is specifically configured to: after receiving a message indicating a switch from the first audio mode to the second audio mode, handle the offline of the first type of Bluetooth device in the first audio mode and handle the online of the second type of Bluetooth device in the second audio mode, including: after receiving a message indicating a switch from the LE audio Bluetooth broadcast mode to the LE audio unicast audio mode, controlling the Bluetooth protocol stack to stop Bluetooth broadcasting and controlling the Bluetooth protocol stack to set the unicast audio status to the active state.
[0077] In some embodiments, the controller 150 is specifically configured to: during the process of handling the offline of the first type of Bluetooth device in the first audio mode, send a mute instruction to the audio module to instruct the audio module to mute the current audio stream, including: during the process of handling the offline of the LE audio device in the LE audio Bluetooth broadcast mode, if a Bluetooth broadcast stop success message is received, send a mute instruction to the audio module to instruct the audio module to mute the current audio stream.
[0078] In some embodiments, the controller 150 is specifically configured to: during the process of handling the offline of the first type of Bluetooth device in the first audio mode, send a mute command to the audio module to instruct the audio module to mute the current audio stream, including: during the process of handling the offline of the LE audio device in the LE audio Bluetooth broadcast mode, if a successful Bluetooth broadcast device offline message is received from the audio module, send a mute command to the audio module to instruct the audio module to mute the current audio stream.
[0079] In some embodiments, the controller 150 is further configured to: after sending a mute command to the audio module to instruct the audio module to mute the current audio stream, further include: controlling the Bluetooth module to establish a Volume Control Protocol (VCP) connection with the connected LE audio device.
[0080] In some embodiments, the controller 150 is specifically configured to: after receiving a message indicating a switch from the first audio mode to the second audio mode, handle the offline of the first type of Bluetooth device in the first audio mode and handle the online of the second type of Bluetooth device in the second audio mode, including: after receiving a message indicating a switch from the classic Bluetooth audio mode to the LE audio unicast audio mode, controlling the Bluetooth module to disconnect from the connected A2DP Bluetooth device and controlling the Bluetooth module to start establishing a connection with the LE audio device.
[0081] In some embodiments, the controller 150 is specifically configured to: during the process of handling the offline of the first type of Bluetooth device in the first audio mode, send a mute command to the audio module to instruct the audio module to mute the current audio stream, including: when receiving a successful A2DP Bluetooth device offline notification message from the audio module, send a mute command to the audio module to instruct the audio module to mute the current audio stream.
[0082] In some embodiments, the controller 150 is specifically configured to: during the process of handling the offline of the first type of Bluetooth device in the first audio mode, send a mute command to the audio module to instruct the audio module to mute the current audio stream, including: when receiving a notification message indicating successful disconnection from the connected A2DP Bluetooth device, send a mute command to the audio module to instruct the audio module to mute the current audio stream.
[0083] In some embodiments, the controller 150 is specifically configured to: after receiving a message indicating a switch from the first audio mode to the second audio mode, handle the offline of the first type of Bluetooth device in the first audio mode and handle the online of the second type of Bluetooth device in the second audio mode, including: after receiving a message indicating a switch from the LE audio unicast audio mode to the classic Bluetooth audio mode, control the Bluetooth module to disconnect from the connected LE audio device and control the Bluetooth module to start establishing a connection with the A2DP Bluetooth device.
[0084] In some embodiments, the controller 150 is specifically configured to: during the process of handling the offline of the first type of Bluetooth device in the first audio mode, send a mute command to the audio module to instruct the audio module to mute the current audio stream, including: when receiving a notification message from the audio module indicating successful offline of the LE audio device, send a mute command to the audio module to instruct the audio module to mute the current audio stream.
[0085] In some embodiments, the controller 150 is specifically configured to: during the process of handling the offline of the first type of Bluetooth device in the first audio mode, send a mute command to the audio module to instruct the audio module to mute the current audio stream, including: when receiving a notification message indicating successful disconnection from the connected LE audio device, send a mute command to the audio module to instruct the audio module to mute the current audio stream.
[0086] Figure 7 This is a schematic diagram of the software system architecture of a display device 100 provided by an embodiment of the present disclosure. As Figure 7 shown, the software system may include: an application (App) layer, a system framework (Framework) layer (abbreviated as "framework layer"), a dynamic library (Library), and a Bluetooth driver (BluetoothDriver).
[0087] Among them, the application layer includes: TV Settings or TV Service.
[0088] The system framework layer includes: Bluetooth API, Bluetooth APK, and audio module.
[0089] The Bluetooth application may include: VCP application specification, CSIP application specification, and LE audio application specification. Among them, the VCP application specification is also known as the VCP protocol (Volume Control Profile), and the VCP protocol is used to control the volume of Bluetooth audio devices. The CSIP protocol is used to identify and manage a pair of Bluetooth audio devices, such as a pair of Bluetooth headsets or a pair of Bluetooth hearing aids. The LE audio application specification is a low-power audio application specification based on Bluetooth.
[0090] In addition, the Bluetooth application may also include: A2DP application specification, LE audio application specification, etc. Among them, the A2DP (Advanced audio Distribution Profile) application specification is a media audio application specification in classic Bluetooth, and the LE audio application specification is a low-power audio application specification based on Bluetooth.
[0091] The dynamic library (Library) includes: Bluetooth protocol stack, which is mainly responsible for scanning, connecting, and configuring Bluetooth devices, etc. During the process of establishing a Bluetooth connection between the display device and the Bluetooth device, relevant data can be sent down to the Bluetooth protocol stack through the Bluetooth application in the display device.
[0092] The audio module may include an audio manager (audioManager), an audio service (audioService), an audio policy (audio Policy), an audio abstraction layer (audio hal), etc. The audio module is mainly responsible for sending audio data down to the Bluetooth protocol stack. Then, the audio data is transmitted through the audio channel between the audio module and the Bluetooth protocol stack. After receiving the audio data, the Bluetooth protocol stack encapsulates the audio data into a BIS stream and sends it out.
[0093] The Bluetooth driver is mainly responsible for the Bluetooth connection between the display device and the surrounding Bluetooth devices.
[0094] The Bluetooth protocol stack also includes a General Audio Framework (GAF); GAF further includes a Common Audio Profile (CAP), a Common Audio Service (CAS), audio stream transmission management, and volume control. Among them, the audio stream transmission management includes a Basic Audio Profile (BAP), a Presentation of Audio Capabilities Service (PACS), an Audio Stream Control Service (ASCS), and a Broadcast Audio Scan Service (BASS). In the embodiments of the present disclosure, BASS is required for broadcast synchronization. The volume control includes: a Volume Control Service (VCS), a Voice Offset Control Service (VOCS), and an Audio Input Control Service (AICS).
[0095] Figure 8 This is a hardware configuration block diagram of an audio receiving device 200 provided for the embodiments of the present disclosure. As Figure 10 shown, the audio receiving device 200 includes: a controller 210, a communicator 220, a user input / output interface 230, a memory 240, and a power supply 250. The communicator 220 is used for external communication and includes at least one of a WIFI chip, a Bluetooth module, an NFC, or an alternative module. The user input / output interface 230 includes at least one of a speaker, a microphone, a touchpad, a sensor, a button, or an alternative module.
[0096] Figure 9 This is a hardware configuration block diagram of a control terminal 300 provided for the embodiments of the present disclosure. It should be understood that Figure 9 the control terminal 300 shown is only an example, and the control terminal 300 may have more or fewer components than those Figure 9 shown, may combine two or more components, or may have a different component configuration. Figure 9 The various components shown in
[0097] As Figure 9As shown in the figure, the control terminal 300 includes components such as a radio frequency (RF) circuit 310, a memory 320, a display unit 330, a camera 340, sensors 350, an audio circuit 360, a Wireless Fidelity (Wi-Fi) module 370, a controller 380, a Bluetooth module 381, and a power supply 390.
[0098] The RF circuit 310 can be used for receiving and sending signals during information transceiver or call processes. It can receive downlink data from the base station and hand it over to the controller 380 for processing; it can also send uplink data to the base station. The memory 320 can be used to store software programs and data. The memory 320 stores an operating system that enables the control terminal 300 to run. In this application, the memory 320 can store the operating system and various application programs, and can also store program codes for implementing the audio mode switching processing method based on the control terminal in some embodiments of this application.
[0099] The display unit 330 can be used to receive input digital or character information and generate signal inputs related to the user settings and function controls of the control terminal 300. Specifically, the display unit 330 can include a touch screen 331 disposed on the front of the control terminal 300, which can collect touch operations of the user thereon or nearby, such as clicking buttons.
[0100] The display unit 330 can also be used to display information input by the user or information provided to the user, as well as the graphical user interface (GUI) of various menus of the control terminal 300. The display unit 330 can include a display screen 332 disposed on the front of the control terminal 300. Among them, the touch screen 331 can cover the display screen 332, or the touch screen 331 and the display screen 332 can be integrated to implement the input and output functions of the control terminal 300. After integration, it can be simply referred to as a touch display screen. The control terminal 300 can also include at least one sensor 350, such as an acceleration sensor 351, a distance sensor 352, a fingerprint sensor 353, and a temperature sensor 354.
[0101] The audio circuit 360, speaker 361, and microphone 362 can provide an audio interface between the user and the control terminal 300. Wi-Fi belongs to short-range wireless transmission technology. The control terminal 300 can help the user send and receive emails, browse the web, and access streaming media through the Wi-Fi module 370, which provides the user with wireless broadband Internet access.
[0102] The controller 380 is the control center of the control terminal 300. It connects various parts of the entire control terminal using various interfaces and lines. By running or executing software programs stored in the memory 320 and invoking data stored in the memory 320, it performs various functions of the control terminal 300 and processes data. In some embodiments, the controller 380 may include one or more processing units; the controller 380 may also integrate an application processor and a baseband processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the baseband processor mainly processes wireless communication. It can be understood that the above baseband processor may not be integrated into the controller 380 either. In this application, the controller 380 can run the operating system, application programs, user interface display and touch response, as well as the audio mode switching processing method executed by the control terminal in some embodiments of this application. In addition, the controller 380 is coupled to the display unit 330.
[0103] The Bluetooth module 381 is used to interact with other Bluetooth devices having Bluetooth modules through the Bluetooth protocol. For example, the control terminal 300 can establish a Bluetooth connection with a display device that also has a Bluetooth module through the Bluetooth module 381, so as to perform data interaction. In the embodiments of the present disclosure, the control terminal 300 can establish a BSA connection with a display device that also has a Bluetooth module through the Bluetooth module 381 to receive the BIS identifier sent by the display device. The control terminal 300 also includes a power supply 390 (such as a battery) for supplying power to each component.
[0104] Figure 10 The flow diagram of the audio mode switching processing method provided by the embodiments of this application is exemplarily shown, as Figure 10 shown, is the flow diagram of an audio mode switching processing method provided by the embodiments of the present disclosure. The method may include but is not limited to the following steps S1002 - S1006:
[0105] S1002: After receiving the message of switching from the first audio mode to the second audio mode, perform device offline processing on the first type of Bluetooth devices in the first audio mode, and perform device online processing on the second type of Bluetooth devices in the second audio mode.
[0106] In the embodiments of the present disclosure, the first audio mode and the second audio mode are two different audio modes. For example, the first audio mode may be the LE audio unicast audio mode. Correspondingly, the second audio mode is the Bluetooth broadcast mode that is mutually exclusive with the unicast audio mode. Another example is that the first audio mode may be the LE audio Bluetooth broadcast mode. Correspondingly, the second audio mode is the unicast audio mode. Another example is that the first audio mode may be the classic Bluetooth audio mode. Correspondingly, the second audio mode is the LE audio unicast audio mode. Another example is that the first audio mode may be the LE audio unicast audio mode. Correspondingly, the second audio mode is the classic Bluetooth audio mode.
[0107] In the embodiments of the present disclosure, after receiving the message of switching from the first audio mode to the second audio mode, first perform the device offline process on the first type of Bluetooth device in the first audio mode, and perform the device online process on the second type of Bluetooth device in the second audio mode.
[0108] In the embodiments of the present disclosure, when the first audio mode is the LE audio unicast audio mode, the first type of Bluetooth device is the LE audio unicast device. Correspondingly, when the second audio mode is the LE audio Bluetooth broadcast mode, the corresponding second type of Bluetooth device is the LE audio broadcast device. When the first audio mode is the LE audio Bluetooth broadcast mode, the first type of Bluetooth device is the LE audio broadcast device. Correspondingly, when the second audio mode is the LE audio unicast audio mode, the corresponding second type of Bluetooth device is the LE audio unicast device. When the first audio mode is the classic Bluetooth audio mode, the first type of Bluetooth device is the A2DP Bluetooth device. Correspondingly, when the second audio mode is the LE audio unicast audio mode, the corresponding second type of Bluetooth device is the LE audio unicast device. When the first audio mode is the LE audio unicast audio mode, the first type of Bluetooth device is the LE audio unicast device. Correspondingly, the second audio mode may also be the classic Bluetooth audio mode, and the corresponding second type of Bluetooth device is the A2DP Bluetooth device.
[0109] In practical applications, when the current audio mode is set to the first audio mode, it can be switched from the first audio mode to the second audio mode when receiving the activation trigger operation of the second audio mode by the user on the sound settings page.
[0110] In some embodiments, the activation trigger operation for the second audio mode may include the trigger operation on the control for activating the second audio mode displayed on the sound settings page, triggering the switch from the first audio mode to the second audio mode.
[0111] S1004: During the process of handling the offline of the first type of Bluetooth device in the first audio mode, send a mute command to the audio module to instruct the audio module to mute the current audio stream.
[0112] In the embodiments of the present disclosure, the process of handling the offline of the first type of Bluetooth device in the first audio mode may include the time period from when a message for switching from the first audio mode to the second audio mode is received until the first type of Bluetooth device is successfully offline. During the process of handling the offline of the first type of Bluetooth device, a mute command may be sent to the audio module to instruct the audio module to mute the current audio stream, thereby reducing the problem of speaker popping that occurs during the period when the first type of Bluetooth device has been successfully offline while the second type of Bluetooth device has not been successfully online.
[0113] S1006: In response to a successful online notification message from the audio module for the second type of Bluetooth device corresponding to the second audio mode, send an unmute command to the audio module to instruct the audio module to unmute the current audio stream.
[0114] In the embodiments of the present disclosure, during the process of handling the offline of the first type of Bluetooth device, after the audio module mutes the current audio stream, when a successful online notification for the second type of Bluetooth device corresponding to the second audio mode is received from the audio module, an unmute command is sent to the audio module to instruct the audio module to unmute the current audio stream so that the switched second type of Bluetooth device can produce sound normally.
[0115] In the audio mode switching processing method provided by the embodiments of the present disclosure, after receiving a message for switching from the first audio mode to the second audio mode, handle the offline of the first type of Bluetooth device in the first audio mode and the online of the second type of Bluetooth device in the second audio mode; during the process of handling the offline of the first type of Bluetooth device in the first audio mode, send a mute command to the audio module to instruct the audio module to mute the current audio stream; in response to a successful online notification message from the audio module for the second type of Bluetooth device, send an unmute command to the audio module to instruct the audio module to unmute the current audio stream.
[0116] It can be seen that in the process of offline processing of the Bluetooth device in the previous audio mode in the embodiments of the present disclosure, the current audio stream is muted, and when the Bluetooth device in the subsequent audio mode is successfully online, the current audio stream is unmuted, reducing the speaker popping problem that occurs during the period when the Bluetooth device in the previous audio mode has been successfully offline and the device in the subsequent audio mode has not been successfully online.
[0117] In practical applications, during the process of switching from the LE audio unicast audio mode to the LE audio broadcast audio mode, if the device in the LE audio unicast audio mode has been successfully offline and the device in the LE audio Bluetooth broadcast mode has not been successfully online, a problem of short-term speaker popping may occur during this period, thus affecting the user experience.
[0118] Based on this, the embodiments of the present disclosure provide another method for audio mode switching processing, as Figure 11 shown, which is a schematic flowchart of switching from the unicast audio mode to the Bluetooth broadcast mode provided by the embodiments of the present disclosure. The method may include but is not limited to the following steps S1102 - S1106:
[0119] S1102: After receiving the message of switching from the LE audio unicast audio mode to the LE audio Bluetooth broadcast mode, control the Bluetooth protocol stack to set the unicast audio state to the inactive state, and control the Bluetooth protocol stack to start creating a Bluetooth broadcast.
[0120] In practical applications, two audio modes are defined in the application layer specification telephone and media audio profile (TMAP) of LE audio, namely the LE audio unicast audio mode and the LE audio Bluetooth broadcast mode. Among them, the unicast audio mode includes the unicast media sender (UMS) and the unicast media receiver (UMR), and the Bluetooth broadcast mode includes the broadcast media sender (BMS) and the broadcast media receiver (BMR). In practical applications, the unicast media sender (UMS) and the broadcast media sender (BMS) are mutually exclusive, that is, the working mode of the LE audio device cannot be in the unicast audio mode and the Bluetooth broadcast mode at the same time.
[0121] Since the working mode of the LE audio device cannot be in the unicast audio mode and the Bluetooth broadcast mode simultaneously, after the display device receives the message that the LE audio unicast audio mode is switched to the LE audio Bluetooth broadcast mode, it first controls the Bluetooth protocol stack to start creating a Bluetooth broadcast, and controls the Bluetooth protocol stack to set the unicast audio status to the inactive state, so that after subsequently monitoring the inactive event of the unicast audio status reported by the Bluetooth protocol stack, it notifies the audio module to offline the LE audio device in the unicast audio mode.
[0122] It should be emphasized that the present disclosure embodiment does not limit the sequence of controlling the Bluetooth protocol stack to start creating a Bluetooth broadcast and controlling the Bluetooth protocol stack to set the unicast audio status to the inactive state. For example, it can be carried out simultaneously, or the broadcast can be created after the unicast audio status is set to the inactive state, or the unicast audio status can be set to the inactive state after the Bluetooth broadcast is successfully created.
[0123] In practical applications, when the current audio mode is set to the LE audio unicast audio mode, when receiving the enabling trigger operation for the LE audio Bluetooth broadcast mode applied by the user on the sound settings page, it switches from the LE audio unicast audio mode to the LE audio broadcast audio mode.
[0124] In some embodiments, the enabling trigger operation for the LE audio Bluetooth broadcast mode may include the trigger operation for enabling the Bluetooth broadcast mode displayed on the sound settings page, triggering the switch from the LE audio unicast audio mode to the LE audio broadcast audio mode.
[0125] As Figure 12 shown, the present disclosure embodiment provides a schematic diagram of the interface display for switching from the LE audio unicast audio mode to the LE audio Bluetooth broadcast mode. Among them, on the sound settings page shown in Figure 12 (a), the LE audio unicast audio mode is in the enabled state. When receiving the instruction for switching the current audio mode on the sound settings page, it displays the audio mode list shown in Figure 12 (b). Among them, Figure 12 the audio mode list shown in (b) displays audio modes such as the Bluetooth broadcast mode and the classic Bluetooth audio mode. When receiving the selection instruction for the Bluetooth broadcast mode, it switches from the LE audio unicast audio mode to the LE audio Bluetooth broadcast mode. As Figure 12As shown in (c), the current audio mode on the sound settings page is the LE audio Bluetooth broadcast mode, and at this time, the LE audio unicast audio mode is in the off state.
[0126] S1104: During the process of handling the device offline for the LE audio device in the LE audio unicast audio mode, send a mute command to the audio module to instruct the audio module to mute the current audio stream.
[0127] In the embodiments of the present disclosure, after receiving the message of switching from the LE audio unicast audio mode to the LE audio Bluetooth broadcast mode, during the process of handling the device offline for the LE audio device in the LE audio unicast audio mode, a mute command can be sent to the audio module to instruct the audio module to mute the current audio stream, thereby reducing the problem of speaker popping during the period when the device in the unicast audio mode has been successfully offline while the device in the Bluetooth broadcast mode has not been successfully online, and improving the user experience.
[0128] In some embodiments, the process of handling the device offline for the LE audio device in the LE audio unicast audio mode may include: when receiving the message of switching from the LE audio unicast audio mode to the LE audio Bluetooth broadcast mode, first control the Bluetooth protocol stack to create a Bluetooth broadcast; then control the Bluetooth module to disconnect the volume control protocol (VCP) connection with the connected LE audio device; then when receiving the notification message that the unicast audio state has been successfully set to the inactive state sent by the Bluetooth protocol stack, notify the audio module to start the process of handling the LE audio unicast device offline; when receiving the offline success notification message sent by the audio module for the LE audio unicast device, the offline processing process of the LE audio unicast device ends at this time.
[0129] In some embodiments, during the process of handling the device offline for the LE audio device in the LE audio unicast audio mode based on the above offline processing process, a mute command can also be sent to the audio module when receiving the Bluetooth broadcast creation start message to instruct the audio module to mute the current audio stream. Here, the Bluetooth broadcast creation start message is used to notify the start of creating a Bluetooth broadcast.
[0130] In some embodiments, during the process of handling the offline of an LE audio device in the LE audio unicast audio mode, when receiving a notification message indicating that the unicast audio status has been successfully set to the inactive state, a mute instruction may also be sent to the audio module to instruct the audio module to mute the current audio stream.
[0131] In practical applications, when the display device is in the LE audio unicast audio mode, the volume value can be sent to the LE audio device through a VCP protocol (Volume Control Profile) connection, so that the LE audio device can adjust the volume of the LE audio device based on the volume value. If the mode is switched from the LE audio unicast audio mode to the LE audio Bluetooth broadcast mode at this time, it will affect the volume adjustment of the LE audio device corresponding to the Bluetooth broadcast mode.
[0132] Therefore, in order not to affect the volume adjustment in the LE audio Bluetooth broadcast mode, the embodiments of the present disclosure can also control the Bluetooth module to disconnect the VCP connection for volume control between the Bluetooth module and the connected LE audio device before sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream, so that the volume of the LE audio device itself will not be affected when adjusting the Bluetooth broadcast volume subsequently.
[0133] Among them, the VCP (Volume Control Profile) is a protocol in Bluetooth audio technology for controlling the volume of an LE audio device. After the display device establishes a VCP protocol connection with the LE audio device, the volume value index can be sent to the LE audio device to control the LE audio device to adjust its own volume based on the volume value index.
[0134] It can be seen that the embodiments of the present disclosure can control the Bluetooth module to disconnect the VCP protocol connection between the Bluetooth module and the connected LE audio device before muting the current audio stream, so that the volume of the LE audio device itself will not be affected when adjusting the Bluetooth broadcast volume subsequently.
[0135] S1106: In response to the successful online notification message from the audio module for the LE audio device corresponding to the LE audio Bluetooth broadcast mode, send an unmute instruction to the audio module to instruct the audio module to unmute the current audio stream.
[0136] In an embodiment of the present disclosure, when receiving a successful online notification message from the audio module for an LE audio device corresponding to the LE audio Bluetooth broadcast mode, an unmute command is sent to the audio module to instruct the audio module to unmute the current audio stream.
[0137] In the audio mode switching processing method provided by the embodiment of the present disclosure, after receiving a message for switching from the LE audio unicast audio mode to the LE audio Bluetooth broadcast mode, first control the Bluetooth protocol stack to set the unicast audio state to the inactive state, and control the Bluetooth protocol stack to start creating a Bluetooth broadcast; during the process of handling the device offline of the LE audio device in the LE audio unicast audio mode, if receiving a Bluetooth broadcast creation start message, or if receiving a notification message that the unicast audio state has been successfully set to the inactive state, then send a mute command to the audio module to instruct the audio module to mute the current audio stream; when receiving a successful online notification message from the audio module for an LE audio device corresponding to the LE audio Bluetooth broadcast mode, send an unmute command to the audio module to instruct the audio module to unmute the current audio stream.
[0138] It can be seen that the embodiment of the present disclosure can, during the process of handling the device offline of the Bluetooth device in the previous audio mode, send a mute command to the audio module to instruct the audio module to process the current audio stream, thereby reducing the problem of speaker popping during the period when the Bluetooth device in the previous audio mode has been successfully offline and the device in the next audio mode has not been successfully online.
[0139] As Figure 13 shown, it is a timing diagram for switching from the LE audio unicast audio mode to the Bluetooth broadcast mode provided by the embodiment of the present disclosure.
[0140] When the Bluetooth application receives a message for switching from the LE audio unicast audio mode to the LE audio Bluetooth broadcast mode, it controls the Bluetooth protocol stack to create a Bluetooth broadcast through the Low Energy Audio Service (LE audio Service); then sends an instruction to disconnect the VCP protocol connection to the Audio Control Service (Vomule Control Service) to instruct the Audio Control Service to control the Bluetooth module to disconnect the volume control protocol (VCP) connection with the connected LE audio device.
[0141] In some embodiments, when the Active Device Manager receives a Bluetooth broadcast start creation message, it sends a mute instruction to the audio module to instruct the audio module to mute the current audio stream.
[0142] In some embodiments, when the Low Energy (LE) audio Service receives a notification message that the unicast audio status has been successfully set to the inactive state, it sends a mute instruction to the audio module to instruct the audio module to mute the current audio stream.
[0143] When the Low Energy (LE) audio Service receives a notification message that the unicast audio status has been successfully set to the inactive state, it sends an instruction to the audio module to take the unicast device corresponding to the LE audio unicast audio mode offline, to instruct the audio module to take the unicast device offline.
[0144] In some embodiments, when the Active Device Manager receives a notification message from the audio module indicating that the unicast device has been successfully taken offline, it sends a mute instruction to the audio module to instruct the audio module to mute the current audio stream.
[0145] It should be emphasized that the timing for executing "sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream" in the embodiments of the present disclosure may include: any timing between after receiving the message of switching from the unicast audio mode to the Bluetooth broadcast audio until receiving the notification message indicating that the LE audio unicast device has been successfully taken offline.
[0146] After the Audio audio module successfully takes the unicast device corresponding to the LE audio unicast audio mode offline, it sends a notification message to the Active Device Manager indicating that the unicast device corresponding to the LE audio unicast audio mode has been successfully taken offline.
[0147] When the Low Energy (LE) audio Service receives a Bluetooth broadcast creation success message, it controls the Bluetooth protocol stack to turn on the Bluetooth broadcast. When the Low Energy (LE) audio Service receives a notification message from the Bluetooth protocol stack indicating that the Bluetooth broadcast has been successfully turned on, it sends a device online instruction to the audio module for the broadcast device corresponding to the LE audio Bluetooth broadcast mode.
[0148] After the Audio audio module successfully goes online with the broadcast device corresponding to the LE audio Bluetooth broadcast mode, it sends a notification message indicating the successful online of the broadcast device corresponding to the LE audio Bluetooth broadcast mode to the Active Device Manager.
[0149] When the Active Device Manager receives the notification message indicating the successful online of the broadcast device from the audio module, it sends an unmute command to the audio module to instruct the audio module to unmute the current audio stream.
[0150] It can be seen that the current audio stream is in a muted state between the successful offline of the LE audio unicast device and the successful online of the LE audio broadcast device, thus reducing the problem of speaker popping that occurs during the period when the LE audio device in the unicast audio mode has successfully gone offline and the LE audio device in the Bluetooth broadcast mode has not yet successfully gone online.
[0151] In practical applications, during the process of switching from the LE audio Bluetooth broadcast mode to the LE audio unicast audio mode, if the device in the LE audio Bluetooth broadcast mode has successfully gone offline and the device in the LE audio unicast audio mode has not yet successfully gone online, there may be a problem of brief speaker popping during this period, thus affecting the user experience.
[0152] Based on this, the present disclosure provides another method for processing audio mode switching, as Figure 14 shown, which is a flowchart of a method for switching from the Bluetooth broadcast mode to the unicast audio mode provided by the embodiments of the present disclosure. The method may include but is not limited to the following steps S1402 - S1406:
[0153] S1402: After receiving the message for switching from the LE audio Bluetooth broadcast mode to the LE audio unicast audio mode, control the Bluetooth protocol stack to stop Bluetooth broadcasting, and control the Bluetooth protocol stack to set the unicast audio state to the active state.
[0154] Since the working mode of the LE audio device cannot be in the unicast audio mode and the Bluetooth broadcast mode simultaneously, after receiving the message to switch from the LE audio Bluetooth broadcast mode to the LE audio unicast audio mode, a stop broadcast instruction is first sent to the Bluetooth protocol stack to control the Bluetooth protocol stack to stop Bluetooth broadcasting, and to control the Bluetooth protocol stack to set the unicast audio status to active, so that after subsequently receiving the notification message that the unicast audio status is successfully set to the active state, the audio module is notified to perform the online processing on the LE audio device in the unicast audio mode.
[0155] It should be emphasized that the present disclosure embodiment does not limit the sequence of controlling the Bluetooth protocol stack to stop Bluetooth broadcasting and controlling the Bluetooth protocol stack to set the unicast audio status to the active state. For example, it can be performed simultaneously, or the unicast audio status can be set to the active state after the Bluetooth broadcast is successfully paused, or Bluetooth broadcasting can be stopped after the unicast audio status is set to the active state.
[0156] In practical applications, when the current audio mode is set to the LE audio Bluetooth broadcast mode, the switch from the LE audio Bluetooth broadcast mode to the LE audio unicast audio mode can be triggered by the user's triggering operation to turn on the LE audio unicast audio mode on the sound settings page.
[0157] In some embodiments, the triggering operation to turn on the LE audio unicast audio mode may include the triggering operation on the control for turning on the unicast audio mode displayed on the sound settings page, triggering the switch from the LE audio Bluetooth broadcast mode to the LE audio unicast audio mode.
[0158] As Figure 15 shown, it is a schematic diagram of the interface display for switching from the Bluetooth broadcast mode to the unicast audio mode provided by the present disclosure embodiment. Among them, Figure 15 in the sound settings page shown in (a), the LE audio Bluetooth broadcast mode is in the on state. When receiving the instruction to switch the current audio mode on the sound settings page, the Figure 15 audio mode list shown in (b) is displayed. Among them, Figure 15 the unicast audio mode, the classic Bluetooth audio mode, etc. are displayed in the audio mode list shown in (b). When receiving the selection instruction for the unicast audio mode, the switch is made from the LE audio Bluetooth broadcast mode to the LE audio unicast audio mode. As Figure 15 shown in (c), the current audio mode on the sound settings page is the LE audio unicast audio mode, and the LE audio Bluetooth broadcast mode is in the off state.
[0159] S1404: During the process of handling the device offline for the LE audio device in the LE audio Bluetooth broadcast mode, send a mute command to the audio module to instruct the audio module to mute the current audio stream.
[0160] In an embodiment of the present disclosure, after receiving the message of switching from the LE audio Bluetooth broadcast mode to the LE audio unicast audio mode, during the process of handling the device offline for the LE audio device in the LE audio Bluetooth broadcast mode, a mute command can be sent to the audio module to instruct the audio module to mute the current audio stream, thereby reducing the problem of speaker popping that occurs during the period when the device in the Bluetooth broadcast mode has been successfully taken offline while the device in the unicast audio mode has not been successfully brought online, and improving the user experience.
[0161] In some embodiments, the process of handling the device offline for the LE audio device in the LE audio Bluetooth broadcast mode may include: when receiving a trigger operation from the user for the control for enabling the unicast audio mode displayed on the sound settings page, first send a pause broadcast command to the Bluetooth protocol stack to control the Bluetooth protocol stack to stop Bluetooth broadcasting; when receiving the message indicating the successful stop of Bluetooth broadcasting, send a notification for taking the LE audio device corresponding to the unicast audio mode offline to the audio module to instruct the audio module to handle the offline of the LE audio device corresponding to the unicast audio mode; when receiving the message indicating the successful offline of the Bluetooth broadcast device from the audio module, the offline processing flow of the Bluetooth broadcast device ends at this time.
[0162] In some embodiments, during the process of handling the device offline for the LE audio device in the LE audio Bluetooth broadcast mode based on the above-mentioned offline processing flow of the Bluetooth broadcast device, if a Bluetooth broadcast stop message is received, a mute command is sent to the audio module to instruct the audio module to mute the current audio stream.
[0163] In some embodiments, during the process of handling the device offline for the LE audio device in the LE audio Bluetooth broadcast mode, if a message indicating the successful offline of the Bluetooth device is received from the audio module, a mute command is sent to the audio module to instruct the audio module to mute the current audio stream, thereby reducing the problem of speaker popping that occurs during the period when the device in the Bluetooth broadcast mode has been successfully taken offline while the device in the unicast audio mode has not been successfully brought online, and improving the user experience.
[0164] In practical applications, since the volume of an LE audio device in unicast audio mode is adjusted through a connection using the VCP (Volume Control Profile) protocol. Specifically, after the display device establishes a VCP protocol connection with the LE audio device, it can send a volume value index to the LE audio device to control the LE audio device to adjust its own volume based on the volume value index.
[0165] Therefore, in the process of switching from the LE audio Bluetooth broadcast mode to the unicast audio mode in the embodiments of the present disclosure, in order to achieve volume control of the LE audio device in the unicast audio mode, after sending an unmute command to the audio module to instruct the audio module to unmute the current audio stream, the Bluetooth module can be controlled to establish a VCP protocol connection with the connected LE audio device, so that after switching to the LE audio unicast audio mode, volume adjustment of the LE audio device can be achieved based on the VCP protocol connection.
[0166] S1406: In response to a successful online notification message from the audio module for the LE audio device corresponding to the LE audio unicast audio mode, send an unmute command to the audio module to instruct the audio module to unmute the current audio stream.
[0167] In the embodiments of the present disclosure, when receiving a successful online notification message from the audio module for the LE audio device corresponding to the LE audio unicast audio mode, send an unmute command to the audio module to instruct the audio module to unmute the current audio stream.
[0168] In the audio mode switching processing method provided by the embodiments of the present disclosure, after receiving the message of switching from the LE audio Bluetooth broadcast mode to the LE audio unicast audio mode, first control the Bluetooth protocol stack to stop Bluetooth broadcasting, and control the Bluetooth protocol stack to set the unicast audio status to the active state; during the process of handling the device offline of the LE audio device in the LE audio Bluetooth broadcast mode, if the Bluetooth broadcast stop success message is received, or the Bluetooth broadcast device offline success message from the audio module is received, send a mute instruction to the audio module to instruct the audio module to mute the current audio stream. When receiving the online success notification message from the audio module for the LE audio device corresponding to the LE audio unicast audio mode, send an unmute instruction to the audio module to instruct the audio module to unmute the current audio stream.
[0169] It can be seen that the embodiments of the present disclosure can, during the process of handling the device offline of the LE audio device in the Bluetooth broadcast mode, send a mute instruction to the audio module to instruct the audio module to process the current audio stream, thereby reducing the problem of speaker popping during the period when the LE audio device in the Bluetooth broadcast mode has been successfully offline and the LE audio device in the unicast audio mode has not been successfully online.
[0170] As Figure 16 shown, it is a timing diagram of switching from the Bluetooth broadcast mode to the unicast audio mode provided by the embodiments of the present disclosure.
[0171] When the Bluetooth application receives the message of switching from the LE audio Bluetooth broadcast mode to the LE audio unicast audio mode, it controls the Bluetooth protocol stack to stop Bluetooth broadcasting through the Low Energy Audio Service (LE audio Service); when receiving the notification message that the Bluetooth broadcast status has changed to the STOP state, send the Bluetooth broadcast stop success message to the Active Device Manager.
[0172] In some embodiments, when the Active Device Manager receives the Bluetooth broadcast stop success notification message, it sends a mute instruction to the audio module to instruct the audio module to mute the current audio stream.
[0173] When the Bluetooth broadcast state changes to the STOP state, the Low Energy Audio Service sends an instruction to the audio module to handle the offline of the broadcast device corresponding to the LE audio Bluetooth broadcast mode, so as to instruct the audio module to handle the offline of the broadcast device.
[0174] In some embodiments, when the Active Device Manager receives a notification message indicating the successful offline of the broadcast device, it sends a mute instruction to the audio module to instruct the audio module to mute the current audio stream.
[0175] It is worth emphasizing that the timing of executing "sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream" in the embodiments of the present disclosure may include: any timing between receiving the message of switching from the Bluetooth broadcast mode to the unicast audio mode and receiving the notification message indicating the successful offline of the LE audio broadcast device.
[0176] The Active Device Manager sends a notification message of the Active unicast audio state to the Low Energy Audio Service. When the Low Energy Audio Service receives the notification message of the Active unicast audio state, it sends an instruction to establish a VCP protocol connection to the Vomule Control Service to instruct the audio control service to control the Bluetooth module to establish a volume control protocol (VCP) connection with the connected LE audio device.
[0177] After the Bluetooth module successfully establishes a volume control protocol (VCP) connection with the connected LE audio device, the Low Energy Audio Service controls the Bluetooth protocol stack to set the unicast audio state to the Active state and sends an instruction for the online of the unicast device corresponding to the LE audio unicast audio mode to the audio module.
[0178] After the Audio audio module successfully brings online the unicast device corresponding to the LE audio unicast audio mode, it sends a notification message indicating the successful online of the unicast device corresponding to the LE audio unicast audio mode to the Active Device Manager.
[0179] When the Active Device Manager receives a notification message from the audio module indicating the successful online of a unicast device, it sends an unmute command to the audio module to instruct the audio module to unmute the current audio stream.
[0180] It can be seen that the current audio stream is muted between the successful offline of the LE audio broadcast device and the successful online of the LE audio unicast device, thus reducing the problem of speaker popping that occurs when the LE audio device in the Bluetooth broadcast mode has successfully gone offline and the LE audio device in the unicast audio mode has not yet successfully come online.
[0181] In practical applications, during the process of switching from the LE audio Bluetooth broadcast mode to the LE audio unicast audio mode, if the A2DP Bluetooth device in the classic Bluetooth audio mode has successfully gone offline and the LE audio device in the unicast audio mode has not yet successfully come online, there may be a problem of brief speaker popping during this period, thus affecting the user experience.
[0182] Based on this, the present disclosure provides another method for processing audio mode switching, as Figure 17 shown, which is a schematic flowchart of switching from the classic Bluetooth audio mode to the LE audio unicast audio mode provided by an embodiment of the present disclosure. The method may include but is not limited to the following steps S1702 - S1706:
[0183] S1702: After receiving the message of switching from the classic Bluetooth audio mode to the LE audio unicast audio mode, control the Bluetooth module to disconnect from the connected A2DP Bluetooth device, and control the Bluetooth module to start establishing a connection with the LE audio device.
[0184] In an embodiment of the present disclosure, when the display device is in the scenario of the classic Bluetooth audio mode and receives the message of switching from the classic Bluetooth audio mode to the LE audio unicast audio mode, it first controls the Bluetooth module to disconnect from the connected A2DP Bluetooth device, and controls the Bluetooth module to start establishing a connection with the LE audio device.
[0185] The embodiment of the present disclosure does not limit the sequence between controlling the Bluetooth module to disconnect from the connected A2DP Bluetooth device and controlling the Bluetooth module to start establishing a connection with the LE audio device. For example, it can be performed simultaneously, or the Bluetooth module can be controlled to start establishing a connection with the LE audio device after controlling the Bluetooth module to disconnect from the connected A2DP Bluetooth device.
[0186] In practical applications, when the current audio mode is set to the classic Bluetooth audio mode and a triggering operation to enable the LE audio unicast audio mode is received from the user on the sound settings page, the mode is switched from the classic Bluetooth audio mode to the LE audio unicast audio mode.
[0187] In some embodiments, the triggering operation to enable the LE audio unicast audio mode may include a triggering operation on the control for enabling the unicast audio mode displayed on the sound settings page, triggering the switch from the classic Bluetooth audio mode to the LE audio unicast audio mode.
[0188] As Figure 18 shown, it is a schematic diagram of the interface display for switching from the classic Bluetooth audio mode to the LE audio unicast audio mode provided by an embodiment of the present disclosure. Among them, Figure 18 on the sound settings page shown in (a), the classic Bluetooth audio mode is in the enabled state. When a command for switching the current audio mode on the sound settings page is received, the Figure 18 audio mode list shown in (b) is displayed. Among them, Figure 18 the unicast audio mode is also displayed on the audio mode list shown in (b). When a selection command for the unicast audio mode is received, the mode is switched from the classic Bluetooth audio mode to the LE audio unicast audio mode. As Figure 18 shown in (c), the current audio mode on the sound settings page is the LE audio unicast audio mode, and the classic Bluetooth audio mode is in the disabled state.
[0189] S1704: During the process of handling the offline of the A2DP Bluetooth device in the classic Bluetooth audio mode, send a mute command to the audio module to instruct the audio module to mute the current audio stream.
[0190] In the embodiments of the present disclosure, during the process of handling the offline of the A2DP Bluetooth device in the classic Bluetooth audio mode, the audio module can be instructed to mute the current audio stream by sending a mute command to the audio module, thereby reducing the problem of speaker popping during the period when the A2DP Bluetooth device has been successfully offline and the LE audio device in the unicast audio mode has not been successfully online, improving the user experience.
[0191] In some embodiments, the process of performing device offline processing on an A2DP Bluetooth device in classic Bluetooth audio mode may include: when the display device is in classic Bluetooth audio mode, upon receiving a trigger operation of the user acting on the unicast audio mode start control displayed on the sound settings page, first controlling the Bluetooth module to disconnect from the connected A2DP Bluetooth device; then notifying the audio module to perform device offline processing on the A2DP Bluetooth device, and upon receiving a successful offline notification message for the A2DP Bluetooth device from the audio module, recording the device type that was disconnected this time, and obtaining the next switched device type as a unicast device, at which time the offline processing flow for the A2DP Bluetooth device ends.
[0192] In some embodiments, in the process of performing device offline processing on the A2DP Bluetooth device in the classic Bluetooth audio mode based on the above-mentioned offline processing flow for the A2DP Bluetooth device, when a notification message is received that the connected A2DP Bluetooth device has successfully disconnected, a mute command is sent to the audio module to instruct the audio module to mute the current audio stream.
[0193] In some embodiments, when a notification message of successful offline of the A2DP Bluetooth device is received from the audio module, a mute instruction can be sent to the audio module to instruct the audio module to mute the current audio stream, thereby reducing the problem of brief popping sound from the speaker when the A2DP Bluetooth device has successfully gone offline but the LE audio device in unicast audio mode has not yet come online, thereby improving the user experience.
[0194] In some embodiments, before the display device sends a notification message to the audio module for online processing of the LE audio device corresponding to the LE audio unicast audio mode, it is also necessary to verify whether a successful offline notification message for the A2DP Bluetooth device has been received from the audio module, and when it is determined that the successful offline notification message for the A2DP Bluetooth device has been received, the audio module is notified to perform device online processing on the LE audio device corresponding to the LE audio unicast audio mode.
[0195] S1706: In response to a successful online notification message from the audio module for the LE audio device corresponding to the LE audio unicast audio mode, an unmute instruction is sent to the audio module to instruct the audio module to unmute the current audio stream.
[0196] In an embodiment of the present disclosure, after controlling the Bluetooth module to establish a Bluetooth connection with the LE audio device, the audio module is notified to perform device online processing on the LE audio device corresponding to the LE audio unicast audio mode; when receiving a successful online notification message from the audio module for the LE audio device corresponding to the LE audio unicast audio mode, an unmute instruction is sent to the audio module to instruct the audio module to unmute the current audio stream.
[0197] In some embodiments, when receiving an online notification from the audio module for the LE audio device corresponding to the LE audio unicast audio mode, the types of the disconnected devices and the connected devices can also be obtained. If it is determined that the type of the disconnected device is an A2DP Bluetooth device and the type of the connected device is the LE audio device corresponding to the LE audio unicast audio mode, an unmute instruction is sent to the audio module to instruct the audio module to unmute the current audio stream.
[0198] In the audio mode switching processing method provided by the embodiment of the present disclosure, after receiving a message for switching from the classic Bluetooth audio mode to the LE audio unicast audio mode, first control the Bluetooth module to disconnect from the connected A2DP Bluetooth device, and control the Bluetooth module to start establishing a connection with the LE audio device; when receiving a notification message indicating successful disconnection from the connected A2DP Bluetooth device, or when receiving a notification message from the audio module indicating successful offline of the A2DP Bluetooth device, a mute instruction is sent to the audio module to instruct the audio module to mute the current audio stream. When receiving a successful online notification message from the audio module for the LE audio device corresponding to the LE audio unicast audio mode, an unmute instruction is sent to the audio module to instruct the audio module to unmute the current audio stream.
[0199] It can be seen that the embodiment of the present disclosure can reduce the problem of short-term speaker popping during the period when the A2DP Bluetooth device has been successfully offline and the LE audio unicast device has not been online yet, by sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream during the process of performing device offline processing on the A2DP Bluetooth device in the classic Bluetooth audio mode, thereby improving the user experience.
[0200] Such as Figure 19As shown, it is a timing diagram for switching from the classic Bluetooth audio mode to the LE audio unicast audio mode provided by an embodiment of the present disclosure.
[0201] When the Bluetooth application receives a message for switching from the classic Bluetooth audio mode to the LE audio unicast audio mode, it first controls the Bluetooth module to disconnect from the connected A2DP Bluetooth device, and then notifies the audio module to perform a device offline process on the A2DP Bluetooth device. After the audio module successfully takes the A2DP Bluetooth device offline, it sends a notification message indicating the successful offline of the A2DP device to the Active Device Manager.
[0202] In some embodiments, when the Active Device Manager receives a notification message indicating the successful disconnection of the connected A2DP Bluetooth device, it sends a mute instruction to the audio module to instruct the audio module to mute the current audio stream.
[0203] In some embodiments, when the Active Device Manager receives a notification message from the audio module indicating the successful offline of the A2DP Bluetooth device, it sends a mute instruction to the audio module to instruct the audio module to mute the current audio stream.
[0204] It should be emphasized that the timing for performing "sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream" in the embodiments of the present disclosure may include: any timing between receiving the message for switching from the classic Bluetooth audio mode to the unicast audio mode and receiving the notification message indicating the successful offline of the A2DP Bluetooth device corresponding to the classic Bluetooth audio mode.
[0205] In some embodiments, when the Active Device Manager receives a notification message from the audio module indicating the successful offline of the A2DP Bluetooth device, it may also record the types of the disconnected devices and the connected devices.
[0206] After the Low Energy Audio Service (LE audio Service) controls the Bluetooth module to start establishing a connection with the LE audio device, it sends an online notification for the LE audio unicast device to the audio module to instruct the audio module to perform a device online process on the LE audio unicast device.
[0207] When the Active Device Manager receives a successful online notification message for the LE audio device corresponding to the LE audio unicast audio mode from the audio module, it obtains the type of the disconnected device and the type of the connected device. If it is determined that the type of the disconnected device is an A2DP Bluetooth device and the type of the connected device is the LE audio device corresponding to the LE audio unicast audio mode, it sends an unmute instruction to the audio module to instruct the audio module to unmute the current audio stream.
[0208] It can be seen that the current audio stream is in a muted state between the successful offline of the A2DP Bluetooth device and the successful online of the LE audio unicast device, thus reducing the problem of speaker popping that occurs during the period when the A2DP device in the classic Bluetooth audio mode has successfully gone offline and the LE audio device in the unicast audio mode has not yet successfully come online.
[0209] In practical applications, during the process of switching from the LE audio unicast audio mode to the classic Bluetooth audio mode, if the LE audio device in the LE audio unicast audio mode has successfully gone offline and the A2DP device in the classic Bluetooth audio mode has not yet successfully come online, there may be a problem of brief speaker popping during this period, thus affecting the user experience.
[0210] Based on this, the present disclosure provides another method for processing audio mode switching, as Figure 20 shown, which is a schematic flowchart of a process for switching from the unicast audio mode to the classic Bluetooth audio mode provided by an embodiment of the present disclosure. The method may include but is not limited to the following steps S2002 - S2006:
[0211] S2002: After receiving a message for switching from the LE audio unicast audio mode to the classic Bluetooth audio mode, control the Bluetooth module to disconnect from the connected LE audio device, and control the Bluetooth module to start establishing a connection with the A2DP Bluetooth device.
[0212] In an embodiment of the present disclosure, in a scenario where the display device is in the LE audio unicast audio mode, after receiving a message for switching from the LE audio unicast audio mode to the classic Bluetooth audio mode, it first controls the Bluetooth module to disconnect from the connected LE audio device, and controls the Bluetooth module to start establishing a connection with the A2DP Bluetooth device.
[0213] The embodiments of the present disclosure do not limit the sequence between the above steps of "controlling the Bluetooth module to disconnect from the connected LE audio device" and "controlling the Bluetooth module to establish a connection with the A2DP Bluetooth device". For example, they can be executed simultaneously, or the Bluetooth module can be controlled to start establishing a connection with the A2DP Bluetooth device after controlling the Bluetooth module to disconnect from the connected LE audio device.
[0214] In practical applications, when the current audio mode is set to the LE audio unicast audio mode, the switching from the LE audio unicast audio mode to the classic Bluetooth audio mode can be triggered by the user's triggering operation to enable the classic Bluetooth audio mode on the sound settings page.
[0215] In some embodiments, the triggering operation for enabling the classic Bluetooth audio mode may include the triggering operation for the control for enabling the classic Bluetooth audio mode displayed on the sound settings page, triggering the switching from the unicast audio mode to the classic Bluetooth audio mode.
[0216] As Figure 21 shown, it is a schematic diagram of the interface display for switching from the LE audio unicast audio mode to the classic Bluetooth audio mode provided by the embodiments of the present disclosure. Among them, Figure 21 On the sound settings page shown in (a), the current audio mode is the unicast audio mode. When receiving an instruction to switch the current audio mode on the sound settings page, the Figure 21 audio mode list shown in (b) is displayed. Among them, Figure 21 The classic Bluetooth audio mode is displayed in the audio mode list shown in (b). When receiving a selection instruction for the classic Bluetooth audio mode, the switching is made from the LE audio unicast audio mode to the classic Bluetooth audio mode. As Figure 21 shown in (c), the current audio mode on the sound settings page is the classic Bluetooth audio mode, and the LE audio unicast audio mode is in the off state.
[0217] S2004: During the process of handling the device offline of the LE audio unicast device in the LE audio unicast audio mode, send a mute instruction to the audio module to instruct the audio module to mute the current audio stream.
[0218] In the embodiments of the present disclosure, during the process of handling the device offline for an LE audio device in the LE audio unicast audio mode, the audio module can be instructed to mute the current audio stream by sending a mute instruction, thereby reducing the problem of brief speaker popping that occurs when the LE audio device in the LE audio unicast audio mode has been successfully taken offline and the classic Bluetooth audio mode has not been launched yet.
[0219] In some embodiments, the process of handling the device offline for an LE audio device in the LE audio unicast audio mode may include: when the display device is in the LE audio unicast audio mode and receives a trigger operation on the classic Bluetooth audio mode activation control displayed on the sound settings page, first control the Bluetooth module to disconnect from the connected LE audio device, and then notify the audio module to handle the device offline for the LE audio device; when receiving a notification message from the audio module indicating the successful offline handling of the LE audio device, record the device type of this disconnection, that is, the LE audio unicast device, and obtain the next device type to be switched, that is, the A2DP Bluetooth device. At this time, the offline handling process for the LE audio unicast device ends.
[0220] In practical applications, after controlling the Bluetooth module to disconnect from the connected LE audio device, the current audio stream cannot be sent to the LE audio device, and at this time, the user cannot hear the sound either. Therefore, in the embodiments of the present disclosure, a mute instruction can also be sent to the audio module when receiving a notification message indicating the successful disconnection from the connected LE audio device, so as to instruct the audio module to mute the current audio stream.
[0221] In some embodiments, during the process of handling the device offline for an LE audio device in the LE audio unicast audio mode, a mute instruction can also be sent to the audio module when receiving a notification message from the audio module indicating the successful offline handling of the LE audio device, so as to instruct the audio module to mute the current audio stream.
[0222] In some embodiments, when receiving a notification message from the audio module indicating the successful offline handling of the LE audio device, the device type of the disconnected device, that is, the LE audio unicast device type, and the device type to be handled for device online, that is, the A2DP device type, can also be recorded; then a mute instruction is sent to the audio module to instruct the audio module to mute the current audio stream.
[0223] S2006: In response to the successful online notification message for the A2DP Bluetooth device corresponding to the classic Bluetooth audio mode from the audio module, send an unmute command to the audio module to instruct the audio module to unmute the current audio stream.
[0224] In the embodiments of the present disclosure, after controlling the Bluetooth module to establish a Bluetooth connection with the A2DP Bluetooth device, notify the audio module to perform the online processing of the A2DP Bluetooth device; when receiving the successful online notification message for the A2DP Bluetooth device corresponding to the classic Bluetooth audio mode from the audio module, send an unmute command to the audio module to instruct the audio module to unmute the current audio stream.
[0225] In some embodiments, it is also possible to, when receiving the successful online notification message for the A2DP Bluetooth device corresponding to the classic Bluetooth audio mode from the audio module, first obtain the types of the disconnected devices and the types of the connected devices. If it is determined that the type of the disconnected device is the LE audio unicast device type and the type of the connected device is the A2DP Bluetooth device, then send an unmute command to the audio module to instruct the audio module to unmute the current audio stream.
[0226] In the audio mode switching processing method provided by the embodiments of the present disclosure, after receiving the message of switching from the LE audio unicast audio mode to the classic Bluetooth audio mode, first control the Bluetooth module to disconnect from the connected LE audio device, and control the Bluetooth module to start establishing a connection with the A2DP Bluetooth device; during the process of performing the offline processing of the LE audio device in the LE audio unicast audio mode, send a mute command to the audio module to instruct the audio module to mute the current audio stream. When receiving the successful online notification message for the A2DP Bluetooth device corresponding to the classic Bluetooth audio mode from the audio module, send an unmute command to the audio module to instruct the audio module to unmute the current audio stream.
[0227] It can be seen that in the embodiments of the present disclosure, during the process of performing the offline processing of the LE audio device in the LE audio unicast audio mode, by sending a mute command to the audio module to instruct the audio module to process the current audio stream, the problem of speaker popping during the period when the LE audio device has been successfully offline while the A2DP Bluetooth device has not been successfully online is reduced.
[0228] As shown Figure 22 in the figure, it is a timing diagram for switching from the LE audio unicast audio mode to the classic Bluetooth mode provided by the embodiments of the present disclosure.
[0229] When the Bluetooth application receives a message for switching from the LE audio unicast audio mode to the classic Bluetooth audio mode, it first controls the Bluetooth module to disconnect from the connected LE audio device, and then notifies the audio module to perform a device offline process on the LE audio device.
[0230] After successfully taking the LE audio device offline, the audio module sends a notification message indicating the successful offline of the LE audio device to the Active Device Manager.
[0231] In some embodiments, when the Low Energy Bluetooth Service (LE audio Service) receives a notification message indicating the successful disconnection of a connected LE audio device, it sends a mute instruction to the audio module to instruct the audio module to mute the current audio stream.
[0232] In some embodiments, when the Active Device Manager receives a notification message from the audio module indicating the successful offline of the LE audio device, it sends a mute instruction to the audio module to instruct the audio module to mute the current audio stream.
[0233] It should be emphasized that the timing for "sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream" in the embodiments of the present disclosure may include: any timing between receiving the message for switching from the unicast audio mode to the classic Bluetooth audio mode and receiving the notification message indicating the successful offline of the A2DP Bluetooth device.
[0234] In some embodiments, when the Active Device Manager receives a notification message from the audio module indicating the successful offline of the LE audio device, it may also record the types of the disconnected device and the connected device.
[0235] After the Classic Bluetooth Service (A2DP Service) controls the Bluetooth module to start establishing a connection with the A2DP Bluetooth device, it sends an online notification for the A2DP Bluetooth device to the audio module to instruct the audio module to perform a device online process on the A2DP Bluetooth device.
[0236] When the Active Device Manager receives a successful online notification message for an A2DP Bluetooth device corresponding to the classic Bluetooth audio mode from the audio module, it obtains the types of disconnected devices and connected devices. If it is determined that the type of disconnected device is a unicast device corresponding to the LE audio unicast audio mode and the type of connected device is an A2DP Bluetooth device corresponding to the classic Bluetooth audio mode, it sends an unmute instruction to the audio module to instruct the audio module to unmute the current audio stream.
[0237] It can be seen that since the current audio stream in the embodiment of the present disclosure is in a muted state between the successful offline of the LE audio unicast device and the successful online of the classic Bluetooth audio device, the problem of speaker popping that occurs during the period when the LE audio device in the unicast audio mode has successfully gone offline and the A2DP device in the classic Bluetooth audio mode has not yet successfully come online is reduced.
[0238] Figure 23 The structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. This electronic device can be the above display device, control terminal, or audio receiving device. As Figure 23 shown, the electronic device includes: a processor 2301, a memory 2302, and a computer program stored on the memory 2302 and executable on the processor 2301. When the computer program is executed by the processor 2301, it implements each process of the following methods involved in the above method embodiments: the configuration method of the multi-channel audio receiving device executed by the display device; the configuration method of the multi-channel audio receiving device executed by the audio receiving device.
[0239] An embodiment of the present disclosure provides a computer-readable storage medium. A computer program is stored on this computer-readable storage medium. When the computer program is executed by a processor, it implements each process executed by the above configuration method of the multi-channel audio receiving device and can achieve the same technical effect. To avoid repetition, it will not be elaborated here. Among them, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, etc.
[0240] The present disclosure provides a computer program product. The computer program product includes a computer program. When the computer program runs on a computer, it enables the computer to implement the above configuration method of the multi-channel audio receiving device.
[0241] For the sake of convenience in explanation, the above description has been made in connection with specific embodiments. However, the above discussion in some embodiments is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. According to the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, so that those skilled in the art can better use the embodiments and the various different modified embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that: include: monitor; Sound output module; Bluetooth module; A controller connected to the Bluetooth module, wherein the controller is configured as follows: After receiving a message for switching from a first audio mode to a second audio mode, performing device offline processing on a first type of Bluetooth device in the first audio mode, and performing device online processing on a second type of Bluetooth device in the second audio mode; In the process of offline processing of the first type of Bluetooth device in the first audio mode, sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream; In response to a successful online notification message from the audio module for the second type of Bluetooth device in the second audio mode, an unmute instruction is sent to the audio module to instruct the audio module to unmute the current audio stream.
2. The display device according to claim 1, characterized in that The controller is specifically configured as follows: After receiving a message for switching from the first audio mode to the second audio mode, performing device offline processing on the first type of Bluetooth device in the first audio mode, and performing device online processing on the second type of Bluetooth device in the second audio mode, comprises: After receiving a message for switching from the LE audio unicast audio mode to the LE audio Bluetooth broadcast mode, the Bluetooth protocol stack is controlled to set the unicast audio state to an inactive state, and the Bluetooth protocol stack is controlled to start creating a Bluetooth broadcast.
3. The display device according to claim 2, characterized in that The controller is specifically configured as follows: In the process of performing device offline processing on the first type of Bluetooth device in the first audio mode, sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream, including: During the process of offline processing of the LE audio device in the LE audio unicast audio mode, if a Bluetooth broadcast creation start message is received, a mute instruction is sent to the audio module to instruct the audio module to mute the current audio stream; wherein the Bluetooth broadcast creation start message is used to notify the start of creating a Bluetooth broadcast.
4. The display device according to claim 2, characterized in that The controller is specifically configured as follows: In the process of performing device offline processing on the first type of Bluetooth device in the first audio mode, sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream, including: During the process of offline processing of the LE audio device in the LE audio unicast audio mode, if a notification message is received that the unicast audio state is successfully set to the inactive state, a mute instruction is sent to the audio module to instruct the audio module to mute the current audio stream.
5. The display device according to claim 2, characterized in that The controller is further configured to: Before sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream, the method further includes: Control the Bluetooth module to disconnect the volume control protocol VCP connection with the connected LE audio device.
6. The display device according to claim 1, characterized in that The controller is specifically configured as follows: After receiving a message for switching from the first audio mode to the second audio mode, performing device offline processing on the first type of Bluetooth device in the first audio mode, and performing device online processing on the second type of Bluetooth device in the second audio mode, comprises: After receiving a message for switching from the LE audio Bluetooth broadcast mode to the LE audio unicast audio mode, the Bluetooth protocol stack is controlled to stop Bluetooth broadcasting, and the Bluetooth protocol stack is controlled to set the unicast audio state to an active state.
7. The display device according to claim 6, characterized in that The controller is specifically configured as follows: In the process of performing device offline processing on the first type of Bluetooth device in the first audio mode, sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream, including: During the process of offline processing of the LE audio device in the LE audio Bluetooth broadcast mode, if a Bluetooth broadcast stop success message is received, a mute instruction is sent to the audio module to instruct the audio module to mute the current audio stream.
8. The display device according to claim 6, characterized in that The controller is specifically configured as follows: In the process of performing device offline processing on the first type of Bluetooth device in the first audio mode, sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream, including: During the process of offline processing of the LE audio device in the LE audio Bluetooth broadcast mode, if a Bluetooth broadcast device offline success message is received from the audio module, a mute command is sent to the audio module to instruct the audio module to mute the current audio stream.
9. The display device according to claim 6, characterized in that The controller is further configured to: After sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream, the method further includes: Control the Bluetooth module to establish a volume control protocol VCP connection with the connected LE audio device.
10. The display device according to claim 1, characterized in that The controller is specifically configured as follows: After receiving a message for switching from the first audio mode to the second audio mode, performing device offline processing on the first type of Bluetooth device in the first audio mode, and performing device online processing on the second type of Bluetooth device in the second audio mode, comprises: After receiving a message to switch from the classic Bluetooth audio mode to the LE audio unicast audio mode, the Bluetooth module is controlled to disconnect from the connected A2DP Bluetooth device, and the Bluetooth module is controlled to start establishing a connection with the LE audio device.
11. The display device according to claim 10, characterized in that The controller is specifically configured as follows: In the process of performing device offline processing on the first type of Bluetooth device in the first audio mode, sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream, including: When receiving a notification message of successful offline of the A2DP Bluetooth device from the audio module, a mute instruction is sent to the audio module to instruct the audio module to mute the current audio stream.
12. The display device according to claim 10, characterized in that The controller is specifically configured as follows: In the process of performing device offline processing on the first type of Bluetooth device in the first audio mode, sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream, including: When receiving a notification message of successful disconnection from a connected A2DP Bluetooth device, a mute instruction is sent to the audio module to instruct the audio module to mute the current audio stream.
13. The display device according to claim 1, characterized in that The controller is specifically configured as follows: After receiving a message for switching from the first audio mode to the second audio mode, performing device offline processing on the first type of Bluetooth device in the first audio mode, and performing device online processing on the second type of Bluetooth device in the second audio mode, comprises: After receiving a message to switch from the LE audio unicast audio mode to the classic Bluetooth audio mode, the Bluetooth module is controlled to disconnect from the connected LE audio device, and the Bluetooth module is controlled to start establishing a connection with the A2DP Bluetooth device.
14. The display device according to claim 13, characterized in that The controller is specifically configured as follows: In the process of performing device offline processing on the first type of Bluetooth device in the first audio mode, sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream, including: When receiving a successful offline notification message for the LE audio device from the audio module, a mute instruction is sent to the audio module to instruct the audio module to mute the current audio stream.
15. The display device according to claim 13, characterized in that The controller is specifically configured as follows: In the process of performing device offline processing on the first type of Bluetooth device in the first audio mode, sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream, including: When receiving a notification message that the connection with the connected LE audio device is successfully disconnected, a mute instruction is sent to the audio module to instruct the audio module to mute the current audio stream.
16. An audio mode switching processing method, characterized in that: include: After receiving a message for switching from a first audio mode to a second audio mode, performing device offline processing on a first type of Bluetooth device in the first audio mode, and performing device online processing on a second type of Bluetooth device in the second audio mode; In the process of offline processing of the first type of Bluetooth device in the first audio mode, sending a mute instruction to the audio module to instruct the audio module to mute the current audio stream; In response to a successful online notification message from the audio module for the second type of Bluetooth device in the second audio mode, an unmute instruction is sent to the audio module to instruct the audio module to unmute the current audio stream.