Earphone volume display method and device, electronic equipment and storage medium

By storing a set of volume value sequences in the electronic device and determining whether the values ​​returned by the Bluetooth headset match, the problem of inconsistent volume value display caused by Bluetooth headset delay is solved, and the stability and consistency of the user interface display are improved.

CN120640183APending Publication Date: 2025-09-12GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510754466.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-06
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

During the communication process between Bluetooth headphones and electronic devices, Bluetooth transmission delay causes the volume value display on the electronic device to be delayed or jump, giving users a bad experience.

Method used

When the electronic device is connected to a Bluetooth headset for communication, in response to a volume adjustment instruction, a first volume value is sent and stored in a volume value sequence set. When a second volume value returned by the Bluetooth headset is received, it is determined whether it belongs to the volume value sequence set. If so, the user interface volume value is maintained unchanged; otherwise, the volume value is updated.

Benefits of technology

This avoids volume jumps in the user interface caused by delayed volume return from Bluetooth headsets, ensuring that the volume on electronic devices is consistent with that on Bluetooth headsets, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120640183A_ABST
    Figure CN120640183A_ABST
Patent Text Reader

Abstract

The invention provides an earphone volume display method and device, electronic equipment and a storage medium, the method is applied to the field of Bluetooth communication, and the method comprises the following steps: under the condition that the electronic equipment is in communication connection with a Bluetooth earphone, in response to a control instruction for adjusting the volume of the Bluetooth earphone, sending the control instruction to the Bluetooth earphone, the control instruction comprises a first volume value, updating a volume value displayed on a user interface of the electronic equipment into the first volume value, and storing the first volume value into a volume value sequence set of the electronic equipment; under the condition that a second volume value sent by the Bluetooth headset is received, determining whether the second volume value belongs to the volume value sequence set or not; and under the condition that the second volume value belongs to the volume value sequence set, keeping the volume value displayed on the user interface unchanged. According to the method, whether the volume displayed on the electronic equipment is adjusted or not can be determined under the condition that the earphone is delayed to return to the volume, so that the volume on the electronic equipment is prevented from jumping.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Bluetooth communications, and more specifically, to a method, device, electronic device, and storage medium for displaying headphone volume in the field of electronic information. Background Art

[0002] With the development of interactive electronic devices, users can use Bluetooth headphones to listen to music in electronic devices, which provides users with a more private listening experience. When users use Bluetooth headphones to listen to audio, there is a need to adjust the audio. To facilitate users to adjust the volume on the headphones, the volume of the audio in the Bluetooth headphones can be adjusted on the electronic device.

[0003] In related art, when an electronic device communicates with a Bluetooth headset, the electronic device first sends the user's adjustment command to the Bluetooth headset. After the Bluetooth headset adjusts the volume according to the adjustment command, the Bluetooth headset returns the successfully adjusted volume value to the electronic device, which then displays the volume value in the user interface. However, if the Bluetooth transmission is blocked, the electronic device will delay the return of the successfully adjusted volume value to the electronic device, resulting in a delay or jump in the progress bar display on the user interface, which will provide a poor user experience. Summary of the Invention

[0004] The present application provides a method, device, electronic device and storage medium for displaying headphone volume. The method can determine whether to adjust the volume displayed on the electronic device when the headphone returns to volume with delay, so as to avoid volume jumps on the electronic device.

[0005] In a first aspect, a method for displaying headphone volume is provided, the method comprising:

[0006] When the electronic device is communicatively connected to a Bluetooth headset, in response to a control instruction for adjusting the volume of the Bluetooth headset, the control instruction is sent to the Bluetooth headset, the control instruction including a first volume value, the volume value displayed on the user interface of the electronic device is updated to the first volume value, and the first volume value is stored in a volume value sequence set of the electronic device;

[0007] Upon receiving a second volume value sent by the Bluetooth headset, determining whether the second volume value belongs to the volume value sequence set;

[0008] In a case where the second volume value belongs to the volume value sequence set, the volume value displayed on the user interface is maintained unchanged.

[0009] Through the above method, when an electronic device is in communication with a Bluetooth headset, in response to a control instruction for adjusting the volume of the Bluetooth headset, a control instruction is sent to the Bluetooth headset, the control instruction including a first volume value, and the volume value displayed on the user interface of the electronic device is updated to the first volume value, and the first volume value is stored in the volume value sequence set of the electronic device. When a second volume value sent by the Bluetooth headset is received, it is determined whether the second volume value belongs to the volume value sequence set. Since the first volume value is used to update the volume value of the Bluetooth headset on the user interface, and the second volume value is the volume value returned by the Bluetooth headset, the second volume value can update the volume value on the user interface. If there is a delay in the electronic device receiving the second volume value, directly updating the volume value on the user interface to the second volume value will cause the volume value on the user interface to jump. In this case, it is determined whether the second volume value belongs to the volume value sequence set. Since the volume value sequence set stores the first volume value, it is determined whether the second volume value belongs to the volume value sequence set. If the second volume value belongs to the volume value sequence set, the volume value displayed on the user interface remains unchanged. That is, since the electronic device has updated the volume value displayed on the user interface to the first volume value before the Bluetooth headset adjusts the volume value, if the electronic device receives a second volume value returned by the Bluetooth headset and it belongs to the volume value sequence set, it means that the second volume value has been updated to the user interface. In this case, even if the received second volume value is delayed, it can be determined that the volume value displayed on the user interface is maintained unchanged, so as to avoid updating the volume value on the user interface by the second volume value, thereby solving the problem of the volume value on the user interface not matching the volume value in the Bluetooth headset due to the delay in returning the second volume value of the Bluetooth headset.

[0010] In conjunction with the first aspect, in some possible implementations, storing the first volume value in a volume value sequence set of the electronic device includes:

[0011] Obtaining the timestamp of the first volume value;

[0012] A corresponding relationship between the first volume value and the timestamp of the first volume value is established and stored in a volume value sequence set of the electronic device.

[0013] Through the above method, multiple first volume values ​​can be stored in a volume value sequence set of the electronic device. Since the volume value sequence set contains the correspondence between the first volume value and the timestamp of the first volume value, it is possible to determine whether the second volume value sent by the Bluetooth headset is delayed based on the volume value sequence set, thereby determining whether the volume value on the user interface needs to be updated to the second volume value.

[0014] In conjunction with the first aspect, in some possible implementations, determining whether the second volume value belongs to the volume value sequence set includes:

[0015] It is determined whether the second volume value is different from all first volume values ​​in the volume value sequence set. If so, it is determined that the second volume value does not belong to the volume value sequence set; if not, it is determined that the second volume value belongs to the volume value sequence set.

[0016] Through the above method, since the first volume value is stored in the volume value sequence set, it is determined whether the second volume value is different from each first volume value in the volume value sequence set, so that it is possible to determine whether the second volume value belongs to the volume value sequence set, and thus the trigger source of the second volume value can be determined.

[0017] In conjunction with the first aspect, in certain possible implementations, upon receiving the second volume value sent by the Bluetooth headset, a destination identifier sent by the Bluetooth headset is also received, and determining whether the second volume value belongs to the volume value sequence set includes:

[0018] When the target identifier is the first identifier of the electronic device, determining that the second volume value belongs to the volume value sequence set;

[0019] When the target identifier is the second identifier of the Bluetooth headset, it is determined that the second volume value does not belong to the volume value sequence set.

[0020] Through the above method, when the electronic device is communicatively connected to the Bluetooth headset, the Bluetooth protocol can support two-way communication between the electronic device and the Bluetooth headset. Therefore, not only can the volume value of the Bluetooth headset be controlled on the electronic device, but the volume value can also be adjusted directly on the Bluetooth headset. In order to determine whether to update the volume value on the user interface based on the second volume value, it is determined based on the target identifier whether the second volume value belongs to the volume value sequence set to avoid the volume value progress bar on the user interface from jumping.

[0021] In conjunction with the first aspect, in some possible implementations, after the step of sending the control instruction to the Bluetooth headset, the method further includes:

[0022] Receive the response information sent by the Bluetooth headset;

[0023] Determine whether the volume value of the Bluetooth headset is adjusted successfully based on the response information;

[0024] In the case that the response information is adjustment failure information, it is determined that the volume value adjustment of the Bluetooth headset has failed, and the control instruction is sent to the Bluetooth headset again.

[0025] Through the above method, whether the volume value of the Bluetooth headset is adjusted successfully is determined based on the response information, so as to determine whether the communication between the Bluetooth headset and the electronic device is normal.

[0026] In conjunction with the first aspect, in certain possible implementations, when the second volume value belongs to the volume value sequence set, maintaining the volume value displayed on the user interface unchanged includes:

[0027] In a case where the second volume value belongs to the volume value sequence set, determining whether the second volume value is the same as the first volume value with the latest timestamp in the volume value sequence set;

[0028] When the second volume value is the same as the first volume value with the latest timestamp in the volume value sequence set, displaying the second volume value on the user interface of the electronic device;

[0029] If the second volume value is different from the first volume value with the latest timestamp in the volume value sequence set, the second volume value is discarded.

[0030] Through the above method, the volume value displayed on the user interface is maintained at the current volume value to avoid updating the volume value on the user interface by the second volume value, thereby solving the problem of the volume value progress bar on the user interface jumping due to the delay in returning the volume value of the Bluetooth headset.

[0031] In conjunction with the first aspect, in some possible implementations, the method further includes:

[0032] In a case where the second volume value does not belong to the volume value sequence set, the volume value on the user interface is adjusted to the second volume value.

[0033] Through the above method, when the trigger source of the control instruction is the Bluetooth headset, the user interface of the electronic device is updated based on the second volume value of the Bluetooth headset, so that the volume value progress bar on the user interface can follow the second volume value set by the user, solving the problem of the volume value on the user interface not matching the second volume value set by the user.

[0034] In a second aspect, a device for displaying headphone volume is provided, the device comprising:

[0035] an updating and storing module for, when the electronic device is communicatively connected to the Bluetooth headset, responding to a control instruction for adjusting the volume of the Bluetooth headset, sending the control instruction to the Bluetooth headset, the control instruction including a first volume value, updating the volume value displayed on the user interface of the electronic device to the first volume value, and storing the first volume value in a volume value sequence set of the electronic device;

[0036] a determination module, configured to, upon receiving a second volume value sent by the Bluetooth headset, determine whether the second volume value belongs to the volume value sequence set;

[0037] The maintaining module is configured to maintain the volume value displayed on the user interface unchanged when the second volume value belongs to the volume value sequence set.

[0038] In a third aspect, an electronic device is provided, comprising a memory and a processor. The memory is configured to store executable program code, and the processor is configured to call and run the executable program code from the memory, so that the electronic device executes the method executed by the headphone volume display method.

[0039] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, causes the computer to execute the method executed by the above-mentioned headphone volume display method.

[0040] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code is run on a computer, the computer executes the method executed by the above-mentioned headphone volume display method. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 This is a schematic flow chart of the interaction between a Bluetooth headset and an electronic device provided in an embodiment of the present application;

[0042] Figure 2 1 is a schematic diagram of an implementation environment of a method for displaying headphone volume provided in an embodiment of the present application;

[0043] Figure 3 is a schematic flow chart of a method for displaying headphone volume provided in an embodiment of the present application;

[0044] Figure 4 This is a schematic flow chart of another embodiment of the present application providing an interaction between a Bluetooth headset and an electronic device;

[0045] Figure 5 This is a schematic flow chart of another embodiment of the present application providing an interaction between a Bluetooth headset and an electronic device;

[0046] Figure 6 1 is a schematic structural diagram of a headphone volume display device provided in an embodiment of the present application;

[0047] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will clearly and thoroughly describe the technical solutions in this application in conjunction with the accompanying drawings. In the description of the embodiments of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more than two.

[0049] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0050] Nowadays, electronic devices support Bluetooth communication. Multimedia audio sources of electronic devices can be transmitted to Bluetooth headsets via Bluetooth communication technology. Users wearing Bluetooth headsets can listen to audio stored on the electronic devices. In actual applications, users can adjust the volume of the Bluetooth headset on the electronic device to make the volume of the Bluetooth headset meet the user's needs.

[0051] In related technologies, such as Figure 1As shown, the electronic device includes a user interface that displays a volume progress bar with 15 volume values. The electronic device's intermediate adaptation layer is capable of converting the volume command in the user interface into a format supported by the Bluetooth chip. The electronic device's intermediate adaptation layer sends the volume value carried in the volume command to the Bluetooth chip, which then sends it to the Bluetooth headset based on the Bluetooth protocol. The Bluetooth headset returns the successfully adjusted volume value to the user interface, and the electronic device updates the volume value displayed on the user interface based on the volume value returned by the Bluetooth headset. For example, if a user slides the volume progress bar on the electronic device from 1 to 15, when the volume value reaches 1, the electronic device sends the volume value 1 to the Bluetooth headset, adjusting the volume of the Bluetooth headset to volume 1. After the Bluetooth headset completes the adjustment, the Bluetooth headset sends the volume value 1 to the electronic device, and the electronic device updates the progress bar based on the volume value sent by the Bluetooth headset. However, in actual applications, if the Bluetooth headset transmission is blocked, there will be a delay in the volume value returned by the Bluetooth headset. For example, when the volume value progress bar on the user interface is slid to volume value 2, the electronic device generates a volume value 2 instruction, the user interface sends the volume value 2 instruction to the intermediate adaptation layer, the intermediate adaptation layer converts the volume value 2 instruction into a volume value 2 supported by the Bluetooth chip and sends it to the Bluetooth chip, the Bluetooth chip of the electronic device sends the volume value 2 to the Bluetooth headset based on the Bluetooth protocol, adjusts the volume value of the Bluetooth headset to volume value 2, and after the Bluetooth headset is adjusted, the Bluetooth headset sends the successfully adjusted volume value 2 to the electronic device. However, if the Bluetooth headset has an abnormality, there will be a delay in the process of the Bluetooth headset sending the volume value 2 to the electronic device, such as Figure 1 As shown, after the volume value progress bar on the user interface is slid to volume value 3, the volume value sent by the Bluetooth headset received by the user interface is volume value 2. If the electronic device updates the volume value progress bar based on the volume value 2, the volume value progress bar on the electronic device will jump from volume value 3 to volume value 2, which brings a poor experience to the user.

[0052] Figure 2 2 is a schematic diagram of an implementation environment of a method for displaying headphone volume provided in an embodiment of the present application.

[0053] For example, Figure 2 As shown, the implementation environment includes a vehicle computer 210 , a user interface 220 and a Bluetooth headset 230 .

[0054] With the rapid development of intelligent transportation technology, the car computer, as a core component of on-board electronic equipment, plays a vital role in vehicle information interaction, navigation control and system management. In order to facilitate a clear and intuitive description of the technical solution of the embodiment of this application, in this application, the car computer in the electronic equipment will be used as an example for specific explanation. It should be clear that the car computer is selected as an example only to more vividly demonstrate the technical principles and implementation methods of the embodiment of this application. The technical solution involved in the embodiment of this application is also applicable to other types of electronic equipment. Its core technical ideas and innovations have wide versatility and reference value in different electronic equipment scenarios.

[0055] The vehicle computer 210 is used to implement human-computer interaction. In some embodiments, the vehicle computer 210 is operated based on buttons or voice commands. For example, in response to the volume increase button being pressed, the vehicle computer 210 controls the Bluetooth headset 220 to increase the volume.

[0056] The user interface 220 is used to display various information of the multimedia system, such as audio information and headphone display information.

[0057] The Bluetooth headset 230 is an audio device connected to the vehicle computer 210 via Bluetooth wireless technology.

[0058] Figure 3 This is a schematic flowchart of a method for displaying headphone volume provided in an embodiment of the present application.

[0059] For example, Figure 3 As shown, taking the execution subject as an electronic device as an example, a method for displaying the headphone volume of the present application is described, and the method 300 includes the following steps.

[0060] Step 301: When the electronic device is communicatively connected to the Bluetooth headset, in response to a control instruction for adjusting the volume of the Bluetooth headset, a control instruction is sent to the Bluetooth headset, the control instruction including a first volume value, and the volume value displayed on the user interface of the electronic device is updated to the first volume value, and the first volume value is stored in a volume value sequence set of the electronic device.

[0061] It should be understood that the present solution is applied to electronic devices. When music needs to be played through a Bluetooth headset, the electronic device will establish a communication connection with the Bluetooth headset. Since the Bluetooth protocol can support two-way communication between the electronic device and the Bluetooth headset, the volume of the Bluetooth headset can be controlled on the electronic device. After responding to a control instruction to adjust the volume of the Bluetooth headset, the electronic device can send the control instruction to the Bluetooth headset, and the control instruction includes a first volume value, and adjust the volume value of the Bluetooth headset based on the control instruction. In actual applications, the volume value displayed on the user interface of the electronic device should be the same as that of the control instruction, so the volume value displayed on the user interface of the electronic device is updated to the first volume value.

[0062] Control instructions include voice instructions, gesture instructions, and touch instructions. For example, if a user issues a voice instruction to the user interface, "Adjust the volume of the Bluetooth headset to volume value 2," the electronic device responds to the voice instruction by sending the voice instruction, which includes the volume value 2, to the Bluetooth headset and updating the volume value displayed on the user interface of the electronic device to volume value 2. The first volume value is used to adjust the volume of the Bluetooth headset, and the volume value sequence set stores multiple first volume values.

[0063] It should also be understood that the first volume value is stored in the volume value sequence set of the electronic device to facilitate subsequent processing of interaction data between the Bluetooth headset and the electronic device based on the volume value sequence set. In actual application, during the sliding of the volume value progress bar on the user interface, the electronic device generates multiple control instructions, and the multiple control instructions include multiple first volume values.

[0064] Step 302: upon receiving a second volume value sent by the Bluetooth headset, determining whether the second volume value belongs to the volume value sequence set.

[0065] The second volume value is used to update the volume value of the Bluetooth headset on the user interface.

[0066] It should be understood that when an electronic device controls a Bluetooth headset to adjust the volume, the electronic device can send a control instruction to the Bluetooth headset to control the Bluetooth headset to adjust the volume. After the Bluetooth headset completes the volume adjustment, the electronic device can receive a second volume value sent by the Bluetooth headset. During the communication between the electronic device and the Bluetooth headset, the second volume value received by the electronic device may be delayed. If the electronic device directly updates the volume value displayed on the user interface based on the second volume value, it may easily cause the volume value displayed on the user interface to jump. In this case, it is determined whether the second volume value belongs to the volume value sequence set.

[0067] For example, Figure 4As shown, the user adjusts the volume value of the Bluetooth headset to volume 3 on the user interface of the electronic device. The volume value sequence set includes volume value 1, volume value 2 and volume value 3. The Bluetooth chip of the electronic device sends volume value 3 to the Bluetooth headset, so that the Bluetooth headset adjusts the volume value. In the case where the electronic device receives the second volume value sent by the Bluetooth headset, if there is a delay in receiving the second volume value, updating the volume value on the user interface based on the second volume value is likely to cause the volume value seen by the user to not match the volume value actually set by the user. In this case, it is determined on the electronic device whether the second volume value belongs to the volume value sequence set, that is, whether to directly update the volume value on the user interface to the second volume value.

[0068] Step 303: When the second volume value belongs to the volume value sequence set, the volume value displayed on the user interface is maintained unchanged.

[0069] The second volume value belonging to the volume value sequence set indicates that the second volume value is the same as at least the first volume value in the volume value sequence set. Figure 4 As shown, the volume value of the Bluetooth headset is adjusted to volume value 1 on the user interface of the electronic device, the electronic device sends the volume value 1 to the Bluetooth headset, and the electronic device receives the volume value 1 sent by the Bluetooth headset, that is, the second volume value is volume value 1.

[0070] The second volume value belonging to the volume value sequence set indicates that the second volume value received by the electronic device is the same as the first volume value set on the electronic device. Since the electronic device has updated the volume value displayed on the user interface to the first volume value before the Bluetooth headset adjusts the volume value, if the second volume value returned by the Bluetooth headset received by the electronic device belongs to the volume value sequence set, it means that the second volume value has been updated to the user interface. In this case, even if the received second volume value is delayed, it can be determined that the volume value displayed on the user interface remains unchanged, so as to avoid updating the volume value on the user interface by the second volume value, thereby solving the problem of the volume value on the user interface not matching the volume value in the Bluetooth headset due to the delayed return of volume parameters by the Bluetooth headset.

[0071] For example, Figure 4As shown, the user adjusts the volume value of the Bluetooth headset to volume 3 on the user interface of the electronic device, and the volume value sequence set includes volume value 1, volume value 2 and volume value 3. However, there is a delay in Bluetooth communication, and the Bluetooth chip of the electronic device sends volume value 2 to the Bluetooth headset. After the volume value of the Bluetooth headset is adjusted to volume value 2, the electronic device receives the volume value 2 sent by the Bluetooth headset, but the volume value on the user interface is 3 at this time. Then, the volume value 2 sent by the Bluetooth headset received by the electronic device is different from the volume value 3 on the user interface. In this case, the volume value displayed on the user interface is maintained at the second volume value to avoid updating the volume value on the user interface with volume value 2, thereby avoiding the volume value displayed on the user interface from jumping from volume value 3 to volume value 2.

[0072] An embodiment of the present application provides a method for displaying headphone volume. The method can, when an electronic device is in communication with a Bluetooth headset, respond to a control instruction for adjusting the volume of the Bluetooth headset by sending a control instruction to the Bluetooth headset, the control instruction including a first volume value, and updating the volume value displayed on the user interface of the electronic device to the first volume value, and storing the first volume value in a volume value sequence set of the electronic device. When a second volume value sent by the Bluetooth headset is received, the method determines whether the second volume value belongs to the volume value sequence set. Since the first volume value is used to update the volume value of the Bluetooth headset on the user interface, and the second volume value is the volume value returned by the Bluetooth headset, the second volume value can update the volume value on the user interface. If there is a delay in the electronic device receiving the second volume value, directly updating the volume value on the user interface to the second volume value will cause the volume value on the user interface to jump. In this case, it is determined whether the second volume value belongs to the volume value sequence set. Since the volume value sequence set stores the first volume value, it is determined whether the second volume value belongs to the volume value sequence set. If the second volume value belongs to the volume value sequence set, the volume value displayed on the user interface remains unchanged. That is, since the electronic device has updated the volume value displayed on the user interface to the first volume value before the Bluetooth headset adjusts the volume value, if the electronic device receives a second volume value returned by the Bluetooth headset and it belongs to the volume value sequence set, it means that the second volume value has been updated to the user interface. In this case, even if the received second volume value is delayed, it can be determined that the volume value displayed on the user interface is maintained unchanged, so as to avoid updating the volume value on the user interface by the second volume value, thereby solving the problem of the volume value on the user interface not matching the volume value in the Bluetooth headset due to the delay in returning the second volume value of the Bluetooth headset.

[0073] It should be noted that the above steps 301-303 are a brief description of a method for displaying the volume of an earphone provided in an embodiment of the present application. The following will provide a more detailed description of a method for displaying the volume of an earphone provided in an embodiment of the present application with reference to some examples. Figure 5 Taking the execution subject as an electronic device as an example, the method includes the following steps 501 to 508.

[0074] In step 501, when the electronic device is in communication connection with the Bluetooth headset, in response to a control instruction for adjusting the volume of the Bluetooth headset, the electronic device sends a control instruction to the Bluetooth headset.

[0075] The first volume value is used to adjust the volume of the Bluetooth headset. The control command includes a voice command, a gesture command, and a touch command.

[0076] It should be understood that when the electronic device is connected to a Bluetooth headset, the electronic device and the Bluetooth headset can achieve two-way communication, and therefore the volume of the Bluetooth headset can be controlled on the electronic device. Because the first volume value in the control instruction is used to update the volume value displayed on the user interface of the electronic device, and the electronic device is connected to the Bluetooth headset, the volume value displayed on the user interface is the volume value of the Bluetooth headset. In other words, the volume value of the Bluetooth headset can be adjusted on the electronic device.

[0077] In some embodiments, touch instructions are generated based on click operations on the user interface of the electronic device or click operations on buttons in the electronic device; voice instructions are generated based on voice sent to the user interface; and gesture instructions are generated based on gesture operations on the user interface.

[0078] In some embodiments, a first volume value for adjusting the Bluetooth headset is generated in response to a click operation, a gesture operation, a slide operation, and a voice command on the user interface.

[0079] It should be understood that after the volume value of the Bluetooth headset is adjusted on the user interface, in order to make the volume value of the Bluetooth headset correspond to the volume value on the user interface, the electronic device sends the first volume value to the Bluetooth headset.

[0080] In some embodiments, the control instruction is sent to a Bluetooth headset based on a Bluetooth protocol.

[0081] The control instruction carries a first volume value, and the first volume value is encapsulated into a data packet format specified by the Bluetooth protocol.

[0082] Step 502: The electronic device updates the volume value displayed on the user interface to the first volume value.

[0083] In some embodiments, the volume value progress bar on the user interface is smoothly moved to the first volume value.

[0084] Step 503: The electronic device stores the first volume value into a volume value sequence set of the electronic device.

[0085] The volume value sequence set stores a plurality of first volume values.

[0086] It is understandable that in actual applications, when the volume value is adjusted on the user interface, the volume value progress bar on the user interface will slide. Then, during the sliding of the volume value progress bar, multiple control instructions will be generated, and each control instruction contains each first volume value.

[0087] For example, Figure 4 As shown, the volume value progress bar on the user interface of the electronic device slides from volume value 1 to volume value 3, and then control instructions 1, control instructions 2, and control instructions 3 are generated based on the sliding operation on the user interface. Control instruction 1 includes volume value 1, control instruction 2 includes volume value 2, and control instruction 3 includes volume value 3.

[0088] It should be understood that when adjusting the volume value of a Bluetooth headset on an electronic device, the Bluetooth headset will send the successfully adjusted volume value to the electronic device after the volume value is adjusted, and the electronic device will update the volume value on the user interface based on the volume value adjusted by the Bluetooth headset. However, if there is a communication delay in the Bluetooth headset, the volume value sent by the Bluetooth headset will not match the volume value on the actual user interface. In this case, to avoid the electronic device updating according to the volume value sent by the Bluetooth headset, after the electronic device updates the volume value displayed on the user interface, a volume value sequence set is generated on the electronic device to determine whether to update according to the volume value sent by the Bluetooth headset based on the volume value sequence set.

[0089] In a possible implementation, a timestamp of the first volume value is obtained; a correspondence between the first volume value and the timestamp of the first volume value is established, and the correspondence is stored in a volume value sequence set of the electronic device.

[0090] It should be understood that if the user slides the volume value progress bar on the user interface of the electronic device, the first volume value will change in real time, that is, multiple first volume values ​​will be generated in the order of timestamps.

[0091] In some embodiments, when the first volume value is generated, a current clock time of the electronic device is determined as a timestamp of the first volume value.

[0092] In some embodiments, the acquired first volume value and the timestamp of the first volume value are stored in a structured manner.

[0093] For example, Figure 4As shown, the first volume value is volume value 1, the timestamp of volume value 1 is 21:01:43, the first volume value is volume value 2, the timestamp of volume value 2 is 21:02:21, the first volume value is volume value 3, the timestamp of volume value 3 is 21:03:11, volume value 1 and 21:01:43 are structured and stored, volume value 2 and 21:02:21 are structured and stored, and volume value 3 and 21:03:11 are structured and stored.

[0094] In this embodiment, multiple first volume values ​​are stored in a volume value sequence set of the electronic device. Since the volume value sequence set contains the correspondence between the first volume value and the timestamp of the first volume value, it is possible to determine whether the second volume value sent by the Bluetooth headset is delayed based on the volume value sequence set, thereby determining whether the volume value on the user interface needs to be updated to the second volume value.

[0095] Step 504: The Bluetooth headset adjusts the volume of the Bluetooth headset based on the first volume value in the control instruction and sends a response message to the electronic device.

[0096] In some embodiments, the Bluetooth headset receives the control instruction and adjusts the current volume value of the Bluetooth headset to the first volume value.

[0097] It is understood that after the Bluetooth headset is adjusted, the Bluetooth headset will generate a response message and send the response message to the electronic device to notify the electronic device that the volume value of the Bluetooth headset is adjusted. In actual application, if the operating system or hardware of the Bluetooth headset fails, the volume value of the Bluetooth headset may fail to adjust. In this case, the response message of the Bluetooth headset indicates that the Bluetooth headset adjustment failed, that is, the response message of the Bluetooth headset is an adjustment failure message. If the operating system or hardware of the Bluetooth headset does not fail, the volume value of the Bluetooth headset is successfully adjusted. In this case, the response message of the Bluetooth headset indicates that the Bluetooth headset adjustment was successful, that is, the response message of the Bluetooth headset is an adjustment success message.

[0098] In some embodiments, after the Bluetooth headset completes adjustment, the Bluetooth headset generates response information and sends the response information to the electronic device.

[0099] The response information includes adjustment success information and adjustment failure information. The adjustment success information carries the second volume value, which is the volume value adjusted to after the Bluetooth headset completes the adjustment.

[0100] Step 505: The electronic device receives the response information and determines whether the volume value of the Bluetooth headset is adjusted successfully based on the response information.

[0101] It should be understood that in actual applications, when adjusting the volume of a Bluetooth headset, the Bluetooth headset and the electronic device need to respond synchronously. If the Bluetooth headset fails to adjust the volume and the electronic device does not receive the response information returned by the Bluetooth headset, the user may frequently press the volume button, causing the Bluetooth headset volume to suddenly change, resulting in a poor user experience. In this case, it is necessary to determine whether the Bluetooth headset volume value was successfully adjusted based on the response information.

[0102] The following describes how the electronic device receives the response information and determines whether the volume value of the Bluetooth headset is successfully adjusted based on the response information.

[0103] In a possible implementation, response information sent by the Bluetooth headset is obtained; and based on the response information, it is determined whether the volume value of the Bluetooth headset is successfully adjusted.

[0104] The response information includes adjustment failure information and adjustment success information.

[0105] In some embodiments, the response information sent by the Bluetooth headset is obtained based on the Bluetooth protocol.

[0106] In some embodiments, when the response information is adjustment success information, it is determined that the volume value of the Bluetooth headset is adjusted successfully, and the adjustment success information carries the second volume value.

[0107] It should be understood that the response information being adjustment success information indicates that the volume of the Bluetooth headset is adjusted successfully, and the current volume value of the Bluetooth headset is the second volume value.

[0108] In some embodiments, when the response information is adjustment failure information, it is determined that the volume value of the Bluetooth headset has failed to be adjusted, and the control instruction is sent to the Bluetooth headset again.

[0109] The adjustment failure information is used to instruct the electronic device to send a first volume value to the Bluetooth headset.

[0110] It should be understood that the response information indicating adjustment failure indicates that the Bluetooth headset failed to adjust the volume. In practice, there may be a variety of reasons for the Bluetooth headset failing to adjust the volume, such as a disconnection between the Bluetooth headset and the electronic device, a Bluetooth headset malfunction, or protocol incompatibility between the Bluetooth headset and the electronic device. In this case, to further determine the cause of the Bluetooth headset failing to adjust the volume, the electronic device may resend the control instruction to the Bluetooth headset, where the control instruction includes the first volume value.

[0111] In this embodiment, whether the volume value of the Bluetooth headset is successfully adjusted is determined based on the response information, so as to determine whether the communication between the Bluetooth headset and the electronic device is normal.

[0112] Step 506: When the volume value of the Bluetooth headset is successfully adjusted and the electronic device receives a second volume value sent by the Bluetooth headset, the electronic device determines whether the second volume value belongs to the volume value sequence set.

[0113] It should be understood that the electronic device receiving the second volume value indicates that the Bluetooth headset has successfully adjusted the volume value. In this case, the electronic device will update the volume value progress bar on the user interface based on the second volume value sent by the Bluetooth headset. In actual application, if there is a delay in the electronic device receiving the second volume value, directly updating the volume value progress bar on the user interface based on the second volume value will cause the volume value progress bar on the user interface to jump. Therefore, the electronic device determines whether the second volume value belongs to the volume value sequence set, and then determines whether to update the volume value progress bar on the user interface based on the second volume value.

[0114] The volume value sequence set stores a plurality of first volume values.

[0115] It should be understood that when an electronic device is connected to a Bluetooth headset, the Bluetooth protocol can support two-way communication between the electronic device and the Bluetooth headset. Therefore, not only can the volume value of the Bluetooth headset be controlled on the electronic device, but the volume value can also be adjusted directly on the Bluetooth headset. If the user adjusts the volume directly on the Bluetooth headset, after the Bluetooth headset adjusts the volume value, in order to synchronize the volume value on the Bluetooth headset and the electronic device, the user interface needs to be updated based on the volume value sent to the electronic device by the Bluetooth headset. However, if the volume value of the Bluetooth headset is controlled on the electronic device, in order to avoid the volume value displayed on the electronic device from jumping, it is necessary to determine whether to update the second volume value sent by the Bluetooth headset. In an embodiment of the present application, if the volume value of the Bluetooth headset is controlled on the electronic device, the first volume value is stored in the volume value sequence set on the electronic device, so the trigger source of the second volume value sent by the Bluetooth headset can be determined based on the volume value sequence set.

[0116] In a possible implementation, it is determined whether the second volume value is different from each first volume value in the volume value sequence set. If so, it is determined that the second volume value does not belong to the volume value sequence set; if not, it is determined that the second volume value belongs to the volume value sequence set.

[0117] It should be understood that since the second volume value is the volume value to which the Bluetooth headset is adjusted after the Bluetooth headset completes the adjustment, and the volume value sequence set includes multiple first volume values, it is necessary to determine whether the second volume value is different from all the first volume values ​​in the volume value sequence set, so as to determine whether the second volume value belongs to the volume value sequence set.

[0118] In some embodiments, the second volume value is different from each first volume value in the volume value sequence set, which indicates that the user adjusts the volume directly on the Bluetooth headset, that is, the triggering source of the second volume value is the Bluetooth headset.

[0119] For example, if the second volume value is volume value 4, and the first volume values ​​in the volume value sequence set are volume value 1, volume value 2, and volume value 3, then it is determined that the second volume value does not belong to the volume value sequence set.

[0120] In some embodiments, the second volume value being the same as each first volume value in the volume value sequence set indicates that the user adjusts the volume on the electronic device, that is, the triggering source of the second volume value is the electronic device.

[0121] For example, the second volume value is volume value 3, and the first volume values ​​in the volume value sequence set are volume value 1, volume value 2, and volume value 3, respectively. Then, it is determined that the second volume value belongs to the volume value sequence set.

[0122] Optionally, in actual applications, the Bluetooth headset can also send a target identifier to the electronic device, and the electronic device determines whether the second volume value belongs to the volume value sequence set based on the target identifier and the second volume value.

[0123] In this embodiment, since the first volume value is stored in the volume value sequence set, by judging whether the second volume value is different from each first volume value in the volume value sequence set, it is possible to determine whether the second volume value belongs to the volume value sequence set, thereby determining the trigger source of the second volume value.

[0124] The following describes the process of determining whether a second volume value sent by a Bluetooth headset is received and a destination identifier is received simultaneously, and determining whether the second volume value belongs to a volume value sequence set.

[0125] In a possible implementation, a target identifier and a second volume value sent by a Bluetooth headset are received; and based on the target identifier, it is determined whether the second volume value belongs to the volume value sequence set.

[0126] The target identifier is an identifier for identifying the device.

[0127] Under this embodiment, when the electronic device is communicatively connected to the Bluetooth headset, the Bluetooth protocol can support two-way communication between the electronic device and the Bluetooth headset. Therefore, not only can the volume value of the Bluetooth headset be controlled on the electronic device, but the volume value can also be adjusted directly on the Bluetooth headset. In order to determine whether to update the volume value on the user interface based on the second volume value, it is determined based on the target identifier whether the second volume value belongs to the volume value sequence set to avoid the volume value progress bar on the user interface from jumping.

[0128] In order to explain the above embodiment in more detail, the following describes the above embodiment in several parts.

[0129] The first part describes the content of receiving the target identifier and the second volume value sent by the Bluetooth headset.

[0130] In some embodiments, the target identifier and the second volume value sent by the Bluetooth headset are received based on the Bluetooth protocol.

[0131] It should be understood that in actual applications, users controlling the volume values ​​of Bluetooth headsets on different devices will generate different identifiers. Therefore, by receiving the target identifier sent by the Bluetooth headset, it is possible to determine whether the second volume value belongs to the volume value sequence set based on the target identifier.

[0132] The second part describes the content of determining whether the second volume value belongs to the volume value sequence set based on the target identifier.

[0133] It should be understood that the trigger source of the second volume value is determined based on the target identifier and a device identification table in the electronic device, wherein the device identification table is used to store the correspondence between the identity of the electronic device and the electronic device, and the correspondence between the identity of the Bluetooth headset and the Bluetooth headset.

[0134] In some embodiments, when the target identifier is the first identifier of the electronic device, it is determined that the second volume value belongs to the volume value sequence set.

[0135] The first identifier is used to uniquely identify the electronic device and the electronic device. If the target identifier corresponds to the first identifier of the electronic device, then the triggering source of the second volume value is the electronic device, that is, it is determined that the second volume value belongs to the volume value sequence set.

[0136] In some embodiments, when the target identifier is the second identifier of the Bluetooth headset, it is determined that the second volume value does not belong to the volume value sequence set.

[0137] The second identifier is used to uniquely identify the Bluetooth headset and the Bluetooth headset. If the target identifier corresponds to the second identifier of the Bluetooth headset, then the triggering source of the second volume value is the Bluetooth headset, that is, it is determined that the second volume value does not belong to the volume value sequence set.

[0138] Step 507: When the second volume value belongs to the volume value sequence set, the electronic device maintains the volume value displayed on the user interface unchanged.

[0139] It should be understood that the second volume value belonging to the volume value sequence set indicates that the user has adjusted the volume value on the user interface. Because the electronic device has already updated the volume value displayed on the user interface based on the first volume value before the Bluetooth headset adjusts the volume value, after the Bluetooth headset adjusts the volume value, the electronic device receives the second volume value returned by the Bluetooth headset and can determine whether to update the volume value on the user interface based on the second volume value.

[0140] In a possible implementation, when the second volume value belongs to the volume value sequence set, it is determined whether the second volume value is the same as the first volume value with the latest timestamp in the volume value sequence set.

[0141] In some embodiments, when the second volume value is the same as the first volume value with the latest timestamp in the volume value sequence set, the second volume value is displayed on the user interface of the electronic device.

[0142] Among them, if the second volume value is the same as the first volume value with the latest timestamp in the volume value sequence set, there is no delay in the second volume value, so the second volume value is directly displayed on the user interface of the electronic device to ensure that the update process of the electronic device is complete, thereby generating a complete update log, and then making it easier for developers to monitor whether there is any abnormality in the interaction between the electronic device and the Bluetooth headset based on the update log.

[0143] For example, the second volume value is volume 3, and the multiple candidate volume parameters in the volume value sequence set are volume 1, volume 2, and volume 3. The timestamp of volume 1 is 21:01:43:25, the timestamp of volume 2 is 21:02:21:25, and the timestamp of volume 3 is 21:03:11:43. Therefore, volume 3 is the first volume value with the latest timestamp in the volume value sequence set. Since the second volume value and the first volume value with the latest timestamp are both volume 3, the second volume value is not delayed.

[0144] In some embodiments, if the second volume value is different from the first volume value with the latest timestamp in the volume value sequence set, the second volume value is discarded.

[0145] If the second volume value is different from the first volume value with the latest timestamp in the volume value sequence set, the second volume value is delayed, and thus the second volume value is discarded to prevent the volume value progress bar on the user interface from jumping.

[0146] In this case, the volume value displayed on the user interface is maintained at the current volume value to avoid updating the volume value on the user interface by the second volume value, thereby solving the problem of the volume value progress bar on the user interface jumping due to the delay in returning the volume value of the Bluetooth headset.

[0147] Step 508: If the second volume value does not belong to the volume value sequence set, the electronic device adjusts the volume value on the user interface to the second volume value.

[0148] It should be understood that the second volume value does not belong to the volume value sequence set, which indicates that the user adjusts the volume value directly on the Bluetooth headset. In order to make the volume value displayed on the user interface match the volume value on the Bluetooth headset, the volume value on the user interface needs to be updated based on the second volume value sent by the Bluetooth headset.

[0149] The following describes how to adjust the volume value on the user interface to the second volume value when the second volume value does not belong to the volume value sequence set.

[0150] It is understandable that the user adjusts the volume value directly on the Bluetooth headset, indicating that the trigger source of the control instruction for volume adjustment of the Bluetooth headset is the Bluetooth headset. In this case, after receiving the second volume value sent by the Bluetooth headset, the volume value on the user interface is adjusted to the second volume value.

[0151] In a possible implementation, the user interface of the electronic device is updated based on the second volume value of the Bluetooth headset.

[0152] It should be understood that in actual application, the Bluetooth headset will send the current volume value to the electronic device, so that the electronic device can calibrate the volume value progress bar on the user interface based on the current volume value of the Bluetooth headset. In other words, the user interface of the electronic device is updated based on the second volume value.

[0153] In this embodiment, when the trigger source of the control instruction is the Bluetooth headset, the user interface of the electronic device is updated based on the second volume value of the Bluetooth headset, so that the volume value progress bar on the user interface can follow the second volume value set by the user, solving the problem of the volume value on the user interface not matching the second volume value set by the user.

[0154] Embodiments of the present application provide a method for displaying headphone volume. The method enables, when an electronic device is communicatively connected to a Bluetooth headset, the electronic device to send a control instruction to adjust the volume of the Bluetooth headset to the Bluetooth headset, update the volume value displayed on the user interface of the electronic device to a first volume value, and store the first volume value in a volume value sequence set of the electronic device. The Bluetooth headset adjusts the volume value of the Bluetooth headset based on the first volume value in the control instruction and sends a response message to the electronic device. The electronic device receives the response message and determines, based on the response message, whether the volume value of the Bluetooth headset was successfully adjusted. If the volume value of the Bluetooth headset is successfully adjusted and the electronic device receives a second volume value sent by the Bluetooth headset, the electronic device determines whether the second volume value belongs to the volume value sequence set. If the electronic device receives the second volume value with a delay and updates the volume value on the user interface based on the second volume value, the volume value on the user interface may jump. In this case, the electronic device determines whether to update the volume value on the user interface based on the second volume value. If the second volume value belongs to the volume value sequence set, the electronic device maintains the volume value displayed on the user interface unchanged. That is, because the electronic device has already updated the volume value displayed on the user interface based on the first volume value before the Bluetooth headset adjusts the volume value, if the second volume value is received late, the volume value on the user interface is not updated with the second volume value, solving the problem of the volume value progress bar on the user interface jumping due to the Bluetooth headset's delayed return of the volume value. If the second volume value does not belong to the volume value sequence set, the electronic device adjusts the volume value on the user interface to the second volume value. In other words, the volume value progress bar on the user interface can follow the second volume value set by the user, solving the problem of the volume value on the user interface not matching the second volume value set by the user.

[0155] Figure 6 1 is a schematic structural diagram of a headphone volume display device provided in an embodiment of the present application.

[0156] For example, Figure 6 As shown, the apparatus 600 includes:

[0157] an updating and storing module 601 for, when the electronic device is communicatively connected to the Bluetooth headset, sending, in response to a control instruction for adjusting the volume of the Bluetooth headset, the control instruction including a first volume value to the Bluetooth headset, updating the volume value displayed on the user interface of the electronic device to the first volume value, and storing the first volume value in a volume value sequence set of the electronic device;

[0158] A determination module 602 is configured to, upon receiving a second volume value sent by the Bluetooth headset, determine whether the second volume value belongs to the volume value sequence set;

[0159] The maintaining module 603 is configured to maintain the volume value displayed on the user interface unchanged when the second volume value belongs to the volume value sequence set.

[0160] In one possible implementation, the device 600 includes:

[0161] an acquisition module, configured to acquire a timestamp of the first volume value;

[0162] The storage module is configured to establish a corresponding relationship between the first volume value and a timestamp of the first volume value, and store the corresponding relationship in a volume value sequence set of the electronic device.

[0163] In one possible implementation, the device 600 includes:

[0164] The judging module is configured to judge whether the second volume value is different from all the first volume values ​​in the volume value sequence set; if so, determine that the second volume value does not belong to the volume value sequence set; if not, determine that the second volume value belongs to the volume value sequence set.

[0165] In one possible implementation, the device 600 includes:

[0166] A determination module 602 is configured to determine, when the target identifier is the first identifier of the electronic device, that the second volume value belongs to the volume value sequence set;

[0167] The determination module 602 is configured to determine, when the target identifier is the second identifier of the Bluetooth headset, that the second volume value does not belong to the volume value sequence set.

[0168] In one possible implementation, the device 600 includes:

[0169] A receiving module, configured to receive the response information sent by the Bluetooth headset;

[0170] An adjustment success determination module, configured to determine whether the volume value of the Bluetooth headset is adjusted successfully based on the response information;

[0171] The adjustment success determination module is used to determine that the volume adjustment of the Bluetooth headset has failed when the response information is adjustment failure information, and to send the control instruction to the Bluetooth headset again.

[0172] In one possible implementation, the device 600 includes:

[0173] A maintaining module 603 is configured to, when the second volume value belongs to the volume value sequence set, determine whether the second volume value is the same as the first volume value with the latest timestamp in the volume value sequence set;

[0174] a maintaining module 603, configured to display the second volume value on a user interface of the electronic device when the second volume value is the same as the first volume value with the latest timestamp in the volume value sequence set;

[0175] The maintaining module 603 is configured to discard the second volume value if the second volume value is different from the first volume value with the latest timestamp in the volume value sequence set.

[0176] In one possible implementation, the device 600 includes:

[0177] An adjusting module is configured to adjust the volume value on the user interface to the second volume value when the second volume value does not belong to the volume value sequence set.

[0178] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0179] For example, Figure 7 As shown, the electronic device 700 includes: a memory 701 and a processor 702, wherein the memory 701 stores an executable program code 703, and the processor 702 is used to call and execute the executable program code 703 to perform a method for displaying the headphone volume.

[0180] In addition, an embodiment of the present application also protects a device, which may include a memory and a processor, wherein the memory stores executable program code, and the processor is used to call and execute the executable program code to perform a headphone volume display method provided in an embodiment of the present application.

[0181] In this embodiment, the device can be divided into functional modules based on the above-described method examples. For example, each functional module can be mapped to a specific functional module, or two or more functions can be integrated into a single processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and represents only a logical functional division. In actual implementation, other division methods may be used.

[0182] In the case of dividing each functional module into corresponding functional modules, the device may further include an acquisition module, a receiving module, an adjustment module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0183] It should be understood that the device provided in this embodiment is used to execute the above-mentioned method for displaying the headphone volume, and thus can achieve the same effect as the above-mentioned implementation method.

[0184] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to an electronic device, the processing module may be used to control and manage the operation of the electronic device. The storage module may be used to support the electronic device in executing relevant program codes, etc.

[0185] The processing module may be a processor or controller that implements or executes the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor (DSP) and a microprocessor, and the storage module may be a memory.

[0186] In addition, the device provided in the embodiments of the present application can specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a headphone volume display method provided in the above embodiment.

[0187] This embodiment further provides a computer-readable storage medium, which stores computer program code. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a headphone volume display method provided in the above embodiment.

[0188] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the headphone volume display method provided in the above embodiment.

[0189] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0190] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0191] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, 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 through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0192] The above content is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A method for displaying headphone volume, characterized in that: Applied to electronic equipment, the method includes: When the electronic device is communicatively connected to a Bluetooth headset, in response to a control instruction for adjusting the volume of the Bluetooth headset, sending the control instruction to the Bluetooth headset, the control instruction including a first volume value, updating the volume value displayed on a user interface of the electronic device to the first volume value, and storing the first volume value in a volume value sequence set of the electronic device; Upon receiving a second volume value sent by the Bluetooth headset, determining whether the second volume value belongs to the volume value sequence set; In a case where the second volume value belongs to the volume value sequence set, the volume value displayed on the user interface is maintained unchanged.

2. The method according to claim 1, characterized in that The storing the first volume value into the volume value sequence set of the electronic device includes: Obtaining a timestamp of the first volume value; A corresponding relationship between the first volume value and the timestamp of the first volume value is established and stored in a volume value sequence set of the electronic device.

3. The method according to claim 1, characterized in that The determining whether the second volume value belongs to the volume value sequence set includes: Determine whether the second volume value is different from all first volume values ​​in the volume value sequence set; if so, determine that the second volume value does not belong to the volume value sequence set; if not, determine that the second volume value belongs to the volume value sequence set.

4. The method according to claim 1, wherein When receiving a second volume value sent by the Bluetooth headset, also receiving a destination identifier sent by the Bluetooth headset, and determining whether the second volume value belongs to the volume value sequence set, including: In a case where the target identifier is the first identifier of the electronic device, determining that the second volume value belongs to the volume value sequence set; When the target identifier is the second identifier of the Bluetooth headset, it is determined that the second volume value does not belong to the volume value sequence set.

5. The method according to claim 1, wherein After the step of sending the control instruction to the Bluetooth headset, the method further includes: Receiving a response message sent by the Bluetooth headset; Determining whether the volume value of the Bluetooth headset is adjusted successfully based on the response information; In a case where the response information is adjustment failure information, it is determined that the volume value of the Bluetooth headset has failed to be adjusted, and the control instruction is sent to the Bluetooth headset again.

6. The method according to claim 1, wherein When the second volume value belongs to the volume value sequence set, maintaining the volume value displayed on the user interface unchanged includes: In a case where the second volume value belongs to the volume value sequence set, determining whether the second volume value is the same as a first volume value having the latest timestamp in the volume value sequence set; When the second volume value is the same as the first volume value with the latest timestamp in the volume value sequence set, displaying the second volume value on the user interface of the electronic device; If the second volume value is different from the first volume value with the latest timestamp in the volume value sequence set, the second volume value is discarded.

7. The method according to claim 1, characterized in that The method further comprises: If the second volume value does not belong to the volume value sequence set, the volume value on the user interface is adjusted to the second volume value.

8. A headphone volume display device, characterized in that: The device comprises: an updating and storing module, configured to, when the electronic device is communicatively connected to the Bluetooth headset, send a control instruction for adjusting the volume of the Bluetooth headset to the Bluetooth headset in response to the control instruction, the control instruction including a first volume value, update the volume value displayed on the user interface of the electronic device to the first volume value, and store the first volume value in a volume value sequence set of the electronic device; a determination module, configured to, upon receiving a second volume value sent by the Bluetooth headset, determine whether the second volume value belongs to the volume value sequence set; A maintaining module is configured to maintain the volume value displayed on the user interface unchanged when the second volume value belongs to the volume value sequence set.

9. An electronic device, characterized in that: The electronic device comprises: a memory for storing executable program code; A processor is configured to call and run the executable program code from the memory, so that the electronic device executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 is implemented.