Voltage control mode switching method and electronic equipment

By switching the voltage control mode of the power supply component in electronic devices, the noise interference problem caused by capacitor vibration is solved, improving the user experience and device performance.

CN121939747APending Publication Date: 2026-04-28HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-10-25
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

Noise interference caused by capacitor vibration in electronic devices affects the user experience, especially when using microphones and earpieces.

Method used

By switching the voltage control mode of the target power component from PFM mode to PWM mode when a relevant operation is detected, voltage fluctuations across the capacitor are reduced, thereby reducing capacitor vibration and noise interference.

Benefits of technology

It effectively reduces capacitor noise interference, improving the user experience and device usage time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121939747A_ABST
    Figure CN121939747A_ABST
Patent Text Reader

Abstract

The embodiment of the invention is applied to the technical field of electronics, and provides a voltage control mode switching method and electronic equipment. In response to the first operation, the electronic device switches the voltage control mode of the target power supply component from the second voltage mode to the second voltage mode. Wherein the target power supply assembly is a power supply assembly used for supplying power to a circuit where the associated capacitor is located, and the associated capacitor is one or more capacitors in a plurality of capacitors in the electronic equipment. The first operation is used for triggering the sound transceiver to enter a working mode. The voltage ripple corresponding to the first voltage mode is smaller than the voltage ripple corresponding to the second voltage mode. According to the invention, the capacitance noise can be reduced, and the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic technology, and in particular to a method for switching voltage control modes and an electronic device. Background Technology

[0002] With the continuous development of electronic devices, multiple capacitors are generally installed in the internal circuits of these devices. During the use of electronic devices, if the voltage amplitude across the capacitors (input and output) fluctuates significantly, the capacitors will vibrate, generating capacitor noise that falls within the range of human hearing. This capacitor noise interferes with the audio data of the electronic device, causing the audio data to contain capacitor noise, thus affecting the user experience.

[0003] Therefore, how to fundamentally solve the problem of noise interference caused by capacitor vibration in order to improve the user experience is an urgent issue that needs to be addressed. Summary of the Invention

[0004] This application provides a voltage control mode switching method and an electronic device to solve the problem of noise interference caused by capacitor vibration.

[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:

[0006] Firstly, a method for switching voltage control modes is provided, applied to an electronic device. In this method, in response to a first operation, the electronic device switches the voltage control mode of a target power supply component from a second voltage mode to a second voltage mode. The target power supply component is a power supply component used to supply power to a circuit containing an associated capacitor, which is one or more capacitors among a plurality of capacitors within the electronic device. The first operation is used to trigger a sound transceiver device to enter an operating mode. The voltage ripple corresponding to the first voltage mode is less than the voltage ripple corresponding to the second voltage mode.

[0007] The first voltage mode is PWM mode, and the second voltage mode is PFM mode.

[0008] In this application, if a first operation is detected, and this first operation is an operation that triggers the audio transceiver to enter a working mode, meaning the electronic device needs to use the audio transceiver to operate, it indicates that the capacitor noise emitted by the capacitor located near the audio transceiver is likely to be perceived by the user. Therefore, the electronic device can switch the voltage control mode of the target power component from the second voltage mode to the first voltage mode to reduce the voltage ripple of the target power component, that is, to reduce the voltage fluctuation amplitude across the associated capacitor. This reduces the occurrence of capacitor vibration due to excessive voltage amplitude fluctuation, minimizing the problem of capacitor noise interference with the operation of the audio transceiver caused by capacitor vibration near the audio transceiver, ultimately improving the user experience.

[0009] In one possible implementation of the first aspect, the method by which the electronic device switches the voltage control mode of the target power supply component may specifically include: in response to the first operation, the electronic device may modify the value of a control register from a second value to a first value. The control register is used to control the voltage control mode of the target power supply component, the first value represents a first voltage mode, and the second value represents a second voltage mode.

[0010] In this application, the electronic device can switch the voltage control mode of the target power supply component by modifying the value of the control register. This allows for precise switching of the voltage control mode, providing a basis for subsequently reducing capacitor noise.

[0011] In one possible implementation of the first aspect, the method further includes: in response to a second operation, the electronic device can switch the voltage control mode of the target power supply component from a first voltage mode to a second voltage mode. The second operation is used to trigger the audio transceiver to exit its operating mode.

[0012] In this application, if a second operation is detected, and this second operation is an operation that triggers the audio transceiver to exit its operating mode, meaning the electronic device stops using the audio transceiver, it indicates that the user is less likely to perceive capacitor noise. Therefore, the electronic device can switch the voltage control mode of the target power supply component from the first voltage mode back to the second voltage mode. This minimizes unnecessary power consumption and thus extends the phone's usage time.

[0013] In one possible implementation of the first aspect, the second voltage mode corresponds to the light load mode, and the first voltage mode corresponds to the heavy load mode.

[0014] In this application, the second voltage mode corresponds to a light load mode, which can operate efficiently across the entire load range, thus improving operating efficiency under light load conditions, reducing unnecessary power consumption, and extending the lifespan of the electronic device. The first voltage mode corresponds to a heavy load mode, which reduces the voltage fluctuation amplitude across the capacitor in the circuit, thus reducing voltage ripple and capacitor noise.

[0015] In one possible implementation of the first aspect, the target power supply component is a buckboost device, and the circuit containing the associated capacitor is a power supply circuit, which can be a buckboost circuit.

[0016] In this application, since the target power supply component in the electronic device can supply power to the circuit containing the associated capacitor, meaning the target power supply component is equivalent to the power source of the electronic device, and the associated capacitor is relatively close to the earpiece, the electronic device is prone to outputting capacitor noise generated by the associated capacitor during a call. Therefore, to solve the problem of capacitor noise interference in the electronic device's circuitry, the electronic device can reduce the voltage fluctuation amplitude across the capacitor in the circuit by adjusting the voltage control mode of the target power supply component, that is, reduce the voltage ripple, thereby reducing the problem of capacitor noise interference caused by the vibration of the capacitor located near the earpiece, and improving the user's call experience.

[0017] In one possible implementation of the first aspect, the aforementioned audio transceiver includes a microphone, and the process by which the electronic device switches the voltage control mode of the target power supply component may specifically include: in response to a first operation by a user on a target application, if the target application has the function of recording using a microphone, the electronic device may switch the voltage control mode of the target power supply component from a second voltage mode to a first voltage mode. The first operation is used to trigger the microphone to enter a working mode.

[0018] In this application, if the target application has the function of recording with a microphone, it means that the electronic device needs to use a microphone to record when running the target application. In other words, the capacitor noise emitted by the capacitor located near the microphone is more likely to be perceived by the user. Therefore, the electronic device can switch the voltage control mode of the target power component from the second voltage mode to the first voltage mode to reduce the voltage fluctuation amplitude across the capacitor in the circuit, thereby reducing the occurrence of capacitor vibration caused by excessive voltage fluctuation. This minimizes the problem of capacitor noise interfering with audio recording caused by the vibration of the capacitor located near the microphone, and ultimately improves the user's recording experience.

[0019] The first user action on the target application may include launching the target application, or, if the target application is launched, triggering the recording control. The second user action may include exiting the target application, or, if a recording operation is performed, triggering the stop recording control.

[0020] In one possible implementation of the first aspect, the aforementioned audio transceiver includes an earpiece, and the process by which the electronic device switches the voltage control mode of the target power component may specifically include: in response to an answering operation for a call event, if the communication device used in the call event is an earpiece, the electronic device switches the voltage control mode of the target power component from a second voltage mode to a first voltage mode. Subsequently, in response to a hanging-up operation for a call event, the electronic device switches the voltage control mode of the target power component from the first voltage mode to the second voltage mode.

[0021] In this application, if a call is detected to be connected and the communication device used in the call is a handset, it indicates that the capacitor noise emitted by the capacitor located near the handset is likely to be perceived by the user. Therefore, the electronic device can switch the voltage control mode of the target power component from the second voltage mode to the first voltage mode to reduce the voltage fluctuation amplitude across the capacitor in the circuit. This reduces the occurrence of capacitor vibration caused by excessive voltage fluctuations, minimizing capacitor noise interference caused by capacitor vibration near the handset, and ultimately improving the user's call experience.

[0022] Furthermore, while the first voltage mode reduces voltage ripple compared to the second voltage mode, it is not suitable for operation under low load conditions, as it increases unnecessary power consumption, resulting in some losses. Therefore, to reduce unnecessary power loss, upon detecting a hang-up operation related to a call event, the electronic device can switch the voltage control mode of the target power component from the first voltage mode to the second voltage mode. This minimizes unnecessary power loss and thus extends the phone's usage time.

[0023] In one possible implementation of the first aspect, the method further includes: the electronic device does not perform a mode switching operation when no call event is detected.

[0024] In this application, if a call event is detected as not being connected, it means the user is not making a call, i.e., the electronic device is not using the microphone. Therefore, the electronic device can avoid performing a mode switching operation to maintain the original voltage control mode (i.e., the second voltage mode), thereby reducing unnecessary power consumption and increasing the phone's usage time.

[0025] In one possible implementation of the first aspect, the method further includes: when the calling device is not a handset, the electronic device does not perform a mode switching operation.

[0026] In this application, if the communication device is not a handset, that is, if the communication device is any device other than a handset, it means that the user will not perceive the capacitive noise located near the handset. Therefore, the electronic device can avoid performing mode switching operations to maintain the original voltage control mode (i.e., the second voltage mode), thereby reducing unnecessary power consumption and increasing the phone's usage time.

[0027] In one possible implementation of the first aspect, the electronic device includes a target identification module and a mode switching module. The process of the electronic device switching the voltage control mode of the target power supply component may specifically include: in response to a first operation, the target identification module in the electronic device sends a first switching instruction to the mode switching module in the electronic device according to the first operation. Subsequently, upon receiving the first switching instruction sent by the target identification module, the mode switching module can switch the voltage control mode of the target power supply component from a second voltage mode to a first voltage mode.

[0028] In this application, by sending a first switching instruction to the mode switching module, the mode switching module is controlled to switch the voltage control mode of the target power supply component from the second voltage mode to the first voltage mode. This enables precise switching of the voltage control mode, facilitating subsequent reduction of capacitor noise.

[0029] In one possible implementation of the first aspect, the electronic device further includes an application matching module, and the target identification module includes a parameter identification module. The process of the target identification module sending a first switching instruction based on the first operation may specifically include: in response to the user's first operation on the target application, the application matching module in the electronic device determines whether the target application is a preset application in the application list. The preset application has the function of recording audio using a microphone. Then, if the target application is a preset application in the application list, the application matching module can generate a first setting parameter and send the first setting parameter to the parameter identification module in the electronic device. The first setting parameter is used to indicate that the electronic device is recording audio using a microphone. Then, upon receiving the first setting parameter sent by the application matching module, the parameter identification module can send a first switching instruction to the mode switching module in the electronic device based on the first setting parameter.

[0030] In this application, the decision to send a first switching instruction to the mode switching module is made by determining whether the target application is a preset application in the application list. This ensures accurate transmission of the switching instruction, providing a foundation for subsequent precise switching of the voltage control mode.

[0031] In one possible implementation of the first aspect, the target recognition module includes a scene recognition module. The process of the target recognition module sending a first switching instruction according to the first operation may specifically include: in response to the answering operation for the call event, when the call state corresponding to the call event is the connected state and the call device used by the call event is a handset, the scene recognition module may send a first switching instruction to the mode switching module in the electronic device.

[0032] In this application, the scene recognition module sends a first switching instruction to the mode switching module in the electronic device only when the call status corresponding to the call event is an connected state and the call device used for the call event is a handset. This reduces the voltage fluctuation amplitude across the capacitor in the circuit, thereby reducing the occurrence of capacitor vibration due to excessive voltage fluctuations. It also minimizes the problem of capacitor noise interfering with calls caused by capacitor vibration near the handset, ultimately improving the user's call experience.

[0033] In one possible implementation of the first aspect, the process of switching the voltage control mode of the target power component in the aforementioned electronic device may further include: in response to a second operation, the target identification module in the electronic device may send a second switching instruction to the mode switching module in the electronic device according to the second operation. Subsequently, upon receiving the second switching instruction sent by the target identification module, the mode switching module may switch the voltage control mode of the target power component from a first voltage mode to a second voltage mode.

[0034] In this application, by sending a second switching instruction to the mode switching module, the mode switching module is controlled to switch the voltage control mode of the target power supply component from the first voltage mode to the second voltage mode. This enables precise switching of the voltage control mode, facilitating subsequent reduction of capacitor noise.

[0035] In one possible implementation of the first aspect, the process of the target recognition module sending a second switching instruction according to the second operation may specifically include: in response to a hang-up operation for a call event, the scene recognition module may send a second switching instruction to the mode switching module in the electronic device.

[0036] In this application, upon detecting a hang-up operation in response to a call event, the scene recognition module can send a second switching instruction to the mode switching module in the electronic device. This enables precise transmission of the switching instruction, providing a basis for subsequent accurate switching of the voltage control mode.

[0037] In one possible implementation of the first aspect, the process of the target identification module sending a second switching instruction according to the second operation may specifically include: in response to the user's second operation on the target application, the application matching module generates a second setting parameter and sends the second setting parameter to the parameter identification module. The second setting parameter is used to indicate that the electronic device has stopped recording through the microphone. Subsequently, upon receiving the second setting parameter sent by the application matching module, the parameter identification module sends a second switching instruction to the mode switching module in the electronic device according to the second setting parameter.

[0038] In this application, upon detecting a second user operation targeting the application, the application matching module sends a second setting parameter to the parameter recognition module, which then sends a second switching instruction to the mode switching module. This enables precise transmission of the switching instruction, providing a foundation for subsequent accurate switching of the voltage control mode.

[0039] In a second aspect, this application provides an electronic device, the electronic device including a voice transceiver, one or more processors, and one or more memories; the one or more processors are coupled to the voice transceiver and the one or more memories; the one or more memories are used to store computer program code, the computer program code including computer instructions, which, when the one or more processors execute the computer instructions, cause the electronic device to perform the method described above.

[0040] The aforementioned audio transceivers include microphones and / or earpieces.

[0041] Thirdly, this application provides a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the method described above.

[0042] Fourthly, this application provides a computer program product that, when run on an electronic device, causes the electronic device to perform the method described above.

[0043] Fifthly, a chip is provided, comprising: an input interface, an output interface, a processor, and a memory, wherein the input interface, the output interface, the processor, and the memory are connected via an internal connection path, and the processor is used to execute code in the memory, wherein when the code is executed, the processor is used to execute the method described above.

[0044] The beneficial effects that the electronic device described in the second aspect, the computer-readable storage medium described in the third aspect, the computer program product described in the fourth aspect, and the chip described in the fifth aspect can achieve can be referred to the beneficial effects of the first aspect and any of its possible design embodiments, and will not be repeated here. Attached Figure Description

[0045] Figure 1 A schematic diagram illustrating a scenario of making a call using a handset, provided as an embodiment of this application;

[0046] Figure 2 A schematic diagram illustrating a scenario of recording audio using a microphone, provided as an embodiment of this application;

[0047] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0048] Figure 4 A schematic diagram of the software structure of an electronic device provided in an embodiment of this application;

[0049] Figure 5 A flowchart illustrating a voltage control mode switching method provided in an embodiment of this application;

[0050] Figure 6 A schematic diagram of a mobile phone entering recording mode, provided as an embodiment of this application;

[0051] Figure 7 This is a schematic diagram of a mobile phone interface for stopping recording, provided as an embodiment of this application.

[0052] Figure 8 A flowchart illustrating another voltage control mode switching method provided in an embodiment of this application;

[0053] Figure 9 This application provides a schematic diagram of a mobile phone interface for making a phone call, as shown in the embodiments of the present application.

[0054] Figure 10 This is a schematic diagram of a mobile phone switching voltage control mode provided in an embodiment of this application. Detailed Implementation

[0055] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more (including two). The term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0056] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.

[0057] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0058] In some embodiments, because multiple capacitors are disposed within the circuitry of the electronic device, and at least one capacitor in the circuitry may be located near the microphone (MIC) or earpiece, if the capacitor located near the MIC or earpiece emits noise, and the capacitor is not placed within a cavity, the user will be more likely to perceive the capacitor noise, thus affecting the user experience. Here, a cavity refers to an object that is sealed and isolated from the outside while being hollow inside. That is, if the capacitor is placed within a cavity, the noise emitted by the capacitor can be isolated, and the user will not perceive the capacitor noise. It can be understood that the microphone is used to convert sound signals into electrical signals; that is, the electronic device can use the microphone to collect sound signals to achieve audio recording functionality. The earpiece is used to convert audio electrical signals into sound signals so that the user can listen to voice messages.

[0059] For example, see Figure 1 Taking a handset call as an example, user 100 is holding phone 10 and making a call. At this time, the handset of phone 10 is close to the user's ear. This means that if the capacitors near the handset emit noise, user 100 will hear noticeable capacitor noise, thus affecting the user's call experience. For another example, please see... Figure 2 Taking a recording scenario as an example, because the distance between the phone's microphone and the capacitors in the phone's circuitry is relatively short, if the capacitors near the microphone emit noise (i.e.,...),... Figure 2 If the audio file recorded by the phone's microphone contains capacitive noise, then the audio file may contain corresponding capacitive noise. When the phone plays this audio file, the user will clearly perceive the presence of capacitive noise, thus affecting the user's recording experience.

[0060] It should be noted that the aforementioned capacitor noise is generated by the vibration of capacitors within the internal circuitry of electronic devices. During the charging and discharging process, changes in the electric field across the capacitor (i.e., the input and output terminals) can alter the mechanical stress acting on the capacitor, leading to vibration. This mechanical stress refers to the internal force generated by deformation due to external factors. The charging and discharging process is based on fluctuations in the voltage across the capacitor. It can be understood that the greater the voltage fluctuation amplitude (i.e., the larger the voltage ripple), the greater the mechanical stress, the stronger the capacitor vibration, and the more noticeable the capacitor noise—meaning it is more easily perceived by the user.

[0061] Therefore, to minimize noise interference caused by capacitor vibration, this application provides a voltage control mode switching method. In this method, in response to a first operation, the electronic device switches the voltage control mode of a target power supply component from a second voltage mode to the second voltage mode. The target power supply component is a power supply component used to supply power to the circuit containing an associated capacitor, which is one or more capacitors among a plurality of capacitors inside the electronic device. The first operation is used to trigger the audio transceiver device to enter a working mode. The voltage ripple corresponding to the first voltage mode is less than the voltage ripple corresponding to the second voltage mode.

[0062] In this embodiment, if a first operation is detected, and this first operation is an operation that triggers the audio transceiver to enter a working mode, meaning the electronic device needs to use the audio transceiver to operate, it indicates that the capacitor noise emitted by the capacitor located near the audio transceiver is likely to be perceived by the user. Therefore, the electronic device can switch the voltage control mode of the target power component from the second voltage mode to the first voltage mode to reduce the voltage ripple of the target power component, that is, to reduce the voltage fluctuation amplitude across the associated capacitor. This reduces the occurrence of capacitor vibration due to excessive voltage amplitude fluctuation, minimizing the problem of capacitor noise interference with the audio transceiver caused by capacitor vibration near the audio transceiver, ultimately improving the user experience.

[0063] The aforementioned audio transceiver may include a microphone and / or a handset.

[0064] In some embodiments, if the aforementioned audio transceiver includes a microphone, the first operation can be a user operation targeting a target application. For example, the first operation could be the operation of opening the target application. Another example is the operation of triggering a recording control when the target application is open.

[0065] In other embodiments, if the aforementioned audio transceiver includes a handset, the first operation can be an answering operation for a call event. This answering operation can be triggered by either the user of the electronic device or the other party's user; there is no specific limitation.

[0066] For example, the aforementioned electronic devices can be mobile phones, tablets, desktop computers, laptops, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, as well as cellular phones, personal digital assistants (PDAs), augmented reality (AR) / virtual reality (VR) devices, and other devices equipped with sound transceivers, that is, devices equipped with microphones and / or microphones. This application does not impose special limitations on the specific form of the electronic device. The following description uses a mobile phone as an example.

[0067] See Figure 3 The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a control register 122, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0068] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the mobile phone. In other embodiments of this application, the mobile phone may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0069] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, memory, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0070] In some embodiments, the mobile phone can use the processor 110 to perform the voltage control mode switching method provided in this application.

[0071] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0072] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, control register 122, external memory, display screen 194, camera 193, and wireless communication module 160. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0073] In one implementation, the power management module 141 includes a target power component for supplying power to the circuit containing the associated capacitor. This circuit may include multiple capacitors, and one or more of these associated capacitors are located close to the receiver 170B or microphone 170C, i.e., the distance is less than a preset distance. In some embodiments of this application, the target power component is a buck-boost device, and the circuit containing the associated capacitor is a power supply circuit, which may be a buck-boost circuit.

[0074] It is understandable that if the capacitor in the power supply circuit is close to the receiver 170B or microphone 170C, the capacitor in the power supply circuit may emit capacitor noise, which may be noticeable to the user and thus affect the user experience.

[0075] The wireless communication function of a mobile phone can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.

[0076] The mobile phone implements its display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0077] The display screen 194 is used to display images, videos, etc. In some embodiments, the mobile phone can display a call interface, a recording interface, and a video recording interface, etc., through the display screen 194.

[0078] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The internal memory 121 can be used to store computer executable program code, which includes instructions.

[0079] Control register 122 can be used to control and determine the voltage control mode of the target power supply component. This voltage control mode can include a first voltage mode and a second voltage mode. The first voltage mode corresponds to a heavy load mode, which reduces the voltage fluctuation amplitude across the capacitors in the circuit, i.e., reduces voltage ripple and thus reduces capacitor noise. The second voltage mode corresponds to a light load mode, which reduces losses to achieve high-efficiency operation across the full load range, i.e., improves operating efficiency under light load conditions. In some embodiments of this application, the first voltage mode is a pulse width modulation (PWM) mode, and the second voltage mode is a pulse frequency modulation (PFM) mode. In some embodiments, the mobile phone can switch the voltage control mode by modifying the value of control register 122.

[0080] Mobile phones can achieve shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0081] Mobile phones can perform audio functions, such as music playback and recording, through components like the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0082] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0083] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0084] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0085] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0086] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0087] Button 190 may include a power button, volume buttons, etc. Button 190 may be a mechanical button or a touch button. The mobile phone can receive button input and generate key signal inputs related to the phone's user settings and function control. Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. Indicator 192 may be an indicator light, used to indicate charging status, battery level changes, or messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the mobile phone.

[0088] For example, the software system of the aforementioned electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the layered architecture Android system as an example to illustrate the software structure of the electronic device 100.

[0089] Figure 4 This is a software structure block diagram of the electronic device 100 according to an embodiment of this application.

[0090] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer (or application layer), the application framework layer (or framework layer), the hardware abstraction layer, and the kernel layer (or driver layer). The application layer can include a series of application packages.

[0091] like Figure 4 As shown, the application package may include a telephone, camera, recorder, communication application, application recognition module, etc. It can be understood that a camera can be used to trigger an electronic device to record video. The communication application is an application with VoIP functionality. For example, this communication application could be a VoIP phone.

[0092] The application identification module identifies applications installed on electronic devices to determine if they have a microphone recording function. If an application does have this function, it means the application needs to reduce voltage fluctuations across capacitors; in other words, the electronic device needs to "smooth out" the circuit during application operation. This circuit smoothing refers to adjusting the voltage in the circuit to a specific value to achieve balance. Adjusting the voltage in the internal circuitry of the electronic device to a specific value means the voltage fluctuations across the capacitors are more stable, resulting in less voltage ripple. Therefore, the user is less likely to perceive capacitor noise during application operation, improving the user experience.

[0093] In some embodiments, for each application in the electronic device, the application identification module can identify the application and obtain an application identification result. This application identification result indicates whether the application has the function of recording audio using a microphone. Then, if the application identification result indicates that the application has the function of recording audio using a microphone, the application identification module can add the application as a preset application to the application list. The application identification module can then send the preset applications in the application list to the application matching module, so that the application matching module can determine whether the application launched by the user (or the target application) belongs to the preset applications in the application list.

[0094] It should be noted that the application identification module can send the identifier (useridentification, UID) of the preset applications in the application list to the application matching module, so that the application matching module can determine whether the target application belongs to the preset applications in the application list by matching the identifier of the target application with the identifier of the preset applications.

[0095] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example... Figure 4 As shown, the application framework layer may include an application matching module, etc. This application matching module is used to determine whether the target application belongs to the preset applications in the application list.

[0096] In some embodiments, upon receiving an application list from the application identification module, if the target application belongs to a preset application in the application list, it indicates a high probability that the user will perceive capacitor noise when the electronic device is running the target application. Therefore, to reduce the voltage fluctuation amplitude across the capacitor and reduce the voltage ripple, the application matching module can generate application setting parameters and send these parameters to the scene identification module. These application setting parameters characterize whether the target application is running, specifically whether the electronic device is recording audio via a microphone during the target application's operation. The application setting parameters may include a first setting parameter and a second setting parameter.

[0097] It is understandable that if the target application is running, it means that the target application is running, that is, the electronic device is recording a video or audio stream. Therefore, the application matching module can generate a first setting parameter of "record=on". This first setting parameter indicates that the electronic device is recording via the microphone. If the target application is not running, it means that the target application has stopped running, that is, the electronic device has completed recording the video or audio stream. Therefore, the application matching module can generate a second setting parameter of "record=off". This second setting parameter indicates that the electronic device has stopped recording via the microphone.

[0098] The Android runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.

[0099] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0100] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0101] The hardware abstraction layer (HAL) is a wrapper around Linux kernel drivers, providing interfaces to higher-level systems. It hides the hardware interface details of a specific platform, thus providing a virtual hardware platform for the operating system. In this embodiment, the HAL may include a first identification module, a second identification module, and a third identification module (or parameter identification module). The first and second identification modules are both scene identification modules, and both the scene identification module and the parameter identification module are target identification modules.

[0102] The first identification module is used to identify the call status and the calling device of the telephone. The call status can include an connected state and a disconnected state. The calling device can be a handset, speakerphone, headset (such as a Bluetooth headset, wired headset, etc.), etc., and is not specifically limited. In some embodiments, when the telephone call interface is displayed, if the call status is connected and the calling device is a handset, the first identification module can send a first switching instruction to the mode switching module to instruct the mode switching module to switch the voltage control mode of the target power component from the second voltage mode to the first voltage mode. If the call status is disconnected, or if the calling device is not a handset (i.e., the calling device is any device other than a handset), the first identification module can send a second switching instruction to the mode switching module to instruct the mode switching module to switch the voltage control mode of the target power component from the first voltage mode to the second voltage mode.

[0103] The second identification module is used to identify the call status of the communication application and the calling device. The call status can include an connected state and a disconnected state. The calling device can be a handset, speaker, headset (such as a Bluetooth headset, wired headset, etc.), etc., and is not specifically limited. In some embodiments, when the call interface of the communication application is displayed, if the call status is connected and the calling device is a handset, the first identification module can send a first switching instruction to the mode switching module to instruct the mode switching module to switch the voltage control mode of the target power component from the second voltage mode to the first voltage mode. If the call status is disconnected, or if the calling device is not a handset (i.e., the calling device is any device other than a handset), the first identification module can send a second switching instruction to the mode switching module to instruct the mode switching module to switch the voltage control mode of the target power component from the first voltage mode to the second voltage mode.

[0104] The third identification module analyzes the application setting parameters to determine whether the target application is running. It can be understood that if the application setting parameter is "record=on", the third identification module can determine that the target application is running. If the application setting parameter is "record=off", the third identification module can determine that the target application is not running. In some embodiments, upon receiving an application setting parameter of "record=on", the third identification module can send a first switching instruction to the mode switching module to instruct the mode switching module to switch the voltage control mode of the target power supply component from the second voltage mode to the first voltage mode. Upon receiving an application setting parameter of "record=off", the third identification module can send a second switching instruction to the mode switching module to instruct the mode switching module to switch the voltage control mode of the target power supply component from the first voltage mode to the second voltage mode.

[0105] The kernel layer is the layer between hardware and software. The kernel layer includes at least a mode switching module. This module is used to count the number of scenarios where PWM modes are switched, that is, the number of first switching instructions received (or the number of received signals), and to switch the voltage control mode of the target power supply component based on this number of received signals.

[0106] In one implementation, if the number of received signals is 0, it indicates that the audio transceiver has exited its operating mode, meaning that neither the microphone nor the earpiece is working. Therefore, to reduce unnecessary power consumption, the mode switching module can adjust the voltage control mode of the target power supply component to a second voltage mode. If the number of received signals is 1 or 2, it indicates that the audio transceiver has entered its operating mode. Therefore, to reduce the problem of capacitor noise interference caused by capacitor vibration near the audio transceiver, the mode switching module can adjust the voltage control mode of the target power supply component to a first voltage mode.

[0107] In some embodiments, upon receiving a first switching instruction, the mode switching module can change the count value from 0 to 1, meaning the mode switching module can switch the voltage control mode of the target power supply component from the second voltage mode to the first voltage mode, and send a first switching instruction to the buck-boost device in the hardware layer to instruct the buck-boost device to switch the voltage control mode to PWM mode. Upon receiving two first switching instructions, the mode switching module can change the count value from 1 to 2. It can be understood that the two first switching instructions can be sent separately by the scene recognition module and the parameter recognition module. For example, an electronic device can use a microphone for calls and a recorder for recording. However, since the mode switching module has already switched the voltage control mode of the target power supply component upon receiving the first first switching instruction, the mode switching module does not need to send a first switching instruction to the buck-boost device in the hardware layer, that is, it does not need to instruct the buck-boost device to switch the voltage control mode to PWM mode.

[0108] In other embodiments, upon receiving a second switching instruction (i.e., without receiving a first switching instruction), the mode switching module can change the count value from 1 to 0. In other words, the mode switching module can switch the voltage control mode of the target power supply component from the second voltage mode to the first voltage mode and send a second switching instruction to the buckboost device to instruct the buckboost device to switch the voltage control mode to PFM mode.

[0109] In some embodiments, such as Figure 4 As shown, when displaying a telephone call interface, the electronic device (or alternatively described as a telephone) can execute step a, triggering the first identification module in the hardware abstraction layer to identify the call status and the calling device. Then, the first identification module can execute step b, sending a first switching instruction or a second switching instruction to the mode switching module in the kernel layer, so that the mode switching module modifies the count value. It can be understood that if the call status is connected and the calling device is a microphone, the first identification module can send a first switching instruction to the mode switching module to instruct the mode switching module to change the count value from 0 to 1. If the call status is disconnected, or the calling device is not a microphone, the first identification module can send a second switching instruction to the mode switching module to instruct the mode switching module to change the count value from 1 to 0.

[0110] In other embodiments, when displaying the call interface of a communication application, the electronic device (or alternatively described as the communication application) can execute step c, triggering a second identification module in the hardware abstraction layer to identify the call status of the communication application and the calling device. Then, the second identification module can execute step d, sending a first switching instruction or a second switching instruction to the mode switching module in the kernel layer, so that the mode switching module modifies the count value. It can be understood that if the call status is connected and the calling device is a microphone, the second identification module can send a first switching instruction to the mode switching module to instruct the mode switching module to change the count value from 0 to 1. If the call status is disconnected, or if the calling device is not a microphone, the second identification module can send a second switching instruction to the mode switching module to instruct the mode switching module to change the count value from 1 to 0.

[0111] In some embodiments, the electronic device (or alternatively described as an application identification module) can pre-identify all applications installed on the electronic device and perform step e, adding the applications requiring circuit flattening (i.e., preset applications) to the application list. Then, in response to a user's action to turn on the camera, the electronic device (or alternatively described as the camera) can perform step f, triggering the application matching module in the application framework layer to match the camera with the preset applications in the application list, that is, to determine whether the camera belongs to the preset applications in the application list. Then, if the camera belongs to the preset applications in the application list, the application matching module can perform step h, sending application setting parameters to the third identification module in the hardware abstraction layer.

[0112] Alternatively, in response to a user's activation of the recorder, the electronic device (or alternatively described as the recorder) can execute step g, triggering the application matching module in the application framework layer to match the recorder with preset applications in the application list, that is, to determine whether the recorder belongs to the preset applications in the application list. Then, if the recorder belongs to the preset applications in the application list, the application matching module can execute step h, sending application setting parameters to the third identification module in the hardware abstraction layer.

[0113] Subsequently, the third identification module can execute step i, sending a first switching instruction or a second switching instruction to the mode switching module in the kernel layer, so that the mode switching module modifies the count value. It can be understood that if the application setting parameter is "record=on", the third identification module can send a first switching instruction to the mode switching module to instruct the mode switching module to change the count value from 0 to 1. If the application setting parameter is "record=off", the third identification module can send a second switching instruction to the mode switching module to instruct the mode switching module to change the count value from 1 to 0.

[0114] Subsequently, the electronic device (or alternatively described as a mode switching module) can execute step j, triggering the buck-boost device to switch its voltage control mode. In one example, upon receiving the aforementioned first switching instruction, the mode switching module can change the count value from 0 to 1 and send the first switching instruction to the buck-boost device to instruct it to switch its voltage control mode to PWM mode. In another example, upon receiving the aforementioned second switching instruction, the mode switching module can change the count value from 1 to 0 and send the second switching instruction to the buck-boost device to instruct it to switch its voltage control mode back to PFM mode.

[0115] Understandable Figure 4 The layers in the illustrated structure and the components contained in each layer do not constitute a specific limitation on the electronic device 100, i.e., the mobile phone. In other embodiments of this application, the structure may include more or fewer layers than illustrated, and each layer may include more or fewer components; this application does not impose any limitations.

[0116] The voltage control mode switching method of this application can be applied to call scenarios and recording scenarios of electronic devices. For example, a call scenario can be answering a phone call or a call from a communication application. Similarly, a recording scenario can be activating a camera or a recorder. The following will use a mobile phone as an example to describe the voltage control mode switching method provided in this application in two embodiments. Embodiment 1 describes how the mobile phone switches voltage modes in a recording scenario. Embodiment 2 describes how the mobile phone switches voltage modes in a call scenario.

[0117] Example 1

[0118] This application provides a method for switching voltage control modes. In this embodiment, in response to a user's activation of a target application, if the target application is a preset application in the application list, the mobile phone can switch the voltage control mode of the target power component from PFM mode to PWM mode. Specifically, as shown... Figure 5 As shown, the switching method for this voltage control mode may include S501 to S505.

[0119] S501, the mobile phone receives the user's first operation. This first operation is a trigger operation on a target application on the mobile phone.

[0120] In some embodiments, the first operation described above may be an opening operation for a target application, that is, a click operation on the icon of the target application. For example, please refer to... Figure 6 The phone is displaying Figure 6The main interface is shown in (a). This main interface includes an application icon for the camera application. Specifically, in response to the user's click on the camera application icon, the phone can execute S502 and activate the camera application's shooting function to display, as shown... Figure 6 The camera interface shown in (b) is the preview interface in camera mode.

[0121] In other embodiments, the first operation described above may be a click operation on a recording control in the target application, that is, triggering the operation of the recording control when the target application is open. The recording control may be pre-configured according to actual needs. For example, the recording control may be a video recording control in a camera application, or a video recording control in a recorder application, etc., and is not specifically limited. For example, please refer again... Figure 6 ,like Figure 6 When the user clicks the video recording control in the camera interface shown in (b), the phone can display the following: Figure 6 The first recording interface is shown in (c). This first recording interface is a preview interface in recording mode. Subsequently, if the user clicks the "Record" control 510 in the first recording interface, it indicates that the user wants to record a video. The phone can execute S502 and perform the recording operation to generate the corresponding video file.

[0122] Specifically, after receiving the user's first operation, the mobile phone can determine whether the target application corresponding to the first operation meets the preset conditions. If the target application meets the preset conditions, the mobile phone can switch the voltage control mode of the target power component from the second voltage mode to the first voltage mode. If the target application does not meet the preset conditions, the mobile phone may not perform the mode switching operation, that is, it will not switch the voltage control mode of the target power component, and the voltage control mode of the target power component will remain in the second voltage mode.

[0123] There can be multiple preset conditions. For example, the preset condition could be that the target application is an application with the function of recording using a microphone. Another example is whether the target application is a preset application in the application list.

[0124] The following step S502 is explained using the example of whether the target application is a preset application in the application list.

[0125] S502, the phone determines whether the target application is a preset application in the application list.

[0126] Specifically, after detecting the user's first action, the phone can determine whether the target application corresponding to that first action is a preset application in the application list, that is, whether the target application matches a preset application in the application list. This application list includes at least one preset application, which is an application that requires microphone recording during runtime. In other words, when the phone runs a preset application, it triggers the phone's microphone to perform a recording operation; that is, the preset application has the function of recording using the microphone. For example, the preset application can be a camera application, a video recorder application, an audio / video application, etc., without specific limitations.

[0127] It should be noted that the preset applications in the above application list can be pre-stored on the phone. For example, a cloud server can send the application list to the phone at preset time intervals. This preset time interval can be one month, half a month, etc., and is not specifically limited. Alternatively, the preset applications in the application list can also be identified by the phone from its installed applications. For example, when a new application is installed on the phone, the phone can identify the new application to determine whether the phone needs to use the microphone when running the new application. If the phone needs to use the microphone when running the new application, it can add the new application to the application list.

[0128] In this embodiment, considering that some capacitors (or associated capacitors) in the mobile phone circuit are relatively close to the microphone (i.e., the distance between some capacitors and the microphone is less than a preset distance), if the capacitors in the circuit emit capacitor noise, the user may be able to clearly perceive the capacitor noise, thus affecting the user's recording experience. Therefore, in order to minimize the possibility of capacitor noise generation, the mobile phone can perform a circuit leveling operation when running the aforementioned preset application to reduce the voltage fluctuation amplitude across the capacitors in the circuit. This reduces the occurrence of capacitor vibration due to excessive voltage fluctuations, minimizes noise interference caused by capacitor vibration, and ultimately improves the user experience.

[0129] The aforementioned circuit leveling refers to adjusting the voltage in the circuit to a specific value, bringing the circuit to a balanced state. This means that adjusting the voltage in the phone's internal circuitry to a specific value results in more stable voltage fluctuations across the capacitors, i.e., less voltage ripple. Therefore, during the operation of the target application, the likelihood of the user perceiving capacitor noise is lower, improving the user experience.

[0130] In one scenario, since the circuit containing the aforementioned associated capacitor is a Wi-Fi-enabled circuit, the electric field across the associated capacitor will only change when a Wi-Fi-enabled application is running on the phone. This change in electric field causes a shift in the mechanical stress acting on the capacitor, leading to vibration and capacitor noise. Therefore, only when a Wi-Fi-enabled application is running on the phone, and upon receiving the user's first operation, will the phone determine whether the target application is a preset application in the application list. This allows for timely switching of the voltage control mode of the target power component, thereby reducing capacitor noise and improving the user's recording experience.

[0131] It's understandable that if the target application is a preset application in the application list, it means the phone needs to use the microphone for recording when running this application. This means the capacitor noise emitted by the capacitor near the microphone is more likely to be perceived by the user. Therefore, the phone can execute S503 to reduce the voltage fluctuation amplitude across the capacitor in the circuit, thereby reducing the occurrence of capacitor vibration due to excessive voltage fluctuations. This minimizes the problem of capacitor noise interference with audio recording caused by capacitor vibration near the microphone, ultimately improving the user's recording experience. If the target application is not a preset application in the application list, it means the phone does not need to use the microphone for recording when running this application. This means the capacitor noise emitted by the capacitor near the microphone is less likely to be perceived by the user. Therefore, the phone can execute S505 to maintain the original voltage mode (i.e., the second voltage mode), thereby reducing unnecessary power consumption and increasing the phone's usage time.

[0132] In one implementation, the preset applications in the application list may carry an identifier (user identification, UID) for that preset application. That is, the phone can determine whether the identifier of the target application is the same as the identifier of any preset application in the application list. If the identifier of the target application is the same as the identifier of any preset application in the application list, it indicates that the target application is a preset application in the application list, and the phone can execute S503. If the identifier of the target application is different from the identifier of any preset application in the application list, it indicates that the target application is not a preset application in the application list, and the phone can execute S505.

[0133] S503, the mobile phone switches the voltage control mode of the target power component from the second voltage mode to the first voltage mode.

[0134] Specifically, after determining that the target application is a preset application in the application list, the mobile phone can switch the voltage control mode of the target power component from the second voltage mode to the first voltage mode. The target power component is used to supply power to the circuit containing the associated capacitor. In some embodiments of this application, the target power component is a Buckboost device, and the circuit containing the associated capacitor is a power supply circuit, which can be a Buckboost circuit.

[0135] The second voltage mode corresponds to the light load mode, which reduces losses to achieve high efficiency operation across the entire load range, thus improving operating efficiency under light load conditions. The first voltage mode corresponds to the heavy load mode, which reduces the voltage fluctuation amplitude across the capacitors in the circuit, thereby reducing voltage ripple and capacitor noise. In other words, the voltage ripple of the first voltage mode is smaller than that of the second voltage mode, while the losses in the second voltage mode are higher than those in the first voltage mode.

[0136] In this embodiment, the first voltage mode is PWM mode and the second voltage mode is PFM mode.

[0137] It is understandable that before determining the target application as a preset application in the application list, if the voltage control mode of the target power component is the first voltage mode, the mobile phone may not perform a mode switching operation, that is, it will not switch the voltage control mode of the target power component, so as to reduce unnecessary switching processes.

[0138] In some embodiments, the mobile phone can switch the voltage control mode of the target power component by modifying the value of a control register (or register value). This control register is used to control the voltage control mode of the target power component. Specifically, taking a first voltage mode with a first value and a second voltage mode with a second value as an example, if the register value is changed from the second value to the first value, the mobile phone can determine that the voltage control mode of the target power component has switched from the second voltage mode to the first voltage mode. For example, the first value can be 0x68, and the second value can be 0x60.

[0139] In one implementation, if the target application is determined to be a preset application in the application list, the phone can generate a first setting parameter of "record=on". Then, based on this first setting parameter, the phone can switch the voltage control mode of the target power component from a second voltage mode to a first voltage mode.

[0140] It's important to note that because the target power component in a mobile phone supplies power to the circuit containing the associated capacitor—meaning it essentially acts as the phone's power source—and this associated capacitor is located close to the microphone, the phone can easily record capacitor noise generated by the capacitor during recording. Therefore, to address the interference from capacitor noise in the phone's circuitry, the phone can adjust the voltage control mode of the target power component to reduce the voltage fluctuation amplitude across the capacitor in the circuit, thus reducing voltage ripple. This reduces capacitor noise interference caused by vibrations of the capacitor near the microphone, improving the user's recording experience.

[0141] Furthermore, while the first voltage mode reduces voltage ripple compared to the second voltage mode, it is not suitable for operation under low load conditions, as it increases unnecessary power consumption, resulting in some losses. Therefore, to minimize unnecessary power loss, the phone only switches the voltage control mode of the target power component from the second voltage mode to the first voltage mode when the target application is a preset application in the application list. This reduces unnecessary power loss and thus increases the phone's usage time.

[0142] Specifically, by switching the voltage control mode of the target power component from the second voltage mode to the first voltage mode, the target audio file recorded by the phone can be an audio file without capacitor noise, that is, it only includes the audio data output by the user. This can improve the user's recording experience.

[0143] S504, in response to the user's second operation, the phone switches the voltage control mode of the target power component from the first voltage mode back to the second voltage mode.

[0144] Specifically, after switching the voltage control mode of the target power component from the second voltage mode to the first voltage mode, if a second user operation is detected, the phone can switch the voltage control mode of the target power component back from the first voltage mode to the second voltage mode. This minimizes unnecessary power consumption and thus extends the phone's usage time.

[0145] For example, taking the register value corresponding to the first voltage mode as the first value and the register value corresponding to the second voltage mode as the second value, if the register value is changed from the first value to the second value, the mobile phone can determine that the voltage control mode of the target power component has switched from the first voltage mode to the second voltage mode.

[0146] In some embodiments, the second operation described above can be a user exit operation for the target application, that is, the phone does not display the recording interface of the target application. This exit operation can be a swipe operation by the user's finger from right to left. For example, please see... Figure 7 The phone is displaying Figure 7 The recording interface is shown in (a). Then, in response to the user's left swipe operation on the recording interface, the phone can execute step S504 and return to the previous display. Figure 7 The main interface shown in (b) is shown in the middle.

[0147] In other embodiments, the second operation described above can be a click operation on a stop recording control in the target application, that is, triggering the stop recording control operation when a recording operation is performed. This stop recording control can be pre-set according to actual needs. For example, the stop recording control can be a stop video recording control in a camera application, or a stop audio recording control in a recorder application, etc., and is not specifically limited. For example, please refer again... Figure 7 ,like Figure 7 When the user clicks the "Stop Recording" control 710 in the second recording interface shown in (a), the phone can execute the steps in S504 and return to display as shown in the image. Figure 7 The first recording interface shown in (c) is shown in the middle.

[0148] In one implementation, upon detecting a second user action, the phone can generate a second setting parameter of "record=off". Then, based on this second setting parameter, the phone can switch the voltage control mode of the target power component from a first voltage mode to a second voltage mode.

[0149] S505, the phone does not perform mode switching operations.

[0150] Specifically, once it is determined that the target application is not a preset application in the application list, the phone can choose not to perform a mode switching operation, that is, not to switch the voltage control mode of the target power component, and continue to maintain the original voltage control mode (i.e., the second voltage mode), thereby reducing unnecessary power consumption loss and increasing the phone's usage time.

[0151] Example 2

[0152] This application provides a method for switching voltage control modes. In this embodiment, when a call interface is displayed, if the phone to which the call interface belongs is in a connected state and the calling device is a microphone, the mobile phone can switch the voltage control mode of the target power component from PFM mode to PWM mode. Specifically, as shown... Figure 8 As shown, the switching method for this voltage control mode may include S801 to S806.

[0153] S801, the phone displays the call interface of a call-related application.

[0154] For example, the aforementioned calling applications can be the phone application that comes pre-installed on the phone, or other communication applications installed on the phone, etc., without specific limitations. The phone application is an application that makes calls using a SIM card. The communication application is an application that makes calls based on Voice Over Internet Protocol (VoIP) technology.

[0155] In some embodiments, the call interface described above can be generated based on a user's call operation to any other user; that is, the mobile phone can display the call interface in response to a user's call operation to any user in a call-related application. For example, please see... Figure 9 The phone is displaying Figure 9 The dialer interface of the telephone application shown in (a) includes a call control 910. Subsequently, if the user clicks the call control 910 on the dialer interface, the phone can display the following... Figure 9 The call interface shown in (b) is shown in the middle.

[0156] In other embodiments, the call interface described above can be generated by the mobile phone based on the received incoming call; that is, the mobile phone can display this call interface when it receives an incoming call from the calling device. For example, please refer to... Figure 10 The phone is displaying Figure 10 The incoming call interface shown in (a) includes a receive control 1010. This incoming call interface is equivalent to the call interface of a telephone application.

[0157] S802, the mobile phone determines whether the call on the call screen is connected.

[0158] In some embodiments, after displaying the call interface, the mobile phone can determine whether the phone to which the call interface belongs is in an connected state. If the phone to which the call interface belongs is in an connected state, it means that the user is making a call, and the mobile phone can execute S803 to further determine whether the calling device used during the call is a microphone, thereby ensuring the accuracy of the voltage control mode switching. If the phone to which the call interface belongs is not in an connected state, that is, the phone to which the call interface belongs is in a disconnected state, it means that the user is not making a call, and the mobile phone can execute S806 to maintain the original voltage control mode (i.e., the second voltage mode), thereby reducing unnecessary power consumption loss and improving the phone's usage time.

[0159] It is understandable that whether a call is connected can be determined based on whether the mobile phone detects an answering action in response to a call event. This call event can be either an incoming call event or a calling event; there is no specific limitation. In other words, if an answering action is detected in response to a call event, the mobile phone can determine that the call is connected; if no answering action is detected, the mobile phone can determine that the call is not connected, meaning the call has not been answered.

[0160] In one example, such as Figure 9 As shown, in the display Figure 9 In the case of the dialing interface shown in (a), if the called user of the phone number to which the dialing interface belongs (i.e., 134****8797) answers the call, that is, in response to the called user's answering action for this call, the mobile phone can display... Figure 9 The call interface shown in (b) indicates that the call is connected. This interface includes a hang-up control. Alternatively, if the called party (the phone number associated with this dialer, i.e., 134****8797) hangs up the call, the phone can return to the previous screen in response to the called party's hang-up action. Figure 9 The dialing interface of the telephone application shown in (a) indicates that the telephone to which this dialing interface belongs is in a hung-up state.

[0161] In another example, such as Figure 10 As shown, in the display Figure 10 In the case of the incoming call interface shown in (a), if the user clicks the receive control 1010 on the incoming call interface, the mobile phone can display... Figure 10 The connection screen shown in (b) indicates that the phone number associated with this call is connected. This connection screen includes a hang-up control 1020. Alternatively, if the user clicks the reject control on the incoming call screen, the phone can exit the display of the incoming call screen, meaning the phone number associated with this call is hung up.

[0162] S803, the mobile phone determines whether the calling device is the earpiece.

[0163] The aforementioned communication device refers to the device used in the aforementioned communication event. This communication device may include at least one of a handset, speaker, or headset (such as a Bluetooth headset, wired headset, etc.).

[0164] In some embodiments, after determining that the call to which the call interface belongs is in a connected state, the mobile phone can further determine whether the calling device used in this call is a handset. If the calling device is a handset, it means that the capacitor noise emitted by the capacitor near the handset is more likely to be perceived by the user. Therefore, the mobile phone can execute S804 to reduce the voltage fluctuation amplitude across the capacitor in the circuit, thereby reducing the occurrence of capacitor vibration caused by excessive voltage fluctuation, minimizing the problem of capacitor noise interference caused by capacitor vibration near the handset, and ultimately improving the user's call experience. If the calling device is not a handset, that is, if the calling device is any device other than a handset, it means that the user will not perceive the capacitor noise emitted by the capacitor near the handset. Therefore, the mobile phone can execute S806 to maintain the original voltage control mode (i.e., the second voltage mode), thereby reducing unnecessary power consumption and increasing the usage time of the mobile phone.

[0165] In this embodiment, considering that some capacitors in the phone circuit are close to the earpiece (i.e., the distance between them is less than a preset distance), if the capacitors in the circuit emit capacitor noise, the user may be able to clearly perceive the noise, thus affecting the user's call experience. Therefore, to minimize the possibility of capacitor noise, the phone can perform a circuit leveling operation when running the aforementioned preset application to reduce the voltage fluctuation amplitude across the capacitors in the circuit. This reduces the occurrence of capacitor vibration due to excessive voltage fluctuations, minimizing noise interference caused by capacitor vibration and ultimately improving the user experience.

[0166] In one scenario, since the circuit containing the aforementioned associated capacitor is a Wi-Fi-enabled circuit, the electric field across the associated capacitor only changes when a Wi-Fi-enabled application is running on the phone. This changes the mechanical stress acting on the associated capacitor, causing it to vibrate and generate capacitor noise. Therefore, only when a Wi-Fi-enabled application is running on the phone and a call is detected (i.e., the phone is connected), will the phone determine whether the calling device is the earpiece. This allows for timely switching of the voltage control mode of the target power component, thereby reducing capacitor noise and improving the user's recording experience.

[0167] S804, the mobile phone switches the voltage control mode of the target power component from the second voltage mode to the first voltage mode.

[0168] Specifically, after determining that the aforementioned communication device is an earpiece, the mobile phone can switch the voltage control mode of the target power component from the second voltage mode to the first voltage mode. The target power component is used to supply power to the circuit containing the associated capacitor. In some embodiments of this application, the target power component is a Buckboost device, and the circuit containing the associated capacitor is a power supply circuit, which can be a Buckboost circuit.

[0169] The second voltage mode corresponds to the light load mode, which reduces losses to achieve high efficiency operation across the entire load range, thus improving operating efficiency under light load conditions. The first voltage mode corresponds to the heavy load mode, which reduces the voltage fluctuation amplitude across the capacitors in the circuit, thereby reducing voltage ripple and capacitor noise. In other words, the voltage ripple of the first voltage mode is smaller than that of the second voltage mode, while the losses in the second voltage mode are higher than those in the first voltage mode.

[0170] In this embodiment, the first voltage mode is PWM mode and the second voltage mode is PFM mode.

[0171] It is understandable that, before determining that the aforementioned communication device is an earpiece, if the voltage control mode of the aforementioned target power component is the first voltage mode, the mobile phone may not perform a mode switching operation, that is, it may not switch the voltage control mode of the target power component, in order to reduce unnecessary switching processes.

[0172] In some embodiments, the mobile phone can switch the voltage control mode of the target power component by modifying the value of a control register. This control register is used to control the voltage control mode of the target power component. Specifically, taking a first voltage mode with a register value of a first value and a second voltage mode with a register value of a second value as an example, if the register value is changed from the second value to the first value, the mobile phone can determine that the voltage control mode of the target power component has switched from the second voltage mode to the first voltage mode. For example, the first value can be 0x68, and the second value can be 0x60.

[0173] It's important to note that because the target power component in a mobile phone supplies power to the circuit containing the associated capacitor—meaning it essentially acts as the phone's power source—and this associated capacitor is located close to the earpiece, the phone can easily output capacitor noise generated by this capacitor during calls. Therefore, to address the interference from capacitor noise in the phone's circuitry, the phone can reduce the voltage fluctuation amplitude across the capacitor by adjusting the voltage control mode of the target power component. This reduces voltage ripple and thus minimizes capacitor noise interference caused by vibrations of the capacitor near the earpiece, improving the user's call experience.

[0174] Furthermore, while the first voltage mode reduces voltage ripple compared to the second voltage mode, it is not suitable for operation under low load conditions, as it increases unnecessary power consumption, resulting in some losses. Therefore, to minimize unnecessary power loss, the phone only switches the circuit's voltage mode from the second to the first voltage mode when the phone is in a call and the handset is used. This reduces unnecessary power loss and thus extends the phone's battery life.

[0175] For example, such as Figure 10 As shown in interface (b), when the call is connected and the calling device is the earpiece, if the phone switches the voltage control mode of the power circuit from the second voltage mode to the first voltage mode, the capacitors located near the earpiece will not generate capacitor noise, so that the content of the call heard by the user does not include capacitor noise, thereby improving the user's call experience.

[0176] S805, in response to a phone call ending, the phone switches the voltage control mode of the target power component from the first voltage mode back to the second voltage mode.

[0177] Specifically, after switching the voltage control mode of the target power component from the second voltage mode to the first voltage mode, if a call hang-up operation (or a second operation) is detected, the mobile phone can switch the voltage control mode of the target power component back from the first voltage mode to the second voltage mode. This hang-up operation can be a call-related event hang-up operation. This minimizes unnecessary power consumption and thus extends the phone's usage time.

[0178] For example, taking the register value corresponding to the first voltage mode as the first value and the register value corresponding to the second voltage mode as the second value, if the register value is changed from the first value to the second value, the mobile phone can determine that the voltage control mode of the target power component has switched from the first voltage mode to the second voltage mode.

[0179] In some embodiments, the hang-up operation can be triggered by either the user of the mobile phone (i.e., the owner) or the user of the telephone number (i.e., the other party), without limitation. For example, let's take the hang-up operation triggered by the owner as an example. Figure 10 As shown, in the display Figure 10 In the case of the connection interface shown in (b), if the user clicks the hang-up control 1020 on the connection interface, the phone can display... Figure 10 The hang-up interface is shown in (c). This means that the phone can switch the voltage control mode of the target power component from the second voltage mode back to the first voltage mode while performing the hang-up operation.

[0180] S806, the phone does not perform mode switching operations.

[0181] In some embodiments, after determining that the calling device is not the earpiece, or that the phone to which the call interface belongs is not in a connected state, the mobile phone may not perform a mode switching operation, that is, it may not switch the voltage control mode of the target power component, but continue to maintain the original voltage control mode (i.e., the second voltage mode), thereby reducing unnecessary power consumption loss and increasing the usage time of the mobile phone.

[0182] In some embodiments, this application provides a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the method described above.

[0183] In some embodiments, this application provides a computer program product that, when run on an electronic device, causes the electronic device to perform the method described above.

[0184] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to 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.

[0185] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0186] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0187] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0188] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0189] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for switching voltage control modes, characterized in that, Applied to an electronic device, the electronic device including a sound transceiver and a plurality of capacitors, wherein one or more associated capacitors of the plurality of capacitors are at a distance less than a preset distance from the sound transceiver; the method includes: In response to the first operation, the electronic device switches the voltage control mode of the target power supply component from the second voltage mode to the first voltage mode; wherein the target power supply component is used to supply power to the circuit where the associated capacitor is located, the first operation is used to trigger the audio transceiver device to enter the working mode, and the voltage ripple corresponding to the first voltage mode is less than the voltage ripple corresponding to the second voltage mode.

2. The method according to claim 1, characterized in that, In response to the first operation, the electronic device switches the voltage control mode of the target power component from the second voltage mode to the first voltage mode, including: In response to the first operation, the electronic device modifies the value of the control register from the second value to the first value; wherein the control register is used to control the voltage control mode of the target power supply component, the first value is used to characterize the first voltage mode, and the second value is used to characterize the second voltage mode.

3. The method according to claim 1 or 2, characterized in that, The first voltage mode is pulse width modulation (PWM) mode, and the second voltage mode is pulse frequency modulation (PFM) mode.

4. The method according to any one of claims 1-3, characterized in that, The method further includes: In response to the second operation, the electronic device switches the voltage control mode of the target power supply component from a first voltage mode to a second voltage mode; wherein the second operation is used to trigger the audio transceiver to exit the operating mode.

5. The method according to any one of claims 1-4, characterized in that, The second voltage mode corresponds to the light load mode, and the first voltage mode corresponds to the heavy load mode.

6. The method according to claim 4 or 5, characterized in that, The audio transceiver includes a microphone, and in response to the first operation, the electronic device switches the voltage control mode of the target power supply component from a second voltage mode to a first voltage mode, including: In response to a user’s first operation on a target application, the target application having the function of recording using the microphone, the electronic device switches the voltage control mode of the target power component from a second voltage mode to a first voltage mode; wherein, the first operation is used to trigger the microphone to enter the working mode.

7. The method according to claim 6, characterized in that, The user's first operation on the target application includes any one of the following: opening the target application, or, if the target application is opened, triggering the recording control. The second operation includes any one of the following: exiting the target application, or, in the case of performing a recording operation, triggering the stop recording control.

8. The method according to claim 4, characterized in that, The audio transceiver includes a handset, and in response to the first operation, the electronic device switches the voltage control mode of the target power supply component from a second voltage mode to a first voltage mode, including: In response to an answering operation for a call event, if the calling device used for the call event is a handset, the electronic device switches the voltage control mode of the target power component from the second voltage mode to the first voltage mode; In response to the second operation, the electronic device switches the voltage control mode of the target power supply component from a first voltage mode to a second voltage mode, including: In response to a hang-up operation for a call event, the electronic device switches the voltage control mode of the target power component from a first voltage mode to a second voltage mode.

9. The method according to claim 8, characterized in that, The method further includes: If no answering operation is detected for the call event, or if the calling device is not a handset, the electronic device does not perform a mode switching operation.

10. The method according to any one of claims 4-9, characterized in that, The electronic device includes a target recognition module and a mode switching module. In response to the first operation, the electronic device switches the voltage control mode of the target power supply component from a second voltage mode to a first voltage mode, including: In response to the first operation, the target recognition module in the electronic device sends a first switching instruction to the mode switching module in the electronic device according to the first operation; Upon receiving a first switching instruction from the target identification module, the mode switching module switches the voltage control mode of the target power supply component from the second voltage mode to the first voltage mode.

11. The method according to claim 10, characterized in that, The electronic device further includes an application matching module, and the target recognition module includes a scene recognition module and / or a parameter recognition module. In response to the first operation, the target recognition module in the electronic device sends a first switching instruction to the mode switching module in the electronic device according to the first operation, including: In response to an answering operation for a call event, if the call status corresponding to the call event is an connected state and the calling device used in the call event is a handset, the scene recognition module sends the first switching instruction to the mode switching module in the electronic device; and / or, In response to a user's first operation on a target application, the application matching module in the electronic device determines whether the target application is a preset application in the application list; wherein, the preset application has the function of recording audio using a microphone; When the target application is a preset application in the application list, the application matching module generates a first setting parameter and sends the first setting parameter to the parameter recognition module in the electronic device; wherein, the first setting parameter is used to characterize that the electronic device is recording through the microphone; Upon receiving the first setting parameter sent by the application matching module, the parameter identification module sends the first switching instruction to the mode switching module in the electronic device according to the first setting parameter.

12. The method according to claim 10 or 11, characterized in that, The electronic device further includes an application matching module, and the target recognition module includes a scene recognition module and / or a parameter recognition module. In response to the second operation, the electronic device switches the voltage control mode of the target power component from a first voltage mode to a second voltage mode, including: In response to a hang-up operation for a call event, the scene recognition module sends a second switching instruction to the mode switching module in the electronic device; and / or, In response to a second user action on a target application, the application matching module generates a second setting parameter and sends the second setting parameter to the parameter recognition module; wherein, the second setting parameter is used to indicate that the electronic device stops recording through the microphone; Upon receiving the second setting parameter sent by the application matching module, the parameter identification module sends the second switching instruction to the mode switching module in the electronic device according to the second setting parameter; Upon receiving a second switching instruction from the parameter identification module, the mode switching module switches the voltage control mode of the target power supply component from the first voltage mode to the second voltage mode.

13. An electronic device, characterized in that, include: A voice transceiver device, one or more processors, and one or more memories; the one or more processors are coupled to the voice transceiver device and the one or more memories; the one or more memories are used to store computer program code, the computer program code including computer instructions, which, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 1-12.

14. A computer-readable storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 12.

15. A computer program product, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 12.