Control method, device, equipment and readable storage medium of electronic equipment
By determining the load current of the electronic device in response to the trigger event and switching the working mode of the power module according to the load current, the problem that the power supply solution cannot be adjusted in real time in the prior art is solved, and the power efficiency and battery life are improved.
Patent Information
- Application Number
- CN202111632672.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2041-12-28
AI Technical Summary
The power supply scheme of existing electronic equipment cannot be adjusted in real time according to changes in power supply requirements, resulting in low power efficiency and affecting battery life.
In response to the set trigger event, the operating current of the corresponding functional module is determined, and the load current of the electronic device is determined, and the power supply module is controlled to switch between the first working mode and the second working mode according to the load current.
It realizes real-time adjustment of power mode according to changes in power requirements of electronic devices, improves power efficiency and extends the battery life of electronic devices.
Smart Images

Figure CN114415814B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the technical field of voltage output, and more specifically, to a control method, device, equipment, and readable storage medium of an electronic device. Background Art
[0002] As electronic devices are replaced, more and more functional modules are included in the electronic devices. However, the power consumption of various functional modules is different. When different functional modules are working, the power requirements of the electronic devices are different. Therefore, it is necessary to adjust the power supply scheme of the electronic devices in real time.
[0003] In the related art, the power supply scheme of electronic devices is usually fixed, for example, a fixed buck circuit and boost circuit are used to power the load. However, this method cannot adjust the power supply scheme in real time according to the changes in the power demand of the electronic device, and the power efficiency is low, which affects the battery life of the electronic device. Summary of the invention
[0004] The purpose of the embodiments of the present disclosure is to provide a control method, device, equipment and readable storage medium for an electronic device, so as to adjust the working mode of a power module in real time according to the changes in the power demand of the electronic device, improve the power efficiency, and extend the battery life of the electronic device.
[0005] According to a first aspect of an embodiment of the present disclosure, a control method of an electronic device is provided, the method comprising:
[0006] In response to a set trigger event, determining an operating current of a functional module corresponding to the trigger event;
[0007] Determining the load current of the electronic device according to the operating current of the functional module corresponding to the trigger event;
[0008] According to the load current, a power module of the electronic device is controlled to switch between a first working mode and a second working mode.
[0009] Optionally, controlling the power module of the electronic device to switch between the first working mode and the second working mode according to the load current includes:
[0010] When the current value of the load current is less than a set threshold, controlling the power module of the electronic device to switch to the first working mode;
[0011] When the current value of the load current is greater than or equal to the set threshold, the power module of the electronic device is controlled to switch to the second working mode.
[0012] Optionally, after controlling the power module of the electronic device to switch between the first working mode and the second working mode according to the load current, the method further includes:
[0013] Obtaining a battery voltage of the electronic device;
[0014] When the difference between the battery voltage and the load voltage is within a preset voltage range, outputting the battery voltage;
[0015] When the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is greater than the load voltage, controlling the battery voltage of the electronic device to decrease to the load voltage;
[0016] When the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is lower than the load voltage, the battery voltage of the electronic device is controlled to increase to the load voltage.
[0017] Optionally, before determining the operating current of the functional module corresponding to the trigger event in response to the set trigger event, the method further includes:
[0018] Before the electronic device is turned on, obtaining the battery voltage of the electronic device;
[0019] When the difference between the battery voltage and the load voltage is within a preset voltage range, outputting the battery voltage;
[0020] When the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is greater than the load voltage, controlling the battery voltage of the electronic device to decrease to the load voltage;
[0021] When the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is lower than the load voltage, the battery voltage of the electronic device is controlled to increase to the load voltage.
[0022] Optionally, in response to a set trigger event, determining the operating current of a functional module corresponding to the trigger event includes:
[0023] In response to a set trigger event, acquiring set mapping data; wherein the mapping data is data reflecting the corresponding relationship between the functional modules of the electronic device and the working current;
[0024] According to the mapping data, an operating current of a functional module corresponding to the triggering event is determined.
[0025] Optionally, after determining the load current of the electronic device according to the operating current of the functional module corresponding to the trigger event, the method includes:
[0026] The load current of the electronic device is stored.
[0027] According to a second aspect of an embodiment of the present disclosure, a control device of an electronic device is provided, the device comprising:
[0028] A first determining module, configured to obtain, in response to a set triggering event, an operating current of a functional module corresponding to the triggering event;
[0029] A second determination module, configured to determine a load current of the electronic device according to an operating current of a functional module corresponding to the trigger event;
[0030] The control module is used to control the power module of the electronic device to switch between a first working mode and a second working mode according to the load current.
[0031] Optionally, the control module includes:
[0032] A first control unit, configured to control the power module of the electronic device to switch to the first working mode when the current value of the load current is less than a set threshold;
[0033] The second control unit is used to control the power module of the electronic device to switch to the second working mode when the current value of the load current is greater than or equal to the set threshold.
[0034] Optionally, the device further comprises:
[0035] A voltage acquisition module, used to acquire the battery voltage of the electronic device;
[0036] A pass-through module, configured to output the battery voltage when the difference between the battery voltage and the load voltage is within a preset voltage range;
[0037] A voltage reduction module, configured to control the battery voltage of the electronic device to decrease to the load voltage when the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is greater than the load voltage;
[0038] A boost module is used to control the battery voltage of the electronic device to increase to the load voltage when the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is lower than the load voltage.
[0039] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0040] Memory for storing executable computer instructions;
[0041] The processor is used to execute the control method of the electronic device as described in the first aspect of the embodiment of the present disclosure according to the control of the executable computer instructions.
[0042] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the control method of the electronic device as described in the first aspect of the embodiment of the present disclosure is executed.
[0043] According to an embodiment of the present disclosure, during the operation of an electronic device, in response to a set trigger event, the load current of the electronic device is determined according to the operating current of the functional module corresponding to the trigger event, and according to the load current of the electronic device, the power module of the electronic device is controlled to switch between the first operating mode and the second operating mode. In this way, compared with the existing method of switching the operating mode of the power module through the feedback signal of the power circuit, the current load current of the electronic device is predicted by the trigger event, so that the current load current of the electronic device can be accurately determined, and the delay can be reduced. Furthermore, the operating mode of the power module is switched according to the load current of the electronic device, so that when the electronic device is under heavy load, the normal operation of the electronic device can be guaranteed, and when the electronic device is in light load mode, the power efficiency of the electronic device can be improved. In addition, for small electronic devices, the standby time of the electronic device can be delayed, and the user experience is better.
[0044] Other features and advantages of embodiments of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can also be obtained based on these drawings without creative work.
[0046] Figure 1 is a schematic diagram of the hardware configuration of an electronic device that can be used to implement a control method of an embodiment;
[0047] Figure 2 is a flow chart of a control method of an electronic device according to an embodiment;
[0048] Figure 3is a graph showing the relationship between power efficiency and load current of an electronic device according to an embodiment;
[0049] Figure 4 is a principle block diagram of a control device of an electronic device according to an embodiment;
[0050] Figure 5 is a schematic diagram of the hardware structure of an electronic device according to an embodiment. DETAILED DESCRIPTION
[0051] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the embodiments of the present disclosure.
[0052] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0053] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0054] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0055] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0056] <Hardware Configuration>
[0057] Figure 1 The figure is a schematic diagram of the hardware configuration of an electronic device that can be used to implement a control method of an embodiment.
[0058] like Figure 1As shown, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a microphone 1700 and a speaker 1800. The processor 1100 may include, but is not limited to, a central processing unit CPU, a microprocessor MCU, etc. The memory 1200 may include, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1300 may include, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, etc. The communication device 1400 may, for example, be capable of wired or wireless communication. The display device 1500 may be, for example, a liquid crystal display, an LED display, a touch display, etc. The input device 1600 may include, for example, a touch screen, a keyboard, a handle, etc. The microphone 1700 may be used to input voice information. The speaker 1800 may be used to output voice information.
[0059] The electronic device 1000 may be, for example, a mobile phone, a portable computer, a tablet computer, a PDA, a wearable device, etc., which is not limited in the embodiments of the present disclosure.
[0060] In this embodiment, the memory 1200 of the electronic device 1000 is used to store instructions, and the instructions are used to control the processor 1100 to operate to implement or support the implementation of the control method of the electronic device according to any embodiment. The technician can design instructions according to the scheme disclosed in this specification. How the instructions control the processor to operate is well known in the art, so it will not be described in detail here.
[0061] It should be understood by those skilled in the art that although Figure 1 Multiple devices of the electronic device 1000 are shown in the figure, but the electronic device 1000 of the embodiment of this specification may only involve some of the devices, or may also include other devices, which is not limited here.
[0062] Figure 1 The illustrated electronic device 1000 is for illustrative purposes only and is in no way intended to limit the present description, its application, or uses.
[0063] Hereinafter, various embodiments and examples according to the present disclosure are described with reference to the drawings.
[0064] <Method Example>
[0065] Figure 2 A control method of an electronic device according to an embodiment of the present disclosure is shown. The control method can be performed as follows. Figure 1 The electronic device 1000 shown is implemented as Figure 2 As shown, the control method of the electronic device provided by this embodiment may include the following steps S2100 to S2300.
[0066] Step S2100, in response to a set trigger event, determining an operating current of a functional module corresponding to the trigger event.
[0067] In this embodiment, the electronic device includes a plurality of functional modules, such as a display module, a speaker module, a camera module, a motor drive, etc. Various functions of the electronic device can be realized through various functional modules. For example, when taking a photo using the electronic device, the camera module works. For another example, when playing music using the electronic device, the speaker module works. For another example, when viewing content using the electronic device, the display module works. For another example, when the alarm function of the electronic device is turned on, the vibrator of the electronic device works.
[0068] The trigger event can be used to trigger one or more functional modules of the electronic device to work. Exemplarily, the trigger event can be a user input or a command preset by the user. For example, a screen light event, a human-computer interaction event, an alarm event, a shooting event, a playback event, etc.
[0069] In this embodiment, different functional modules have different working currents, that is, different functional modules have different power consumption currents when working. In other words, different trigger events cause different functional modules in the electronic device to work, and the load current required by the electronic device is different. Based on this, in response to the set trigger event, the functional module corresponding to the trigger event is determined, that is, the functional module to be started in the electronic device is determined, and the load current of the electronic device is determined according to the working current of the functional module corresponding to the trigger event, so as to adjust the working mode of the power module according to the load current of the electronic device, so as to improve the power efficiency.
[0070] In one embodiment, the step of determining the operating current of the functional module corresponding to the trigger event in response to the set trigger event may further include: step S2110 to step S2120.
[0071] Step S2110, in response to a set trigger event, obtaining set mapping data; wherein the mapping data is data reflecting the corresponding relationship between the functional modules of the electronic device and the working current.
[0072] In this embodiment, the mapping data may be data reflecting the correspondence between the functional modules of the electronic device and the working current. The working current of the functional modules of the electronic device may be the maximum power consumption current of the functional modules. The working current of the functional modules of the electronic device may be obtained according to a simulation experiment test. Exemplarily, the mapping data may be stored in a program to be looked up table. In a specific implementation, the working current of each functional module of the electronic device may be obtained in advance, and the correspondence between the functional modules of the electronic device and the working current may be established. After that, the mapping data reflecting the correspondence between the functional modules of the electronic device and the working current may be stored in the program to be looked up table.
[0073] Step S2120: determining the operating current of the functional module corresponding to the trigger event according to the mapping data.
[0074] In a specific implementation, taking the screen-on event as an example, when the screen-on event is detected, the operating current of the display module is searched through a program lookup table to determine the load current of the electronic device based on the operating current of the display module.
[0075] In this embodiment, mapping data reflecting the correspondence between the functional modules of the electronic device and the working current can be established in advance. In this way, when a trigger event is detected, the functional module to be operated can be determined, and the working current of the functional module corresponding to the trigger event can be determined based on the mapping data, so that the load current of the electronic device can be determined based on the working current of the functional module corresponding to the trigger event. In this way, the current currently required by the electronic device can be predicted, so that the working mode of the power module can be adjusted in time according to the load current of the electronic device, which can improve the power efficiency and extend the standby time of the electronic device.
[0076] After step S2100, step S2200 is executed to determine the load current of the electronic device according to the working current of the functional module corresponding to the trigger event.
[0077] In this embodiment, the load current of the electronic device may be the working current currently required by the electronic device, that is, the current to be output by the power module of the electronic device. Exemplarily, when the trigger event corresponds to multiple functional modules, the load current of the electronic device may be determined based on the sum of the working currents of the multiple functional modules.
[0078] In one embodiment, after determining the load current of the electronic device according to the operating current of the functional module corresponding to the trigger event, the method may further include: storing the load current of the electronic device.
[0079] In a specific implementation, the electronic device is also provided with a register, which is used to store the load current of the electronic device. For different trigger events, different functional modules of the electronic device are started. After the electronic device is turned on, when each functional module is started or shut down, the load current of the electronic device is determined according to the working current of the functional module currently started and corresponding to the trigger event, and the current value of the load current of the electronic device stored in the register of the electronic device is updated. In this way, the working mode of the power supply module is adjusted according to the load current of the electronic device in real time according to the change of the load current of the electronic device, which can improve the accuracy of the adjustment and enhance the user experience.
[0080] After step S2200, step S2300 is executed to control a power module of the electronic device to switch between a first working mode and a second working mode according to the load current.
[0081] In this embodiment, the first working mode may be a pulse frequency modulation (PFM) mode. For the PFM mode, the frequency of the modulation signal varies with the amplitude of the input signal, and its duty cycle remains unchanged. The second working mode may be a pulse width modulation (PWM) mode. For the PWM mode, when the output frequency of the power module controlling the electronic device remains unchanged, its duty cycle is adjusted through voltage feedback, thereby achieving the purpose of stabilizing the output voltage. Compared with the PWM mode, the output current of the PFM mode is small, which can improve the power output efficiency at low loads.
[0082] In a specific implementation, taking the screen-on event as an example, when the screen-on event is detected, the operating current of the display module is searched through a program lookup table to determine the load current of the electronic device based on the operating current of the display module; then, when the display module is working, that is, when the load current of the electronic device changes, it is determined whether the operating mode of the power module of the electronic device needs to be adjusted, so as to adjust the operating mode of the power module in real time according to the load current of the electronic device; then, when the screen-on event ends, the operating mode of the power module is re-determined and adjusted according to the load current of the electronic device.
[0083] In one embodiment, controlling the power module of the electronic device to switch between the first working mode and the second working mode according to the load current may further include: when the current value of the load current is less than a set threshold, controlling the power module of the electronic device to switch to the first working mode; when the current value of the load current is greater than or equal to the set threshold, controlling the power module of the electronic device to switch to the second working mode.
[0084] In this embodiment, when the current value of the load current of the electronic device is less than the set threshold, the electronic device is considered to be lightly loaded, and at this time, the working mode of the power module of the electronic device is switched to the first working mode, that is, the PFM mode. When the current value of the load current of the electronic device is greater than or equal to the set threshold, the electronic device is considered to be heavily loaded, and at this time, the working mode of the power module of the electronic device is switched to the second working mode, that is, the PWM mode.
[0085] For example, the threshold value may be set to 50 mA. Figure 3 As shown, when the current value of the load current of the electronic device is less than 50mA, for the PWM mode, the power efficiency of the electronic device is 10% to 80%, and the smaller the current value of the load current of the electronic device, the lower the power efficiency of the electronic device. For the PFM mode, the power efficiency of the electronic device is greater than 70%. However, when the current value of the load current of the electronic device is greater than or equal to 50mA, for the PWM mode, the power efficiency of the electronic device is greater than 80%, and the smaller the current value of the load current of the electronic device, the lower the power efficiency of the electronic device. Based on this, when the current value of the load current of the electronic device is less than 50mA, the working mode of the power module of the electronic device is controlled to be the first working mode (PFM mode), and when the current value of the load current of the electronic device is greater than or equal to 50mA, the working mode of the power module of the electronic device is controlled to be the second working mode (PWM mode). It should be noted here that the threshold value can be set according to the experimental simulation results, and the embodiments of the present disclosure are not limited to this.
[0086] In this embodiment, when the current value of the load current is less than the set threshold, the power module of the electronic device is controlled to switch to the first working mode; when the current value of the load current is greater than or equal to the set threshold, the power module of the electronic device is controlled to switch to the second working mode, so that when the electronic device is under heavy load, the working mode of the power module is controlled to be the second working mode, which can ensure the normal operation of the electronic device. When the electronic device enters a light load mode such as standby mode, the power module is switched from the second working mode to the first working mode, which can improve the power efficiency of the electronic device, and switching the working mode of the power module according to the triggering event can reduce the switching frequency and improve the conversion efficiency.
[0087] In one embodiment, after controlling the power module of the electronic device to switch between the first working mode and the second working mode according to the load current, the method may further include: acquiring a battery voltage of the electronic device; outputting the battery voltage when the difference between the battery voltage and the load voltage is within a preset voltage range; controlling the battery voltage of the electronic device to decrease to the load voltage when the difference between the battery voltage and the load voltage is outside the preset voltage range and the battery voltage is greater than the load voltage; controlling the battery voltage of the electronic device to increase to the load voltage when the difference between the battery voltage and the load voltage is outside the preset voltage range and the battery voltage is less than the load voltage.
[0088] In this embodiment, the battery voltage of the electronic device may be the current voltage of the battery of the electronic device. As the battery discharges, the battery voltage of the electronic device is detected in real time. The load voltage of the electronic device may be the voltage currently input to the load by the power module. According to the difference between the battery voltage of the electronic device and the load voltage, the power efficiency of the electronic device may be measured.
[0089] When the difference between the battery voltage and the load voltage of the electronic device is within the preset voltage range, it means that the battery voltage of the electronic device is close to the load voltage, the power efficiency of the electronic device is high, and the battery voltage can be directly output to the load. When the difference between the battery voltage and the load voltage of the electronic device is outside the preset voltage range, and the battery voltage is greater than the load voltage, the battery voltage of the electronic device is controlled to be reduced to the load voltage; when the difference between the battery voltage and the load voltage is outside the preset voltage range, and the battery voltage is less than the load voltage, the battery voltage of the electronic device is controlled to be increased to the load voltage. In this way, according to the change of the battery voltage of the electronic device, the output voltage of the power module is adjusted in real time, which can further improve the power efficiency of the electronic device.
[0090] In one embodiment, before determining the operating current of the functional module corresponding to the trigger event in response to the set trigger event, the method may also include: before the electronic device is turned on, obtaining the battery voltage of the electronic device; when the difference between the battery voltage and the load voltage is within a preset voltage range, outputting the battery voltage; when the difference between the battery voltage and the load voltage is outside the preset voltage range and the battery voltage is greater than the load voltage, controlling the battery voltage of the electronic device to decrease to the load voltage; when the difference between the battery voltage and the load voltage is outside the preset voltage range and the battery voltage is less than the load voltage, controlling the battery voltage of the electronic device to increase to the load voltage.
[0091] In this embodiment, before the electronic device is turned on, the electronic device may be in a standby mode. The battery voltage of the electronic device may be the current voltage of the battery when the electronic device is not turned on. As the battery discharges, the battery voltage of the electronic device is detected in real time. The load voltage of the electronic device may be the voltage currently input to the load by the power module. According to the difference between the battery voltage and the load voltage of the electronic device, the power efficiency of the electronic device may be measured.
[0092] When the difference between the battery voltage and the load voltage of the electronic device is within the preset voltage range, it means that the battery voltage of the electronic device is close to the load voltage, the power efficiency of the electronic device is high, and the battery voltage can be directly output to the load. When the difference between the battery voltage and the load voltage of the electronic device is outside the preset voltage range, and the battery voltage is greater than the load voltage, the battery voltage of the electronic device is controlled to be reduced to the load voltage; when the difference between the battery voltage and the load voltage is outside the preset voltage range, and the battery voltage is less than the load voltage, the battery voltage of the electronic device is controlled to be increased to the load voltage. In this way, before the electronic device is turned on, that is, when the electronic device is in low power consumption mode, the output voltage of the power module can be adjusted in real time according to the change of the battery voltage, which can further improve the power efficiency of the electronic device.
[0093] According to an embodiment of the present disclosure, during the operation of an electronic device, in response to a set trigger event, the load current of the electronic device is determined according to the operating current of the functional module corresponding to the trigger event, and according to the load current of the electronic device, the power module of the electronic device is controlled to switch between the first operating mode and the second operating mode. In this way, compared with the existing method of switching the operating mode of the power module through the feedback signal of the power circuit, the current load current of the electronic device is predicted by the trigger event, so that the current load current of the electronic device can be accurately determined, and the delay can be reduced. Furthermore, the operating mode of the power module is switched according to the load current of the electronic device, so that when the electronic device is under heavy load, the normal operation of the electronic device can be guaranteed, and when the electronic device is in light load mode, the power efficiency of the electronic device can be improved. In addition, for small electronic devices, the standby time of the electronic device can be delayed, and the user experience is better.
[0094] <Device Example>
[0095] The present disclosure provides a control device for an electronic device, such as Figure 4 As shown, the control device 400 of the electronic device may include a first determination module 410 , a second determination module 420 and a control module 430 .
[0096] The first determination module 410 may be configured to obtain, in response to a set trigger event, an operating current of a functional module corresponding to the trigger event;
[0097] The second determination module 420 may be used to determine the load current of the electronic device according to the working current of the functional module corresponding to the trigger event;
[0098] The control module 430 can be used to control the power module of the electronic device to switch between the first working mode and the second working mode according to the load current.
[0099] In one embodiment, the control module 430 includes:
[0100] A first control unit, configured to control the power module of the electronic device to switch to the first working mode when the current value of the load current is less than a set threshold;
[0101] The second control unit is used to control the power module of the electronic device to switch to the second working mode when the current value of the load current is greater than or equal to the set threshold.
[0102] In one embodiment, the apparatus further comprises:
[0103] A voltage acquisition module, used to acquire the battery voltage of the electronic device;
[0104] A pass-through module, configured to output the battery voltage when the difference between the battery voltage and the load voltage is within a preset voltage range;
[0105] A voltage reduction module, configured to control the battery voltage of the electronic device to decrease to the load voltage when the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is greater than the load voltage;
[0106] A boost module is used to control the battery voltage of the electronic device to increase to the load voltage when the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is lower than the load voltage.
[0107] In one embodiment, the voltage acquisition module is further used to acquire the battery voltage of the electronic device before the electronic device is turned on;
[0108] The pass-through module is further used to output the battery voltage when the difference between the battery voltage and the load voltage is within a preset voltage range;
[0109] The voltage reduction module is further used to control the battery voltage of the electronic device to decrease to the load voltage when the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is greater than the load voltage;
[0110] The boost module is also used to control the battery voltage of the electronic device to increase to the load voltage when the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is lower than the load voltage.
[0111] In one embodiment, the first determining module 410 includes:
[0112] An acquisition unit, configured to acquire set mapping data in response to a set trigger event; wherein the mapping data is data reflecting a corresponding relationship between a functional module of the electronic device and an operating current;
[0113] A determination unit is used to determine the operating current of the functional module corresponding to the trigger event according to the mapping data.
[0114] In one embodiment, the apparatus further comprises:
[0115] The storage module is used to store the load current of the electronic device.
[0116] According to an embodiment of the present disclosure, during the operation of an electronic device, in response to a set trigger event, the load current of the electronic device is determined according to the operating current of the functional module corresponding to the trigger event, and according to the load current of the electronic device, the power module of the electronic device is controlled to switch between the first operating mode and the second operating mode. In this way, compared with the existing method of switching the operating mode of the power module through the feedback signal of the power circuit, the current load current of the electronic device is predicted by the trigger event, so that the current load current of the electronic device can be accurately determined, and the delay can be reduced. Furthermore, the operating mode of the power module is switched according to the load current of the electronic device, so that when the electronic device is under heavy load, the normal operation of the electronic device can be guaranteed, and when the electronic device is in light load mode, the power efficiency of the electronic device can be improved. In addition, for small electronic devices, the standby time of the electronic device can be delayed, and the user experience is better.
[0117] <Equipment Embodiment>
[0118] Figure 5 FIG. 1 is a schematic diagram of the hardware structure of an electronic device according to an embodiment. Figure 5 As shown, the electronic device 500 includes a memory 510 and a processor 520 .
[0119] The memory 510 may be used to store executable computer instructions.
[0120] The processor 520 can be used to execute the control method of the electronic device according to the method embodiment of the present disclosure under the control of the executable computer instructions.
[0121] The electronic device 500 may be Figure 1 The electronic device 1000 shown may also be a device with other hardware structures, which is not limited here. The electronic device 500 may be, for example, a mobile phone, a portable computer, a tablet computer, a PDA, a wearable device, etc., which is not limited in the embodiments of the present disclosure.
[0122] In another embodiment, the electronic device 500 may include the control device 400 of the above electronic device.
[0123] In one embodiment, each module of the control device 400 of the above electronic device can be implemented by the processor 520 running the computer instructions stored in the memory 510 .
[0124] According to an embodiment of the present disclosure, during the operation of an electronic device, in response to a set trigger event, the load current of the electronic device is determined according to the operating current of the functional module corresponding to the trigger event, and according to the load current of the electronic device, the power module of the electronic device is controlled to switch between the first operating mode and the second operating mode. In this way, compared with the existing method of switching the operating mode of the power module through the feedback signal of the power circuit, the current load current of the electronic device is predicted by the trigger event, so that the current load current of the electronic device can be accurately determined, and the delay can be reduced. Furthermore, the operating mode of the power module is switched according to the load current of the electronic device, so that when the electronic device is under heavy load, the normal operation of the electronic device can be guaranteed, and when the electronic device is in light load mode, the power efficiency of the electronic device can be improved. In addition, for small electronic devices, the standby time of the electronic device can be delayed, and the user experience is better.
[0125] <Computer Readable Storage Medium>
[0126] The embodiment of the present disclosure further provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the control method of the electronic device provided by the embodiment of the present disclosure is executed.
[0127] The embodiments of the present disclosure may be systems, methods and / or computer program products. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the embodiments of the present disclosure.
[0128] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0129] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0130] The computer program instructions for performing the operation of the disclosed embodiment can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of the computer-readable program instructions to personalize and customize electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), the electronic circuits can execute computer-readable program instructions, thereby realizing various aspects of the disclosed embodiment.
[0131] Various aspects of the disclosed embodiments are described herein with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to the disclosed embodiments. It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0132] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0133] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0134] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0135] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the embodiments of the present disclosure is defined by the appended claims.
Claims
1. A control method for an electronic device, characterized in that: The method comprises: In response to a set trigger event, determining an operating current of a functional module corresponding to the trigger event; Determining the load current of the electronic device according to the operating current of the functional module corresponding to the trigger event; According to the load current, controlling the power module of the electronic device to switch between a first working mode and a second working mode, wherein the output current corresponding to the first working mode is smaller than the output current corresponding to the second working mode; Wherein, controlling the power module of the electronic device to switch between the first working mode and the second working mode according to the load current includes: When the current value of the load current is less than a set threshold, controlling the power module of the electronic device to switch to the first working mode; When the current value of the load current is greater than or equal to the set threshold, controlling the power module of the electronic device to switch to the second working mode; Wherein, after controlling the power module of the electronic device to switch between the first working mode and the second working mode according to the load current, the method further includes: Obtaining a battery voltage of the electronic device; When the difference between the battery voltage and the load voltage is within a preset voltage range, outputting the battery voltage; When the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is greater than the load voltage, controlling the battery voltage of the electronic device to decrease to the load voltage; When the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is lower than the load voltage, the battery voltage of the electronic device is controlled to increase to the load voltage.
2. The method according to claim 1, characterized in that: Before determining the operating current of the functional module corresponding to the trigger event in response to the set trigger event, the method further includes: Before the electronic device is turned on, obtaining the battery voltage of the electronic device; When the difference between the battery voltage and the load voltage is within a preset voltage range, outputting the battery voltage; When the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is greater than the load voltage, controlling the battery voltage of the electronic device to decrease to the load voltage; When the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is lower than the load voltage, the battery voltage of the electronic device is controlled to increase to the load voltage.
3. The method according to claim 1, characterized in that The step of determining the operating current of the functional module corresponding to the trigger event in response to the set trigger event includes: In response to a set trigger event, acquiring set mapping data; wherein the mapping data is data reflecting the corresponding relationship between the functional modules of the electronic device and the working current; According to the mapping data, an operating current of a functional module corresponding to the triggering event is determined.
4. The method according to claim 1, characterized in that After determining the load current of the electronic device according to the working current of the functional module corresponding to the trigger event, the method includes: The load current of the electronic device is stored.
5. A control device for an electronic device, characterized in that: The device comprises: A first determining module, configured to obtain, in response to a set triggering event, an operating current of a functional module corresponding to the triggering event; A second determination module, configured to determine a load current of the electronic device according to an operating current of a functional module corresponding to the trigger event; A control module, configured to control a power module of the electronic device to switch between a first working mode and a second working mode according to the load current, wherein an output current corresponding to the first working mode is smaller than an output current corresponding to the second working mode; Wherein, the control module comprises: A first control unit, configured to control the power module of the electronic device to switch to the first working mode when the current value of the load current is less than a set threshold; A second control unit, configured to control the power module of the electronic device to switch to the second working mode when the current value of the load current is greater than or equal to the set threshold; Wherein, the device further comprises: A voltage acquisition module, used to acquire the battery voltage of the electronic device; A pass-through module, configured to output the battery voltage when the difference between the battery voltage and the load voltage is within a preset voltage range; A voltage reduction module, configured to control the battery voltage of the electronic device to decrease to the load voltage when the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is greater than the load voltage; A boost module is used to control the battery voltage of the electronic device to increase to the load voltage when the difference between the battery voltage and the load voltage is outside a preset voltage range and the battery voltage is lower than the load voltage.
6. An electronic device, characterized in that: include: Memory for storing executable computer instructions; A processor, configured to execute the control method of the electronic device according to any one of claims 1 to 4 under the control of the executable computer instructions.
7. A computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions are executed by a processor to execute the control method of the electronic device according to any one of claims 1 to 4.
Citation Information
Patent Citations
Power supply system
JP2017121098A
Clock frequency adjustment for workload changes in integrated circuit devices
US20210081016A1