Display device and display method of Bluetooth device
By adding the ASHA protocol Bluetooth devices with the same connection status and HiSyncID to the same group and displaying their identification and status, the problem of indistinguishability and management in the Bluetooth device display method is solved, and the unified display and status recognition of the device is realized, and the user experience is improved.
Patent Information
- Application Number
- CN202410210570.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-26
- Publication Date
- 2025-09-02
AI Technical Summary
Existing Bluetooth device display methods cannot effectively distinguish and display Bluetooth devices that support the ASHA protocol with the same connection status, making it difficult for users to manage and identify these devices.
By obtaining a list of paired Bluetooth devices, add Bluetooth devices that support ASHA protocol to the same device group based on the connection status and HiSyncID, and display their group ID and connection status ID on the display.
It realizes unified display and management of Bluetooth devices that support ASHA protocol, and users can clearly identify the device's connection status, improving user experience.
Smart Images

Figure CN120583256A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Bluetooth technology, and in particular to a display device and a display method of a Bluetooth device. Background Art
[0002] With the continuous development of Bluetooth technology, Bluetooth devices supporting the ASHA (Audio Streaming for Hearing Aid) protocol have emerged, such as Bluetooth headsets supporting the ASHA protocol. For Bluetooth devices supporting the ASHA protocol, a display method for Bluetooth devices is urgently needed. Summary of the Invention
[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a display method for a display device and a Bluetooth device, which can add target Bluetooth devices with the same connection status and HiSyncID to the same device group in the target display list, and display the first group identifier and the corresponding connection status identifier based on the target display list, thereby realizing the display function for Bluetooth devices that support the ASHA protocol.
[0004] In order to achieve the above objectives, 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, comprising: a controller, and a Bluetooth module connected to the controller;
[0006] The controller is configured to:
[0007] Obtaining a list of paired Bluetooth devices; wherein the paired Bluetooth device list includes at least one Bluetooth device;
[0008] Adding target Bluetooth devices with the same connection status and HiSyncID in the paired Bluetooth device list to the same device group in the target display list; wherein the target Bluetooth device supports the ASHA protocol, the connection status includes a connected state and an unconnected state, and the target display list includes at least a first device group, and the first device group includes at least two target Bluetooth devices;
[0009] The control display displays a first group identifier and a connection status identifier corresponding to the first group identifier based on the target display list; wherein the first group identifier is used to identify the first device group in the target display list, and the connection status identifier is used to characterize the connection status of the target Bluetooth device in the first device group.
[0010] In a second aspect, the present disclosure provides a display method for a Bluetooth device, comprising:
[0011] Obtaining a list of paired Bluetooth devices; wherein the paired Bluetooth device list includes at least one Bluetooth device;
[0012] Adding target Bluetooth devices with the same connection status and HiSyncID in the paired Bluetooth device list to the same device group in the target display list; wherein the target Bluetooth device supports the ASHA protocol, the connection status includes a connected state and an unconnected state, and the target display list includes at least a first device group, and the first device group includes at least two target Bluetooth devices;
[0013] The control display displays a first group identifier and a connection status identifier corresponding to the first group identifier based on the target display list; wherein the first group identifier is used to identify the first device group in the target display list, and the connection status identifier is used to characterize the connection status of the target Bluetooth device in the first device group.
[0014] In a third aspect, the present disclosure provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the display method of the Bluetooth device as shown in the second aspect.
[0015] In a sixth aspect, the present disclosure provides a computer program product, which includes a computer program. When the computer program is run on a computer, the computer implements the display method of the Bluetooth device as shown in the second aspect.
[0016] The display device and the display method of the Bluetooth device provided by the embodiment of the present disclosure, wherein the display device includes a controller and a Bluetooth module connected to the controller, the controller first obtains a list of paired Bluetooth devices, wherein the paired Bluetooth device list includes at least one Bluetooth device; then, the target Bluetooth device with the same connection status and HiSyncID in the paired Bluetooth device list is added to the same device group in the target display list, wherein the target Bluetooth device supports the ASHA protocol, the connection status includes a connected state and an unconnected state, the target display list includes at least a first device group, and the first device group includes at least two target Bluetooth devices; further, the display is controlled to display a first group identifier and a connection status identifier corresponding to the first group identifier based on the target display list; wherein the first group identifier is used to identify the first device group in the target display list, and the connection status identifier is used to characterize the connection status of the target Bluetooth device in the first device group. It can be seen that the embodiment of the present disclosure can add target Bluetooth devices with the same connection status and HiSyncID to the same device group and display them as the same device group on the display, thereby realizing the display function for Bluetooth devices supporting the ASHA protocol. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0018] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0019] Figure 1 A schematic diagram of a scene architecture of a display method for a Bluetooth device provided in an embodiment of the present application;
[0020] Figure 2 A configuration block diagram of a control device 100 provided in an embodiment of the present application;
[0021] Figure 3 A block diagram of a display device 200 provided in an embodiment of the present application;
[0022] Figure 4 A hardware configuration block diagram of a terminal device 300 provided in an embodiment of the present application;
[0023] Figure 5 A configuration block diagram of a Bluetooth hearing aid device 400 provided in an embodiment of the present application;
[0024] Figure 6 A schematic diagram of an operating system of a display device 200 provided in an embodiment of the present application;
[0025] Figure 7 A schematic diagram of a software system architecture of a display device 200 provided in an embodiment of the present application;
[0026] Figure 8 A flow chart of a volume adjustment method for a Bluetooth hearing aid device provided in an embodiment of the present application;
[0027] Figure 9 A schematic diagram showing the display effect of a target Bluetooth device when the connection status and HiSyncID are the same as provided in an embodiment of the present disclosure;
[0028] Figure 10 A schematic diagram of a device management page provided in an embodiment of the present disclosure;
[0029] Figure 11 A schematic diagram of another device management page provided in an embodiment of the present disclosure;
[0030] Figure 12A flow chart of another volume adjustment method for a Bluetooth hearing aid device provided in an embodiment of the present application;
[0031] Figure 13 A flow chart of another volume adjustment method for a Bluetooth hearing aid device provided in an embodiment of the present application;
[0032] Figure 14 A schematic diagram of a process for updating the connection status of a target Bluetooth device provided by an embodiment of the present disclosure;
[0033] Figure 15 A schematic diagram of updating a device management page provided in an embodiment of the present disclosure;
[0034] Figure 16 A schematic diagram of updating another device management page provided in an embodiment of the present disclosure;
[0035] Figure 17 A schematic diagram of a display processing flow of a Bluetooth device provided in an embodiment of the present disclosure;
[0036] Figure 18 A schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0037] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features therein can be combined with each other in the absence of conflict.
[0038] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0039] The ASHA (Audio Streaming for Hearing Aid) protocol is a hearing aid audio transmission protocol based on Bluetooth Low Energy (BLE). ASHA is a technical specification designed specifically for connecting hearing aids to Android devices. This Android direct connection technical specification will allow people to use their hearing devices to enjoy music, answer calls, etc. just like using headphones. At the same time, this technical specification is designed to further extend battery life. Using low-power Bluetooth BLE, users can use audio direct connection technology around the clock while still ensuring the battery life of Bluetooth hearing aid devices.
[0040] Figure 1 This is a schematic diagram of the scene architecture of the display method of the Bluetooth device provided in the embodiment of the present application. Figure 1As shown, the scenario architecture provided by the embodiment of the present application includes: a control device 100, a display device 200, a terminal device 300 and a Bluetooth device 400.
[0041] The user can operate the display device 200 through the terminal device 300 or the control apparatus 100. A Bluetooth connection is established between the display device 200 and the Bluetooth device 400, and the display device 200 can exchange data with the Bluetooth device 400 through the Bluetooth connection.
[0042] The display device 200 provided in the embodiments of the present application can have various implementation forms, for example, the display device 200 can be a television, a smart speaker refrigerator with a display function, curtains with a display function, a personal computer (PC), a laser projection device, a monitor, an electronic whiteboard, a wearable device, an in-vehicle device, an electronic table, etc. This application does not impose any restrictions on this.
[0043] In some embodiments, the control device 100 may be a remote control. Communication between the remote control and the display device 200 may be via infrared protocol, Bluetooth protocol, or other short-range communication methods, allowing the display device 200 to be controlled wirelessly or wired. A user may control the display device 200 by inputting user commands via buttons on the remote control, voice input, control panel input, etc. In some embodiments, the control device 100 may also be a terminal device (such as a mobile phone, tablet computer, computer, laptop computer, etc.). For example, the display device 200 may be controlled using an application running on the terminal device.
[0044] In some embodiments, the display device 200 may also be controlled by a terminal device 300 (such as a mobile phone, tablet computer, computer, laptop computer, etc.). For example, the display device 200 may be controlled by an application running on a smart device.
[0045] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100. For example, the display device 200 can directly receive the user's voice command control through a module for obtaining voice commands configured inside the display device 200, or receive the user's key operations through physical buttons on the display device 200, or receive the user's touch operations through the touch control panel of the display device 200.
[0046] In some embodiments, the display device 200 may also communicate with a server to obtain relevant media resources from the server. The display device 200 may be connected to the server via a local area network (LAN) or a wireless local area network (WLAN). The server may provide media resource services and various content and interactions to the display device 200. The server may be a single cluster or multiple clusters, and may include one or more types of servers.
[0047] Figure 2 An example is shown Figure 1 FIG. 1 is a block diagram of a configuration of the control device 100 in the embodiment shown. Figure 2 As shown, the control device 100 includes at least one of a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive user input of operation commands, convert the operation commands into commands that the display device 200 can recognize and respond to, and transmit the operation commands or the commands converted from voice commands to the display device 200, acting as an intermediary for interaction between the user and the display device 200.
[0048] Figure 3 An example is shown Figure 1 FIG. 2 is a block diagram showing a configuration of the display device 200 in the embodiment shown. Figure 3 As shown, the display device 200 includes at least one of a tuner and demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
[0049] In some embodiments, the tuner / demodulator 210 receives broadcast television signals via wired or wireless reception, and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals. In some embodiments, the tuner / demodulator 210 can be located in different separate devices, that is, the tuner / demodulator 210 can also be located in a device external to the physical device where the controller 250 is located, such as an external set-top box.
[0050] Communicator 220 is a component used to communicate with external devices (such as controller 100, server 400, hearing aid 500, etc.) according to various communication protocols. For example, communicator 220 may include at least one of a WiFi module, a Bluetooth module, a wired Ethernet module, or other network communication protocol chip or a near-field communication protocol chip, as well as an infrared receiver. Display device 200 can send and receive control signals and data signals with external devices via communicator 220.
[0051] Detector 230 is used to collect signals from the external environment or external interactions. For example, detector 230 includes a light receiver, a sensor for collecting ambient light intensity; or detector 230 includes an image collector, such as a camera, for collecting external environmental scenes, user attributes, or user interaction gestures; or detector 230 includes a sound collector, such as a microphone, for receiving external sounds.
[0052] The external device interface 240 may include, but is not limited to, any one or more of the following: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input / output interface formed by multiple of the above interfaces.
[0053] Controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in memory. Controller 250 controls the overall operation of display device 200. For example, in response to receiving a user command to select a UI object for display on display 260, controller 250 may perform operations related to the object selected by the user command.
[0054] In some embodiments, the controller includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), RAM (Random Access Memory), ROM (Read-Only Memory, ROM), a first interface to an nth interface for input / output, a communication bus, etc.
[0055] The display 260 includes a display screen component for presenting images, and a driving component for driving image display, a component for receiving image signals output from a controller, and a component for displaying video content, image content, and a menu control interface and a user control UI interface.
[0056] The display 260 may be a liquid crystal display, an OLED display, or a projection display, and may also be a projection device and a projection screen.
[0057] The user may input a user command through a graphical user interface (GUI) displayed on the display 260, and the user interface receives the user input command through the graphical user interface (GUI). Alternatively, the user may input a user command through a specific voice or gesture, and the user interface may recognize the voice or gesture through a sensor to receive the user input command.
[0058] The user interface is the medium for interaction and information exchange between an application or operating system and the user. It converts information between its internal form and a user-friendly form. A common user interface is the graphical user interface (GUI), which refers to a graphical user interface related to computer operations. It can be an icon, window, control, or other interface element displayed on an electronic device's display. Controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.
[0059] The audio output interface 270 is an audio output component for outputting audio signals, including a speaker, an external audio output terminal, etc.
[0060] The user interface may be used to receive control signals input by the user through the control device 100 (eg, an infrared remote controller, etc.) or through touch or gestures.
[0061] For example Figure 1 In the scenario shown, when implementing the display method of the Bluetooth device provided in the embodiment of the present disclosure, each component in the display device 200 can implement the following functions:
[0062] The controller 250 is configured to:
[0063] Obtaining a list of paired Bluetooth devices; wherein the paired Bluetooth device list includes at least one Bluetooth device;
[0064] Adding target Bluetooth devices with the same connection status and HiSyncID in the paired Bluetooth device list to the same device group in the target display list; wherein the target Bluetooth device supports the ASHA protocol, the connection status includes a connected state and an unconnected state, and the target display list includes at least a first device group, and the first device group includes at least two target Bluetooth devices;
[0065] The control display displays a first group identifier and a connection status identifier corresponding to the first group identifier based on the target display list; wherein the first group identifier is used to identify the first device group in the target display list, and the connection status identifier is used to characterize the connection status of the target Bluetooth device in the first device group.
[0066] In some embodiments, the controller 250 is further configured to:
[0067] Before adding the target Bluetooth devices with the same connection status and HiSyncID in the paired Bluetooth device list to the same device group in the target display list, the method further includes:
[0068] Get the connection status of the target Bluetooth device in the paired Bluetooth device list;
[0069] And, obtaining the HiSyncID of the target Bluetooth device according to the UUID reported by the target Bluetooth device.
[0070] In some embodiments, the controller 250 is further configured to:
[0071] The step of adding target Bluetooth devices with the same connection status and HiSyncID in the paired Bluetooth device list to the same device group in the target display list includes:
[0072] Traversing the paired Bluetooth device list, matching the HiSyncID of the first target Bluetooth device in the paired Bluetooth device list with the HiSyncID of the target Bluetooth device in each device group in the target display list;
[0073] If the HiSyncID of the first target Bluetooth device successfully matches the HiSyncID of the second target Bluetooth device in the second device group, the first target Bluetooth device is added to the second device group.
[0074] In some embodiments, the controller 250 is further configured to:
[0075] If the HiSyncID of the first target Bluetooth device does not match the HiSyncID of the target Bluetooth device in the device group in the target display list, a third device group is created for the first target Bluetooth device in the target display list, and the first target Bluetooth device is added to the third device group.
[0076] In some embodiments, the controller 250 is further configured to:
[0077] In response to a connection state switching message for a third target Bluetooth device, determining the number of target Bluetooth devices in a fourth device group where the third target Bluetooth device is located;
[0078] If it is determined that the number of target Bluetooth devices in the fourth device group is greater than 1, the third target Bluetooth device is removed from the fourth device group, and a fifth device group is created for the third target Bluetooth device in the target display list, and the third target Bluetooth device is added to the fifth device group; wherein the fifth device group is used to display the device identification of the third target Bluetooth device.
[0079] In some embodiments, the controller 250 is further configured to:
[0080] If it is determined that the number of target Bluetooth devices in the fourth device group is not greater than 1, the connection status of the third target Bluetooth device in the fourth device group is updated.
[0081] In some embodiments, the controller 250 is further configured to:
[0082] The target display list also includes a sixth device group, and the sixth device group only includes the fourth target Bluetooth device;
[0083] The display is controlled to display the device identifier, left and right ear identifiers, and connection status identifier of the fourth target Bluetooth device based on the target display list; wherein the left and right ear identifiers are used to identify whether the fourth target Bluetooth device belongs to the left ear or the right ear.
[0084] In some embodiments, the controller 250 is further configured to:
[0085] In response to a target interaction operation for any target Bluetooth device in the first device group, interaction processing corresponding to the target interaction operation is performed on each target Bluetooth device in the first device group; wherein the target interaction operation includes at least one of an unpairing operation, a disconnection operation, and a reconnection operation.
[0086] In some embodiments, the controller 250 is further configured to:
[0087] The first group identifier is a device identifier of a target Bluetooth device that is preferentially added to the first device group.
[0088] Figure 4 An example is shown Figure 1 The hardware configuration block diagram of the terminal device 300 in the embodiment shown is as follows. It should be understood that Figure 4 The control terminal 300 shown is only an example, and the control terminal 300 may have more Figure 4 More or fewer components may be shown, two or more components may be combined, or the components may be arranged differently. Figure 4 The various components shown in the illustrative embodiment may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
[0089] like Figure 4 As shown, the control terminal 300 includes: a radio frequency (RF) circuit 310, a memory 320, a display unit 330, a camera 340, a sensor 350, an audio circuit 360, a wireless fidelity (Wi-Fi) module 370, a controller 380, a Bluetooth module 381, and a power supply 390 and other components.
[0090] The RF circuit 310 can be used to receive and transmit signals during information transmission or calls. It can receive downlink data from the base station and pass it to the controller 380 for processing; it can also transmit uplink data to the base station. The memory 320 can be used to store software programs and data. The memory 320 stores the operating system that enables the control terminal 300 to operate. In this application, the memory 320 can store the operating system and various application programs. It can also store program code that executes the display method of the Bluetooth device implemented by the control terminal in some embodiments of this application.
[0091] The display unit 330 can be used to receive input digital or character information and generate signal input related to user settings and function control of the control terminal 300. Specifically, the display unit 330 may include a touch screen 331 set on the front of the control terminal 300, which can collect user touch operations on or near it, such as clicking a button.
[0092] The display unit 330 can also be used to display information input by or provided to the user, as well as a graphical user interface (GUI) for various menus of the control terminal 300. The display unit 330 may include a display screen 332 disposed on the front of the control terminal 300. A touch screen 331 may be overlaid on the display screen 332, or the touch screen 331 and the display screen 332 may be integrated to implement the input and output functions of the control terminal 300. The integrated touch screen may be referred to as a touch screen display. The control terminal 300 may also include at least one sensor 350, such as an acceleration sensor 351, a distance sensor 352, a fingerprint sensor 353, and a temperature sensor 354.
[0093] Audio circuit 360, speaker 361, and microphone 362 provide an audio interface between the user and control terminal 300. Wi-Fi is a short-range wireless transmission technology. Control terminal 300 can help users send and receive emails, browse web pages, and access streaming media through Wi-Fi module 370, providing users with wireless broadband Internet access.
[0094] The controller 380 is the control center of the control terminal 300. It connects the various components of the entire control terminal using various interfaces and lines. It executes the various functions of the control terminal 300 and processes data by running or executing software programs stored in the memory 320 and accessing data stored in the memory 320. In some embodiments, the controller 380 may include one or more processing units; the controller 380 may also integrate an application processor and a baseband processor, wherein the application processor primarily handles the operating system, user interface, and application programs, while the baseband processor primarily handles wireless communications. It is understood that the baseband processor may not be integrated into the controller 380. In this application, the controller 380 can run the operating system, application programs, user interface display, and touch response.
[0095] The Bluetooth module 381 is used to exchange information with other Bluetooth devices equipped with a Bluetooth module via the Bluetooth protocol. For example, the control terminal 300 can establish a Bluetooth connection with a display device equipped with a Bluetooth module via the Bluetooth module 381 to exchange data. The control terminal 300 also includes a power supply 390 (e.g., a battery) to power various components.
[0096] Figure 5 An example is shown Figure 1 FIG. 4 is a block diagram of a configuration of a Bluetooth device 400 in the embodiment shown. Figure 5 As shown, the Bluetooth device 400 includes a controller 410, a communicator 420, a user input / output interface 430, a memory 440, and a power supply 450. Communicator 420 is used for external communication and includes at least one of a Wi-Fi chip, a Bluetooth module, NFC, or an alternative module. User input / output interface 430 includes at least one of a speaker, a microphone, a touchpad, a sensor, a button, or an alternative module.
[0097] See also Figure 6 As shown, in some embodiments, the operating system of the display device 200 is divided into four layers, namely, from top to bottom, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (ApplicationFramework) layer (referred to as "framework layer"), the Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and the kernel layer.
[0098] In some embodiments, at least one application runs in the application layer. These applications can be window programs, system settings programs, clock programs, etc. that come with the operating system, or applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.
[0099] The framework layer provides applications with an application programming interface (API) and programming framework. The application framework layer includes predefined functions. The application framework layer acts as a processing center, determining the actions taken by applications in the application layer. Through the API, applications can access system resources and services during execution.
[0100] like Figure 6 As shown, in the embodiment of the present application, the application framework layer includes managers, content providers, etc., wherein the manager includes at least one of the following modules: an activity manager (ActivityManager) is used to interact with all activities running in the system; a location manager (LocationManager) is used to provide system services or applications with access to system location services; a package manager (PackageManager) is used to retrieve various information related to applications currently installed on the device; a notification manager (Notification Manager) is used to control the display and clearing of notification messages; a window manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.
[0101] In some embodiments, the activity manager is used to manage the lifecycle of each application and common navigation back functions, such as controlling the exit, opening, and backing of an application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, taking screenshots, and controlling display window changes (such as shrinking the display window, shaking the display, distorting the display, etc.).
[0102] In some embodiments, the system runtime layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system will run the C / C++ library contained in the system runtime layer to implement the functions to be implemented by the framework layer.
[0103] In some embodiments, the kernel layer is a layer between hardware and software. Figure 6 As shown, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.
[0104] Figure 7 FIG. 1 is a schematic diagram of a software system architecture of a display device 200 provided in an embodiment of the present disclosure. Figure 7As shown, the software system may include: an application (App) layer, a system framework (Framework) layer (referred to as "framework layer"), a dynamic library (Library) and a Bluetooth driver (BluetoothDriver).
[0105] The application layer includes: TV settings (TVSettings) or TV services (TVService).
[0106] The system framework layer includes: Bluetooth interface (BluetoothAPI), Bluetooth application (BluetoothAPK) and audio (audio) module.
[0107] Bluetooth applications can include: A2DP application specifications, LE Audio application specifications, and ASHA application specifications. Among them, the A2DP (Advanced Audio Distribution Profile) application specification is a media audio application specification in classic Bluetooth, the LE Audio application specification is a low-power audio application specification based on Bluetooth, and the ASHA application specification is a hearing aid audio transmission protocol for Bluetooth Low Energy (BLE). In the embodiments of this disclosure, the ASHA protocol technology is mainly used to implement the display of Bluetooth devices.
[0108] The dynamic library includes the Bluetooth protocol stack and the Bluetooth audio HAL layer. The Bluetooth protocol stack is responsible for scanning, connecting, and configuring Bluetooth devices. When establishing a Bluetooth connection with a Bluetooth device, the display device can send relevant data to the Bluetooth protocol stack through the Bluetooth application in the display device.
[0109] The audio module can include an audio manager (audioManager), an audio service (audioService), etc. The audio module is mainly responsible for sending audio-related data from Bluetooth applications to the Bluetooth protocol stack.
[0110] The Bluetooth driver is mainly responsible for the Bluetooth connection between the display device and surrounding Bluetooth devices.
[0111] Figure 8 The flowchart of the display method of the Bluetooth device provided in the embodiment of the present application is shown in the figure. The execution subject of the display method can be Figure 1 The display device 200 in the embodiment shown is as follows: Figure 8 FIG. 1 is a flow chart of a display method for a Bluetooth device provided by an embodiment of the present disclosure, the method comprising the following steps:
[0112] S801: Acquire a list of paired Bluetooth devices; wherein the list of paired Bluetooth devices includes at least one Bluetooth device.
[0113] In an embodiment of the present disclosure, the list of paired Bluetooth devices may include at least one Bluetooth device, wherein the at least one Bluetooth device may include a Bluetooth device that has been paired with the display device, such as a Bluetooth device supporting the ASHA protocol, a Bluetooth device supporting the A2DP protocol, a Bluetooth device supporting the LE Audio protocol, etc.
[0114] In actual applications, a Bluetooth device may include information such as connection status and device type; among which, the connection status may include connected status and disconnected status, etc. The connected status is used to indicate that a Bluetooth connection has been established between the Bluetooth device and the display device, and the disconnected status is used to indicate that a Bluetooth connection has not been established between the Bluetooth device and the display device; the device type of the Bluetooth device can be used to indicate the Bluetooth protocols supported by the Bluetooth device, such as support for ASHA protocol type, support for A2DP protocol type, support for LE Audio protocol type, etc.
[0115] S802: Add the target Bluetooth devices in the paired Bluetooth device list that have the same connection status and HiSyncID to the same device group in the target display list.
[0116] In an embodiment of the present disclosure, after obtaining a paired Bluetooth device list containing at least one Bluetooth device, based on the device type and connection status saved in the paired Bluetooth device list, a Bluetooth device in the paired Bluetooth device list with the same connection status and HiSyncID is determined as a target Bluetooth device; wherein the target Bluetooth device can be a Bluetooth device that supports the ASHA protocol.
[0117] In the disclosed embodiment, HiSyncID is a fixed value written by the Bluetooth device manufacturer for the Bluetooth device. The display device can determine whether the Bluetooth device is in the same group as other Bluetooth devices based on the HiSyncID of the Bluetooth device. In actual applications, for all dual-channel devices, their HiSyncID is unique. For left and right channel settings, their HiSyncID must be the same. Bytes 0-1 of the HiSyncID are the manufacturer's identifier, and bytes 2-7 are the unique identifier used to identify the Bluetooth device group.
[0118] In the embodiment of the present disclosure, after determining the target Bluetooth device with the same connection status and HiSyncID from the paired Bluetooth device list, the target Bluetooth device is added to the same device group in the target display list.
[0119] In the embodiment of the present disclosure, the target display list may include one or more device groups. In actual applications, Bluetooth devices with the same connection status and HiSyncID may be defined as a device group, i.e., each Bluetooth device in the same device group has the same connection status and HiSyncID. The first device group may be any device group, and the first device group includes at least two target Bluetooth devices, both of which have the same connection status and HiSyncID.
[0120] In some embodiments, before adding the target Bluetooth devices in the paired Bluetooth device list with the same connection status and HiSyncID to the same device group in the target display list, the method may also include: obtaining the connection status of the target Bluetooth device in the paired Bluetooth device list; and obtaining the HiSyncID of the target Bluetooth device based on the UUID reported by the target Bluetooth device.
[0121] In actual applications, UUID can be used to identify the application layer specification of the Bluetooth device, that is, whether the Bluetooth device supports the A2DP protocol, the LE Audio protocol, or the ASHA protocol. Since the UUIDs of Bluetooth devices that support the ASHA protocol and the LE Audio protocol are different, the UUID can be used to identify whether the Bluetooth device supports the ASHA protocol. When the UUID is determined to be a device that supports the ASHA protocol type (that is, when the Bluetooth device is a target Bluetooth device that supports the ASHA protocol), the HiSyncID of the target Bluetooth device can be obtained according to the UUID of the target Bluetooth device.
[0122] In some embodiments, since the target Bluetooth device provides Audio Streaming for Hearing Aid (ASHA) GATT service to the outside world, the display device can send a GATT query request to the target Bluetooth device. The target Bluetooth device responds to the query request and reports the UUID of the target Bluetooth device to the display device. Furthermore, the display device can obtain the HiSyncID of the target Bluetooth device based on the UUID of the target Bluetooth device.
[0123] In an embodiment of the present disclosure, after obtaining a list of paired Bluetooth devices, the connection status of the target Bluetooth device in the paired Bluetooth device list, and obtaining the HiSyncID of the target Bluetooth device based on the UUID reported by the target Bluetooth status, the target Bluetooth devices with the same connection status and HiSyncID can also be added to the same device group in the target display list.
[0124] For example, assume that the list of paired Bluetooth devices includes Bluetooth device A, Bluetooth device B, Bluetooth device C and Bluetooth device D; wherein, the HiSyncID corresponding to the obtained Bluetooth device A is 11, and the connection status is connected, the HiSyncID corresponding to the Bluetooth device B is 22, and the connection status is connected, the HiSyncID corresponding to the Bluetooth device C is 11, and the connection status is disconnected, and the HiSyncID corresponding to the Bluetooth device D is 22, and the connection status is connected.
[0125] Among the above Bluetooth devices, Bluetooth device B and Bluetooth device D have the same connection status and HiSyncID, so Bluetooth device B and Bluetooth device D are added to the same device group in the target display list, for example, device group 1. In addition, the target display list may also include device group 2, where device group 2 includes Bluetooth device E (HiSyncID is 33, connection status is not connected) and Bluetooth device F (HiSyncID is 33, connection status is not connected).
[0126] like Figure 9 The figure shows a schematic diagram of the display effect of a target Bluetooth device when the connection status and HiSyncID are the same, provided by an embodiment of the present disclosure. In the system framework layer, multiple target Bluetooth devices in the same device group are identified by left ear device and right ear device respectively; the setting management is used to display the display effect of the target Bluetooth device on the display. For target Bluetooth devices with the same connection status and HiSyncID, only one device group is displayed on the device management page, such as "Bluetooth device A (left and right) connected".
[0127] S803: Control the display to display a first group identifier and a connection status identifier corresponding to the first group identifier based on the target display list.
[0128] The first group identifier is used to identify the first device group in the target display list, and the connection status identifier is used to represent the connection status of the target Bluetooth device in the first device group.
[0129] In the embodiment of the present disclosure, the target display list may include at least a first device group, and the first device group may include at least two target Bluetooth devices with the same connection status and HiSyncID.
[0130] In an embodiment of the present disclosure, after adding the target Bluetooth devices with the same connection status and HiSyncID in the paired Bluetooth device list to the same device group in the target display list, the control display is controlled to display the first group identifier and the connection status identifier corresponding to the first group identifier based on the target display list.
[0131] In the embodiment of the present disclosure, the first group identifier may be used to identify the first device group in the target display list, and the connection status identifier may be used to represent the connection status of the target Bluetooth device in the first device group.
[0132] In some embodiments, the first group identifier may be the device identifier of the target Bluetooth device that is preferentially added to the first device group. For example, the device identifier, such as the device name, of the first target Bluetooth device that is first added to the first device group may be determined as the first group identifier corresponding to the first device group.
[0133] like Figure 10 , which is a schematic diagram of a device management page provided in an embodiment of the present disclosure, wherein the device management page displays a first group identifier 1001 corresponding to a first device group, and may also display the connection status 1002 of a target Bluetooth device in the first device group. The first group identifier may include the device name of the target Bluetooth device, such as "Bluetooth Device A (left and right)", and the connection status may include the display words "connected" or "not connected", a connected icon or a not connected icon, etc.
[0134] In an optional embodiment, the target display list also includes a sixth device group, and the sixth device group only includes the fourth target Bluetooth device. Therefore, when controlling the display to display the first group identifier and the connection status identifier corresponding to the first group identifier based on the target display list, the display can also be controlled to display the device identifier, left and right ear identifiers, and connection status identifier of the fourth target Bluetooth device based on the target display list.
[0135] In the embodiment of the present disclosure, the left and right ear identifiers are used to identify whether the fourth target Bluetooth device belongs to the left ear or the right ear.
[0136] like Figure 11 As shown, it is a schematic diagram of another device management page provided in an embodiment of the present disclosure, wherein the sixth device group where the fourth target Bluetooth device is located only includes the fourth target Bluetooth device, and the device identifier 1101, left and right ear identifiers 1102, and connection status identifier 1103 of the fourth target Bluetooth device are displayed on the page.
[0137] In the display method of the Bluetooth device provided by the embodiment of the present disclosure, first, a list of paired Bluetooth devices is obtained, wherein the paired Bluetooth device list includes at least one Bluetooth device; then, the target Bluetooth device in the paired Bluetooth device list with the same connection status and HiSyncID is added to the same device group in the target display list, wherein the target Bluetooth device supports the ASHA protocol, the connection status includes a connected state and an unconnected state, the target display list includes at least a first device group, and the first device group includes at least two target Bluetooth devices; further, the display is controlled to display the first group identifier and the connection status identifier corresponding to the first group identifier based on the target display list; wherein the first group identifier is used to identify the first device group in the target display list, and the connection status identifier is used to characterize the connection status of the target Bluetooth device in the first device group. It can be seen that the embodiment of the present disclosure can add target Bluetooth devices with the same connection status and HiSyncID to the same device group, and display them as the same device group on the display, thereby realizing the display function for Bluetooth devices that support the ASHA protocol.
[0138] Reference Figure 12 As shown, Figure 8 The expansion and refinement of the embodiment shown in Figure 8 On the basis of steps S801 to S803 shown above, step S802 (adding the target Bluetooth devices with the same connection status and HiSyncID in the paired Bluetooth device list to the same device group in the target display list) is replaced by steps S1201 to S1203. The method for displaying Bluetooth devices provided in the embodiment of the present application further includes the following steps:
[0139] S801: Acquire a list of paired Bluetooth devices; wherein the list of paired Bluetooth devices includes at least one Bluetooth device.
[0140] S1201: traverse the paired Bluetooth device list, and match the HiSyncID of the first target Bluetooth device in the paired Bluetooth device list with the HiSyncIDs of target Bluetooth devices in each device group in the target display list.
[0141] In the embodiment of the present disclosure, the target Bluetooth device is a Bluetooth device that supports the ASHA protocol. The paired Bluetooth device list may include one or more target Bluetooth devices. The first target Bluetooth device may be any target Bluetooth device. The target display list may include at least one device group, and each device group corresponds to one or more target Bluetooth devices.
[0142] In the embodiment of the present disclosure, after obtaining the paired Bluetooth device list, the paired Bluetooth device list is traversed, and the HiSyncID of the first target Bluetooth device in the paired Bluetooth device list is matched with the HiSyncID of the target Bluetooth device in each device group in the target display list.
[0143] S1202: If the HiSyncID of the first target Bluetooth device successfully matches the HiSyncID of the second target Bluetooth device in the second device group, the first target Bluetooth device is added to the second device group.
[0144] In the embodiment of the present disclosure, the second device belongs to the device group in the target display list, the second device group includes at least the second target Bluetooth device, the HiSyncID of the second target Bluetooth device is the same as the HiSyncID of the first target Bluetooth device, and after the first target Bluetooth device is added to the second device group, the second target Bluetooth device and the first target Bluetooth device are devices in the same device group (i.e., the second device group).
[0145] In some embodiments, the list of paired Bluetooth devices can also be traversed to match the HiSyncID and connection status of the first target Bluetooth device in the paired Bluetooth device list with the HiSyncID and connection status of the target Bluetooth devices in each device group in the target display list, so that when it is determined that the HiSyncID and connection status of the first target Bluetooth device successfully match the HiSyncID and connection status of the second target Bluetooth device in the second device group, the first target Bluetooth device can be added to the second device group.
[0146] S1203: If the HiSyncID of the first target Bluetooth device does not match the HiSyncID of the target Bluetooth device in the device group in the target display list, create a third device group for the first target Bluetooth device in the target display list and add the first target Bluetooth device to the third device group.
[0147] In an embodiment of the present disclosure, if it is determined that the HiSyncID of the first target Bluetooth device does not match the HiSyncID of the target Bluetooth device in any device group in the target display list, it means that the first target Bluetooth device and any target Bluetooth device in the target display list are not devices in the same group. At this time, a new device group, i.e., the third device group, is created for the first target Bluetooth device in the target display list, and the first target Bluetooth device is added to the newly created third device group.
[0148] S803: Control the display to display a first group identifier and a connection status identifier corresponding to the first group identifier based on the target display list.
[0149] The first group identifier is used to identify the first device group in the target display list, and the connection status identifier is used to represent the connection status of the target Bluetooth device in the first device group.
[0150] In the display method of the Bluetooth device provided in the embodiment of the present disclosure, first, a list of paired Bluetooth devices is obtained, wherein the paired Bluetooth device list includes at least one Bluetooth device; then, the paired Bluetooth device list is traversed, and the HiSyncID of the first target Bluetooth device in the paired Bluetooth device list is matched with the HiSyncID of the target Bluetooth device in each device group in the target display list, and when it is determined that the HiSyncID of the first target Bluetooth device matches the HiSyncID of the second target Bluetooth device in the second device group, the first target Bluetooth device is added to the second device group; further, the display is controlled to display the first group identifier and the connection status identifier corresponding to the first group identifier based on the target display list; wherein the first group identifier is used to identify the first device group in the target display list, and the connection status identifier is used to characterize the connection status of the target Bluetooth device in the first device group. It can be seen that the embodiment of the present disclosure can add target Bluetooth devices with the same connection status and HiSyncID to the same device group, and display them as the same device group on the display, thereby realizing the display function of Bluetooth devices supporting the ASHA protocol.
[0151] In addition, when it is determined that the HiSyncID of the first target Bluetooth device has not been successfully matched with any target Bluetooth device in the second device group, the embodiment of the present disclosure can create a third device group for the first target Bluetooth device in the target display list and add the first target Bluetooth device group to the third device group, thereby realizing the display function of Bluetooth devices that support the ASHA protocol.
[0152] Reference Figure 13 As shown, Figure 8 The expansion and refinement of the embodiment shown in Figure 8 On the basis of steps S801 to S803, steps S1301 to S1303 may be further included. The display method of the Bluetooth device provided in the embodiment of the present application further includes the following steps:
[0153] S801: Acquire a list of paired Bluetooth devices; wherein the list of paired Bluetooth devices includes at least one Bluetooth device.
[0154] S802: Add the target Bluetooth devices in the paired Bluetooth device list that have the same connection status and HiSyncID to the same device group in the target display list.
[0155] The target Bluetooth device supports the ASHA protocol, the connection state includes a connected state and an unconnected state, the target display list includes at least a first device group, and the first device group includes at least two target Bluetooth devices.
[0156] S803: Control the display to display a first group identifier and a connection status identifier corresponding to the first group identifier based on the target display list, wherein the first group identifier is used to identify the first device group in the target display list, and the connection status identifier is used to represent the connection status of the target Bluetooth device in the first device group.
[0157] S1301: In response to a connection state switching message for a third target Bluetooth device, determine the number of target Bluetooth devices in a fourth device group where the third target Bluetooth device is located.
[0158] In the embodiment of the present disclosure, the third target Bluetooth device can be any target Bluetooth device in the target display list. The connection status switching message for the third target Bluetooth device can include a message that the third target Bluetooth device switches from a connected state to an unconnected state, or a message that the third target Bluetooth device switches from an unconnected state to a connected state, etc.
[0159] In the embodiment of the present disclosure, when the display device receives a connection status switching message for a third target Bluetooth device, it first determines the number of target Bluetooth devices in the fourth device group where the third target Bluetooth device is located. Exemplarily, the target display list includes device group 1 (target Bluetooth device A, target Bluetooth device B), device group 2 (target Bluetooth device C, target Bluetooth device D), and device group 2 (target Bluetooth device E). When the display device receives a connection status switching message for target Bluetooth device C, it determines the number of target Bluetooth devices (i.e., 2) in the device group (i.e., device group 2) where target Bluetooth device C is located.
[0160] S1302: If it is determined that the number of target Bluetooth devices in the fourth device group is greater than 1, the third target Bluetooth device is removed from the fourth device group, and a fifth device group is created for the third target Bluetooth device in the target display list, and the third target Bluetooth device is added to the fifth device group; wherein the fifth device group is used to display the device identification of the third target Bluetooth device.
[0161] In the embodiment of the present disclosure, since the connection status of the target Bluetooth devices in the same device group is the same and are displayed as the same device on the display, if it is determined that the number of target Bluetooth devices in the fourth device group is greater than 1, it means that the connection status of the third target Bluetooth device in the fourth device group has changed, while the connection status of other target Bluetooth devices has not changed. Obviously, the third target Bluetooth device and the other target Bluetooth devices in the fourth device group cannot be displayed as the same device. At this time, the third target Bluetooth device needs to be moved to the new device group and displayed based on the new device group.
[0162] Specifically, when the embodiment of the present disclosure determines that the number of target Bluetooth devices in the fourth device group is greater than 1, the third target Bluetooth device is first removed from the fourth device group, and a fifth device group is created for the third target Bluetooth device in the target display list, and the third target Bluetooth device group is added to the fifth device group.
[0163] like Figure 14 As shown, it is a processing diagram for updating the connection status of a target Bluetooth device provided by an embodiment of the present disclosure. When the display device receives a connection status switching message for the target Bluetooth device A, it determines the number of target Bluetooth devices in the fourth device group where the target Bluetooth device A is located. At this time, the number of target Bluetooth devices in the fourth device group is 2, then the target Bluetooth device A is moved out of the fourth device group, and a new device group is created, such as the fifth device group, and then the target Bluetooth device A is moved into the fifth device group. Since the target Bluetooth device A and the target Bluetooth device B are in different device groups, they are displayed as two devices on the display at this time, for example, "target Bluetooth device A (left) is connected" and "target Bluetooth device B (right) is not connected".
[0164] like Figure 15 FIG. 1 is a schematic diagram of updating a device management page provided by an embodiment of the present disclosure. Figure 15 The Bluetooth device A (left and right) displayed on the page shown in (a) indicates that both the left ear device and the right ear device of the Bluetooth device A are in a connected state; when a message is received that the connection state of the left ear device of the Bluetooth device A is switched from a connected state to a disconnected state, since the number of target Bluetooth devices in the Bluetooth device A (left and right) is greater than 1, the left ear device of the Bluetooth device A is removed from the Bluetooth device A (left and right), and a Bluetooth device A (left) is created for the left ear device of the Bluetooth device A, that is, the fifth device group, and the left ear device of the Bluetooth device A is added to the Bluetooth device A (left); as shown in FIG. Figure 15 The page shown in (b) displays Bluetooth device A (left), indicating that the left ear device of Bluetooth device A is in an unconnected state. At this time, the right ear device of Bluetooth device A is still in a connected state, and the device group identifier is updated to Bluetooth device A (right).
[0165] S1303: If it is determined that the number of target Bluetooth devices in the fourth device group is not greater than 1, update the connection status of the third target Bluetooth device in the fourth device group.
[0166] In the embodiment of the present disclosure, if it is determined that the number of target Bluetooth devices in the fourth device group is not greater than 1, it means that the fourth device group only includes the third target Bluetooth device. At this time, it is only necessary to update the connection status of the third target Bluetooth device in the fourth device group.
[0167] like Figure 16 FIG. 1 is a schematic diagram showing another device management page update according to an embodiment of the present disclosure. Figure 16 The Bluetooth device B (left) displayed on the page shown in (a) indicates that the left ear device of the Bluetooth device B is in an unconnected state; when receiving a message that the connection state of the left ear device of the Bluetooth device B is switched from an unconnected state to a connected state, since the number of target Bluetooth devices in the Bluetooth device B (left) is not greater than 1, it is only necessary to update the connection state of the left ear device of the Bluetooth device B to a connected state; Figure 16 (b) is a schematic diagram showing that the connection status of the left ear device of Bluetooth device B is updated to the connected state.
[0168] It can be seen that in the display mode of the Bluetooth device provided by the embodiment of the present disclosure, when a connection status switching message for the third target Bluetooth device is received, the display mode for the third target Bluetooth device can be determined according to the number of devices in the fourth device group where the third target Bluetooth device is located. Specifically, when it is determined that the number in the fourth device group is greater than 1, the third target Bluetooth device is removed from the fourth device group, and a new fifth device group is created and the third target Bluetooth device is added to the fifth device group; when it is determined that the number in the fourth device group is not greater than 1, the connection status of the third target Bluetooth device is updated, thereby realizing the updated display of the connection status of the Bluetooth device.
[0169] In actual applications, for two target Bluetooth devices (i.e., the left ear device and the right ear device) with the same connection status and HiSyncID, if the user wants to unpair the two target Bluetooth devices, etc., it is necessary to perform an operation on both the left ear device and the right ear device to achieve the unpairing of the Bluetooth headsets. The above operation process is relatively cumbersome for the user and affects the user experience.
[0170] To this end, the embodiment of the present disclosure can perform interaction processing corresponding to the target interaction operation on each target Bluetooth device in the first device group when receiving a target interaction operation for any target Bluetooth device in the first device group, thereby enabling a user to operate other devices in the device group to which the device belongs while operating one device, thereby improving the user's interaction experience.
[0171] In the embodiment of the present disclosure, the target interaction operation for any target Bluetooth device may include at least one operation of an unpairing operation, a disconnection operation, and a reconnection operation for the target Bluetooth device.
[0172] For example, assuming that the first device group includes Bluetooth device A, Bluetooth device B and Bluetooth device C, when the display device receives an unpairing operation for Bluetooth device B in the first device group, it performs interactive processing corresponding to the unpairing operation on each target Bluetooth device in the first device group (i.e., Bluetooth device A, Bluetooth device B and Bluetooth device C). This ensures that when an unpairing operation is performed on any target Bluetooth device in the device group, all target Bluetooth devices in the device group can be unpaired at the same time, thereby improving the user's interactive experience.
[0173] like Figure 17 The figure shows a flow chart of display processing of a Bluetooth device provided by an embodiment of the present disclosure. First, all Bluetooth devices paired with the display device are obtained, the list of paired Bluetooth devices is traversed, and the connection status and device type of the Bluetooth devices in the paired Bluetooth device list are obtained; if it is determined that the Bluetooth device is a target Bluetooth device that supports the ASHA protocol, the HiSyncID and left and right ear identifiers of the target Bluetooth device are obtained according to the UUID reported by the target Bluetooth device; further, it is determined whether there is a Bluetooth device in the target display list whose connection status and HiSyncID are the same as those of the target Bluetooth device. If so, the target Bluetooth device is added to the same device group; if it is determined that the Bluetooth device is not a device that supports the ASHA protocol, the Bluetooth device is added to the display list; then, it is determined whether all Bluetooth devices in the Bluetooth list have been processed. If all Bluetooth devices have been processed, each device group is displayed based on the target display list.
[0174] Figure 18 This is a structural diagram of an electronic device provided by an embodiment of the present disclosure, which may be the above-mentioned display device, control terminal or audio receiving device. Figure 18As shown, the electronic device includes: a processor 1801, a memory 1802, and a computer program stored in the memory 1802 and executable on the processor 1801. When the computer program is executed by the processor 1801, the above method embodiment involves the following method: a display method of a Bluetooth device executed by a display device.
[0175] The present disclosure provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the various processes of the display method of the Bluetooth device described above, and can achieve the same technical effects. To avoid repetition, the details are not described here. The computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0176] The present disclosure provides a computer program product, which includes a computer program. When the computer program is run on a computer, the computer is enabled to implement the above-mentioned display method for a Bluetooth device.
[0177] For ease of explanation, the above description has been made in conjunction with specific embodiments. However, the above discussion of some embodiments is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are intended to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that: include: A controller, and a Bluetooth module connected to the controller; The controller is configured to: Obtaining a list of paired Bluetooth devices; wherein the paired Bluetooth device list includes at least one Bluetooth device; Adding target Bluetooth devices with the same connection status and HiSyncID in the paired Bluetooth device list to the same device group in the target display list; wherein the target Bluetooth device supports the ASHA protocol, the connection status includes a connected state and an unconnected state, and the target display list includes at least a first device group, and the first device group includes at least two target Bluetooth devices; The control display displays a first group identifier and a connection status identifier corresponding to the first group identifier based on the target display list; wherein the first group identifier is used to identify the first device group in the target display list, and the connection status identifier is used to characterize the connection status of the target Bluetooth device in the first device group.
2. The display device according to claim 1, wherein The controller is further configured to: Before adding the target Bluetooth devices with the same connection status and HiSyncID in the paired Bluetooth device list to the same device group in the target display list, the method further includes: Get the connection status of the target Bluetooth device in the paired Bluetooth device list; And, obtaining the HiSyncID of the target Bluetooth device according to the UUID reported by the target Bluetooth device.
3. The display device according to claim 1, wherein The controller is specifically configured to: The step of adding target Bluetooth devices with the same connection status and HiSyncID in the paired Bluetooth device list to the same device group in the target display list includes: Traversing the paired Bluetooth device list, matching the HiSyncID of the first target Bluetooth device in the paired Bluetooth device list with the HiSyncID of the target Bluetooth device in each device group in the target display list; If the HiSyncID of the first target Bluetooth device successfully matches the HiSyncID of the second target Bluetooth device in the second device group, the first target Bluetooth device is added to the second device group.
4. The display device according to claim 3, wherein The controller is further configured to: If the HiSyncID of the first target Bluetooth device does not match the HiSyncID of the target Bluetooth device in the device group in the target display list, a third device group is created for the first target Bluetooth device in the target display list, and the first target Bluetooth device is added to the third device group.
5. The display device according to claim 1, wherein The controller is further configured to: In response to a connection state switching message for a third target Bluetooth device, determining the number of target Bluetooth devices in a fourth device group where the third target Bluetooth device is located; If it is determined that the number of target Bluetooth devices in the fourth device group is greater than 1, the third target Bluetooth device is removed from the fourth device group, and a fifth device group is created for the third target Bluetooth device in the target display list, and the third target Bluetooth device is added to the fifth device group; wherein the fifth device group is used to display the device identification of the third target Bluetooth device.
6. The display device according to claim 5, wherein: The controller is further configured to: If it is determined that the number of target Bluetooth devices in the fourth device group is not greater than 1, the connection status of the third target Bluetooth device in the fourth device group is updated.
7. The display device according to claim 1, wherein The controller is further configured to: The target display list also includes a sixth device group, and the sixth device group only includes the fourth target Bluetooth device; The display is controlled to display the device identifier, left and right ear identifiers, and connection status identifier of the fourth target Bluetooth device based on the target display list; wherein the left and right ear identifiers are used to identify whether the fourth target Bluetooth device belongs to the left ear or the right ear.
8. The display device according to claim 1, wherein The controller is further configured to: In response to a target interaction operation for any target Bluetooth device in the first device group, interaction processing corresponding to the target interaction operation is performed on each target Bluetooth device in the first device group; wherein the target interaction operation includes at least one of an unpairing operation, a disconnection operation, and a reconnection operation.
9. The display device according to claim 1, wherein The controller is further configured to: The first group identifier is a device identifier of a target Bluetooth device that is preferentially added to the first device group.
10. A display method for a Bluetooth device, characterized in that: include: Obtaining a list of paired Bluetooth devices; wherein the paired Bluetooth device list includes at least one Bluetooth device; Adding target Bluetooth devices with the same connection status and HiSyncID in the paired Bluetooth device list to the same device group in the target display list; wherein the target Bluetooth device supports the ASHA protocol, the connection status includes a connected state and an unconnected state, and the target display list includes at least a first device group, and the first device group includes at least two target Bluetooth devices; The control display displays a first group identifier and a connection status identifier corresponding to the first group identifier based on the target display list; wherein the first group identifier is used to identify the first device group in the target display list, and the connection status identifier is used to characterize the connection status of the target Bluetooth device in the first device group.