Electric quantity display method and device, electronic equipment, chip and storage medium

By determining and displaying the power level of another device in the same group after the Bluetooth audio device is disconnected, the problem of the system being unable to display the power level of the connected device is solved and the user experience is improved.

CN118869862APending Publication Date: 2024-10-29GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310469166.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-26
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Among multiple Bluetooth audio devices, when one device is disconnected, the system cannot conveniently display the power information of other devices that are still connected, affecting the user experience.

Method used

After the Bluetooth audio device is disconnected from the electronic device, the power level of another device in the same group is determined and displayed in the status bar of the system interface.

Benefits of technology

This enables users to more conveniently obtain the power information of the currently connected device, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869862A_ABST
    Figure CN118869862A_ABST
Patent Text Reader

Abstract

The invention provides an electric quantity display method and device, electronic equipment, a chip and a storage medium. The method is applied to the electronic equipment, the electronic equipment establishes low-power-consumption Bluetooth audio connection with multiple pieces of Bluetooth audio equipment, and the method comprises the following steps: responding to disconnection between first Bluetooth audio equipment in the multiple pieces of Bluetooth audio equipment and the electronic equipment, determining at least one second Bluetooth audio device in the plurality of Bluetooth audio devices, wherein the second Bluetooth audio device and the first Bluetooth audio device are in the same group; the electric quantity of a target Bluetooth audio device is determined, and the target Bluetooth audio device is one of the at least one second Bluetooth audio device; and displaying the electric quantity of the target Bluetooth audio equipment in a status bar of a system interface of the electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Bluetooth technology, and more specifically, to a power display method and device, an electronic device and chip, and a storage medium. Background Art

[0002] With the development of Bluetooth technology, Bluetooth audio devices such as headphones and speakers have been widely used. Bluetooth Low Energy audio (BLE audio) technology has been proposed in related technologies to improve the battery life and performance of Bluetooth audio devices while ensuring low latency and high sound quality.

[0003] When there are multiple Bluetooth audio devices, the electronic device (such as a mobile phone) will establish a BLE audio connection link with each device. Multiple Bluetooth audio devices will report their own power levels regularly. The electronic device will refresh the power information of each Bluetooth audio device received and display it in the status bar of the system interface.

[0004] When one of the multiple Bluetooth audio devices is disconnected, the phone will set the battery level of the Bluetooth audio device to -1 and report it to the system UI. The system UI will refresh the status bar based on the received battery level information. At this time, there are still other Bluetooth audio devices connected to the phone, but the system UI cannot display the battery level information of the connected Bluetooth audio devices, making it difficult for users to easily obtain the battery level of the devices that are still connected, affecting the user experience. Summary of the invention

[0005] The present application provides a method and device for displaying power, an electronic device and a chip, and a storage medium. The following introduces various aspects involved in the embodiments of the present application.

[0006] In a first aspect, a method for displaying the power level of a Bluetooth audio device is provided, the method being applied to an electronic device, the electronic device establishing a low-power Bluetooth audio connection with multiple Bluetooth audio devices, the method comprising: in response to a first Bluetooth audio device among the multiple Bluetooth audio devices being disconnected from the electronic device, determining at least one second Bluetooth audio device among the multiple Bluetooth audio devices that is in the same group as the first Bluetooth audio device; determining the power level of a target Bluetooth audio device, wherein the target Bluetooth audio device is one of the at least one second Bluetooth audio device; and displaying the power level of the target Bluetooth audio device in a status bar of a system interface of the electronic device.

[0007] In a second aspect, a device for displaying the battery level of a Bluetooth audio device is provided, the device being applied to an electronic device, the electronic device establishing a low-power Bluetooth audio connection with multiple Bluetooth audio devices, the device comprising: a first determination unit, for determining, in response to a first Bluetooth audio device among the multiple Bluetooth audio devices being disconnected from the electronic device, at least one second Bluetooth audio device among the multiple Bluetooth audio devices that is in the same group as the first Bluetooth audio device; a second determination unit, for determining the battery level of a target Bluetooth audio device; wherein the target Bluetooth audio device is one of the at least one second Bluetooth audio device; and a display unit, for displaying the battery level of the target Bluetooth audio device in a status bar of a system interface of the electronic device.

[0008] According to a third aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and execute the computer program from the memory to implement the method described in the first aspect.

[0009] In a fourth aspect, a chip is provided, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and execute the computer program from the memory to implement the method described in the first aspect.

[0010] According to a fifth aspect, a computer-readable storage medium is provided, wherein the storage medium is used to store a computer program, and when the computer program is executed, the method described in the first aspect is implemented.

[0011] In the method provided in the embodiment of the present application, after the connection between the first Bluetooth audio device and the electronic device is disconnected, the electronic device does not immediately refresh the power level of the first Bluetooth audio device -1 in the status bar, but instead determines a target Bluetooth audio device belonging to the same group as the first Bluetooth audio and displays its power level, so that the user can more conveniently obtain the power level of the currently connected headphones, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 It is a schematic diagram of the architecture of a Bluetooth communication system using the method provided in an embodiment of the present application.

[0013] Figure 2A It is a structural diagram of a Bluetooth audio device.

[0014] Figure 2B It is a structural diagram of a TWS headset.

[0015] Figure 3 The invention relates to a method for displaying the battery information of a Bluetooth audio device in the related art.

[0016] Figure 4 It is another method for displaying the power information of a Bluetooth audio device in the related art.

[0017] Figure 5 It is a schematic diagram of displaying power information in the status bar of the system interface of an electronic device in the related art.

[0018] Figure 6 This is a schematic diagram of asynchronous transmission between the left and right earphones and the mobile phone in traditional Bluetooth.

[0019] Figure 7 It is a schematic diagram of synchronous transmission between left and right earphones and a mobile phone in Bluetooth low energy audio.

[0020] Figure 8 It is a schematic diagram of a TWS headset power display method based on BLE audio in the related art.

[0021] Fig. 9 yes Figure 8 A schematic diagram of the power information displayed in the status bar of the mobile phone in step S804.

[0022] Fig.10 yes Figure 8 A schematic diagram of the battery information displayed in the status bar of the mobile phone in step S808.

[0023] Fig.11 yes Figure 8 A schematic diagram of the power information displayed in the status bar of the mobile phone in step S813.

[0024] Fig.12 It is a schematic flowchart of a method for displaying the power level of a Bluetooth audio device provided in an embodiment of the present application.

[0025] Fig.13 This is a schematic flowchart of displaying the battery level of a TWS headset using the method provided in an embodiment of the present application.

[0026] Fig.14 This is a schematic diagram of the power information displayed in the status bar when earphone B is disconnected, applying the method of an embodiment of the present application.

[0027] Fig.15 This is a schematic diagram of the power information displayed in the status bar when earphone A and earphone B are disconnected, applying the method of an embodiment of the present application.

[0028] Fig.16 It is a schematic structural diagram of an apparatus for displaying the battery level of a Bluetooth audio device provided in one embodiment of the present application.

[0029] Fig.17 It is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] The technical solution in this application will be described in detail below in conjunction with the accompanying drawings.

[0031] As a low-power wireless communication technology, Bluetooth is used to transmit audio information, file information, broadcast information and other data across devices, and can realize short-distance data exchange between different devices. Bluetooth technology not only eliminates the traditional connection cables between devices and replaces them with wireless connections; it also has high penetrability, can penetrate different substances and diffuse between substances, and uses frequency modulation spread spectrum technology, which has strong anti-interference and high security, and is widely used in people's daily communications.

[0032] Thanks to the development of Bluetooth technology, Bluetooth-based audio devices such as wireless headphones and wireless speakers are increasingly accepted by users, and their implementation forms are becoming more and more diverse, such as multi-channel stereo Bluetooth speakers, wireless headphones, etc.

[0033] When the above audio device is in use, it is necessary to establish a wireless connection based on Bluetooth with the electronic device (i.e., the sound source device) to process the audio service of the electronic device. In some scenarios, the audio device can also feedback the user operation to the electronic device, as well as feedback the user's voice data, etc.

[0034] The above-mentioned audio services may include multiple types. For example, they may include media services and call services. Among them, media services may include playing music, recordings, sounds in video files, background music in games, call prompts and other audio services for users. The call service may include playing the voice data of the other end for the user in scenarios such as phone calls, WeChat voice messages, audio calls, video calls, games, voice assistants, etc., or collecting the user's voice data and sending it to the other end.

[0035] See also Figure 1 , which shows a schematic diagram of the architecture of a Bluetooth communication system 100 using the method provided in the embodiment of the present application. Figure 1 As shown, the system 100 may include a Bluetooth audio device 110 and an electronic device 120 .

[0036] Among them, the Bluetooth audio device 110 can be a Bluetooth headset or an audio playback device that supports the Bluetooth protocol, such as the Bluetooth speaker mentioned above.

[0037] Optionally, the Bluetooth audio device 110 may also be a computer device that supports the Bluetooth protocol, such as a smart phone, a tablet computer, a smart TV, a personal computer, etc.

[0038] The embodiment of the present application is described by taking the wireless device as a wireless headset as an example. The wireless headset can be of various types, such as earplug type, in-ear type, head-mounted type, earmuff type or ear-hanging type wireless headset. The wireless headset may include a first part and a second part respectively worn on the left ear and right ear of the user, which may be connected by a connecting line, such as a neckband wireless headset; or may be two independent parts, such as a true wireless stereo (TWS) headset.

[0039] Figure 2A The figure shows a schematic diagram of the structure of a typical Bluetooth audio device 110, which is a wireless headset, including at least one processor 111, at least one memory 112, a wireless communication module 113, an audio module 114, a power module 115, and an input / output interface 116.

[0040] The processor 111 may include one or more interfaces for connecting to other components of the wireless headset 110 .

[0041] The memory 112 can be used to store program codes, such as program codes for processing audio services of electronic devices (such as music playback, making / receiving calls, etc.), managing the charging of wireless headphones, and controlling wireless headphones to wirelessly pair with other electronic devices. The processor 111 can be used to execute the above application code and call related modules to implement the functions of the wireless headphones 110 in the embodiment of the present application.

[0042] The wireless communication module 113 can be used to support data exchange between the wireless headset and other electronic devices or headset boxes, including wireless communication such as Bluetooth, WLAN (such as Wi-Fi), Zigbee, FM, NFC, IR, or general 2.4G / 5G wireless communication technology. In some embodiments, the wireless communication module 113 can be a Bluetooth chip. The wireless headset 110 can be paired with the Bluetooth chip of other electronic devices through the Bluetooth chip and establish a wireless connection to achieve wireless communication and business processing between the wireless headset 110 and other electronic devices through the wireless connection.

[0043] The wireless communication module 113 may also include an antenna. The wireless communication module 113 receives electromagnetic waves via the antenna, modulates the electromagnetic wave signal, performs filtering, and sends the processed signal to the processor 111. The wireless communication module 113 may also receive a signal to be sent from the processor 111, modulate the signal, amplify the signal, and convert it into an electromagnetic wave for radiation via the antenna.

[0044] The audio module 114 can be used to manage audio data and implement wireless headset input and output audio signals. For example, the audio module 114 can obtain audio signals from the wireless communication module 113, or transmit audio signals to the wireless communication module 113, to implement functions such as making and receiving calls, playing music, starting / turning off the voice assistant of the electronic device connected to the headset, and receiving / sending the user's voice data through the Bluetooth headset. The audio module 114 may include a speaker (or earpiece, receiver) component for outputting audio signals, a microphone (or microphone, microphone), a microphone receiving circuit matched with the microphone, etc. The speaker can be used to convert an audio electrical signal into a sound signal and play it. The microphone can be used to convert a sound signal into an audio electrical signal.

[0045] The power module 115 can be used to provide system power for the wireless headset, power each module of the wireless headset, support the wireless headset to receive charging input, etc. The power module 115 may include a power management unit (PMU) and a battery. Among them, the power management unit can receive external charging input; transform the electrical signal input by the charging circuit and provide it to the battery for charging, and can also transform the electrical signal provided by the battery and provide it to other modules such as the audio module 114 and the wireless communication module 113; and prevent the battery from being overcharged, over-discharged, short-circuited or overcurrent, etc. In some embodiments, the power module 115 may also include a wireless charging coil for wirelessly charging the wireless headset. In addition, the power management unit can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.

[0046] Multiple input / output interfaces 116 can be used to provide a wired connection for charging or communication between the wireless headset and the headset box. In some embodiments, the input / output interface can be a USB interface. In other embodiments, the input / output interface 116 can be a headset electrical connector. When the wireless headset is placed in the headset box, an electrical connection can be established between the headset electrical connector and the electrical connector in the headset box to charge the battery in the wireless headset. In other embodiments, after the electrical connection is established, the wireless headset can also communicate data with the headset box, for example, it can receive a pairing instruction from the headset box.

[0047] The wireless headset may further include a sensor 117. For example, the sensor 117 may be a distance sensor or a proximity light sensor, which may be used to determine whether the wireless headset is worn by the user. Exemplarily, the wireless headset may use the distance sensor to detect whether there is an object near the wireless headset, thereby determining whether the wireless headset is worn by the user. When it is determined that the wireless headset is worn, the wireless headset may turn on a speaker.

[0048] The sensor 117 may also include: a touch sensor for detecting a user's touch operation; a fingerprint sensor for detecting a user's fingerprint and identifying the user; an ambient light sensor that can adaptively adjust some parameters (such as volume) according to the perceived brightness of the ambient light; and other sensors. In some embodiments, the touch sensor can detect a user's single click, double click, multiple clicks, long press, heavy press, and other touch operations, and can also perform user fingerprint recognition to authenticate the user's identity in business scenarios such as payment transactions.

[0049] Figure 2A The various components shown may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application specific integrated circuits. Figure 2A The structure shown does not constitute a specific limitation on the wireless headset (or wireless audio device) in this application. Figure 2A More or fewer components may be shown, two or more components may be combined, or there may be a different configuration of components.

[0050] Exemplarily, when the wireless headset is a TWS headset, Figure 2B As shown, the wireless headset 110 may include a first headset 110A (also called a left earplug, or a first part) worn on the left ear and a second headset 110B (also called a right earplug, or a second part) worn on the right ear. The headset body may include a housing and internal components. The internal components are arranged in a cavity formed by the housing. The internal components may include components in the above-mentioned audio module, power module, wireless communication module and other modules.

[0051] also, Figure 2B A schematic diagram of an earphone box 110C for storing a first earphone 110A and a second earphone 110B is also shown. In some embodiments, the earphone box may have one or more magnets inside to attract the earphone body into the cavity inside the earphone box. The earphone box may include a battery and multiple input / output interfaces. In some embodiments, the input / output interface may be a box electrical connector. When a pair of box electrical connectors in the earphone box are electrically connected to two earphone electrical connectors in the earphone body, respectively, the earphone box can charge the battery in the earphone body through its own battery.

[0052] In other embodiments, the headset box may be provided with at least one touch control, which can be used to trigger the wireless headset to perform pairing reset or charge the wireless headset. The headset box may also be provided with one or more power indicator lights to prompt the user the power level of the battery in the headset box and the power level of the battery in each headset body in the headset box.

[0053] In other embodiments, the headset box may further include components such as a processor and a memory. The memory may be used to store application code, and the processor of the headset box controls execution to implement various functions of the headset box. For example, the processor of the headset box executes the application code stored in the memory, and charges the wireless headset after detecting that the wireless headset is placed in the headset box and the lid of the headset box is closed.

[0054] In addition, the earphone box may be provided with a charging interface for charging the battery of the earphone box. The earphone box may also include a wireless charging coil for wirelessly charging the battery of the earphone box. It is understandable that the earphone box may also include other components, which will not be described one by one here.

[0055] Re-read Figure 1 The electronic device 120 may be a device supporting the Bluetooth protocol. The electronic device may be, for example, a mobile phone, a media player (such as MP3, MP4, etc.), a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a personal digital assistant (PDA), a television, or a smart watch, etc. The specific type of the electronic device is not limited in the embodiment of the present application.

[0056] exist Figure 1 In the system shown, the Bluetooth audio device and the electronic device follow the Bluetooth protocol to achieve Bluetooth connection and information interaction.

[0057] The Bluetooth audio devices mentioned above are usually powered by batteries. During their use, they need to provide users with real-time power information to facilitate their use. There are many ways to provide power feedback for Bluetooth audio devices. For example Figure 3 As shown in , the power information can be displayed on the main screen of the electronic device such as the mobile phone connected thereto, or as Figure 4 As shown, the battery information of the Bluetooth audio device can be displayed in the Bluetooth setting option for the user to view.

[0058] However, in some scenarios, such as when playing games or watching short videos, Figure 3 and Figure 4 The display mode shown in will bring a lot of inconvenience to the user; at this time, the user needs to exit the application currently running in the system foreground, switch to the home screen or enter the settings interface to obtain the power information. In order to solve the problem of inconvenience in obtaining the power information, some related technologies, such as Figure 5As shown, the power information of the Bluetooth audio device can be displayed in the status bar of the system interface of the mobile phone or other electronic device. Such a setting allows the user to conveniently know the remaining power of the Bluetooth audio device without exiting the APP while using it.

[0059] With the development of Bluetooth technology, the Bluetooth Special Interest Group (SIG) has proposed a new generation of Bluetooth audio technology, namely Bluetooth Low Energy audio (BLE-audio). Compared with traditional Bluetooth technology, this technology can transmit audio in the Bluetooth low energy state, which is conducive to improving the endurance and performance of Bluetooth audio devices; at the same time, relying on the new Bluetooth audio coding (Low Complexity Communication Codec, LC3) technology, it can improve the delay and sound quality problems, and achieve low delay and high sound quality.

[0060] Take the above Bluetooth audio device as a TWS headset as an example. Figure 6 As shown in the figure, the data transmission of traditional Bluetooth technology adopts the asynchronous transmission mode of left and right earphones. The two earphones in the TWS earphone are the main earphone and the auxiliary earphone, and a Bluetooth connection is established between the main earphone and the auxiliary earphone; at the same time, the main earphone establishes a Bluetooth connection with the mobile phone, and the data between the auxiliary earphone and the mobile phone is forwarded through the main earphone. For this type of Bluetooth audio device, the main earphone can obtain the power information of the auxiliary earphone through the connection with the auxiliary earphone, and then synchronously transmit the power information of the main and auxiliary earphones to the electronic device, so that the power information of the TWS earphone is displayed on the mobile phone.

[0061] For Bluetooth headsets using Bluetooth low energy audio technology, Figure 7 As shown, the two earphones do not distinguish between primary and secondary, and both establish links with the mobile phone. The sound signal on the mobile phone can be transmitted to the left and right earphone units at the same time, which can effectively avoid radio wave loss, reduce latency and improve connection stability, thereby bringing a better user experience.

[0062] Figure 8 The following is an example of a solution for displaying the power of a TWS headset based on BLE audio. The TWS headset includes a headset A and a headset B. Figure 8 This method and its existing problems are explained in detail with examples.

[0063] Figure 8 The scheme includes steps S801-S813.

[0064] Step S801: Take earphone A out of the earphone box and establish a BLE audio connection with the mobile phone.

[0065] Step S802: Headphone A sends power information to the Bluetooth module of the mobile phone.

[0066] Step S803: the mobile phone Bluetooth module notifies the mobile phone system UI of the battery information of the headset A.

[0067] Step S804: The mobile phone system UI updates the battery level of headset A in the status bar, such as Fig. 9 As shown, the status bar of the mobile phone now displays the battery level of earphone A.

[0068] Step S805: Take earphone B out of the earphone box and establish a BLE audio connection with the mobile phone.

[0069] Step S806: Headphone B sends power information to the Bluetooth module of the mobile phone.

[0070] Step S807: the mobile phone Bluetooth module notifies the mobile phone system UI of the battery information of the headset B.

[0071] Step S808: The mobile phone system UI updates the battery level of earphone B in the status bar, such as Fig.10 As shown, the status bar of the mobile phone now displays the battery level of earphone B.

[0072] Step S809: earphone A is placed in the box and the lid is closed, while earphone B remains worn on the ear.

[0073] Step S810, earphone A notifies the mobile phone Bluetooth module of the disconnection information of earphone A. It should be noted that after earphone A is placed in the earphone box, the Bluetooth physical link (Asynchronous Connectionless, ACL) between earphone A and the mobile phone Bluetooth module will remain connected for a certain period of time (for example, 3 seconds), at which time earphone A can send the disconnection information of earphone A to the mobile phone Bluetooth module through the ACL link.

[0074] Step S811: the mobile phone Bluetooth module resets the battery level of earphone A to -1.

[0075] Step S812: the mobile phone Bluetooth module notifies the mobile phone system UI of the power level of earphone A -1.

[0076] Step S813, the mobile phone system UI refreshes the battery level -1 in the status bar; Fig.11 As shown, the status bar does not display the battery level of the headset.

[0077] From the above solution, it can be seen that after earphone A is taken off and put into the earphone box, earphone B is still worn on the earphone. At this time, the mobile phone will reset the battery level of earphone A to -1 and report it to the mobile phone system UI. After receiving the notification, the mobile phone system UI refreshes the icon in the status bar. At this time, although earphone B is still worn on the ear, the mobile phone system UI cannot correctly display the battery level of earphone B, which makes it impossible for the user to easily obtain the battery level of the currently connected earphone, affecting the user experience.

[0078] In view of the above problems, embodiments of the present application provide a method and apparatus for displaying the battery level of a Bluetooth audio device, a storage medium, and an electronic device.

[0079] The following first describes the method embodiments of the present application in detail with reference to the accompanying drawings. Fig.12 What is shown is a schematic flow chart of a method for displaying the power level of a Bluetooth audio device provided in an embodiment of the present application.

[0080] The power display method of a Bluetooth audio device provided in an embodiment of the present application is applied to an electronic device that can be connected to a Bluetooth audio device. The electronic device referred to here refers to various types of electronic devices that can establish a low-power Bluetooth audio connection with a Bluetooth audio device, including but not limited to smartphones, tablet computers, portable computers, desktop computers, and wearable devices.

[0081] It can also be understood that in an embodiment of the present application, the above-mentioned electronic device can establish a BLE audio connection with multiple Bluetooth audio devices, and the multiple Bluetooth audio devices can be, for example, the left earphone and the right earphone of a TWS headset, or the multiple Bluetooth audio devices can also be multiple Bluetooth speakers supporting multi-channels, etc.

[0082] Fig.12 The method includes steps S1210-S1230.

[0083] In step S1210, in response to a first Bluetooth audio device among the multiple Bluetooth audio devices being disconnected from the electronic device, at least one second Bluetooth audio device among the multiple Bluetooth audio devices that is in the same group as the first Bluetooth audio device is determined.

[0084] The first Bluetooth audio device may be any one of a plurality of Bluetooth audio devices.

[0085] For example, the first Bluetooth audio device being disconnected from the electronic device may include: the first Bluetooth audio device being disconnected from the electronic device due to insufficient power or being disconnected from the electronic device in response to a user operation.

[0086] In an embodiment of the present application, multiple Bluetooth audio devices connected to an electronic device may belong to different groups. For example, the electronic device can be connected to two pairs of TWS headphones at the same time for music sharing; or, the electronic device can be connected to a pair of TWS headphones and multiple Bluetooth speakers at the same time.

[0087] When the first Bluetooth audio device is one of a pair of TWS earphones, it is necessary to determine another earphone in the same group as the first Bluetooth audio device.

[0088] There may be many methods for determining at least one second Bluetooth audio device in the same group as the first Bluetooth audio device. For example, after the first Bluetooth audio device is disconnected from the electronic device, a Bluetooth audio device list may be displayed to the user of the electronic device, the list including device information of all Bluetooth audio devices currently connected to the electronic device, and the user may select at least one second Bluetooth audio device in the same group as the first Bluetooth audio device from the multiple Bluetooth audio devices in the list.

[0089] It should also be noted that when a Bluetooth audio device establishes a connection with an electronic device, it usually sends a Bluetooth broadcast to the electronic device, and the Bluetooth broadcast carries the group information of the Bluetooth audio device, and the group information may be, for example, a group identifier (group ID) for identifying the group in which the Bluetooth audio device is located. For example, the Bluetooth broadcasts sent by multiple Bluetooth audio devices belonging to the first group to the electronic device all contain the "group1" field to indicate that they belong to the "first group".

[0090] Based on this, in an embodiment of the present application, the above group identifier can be used to determine at least one second Bluetooth audio device that is in the same group as the first Bluetooth audio device.

[0091] In step S1220, the power level of the target Bluetooth audio device is determined.

[0092] The target Bluetooth audio device is one of the at least one second Bluetooth audio device.

[0093] In step S1230, the battery level of the target Bluetooth audio device is displayed in a status bar of a system interface of the electronic device.

[0094] In the method provided in the embodiment of the present application, after the connection between the first Bluetooth audio device and the electronic device is disconnected, the electronic device does not immediately refresh the power level of the first Bluetooth audio device -1 in the status bar, but instead determines a target Bluetooth audio device belonging to the same group as the first Bluetooth audio and displays its power level, so that the user can more conveniently obtain the power level of the currently connected headphones, thereby improving the user experience.

[0095] In some embodiments, the power display method provided by the present application may further include: determining the power of at least one second Bluetooth audio device, and determining a second Bluetooth audio device with the lowest power among the at least one Bluetooth audio device as a target Bluetooth audio device.

[0096] The method for determining the power level of at least one second Bluetooth audio device may be, for example, that the electronic device queries the power level of the at least one second Bluetooth audio device in turn.

[0097] In some embodiments, the above method may further include, when multiple Bluetooth audio devices in the same group are disconnected from the electronic device, not displaying the battery level of the Bluetooth audio device in the status bar of the electronic device.

[0098] Combine the following Fig.13 , the power display method provided in the above embodiment of the present application is described in detail with examples. Fig.13 The following is still explained using the example that the Bluetooth audio device is a TWS headset, which includes headset A and headset B.

[0099] Fig.13 The method includes steps S1301-S13**.

[0100] Step S1301: Take earphone A out of the earphone box and establish a BLE audio connection with the mobile phone.

[0101] Step S1302: Headphone A sends power information to the Bluetooth module of the mobile phone.

[0102] Step S1303: the mobile phone Bluetooth module notifies the mobile phone system UI of the battery information of earphone A.

[0103] Step S1304, the mobile phone system UI refreshes the power level of headset A in the status bar; the power level displayed in the mobile phone status bar at this time can be referred to in the previous Fig. 9 .

[0104] Step S1305: Take earphone B out of the earphone box and establish a BLE audio connection with the mobile phone.

[0105] Step S1306: Headphone B sends power information to the Bluetooth module of the mobile phone.

[0106] Step S1307: the mobile phone Bluetooth module notifies the mobile phone system UI of the battery information of the headset B.

[0107] Step S1308, the mobile phone system UI refreshes the power level of earphone B in the status bar. The power level displayed in the mobile phone status bar can be found in the previous section. Fig.10 .

[0108] Step S1309: put earphone B into the box and keep earphone B on the ear.

[0109] Step S1310, earphone B notifies the mobile phone Bluetooth module of the disconnection information of earphone B. It is understandable that after earphone B is placed in the earphone box, the Bluetooth physical link (Asynchronous Connectionless, ACL) between earphone B and the mobile phone Bluetooth module will remain connected for a certain period of time (for example, 3 seconds), at which time earphone B can send the disconnection information of earphone B to the mobile phone Bluetooth module through the ACL link.

[0110] Step S1311: The Bluetooth module of the mobile phone detects earphone A which is in the same group as earphone B.

[0111] Step S1312: The mobile phone Bluetooth module notifies the mobile phone system UI of the actual battery level of earphone A.

[0112] Step S1313, the mobile phone system UI refreshes the battery level of earphone A and displays it in the status bar; Fig.14 As shown, at this time, the status bar of the mobile phone system UI displays the battery level of earphone A.

[0113] Step S1314: both earphone A and earphone B are placed in the box and the lid is closed.

[0114] Step S1315, earphone A notifies the mobile phone Bluetooth module of the disconnection information of earphone A.

[0115] Step S1316, the mobile phone Bluetooth module detects that the connected devices that are currently not in the same group as the headset A no longer exist, and resets the power of all devices.

[0116] Step S1317, the mobile phone Bluetooth module notifies the mobile phone system UI of the power level -1.

[0117] Step S1318, the mobile phone system UI refreshes the battery level -1 in the status bar; Fig.15 As shown, the status bar does not display the battery level of the headset.

[0118] Combination of the above Figure 1-Figure 15 , describes the method embodiment of the present application in detail, and describes the device embodiment of the present application in conjunction with the accompanying drawings; it should be understood that the description of the device embodiment corresponds to the method embodiment, and therefore, the part that is not described in detail can refer to the method embodiment above.

[0119] Fig.15 It is a schematic structural diagram of an apparatus 1500 for displaying the battery level of a Bluetooth audio device provided in one embodiment of the present application. The apparatus is applied to an electronic device, and the electronic device establishes a low-power Bluetooth audio connection with multiple Bluetooth audio devices. The electronic device can be the electronic device in any of the embodiments described above. Fig.15 The device 1500 in the embodiment includes:

[0120] A first determining unit 1510 is configured to determine, in response to a first Bluetooth audio device among the multiple Bluetooth audio devices being disconnected from the electronic device, at least one second Bluetooth audio device among the multiple Bluetooth audio devices that is in the same group as the first Bluetooth audio device;

[0121] The second determining unit 1520 is configured to determine the power level of a target Bluetooth audio device; wherein the target Bluetooth audio device is one of the at least one second Bluetooth audio device;

[0122] The display unit 1530 is configured to display the battery level of the target Bluetooth audio device in a status bar of a system interface of the electronic device.

[0123] Optionally, the first determining unit is used to: determine a group identifier of the first Bluetooth audio device; and determine at least one Bluetooth audio device among the multiple Bluetooth audios that matches the group identifier of the first Bluetooth audio device as the at least one second Bluetooth audio device.

[0124] Optionally, the second determining unit is used to poll the battery level of the at least one second Bluetooth audio device, and determine a second Bluetooth audio device with the lowest battery level among the at least one second Bluetooth audio device as the target Bluetooth audio device.

[0125] Optionally, the display unit is further used to: reset the power level in the status bar of the electronic device when the multiple Bluetooth audio devices are disconnected from the electronic device.

[0126] Fig.17 It is a schematic structural diagram of an electronic device 1700 provided in an embodiment of the present application. Fig.17 The dotted line in the figure indicates that the unit or module is optional. The electronic device 1700 can be used to implement the method described in the above method embodiment. The electronic device 1700 can be any type of electronic device mentioned above, and the device 1700 can also be a chip or integrated circuit capable of implementing the method of the above embodiment.

[0127] Fig.17The electronic device 1700 in the embodiment may include one or more processors 1710. The processor 1710 may support the electronic device 1700 to implement the method described in the method embodiment of the foregoing text. The processor 1710 may be a general-purpose processor or a special-purpose processor. For example, the processor may be a central processing unit (CPU). Alternatively, the processor 1710 may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0128] The electronic device 1700 may further include one or more memories 1720. The memory 1720 stores a program, which can be executed by the processor 1710, so that the processor 1710 executes the method described in the above method embodiment. The memory 1720 may be independent of the processor 1710 or integrated in the processor 1710.

[0129] The electronic device 1700 may further include a transceiver 1730. The processor 1710 may communicate with other devices or chips through the transceiver 1730. For example, the processor 1710 may transmit and receive data with other devices or chips through the transceiver 1730.

[0130] The embodiment of the present application also provides a computer-readable storage medium for storing a program. The computer-readable storage medium can be applied to the electronic device provided in the embodiment of the present application, and the program enables the computer to execute the method in each embodiment of the present application.

[0131] The present application also provides a chip in an embodiment, including a processor, which can be used to call and run a computer program from a memory, so that a device equipped with the chip performs the method described in the above method embodiment. It is understood that the processor can be any type of processor mentioned above. It is understood that the memory can be independent of the chip or integrated in the chip.

[0132] The embodiment of the present application also provides a computer program product. The computer program product includes a program. The computer program product can be applied to the electronic device provided in the embodiment of the present application, and the program enables the computer to execute the method in each embodiment of the present application.

[0133] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0134] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0135] In the several embodiments provided in the present application, it should be understood that the disclosed systems and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0136] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0137] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0138] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be read by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)).

[0139] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for displaying the power of a Bluetooth audio device, characterized in that: The method is applied to an electronic device, wherein the electronic device establishes a low-power Bluetooth audio connection with a plurality of Bluetooth audio devices, and the method comprises: In response to a first Bluetooth audio device among the multiple Bluetooth audio devices being disconnected from the electronic device, determining at least one second Bluetooth audio device among the multiple Bluetooth audio devices that is in the same group as the first Bluetooth audio device; Determine a power level of a target Bluetooth audio device, wherein the target Bluetooth audio device is one of the at least one second Bluetooth audio device; The battery level of the target Bluetooth audio device is displayed in a status bar of a system interface of the electronic device.

2. The method according to claim 1, characterized in that: The determining at least one second Bluetooth audio device in the plurality of Bluetooth audio devices that is in the same group as the first Bluetooth audio device comprises: determining a group identifier of the first Bluetooth audio device; At least one Bluetooth audio device among the plurality of Bluetooth audios that matches the group identifier of the first Bluetooth audio device is determined as the at least one second Bluetooth audio device.

3. The method according to claim 1, characterized in that The method further comprises: The power level of the at least one second Bluetooth audio device is determined, and a second Bluetooth audio device with the lowest power level among the at least one second Bluetooth audio device is determined as the target Bluetooth audio device.

4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: When multiple Bluetooth audio devices in the same group are disconnected from the electronic device, the battery level is not displayed in the status bar of the electronic device.

5. A device for displaying the battery level of a Bluetooth audio device, characterized in that: The device is applied to an electronic device, and the electronic device establishes a low-power Bluetooth audio connection with a plurality of Bluetooth audio devices. The device comprises: a first determining unit, configured to determine, in response to a first Bluetooth audio device among the multiple Bluetooth audio devices being disconnected from the electronic device, at least one second Bluetooth audio device among the multiple Bluetooth audio devices that is in the same group as the first Bluetooth audio device; A second determining unit, configured to determine a power level of a target Bluetooth audio device; wherein the target Bluetooth audio device is one of the at least one second Bluetooth audio device; A display unit is used to display the battery level of the target Bluetooth audio device in a status bar of a system interface of the electronic device.

6. The device according to claim 5, characterized in that The first determining unit is used for: determining a group identifier of the first Bluetooth audio device; At least one Bluetooth audio device among the plurality of Bluetooth audios that matches the group identifier of the first Bluetooth audio device is determined as the at least one second Bluetooth audio device.

7. The device according to claim 5, characterized in that The second determining unit is used for: The power level of the at least one second Bluetooth audio device is determined, and a second Bluetooth audio device with the lowest power level among the at least one second Bluetooth audio device is determined as the target Bluetooth audio device.

8. The device according to any one of claims 5 to 7, characterized in that: The display unit is also used for: When multiple Bluetooth audio devices in the same group are disconnected from the electronic device, the battery level is not displayed in the status bar of the electronic device.

9. An electronic device, characterized in that: The system comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and execute the computer program from the memory to implement the method according to any one of claims 1 to 4.

10. A chip, characterized in that: The system comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and execute the computer program from the memory to implement the method according to any one of claims 1 to 4.

11. A computer-readable storage medium, characterized in that: The storage medium is used to store a computer program, and when the computer program is executed, the method according to any one of claims 1 to 4 is implemented.