CN111596753A - Power consumption control method and device, electronic equipment and computer readable storage medium - Google Patents

Power consumption control method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN111596753A
CN111596753A CN202010300622.1A CN202010300622A CN111596753A CN 111596753 A CN111596753 A CN 111596753A CN 202010300622 A CN202010300622 A CN 202010300622A CN 111596753 A CN111596753 A CN 111596753A
Authority
CN
China
Prior art keywords
power consumption
preset time
time period
module
scanning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010300622.1A
Other languages
Chinese (zh)
Inventor
欧阳帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chipsea Technologies Shenzhen Co Ltd
Original Assignee
Chipsea Technologies Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chipsea Technologies Shenzhen Co Ltd filed Critical Chipsea Technologies Shenzhen Co Ltd
Priority to CN202211371210.2A priority Critical patent/CN116185160A/en
Priority to CN202010300622.1A priority patent/CN111596753A/en
Publication of CN111596753A publication Critical patent/CN111596753A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3231Monitoring the presence, absence or movement of users
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to the technical field of pressure touch control, and particularly discloses a power consumption control method and device, electronic equipment and a computer readable storage medium. The method comprises the following steps: configuring timing parameters of a current period and scanning parameters of a scanning module; controlling the scanning module to acquire sensing data of the sensor in a first preset time period of the current cycle according to the scanning parameters and the timing parameters; and controlling the scanning module to stop collecting the induction data in a second preset time period of the current period according to the timing parameters. Therefore, in the same period, the time for the scanning module to collect data and the time for the scanning module to stop collecting data can be reasonably controlled according to specific application scenes and application requirements, so that the power consumption is reasonably controlled, and the whole power consumption of the electronic equipment is controlled in a lower range.

Description

Power consumption control method and device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of pressure touch technologies, and in particular, to a power consumption control method and apparatus, an electronic device, and a computer-readable storage medium.
Background
Due to the bottleneck of the battery technology, the power consumption becomes one of the core indexes of a plurality of mobile terminal chips, and meanwhile, the low power consumption is a powerful guarantee for the mobile terminal chip products in market competition. How to reduce the power consumption to the maximum extent on the basis of meeting the performance requirements of users on products becomes the primary goal of each mobile terminal chip manufacturer.
Currently, most mobile terminal chips adopt various low power consumption strategies to reduce power consumption, such as clock gating, power gating, multi-voltage domain power supply and the like. These low power consumption control methods are all important means for reducing the power consumption of the chip, but how to control the power consumption according to specific application scenarios and application requirements is still a problem that needs to be solved urgently in the field.
Disclosure of Invention
Based on this, it is necessary to provide a pressure touch system and an operation control method thereof for controlling power consumption according to a specific application scenario and application requirements.
A power consumption control method is applied to an electronic device, the electronic device comprises a sensor and a scanning module connected with the sensor, and the method comprises the following steps:
configuring timing parameters of a current period and scanning parameters of a scanning module;
controlling the scanning module to acquire sensing data of the sensor in a first preset time period of the current cycle according to the scanning parameters and the timing parameters;
and controlling the scanning module to stop collecting the induction data in a second preset time period of the current period according to the timing parameters.
In one embodiment, before the step of controlling the scanning module to stop acquiring the sensing data within a second preset time period of the current cycle according to the timing parameter, the method further includes:
and processing the induction data acquired by the scanning module in the first preset time period of the current cycle.
In one embodiment, before the step of configuring the timing parameter of the current period and the scanning parameter of the scanning module, the method further comprises:
and processing the induction data acquired by the scanning module in the first preset time period of the last period.
In one embodiment, the electronic device further includes a power management module, and while controlling the scanning module to stop acquiring the sensing data within a second preset time period of the current cycle according to the timing parameter, the method further includes:
and controlling the power supply management module to enter a low power consumption mode within a second preset time period of the current cycle.
In one embodiment, the power management module is a low dropout linear regulator;
the step of controlling the power management module to enter the low power consumption mode in a second preset time period of the current cycle includes: and reducing the load carrying capacity of the low dropout regulator to a preset value in a second preset time period of the current cycle.
In one embodiment, after the step of controlling the scanning module to stop acquiring the sensing data within a second preset time period of the current cycle according to the timing parameter, the method further includes:
and generating an interrupt awakening signal, wherein the interrupt awakening signal is used for awakening the electronic equipment to enter a power consumption control flow of the next period after the second preset time period of the current period is finished.
A power consumption control device is applied to an electronic device, the electronic device comprises a sensor and a scanning module connected with the sensor, and the device comprises:
the configuration module is used for configuring the timing parameters of the current period and the scanning parameters of the scanning module;
the first control module is used for controlling the scanning module to acquire the sensing data of the sensor in a first preset time period of the current cycle according to the scanning parameters and the timing parameters;
and the second control module is used for controlling the scanning module to stop acquiring the induction data within a second preset time period of the current period according to the timing parameters.
In one embodiment, the apparatus further comprises:
the processing module is used for processing the induction data acquired by the scanning module in the first preset time period of the current cycle; or, the processing module is configured to process the sensing data acquired by the scanning module in the first preset time period of the previous cycle.
An electronic device, comprising:
the power consumption control system comprises a memory and a processor, wherein the memory and the processor are mutually connected in a communication mode, computer instructions are stored in the memory, and the processor executes the computer instructions so as to execute the power consumption control method.
A computer readable storage medium having stored therein computer instructions which, when executed by a processor, implement a power consumption control method as described above.
According to the power consumption control method, a first preset time period and a second preset time period are set in one period, the scanning module is controlled to collect the sensing data of the sensor in the first preset time period according to the preset timing parameters and the scanning parameters of the scanning module, the scanning module is controlled to stop collecting the sensing data in the second preset time period according to the timing parameters, therefore, in the same period, the time for the scanning module to collect the data and the time for the scanning module to stop collecting the data can be reasonably controlled according to specific application scenes and application requirements, the power consumption is further reasonably controlled, and the overall power consumption of the electronic equipment is controlled in a lower range.
Drawings
Fig. 1 is a schematic flowchart of a power consumption control method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a power consumption control method according to another embodiment of the present application;
fig. 3 is a schematic flowchart of a power consumption control method according to another embodiment of the present application;
fig. 4a is a schematic flowchart of a power consumption control method according to another embodiment of the present application;
fig. 4b is a schematic flowchart of a power consumption control method according to another embodiment of the present application;
fig. 5 is a schematic flowchart of a power consumption control method according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of a specific example of an electronic device provided in the present application;
FIG. 7 is a timing diagram of a specific example of a power consumption control method provided herein;
FIG. 8 is a timing diagram of another specific example of a power consumption control method provided herein;
fig. 9 is a schematic structural diagram of a power consumption control apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. As used herein, the terms "vertical," "horizontal," "left," "right," "upper," "lower," "front," "rear," "circumferential," and the like are based on the orientation or positional relationship shown in the drawings for ease of description and simplicity of description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
As described in the background art, with the widespread use of mobile terminal chip products and the bottleneck of battery technology, low power consumption has become one of the current core indexes. In order to realize low-power-consumption operation, currently, clock gating, power gating, multi-voltage-domain power supply and the like are mainly used in the existing strategies, but the low-power-consumption control methods cannot be combined with specific application scenes and application requirements to control power consumption, so that the power consumption control effect is poor.
Based on this, embodiments of the present application provide a power consumption control method, a power consumption control apparatus, an electronic device, and a computer-readable storage medium.
In some embodiments, the present application provides a power consumption control method, which is applied to an electronic device including a sensor and a scanning module connected to the sensor. The sensor may be a pressure sensor, a capacitive touch sensor for a touch screen or a touch key, an impedance detection sensor for monitoring human body impedance, a photoelectric sensor, or the like. The pressure sensor is only used as an example for explanation.
Specifically, the pressure sensor converts the pressure into a voltage signal, and the scanning module collects and converts the voltage signal so as to facilitate the processor to perform operation processing.
As shown in fig. 1, the power consumption control method provided in this embodiment includes the following steps:
step S20: and configuring the timing parameters of the current period and the scanning parameters of the scanning module.
Specifically, the whole process includes a plurality of scanning cycles, and before controlling the scanning module to collect data, the timing parameters of the current cycle and the scanning parameters of the scanning module need to be configured, where the scanning parameters may include parameters such as a scanning mode, a scanning channel number, a scanning cycle, and a voltage gain amplification factor, and the timing parameters include related parameters of a timer.
It should be noted that the step of configuring the timing parameter and the scanning parameter may be performed at an initial stage of the current period, or may be performed at other time stages of the current period, and it is only required to ensure that the configuration is completed before the scanning module performs the scanning.
Step S40: and controlling the scanning module to acquire the sensing data of the sensor in a first preset time period of the current period according to the scanning parameters and the timing parameters.
When the scanning parameters and the timing parameters are configured, the scanning module can be controlled to acquire the sensing data of the sensor within a first preset time period of the current period. The first preset time period in the current cycle may be set when the timing parameter is configured, and the specific duration and the starting time of the first preset time period may be set according to the actual application scenario and the application requirement, which are not limited herein.
It should be noted that the electronic device may further include other power consuming modules. As a preferred embodiment, in the process of controlling the scanning module to collect the sensing data of the sensor, only the modules related to the timing function and the scanning function may be turned on, and the other modules may be turned off, so that the electronic device may operate in a lower power consumption operating mode (hereinafter, referred to as a first sleep mode), which is beneficial to reduce power consumption.
Step S60: and controlling the scanning module to stop acquiring the induction data within a second preset time period of the current period according to the timing parameters.
When the scanning module finishes the data acquisition step in the first preset time period, the scanning module can be controlled to stop acquiring the induction data in the second preset time period of the current period. The second preset time period of the current cycle may be set when the timing parameter is configured, and the specific duration and the starting time of the second preset time period may be set according to the actual application scenario and the application requirement, which are not limited herein.
As a preferred embodiment, during the second preset time period, only the module related to the timing function, such as the timer, may be turned on, and other modules may be turned off, so that the electronic device may operate in an operating mode with lower power consumption (hereinafter, referred to as the second sleep mode), thereby further reducing power consumption. Wherein the power consumption in the second sleep mode is less than the power consumption in the first sleep mode.
According to the power consumption control method, a first preset time period and a second preset time period are set in one period, the scanning module is controlled to collect the sensing data of the sensor in the first preset time period according to the preset timing parameters and the scanning parameters of the scanning module, the scanning module is controlled to stop collecting the sensing data in the second preset time period according to the timing parameters, therefore, in the same period, the time for the scanning module to collect the data and the time for the scanning module to stop collecting the data can be reasonably controlled according to specific application scenes and application requirements, the power consumption is further reasonably controlled, and the overall power consumption of the electronic equipment is controlled in a lower range.
In some embodiments, as shown in fig. 2, before step S60, that is, before the step of controlling the scan module to stop acquiring the sensing data within the second preset time period of the current cycle according to the timing parameter, the power consumption control method provided in this embodiment further includes the following steps:
step S50: and processing the induction data acquired by the scanning module in a first preset time period of the current cycle.
After controlling the scanning module to complete data acquisition and before controlling the scanning module to stop data acquisition, the sensing data acquired by the scanning module in a first preset time period is processed, and the processing flow may include amplifying the acquired analog signal and converting the analog signal into a digital signal, and the like. In this step, the electronic device is in a normal operating mode. The normal operating mode is opposite to the sleep mode, and refers to a state in which the electronic device normally operates and does not enter the first sleep mode or the second sleep mode.
After the data is processed, a second preset time period of the current cycle can be entered, that is, only the module related to the timing function, such as the timer, is started, other modules are closed, the electronic device is controlled to operate in the second sleep mode, and the power consumption of the electronic device is reduced to the maximum extent. In addition, the acquired data are processed in time after the data acquisition is finished, so that the response speed is improved, and meanwhile, the data loss or other abnormal conditions caused by the fact that the acquired data are not processed in time are avoided, and further the data processing is influenced.
In some embodiments, as shown in fig. 3, before step S20, that is, the step of configuring the timing parameter of the current cycle and the scanning parameter of the scanning module, the power consumption control method provided by this embodiment further includes the following steps:
step S10: and processing the induction data acquired by the scanning module in a first preset time period of the last period.
That is, in the previous cycle, after the scanning parameters and the timing parameters are configured, the scanning module is controlled to complete data acquisition in the first preset time period, and the data acquired by the scanning module is not processed, but directly enters the second sleep mode. After entering the current period, firstly processing the induction data collected in the first preset time period of the previous period, and then configuring the timing parameters of the current period and the scanning parameters of the scanning module. The time that the electronic device is in the second sleep mode can thereby be increased, further reducing power consumption per cycle.
In some embodiments, the electronic device further includes a power management module, and the power management module is configured to supply power to other modules in the electronic device. As shown in fig. 4a and 4b, in step S60, that is, while controlling the scan module to stop collecting the sensing data in the second preset time period of the current cycle according to the timing parameter, the power consumption control method provided in this embodiment further includes the following steps:
step S61: and controlling the power management module to enter a low power consumption mode within a second preset time period of the current cycle.
When the scanning module is controlled to stop collecting the induction data, the power management module in the electronic device becomes a main power consumption source, and the load in the electronic device is very low, so that the condition that the power management module is switched from the normal working mode to the low power consumption mode is provided. And controlling the power management module to enter a low power consumption mode in a second preset time period of the current period, so that the power consumption of the current stage can be further reduced.
In one embodiment, the power management module is a Low dropout linear regulator (LDO). A low dropout linear regulator is a voltage converter for subtracting an excess voltage from an input voltage to output a voltage value required by a load, for example, from 5V to 3.3V.
Specifically, in step S61, the step of controlling the power management module to enter the low power consumption mode in the second preset time period of the current cycle includes: and reducing the loading capacity of the low dropout linear regulator to a preset value in a second preset time period of the current cycle.
When the low dropout regulator is in a normal operating mode, the load in the electronic device is high, so that the load capacity of the low dropout regulator needs to be kept high, and the power consumption is high. And when being in the second preset time quantum of current cycle, because the scanning module has stopped to gather data, need to keep the module of normal work less, consequently the load in whole electronic equipment is lower, and low dropout linear regulator then need not to keep stronger on-load ability, namely, can reduce the on-load ability of low dropout linear regulator to the default to guarantee in the second preset time quantum normally the module of working the power consumption demand can. The preset value may be set according to the power demand of the module that normally operates in the second preset time period, and is not particularly limited herein.
In one embodiment, as shown in fig. 5, after step S60, that is, after the step of controlling the scan module to stop acquiring the sensing data within the second preset time period of the current cycle according to the timing parameter, the power consumption control method provided in this embodiment further includes the following steps:
step S70: and generating an interrupt awakening signal, wherein the interrupt awakening signal is used for awakening the electronic equipment to enter a power consumption control flow of the next period after the second preset time period of the current period is finished.
After the second preset time period of the current cycle is finished, an interrupt awakening signal can be generated to awaken the electronic equipment to enter a power consumption control flow of the next cycle. The interrupt wake-up signal may be preset when the timing parameter of the current cycle is configured in step S20, and may be generally set by setting a timer, so that the timer can wake up the interrupt system at the end of the second preset time period of the current cycle. The electronic equipment automatically enters the power consumption control flow of the next period in an interrupt awakening mode, and the continuous operation of the electronic equipment is facilitated.
The power consumption control flow of the next cycle, i.e. the series of steps described above are re-executed at the beginning of the next cycle, may be executed first in step S20, or may be executed first in step S10.
The hardware structure of the electronic device has various embodiments, and in order to describe the technical solution of the present application more clearly, the following describes the above power consumption control method with reference to one specific example of the electronic device:
in one specific example, as shown in fig. 6, the electronic device includes a microcontroller core (core), a Bus (Bus), a Memory (Memory), a Power management Unit (Power management Unit, abbreviated PMU), a clock reset Controller (RestClock Controller, abbreviated RCC), a Low Dropout Regulator (LDO), a clock Oscillator (Oscillator, abbreviated OSC), an analog Front end (analog Front-end, abbreviated AFE), a Sensor (Sensor), and a Timer (Timer), wherein the AFE typically includes an analog-to-digital converter (ADC), a Programmable Gain Amplifier (Programmable Gain Amplifier, abbreviated PGA), and a channel multiplexer (IO MUX). Specifically, the memory, the analog front end, the power consumption management unit, the clock reset controller and the timer are all connected with the microcontroller core through a bus. The analog front end is connected with the sensor to form a pressure sensing peripheral. The power consumption management unit is respectively connected with the analog front end, the low dropout linear regulator, the clock reset controller and the timer, and the clock reset controller is also respectively connected with the timer and the clock oscillator.
The following is a specific example of a power consumption control method applied to the above electronic device:
as shown in FIG. 7, TcycleT1-T4 represent 4 periods in a scan cycle.
T1: the electronic device is in a normal operating mode, and step S20 is executed, that is, the scan mode, the scan channel number, the voltage gain amplification factor, and the scan completion wake-up enable of the analog front end are configured through the microcontroller core via the bus, and the counting period of the timer is configured at the same time. And entering a first sleep mode after the configuration is completed.
T2: the electronic device is in a first sleep mode. In this mode, the electronic device executes step S40, and at this time, the clock except for the pressure-sensitive peripheral and the timer is turned off to control the pressure-sensitive peripheral to perform scanning. When in the first sleep mode, the clock except the pressure-sensitive peripheral and the timer is closed, so that the power consumption of the electronic equipment is reduced to a certain extent while the data acquisition function is ensured. In this embodiment, T2 is the aforementioned first preset time period, and after the data acquisition in the first preset time period is completed, the interrupt wake-up system may be triggered to enter T3.
T3: the electronic device is in a normal operating mode, and step S50 is executed, that is, the sensing data collected by the pressure sensing peripheral device within the first preset time period is processed. And after the data processing is finished, entering a second sleep mode.
T4: the electronic device is in a second sleep mode. In this mode, the electronic device specifically executes step S60, that is, controls the scanning module to stop data acquisition. At this time, all clocks except the timer may be turned off, and step S61 is executed to reduce the load capacity of the low dropout regulator to a preset value, so as to operate in the low power consumption mode. When in the second sleep mode, because all clocks except the timer are turned off and the loading capacity of the low dropout linear regulator is reduced to a preset value, the power consumption in the second sleep mode is further reduced compared with the first sleep mode. In this embodiment, T4 is the aforementioned second preset time period, and in the second preset time period, the electronic device waits for the timer to wake up when the timer times out, and when the timer times out and generates the interrupt wake-up signal, the electronic device enters the T1 phase of the next cycle.
In the above specific example, after the data is collected, the collected data is processed in time, which is helpful for improving the response speed, and meanwhile, the data loss or other abnormal conditions caused by the fact that the collected data is not processed in time are avoided, and further the data processing is influenced.
The following is another specific example of the power consumption control method applied to the above-described electronic device (see fig. 8):
t1: the electronic device is in a normal operation mode, and step S10 is executed to process the data collected by the pressure sensing peripheral device in the previous cycle. After the data processing is finished, step S20 is executed, that is, the scan mode, the scan channel number, the voltage gain amplification factor and the scan completion wake-up enable of the analog front end are configured through the microcontroller core via the bus, and the counting period of the timer is configured at the same time. And entering a first sleep mode after the configuration is completed.
T2: the electronic device is in a first sleep mode. In this mode, the electronic device executes step S40, and at this time, the clock other than the pressure-sensitive peripheral clock and the timer is turned off to control the pressure-sensitive peripheral to perform scanning. In the first sleep mode, all clocks except the pressure-sensitive peripheral clock and the timer are closed, so that the power consumption of the electronic equipment is reduced to a certain extent while the data acquisition function is ensured. In this embodiment, T2 is the aforementioned first preset time period, and after the data acquisition in the first preset time period is completed, the interrupt wake-up system may be triggered to enter T3.
T3: the electronic device is in a second sleep mode. In this mode, the electronic device specifically executes step S60, that is, controls the scanning module to stop data acquisition. At this time, all clocks except the timer may be turned off, and step S61 is executed to reduce the load capacity of the low dropout regulator to a preset value, so as to operate in the low power consumption mode. When in the second sleep mode, because all clocks except the timer are turned off and the loading capacity of the low dropout linear regulator is reduced to a preset value, the power consumption in the second sleep mode is further reduced compared with the first sleep mode. In this embodiment, T3 is the aforementioned second preset time period, and in the second preset time period, the electronic device waits for the timer to wake up when the timer times out, and when the timer times out and generates the interrupt wake-up signal, the electronic device enters the T1 phase of the next cycle.
Compared with the first specific example, the second specific example combines the pressure-sensitive peripheral configuration and the data processing stage, reduces the process of waking up the electronic device from the first sleep mode at a time, increases the time of the system in the second sleep mode, and further reduces the power consumption of the whole cycle.
In some embodiments, the present application further provides a power consumption control apparatus, which is applied to an electronic device, where the electronic device includes a sensor and a scanning module connected to the sensor. As shown in fig. 9, the power consumption control apparatus includes a configuration module 10, a first control module 20, and a second control module 30. The configuration module 10 is configured to configure a timing parameter of a current period and a scanning parameter of the scanning module; the first control module 20 is configured to control the scanning module to acquire sensing data of the sensor within a first preset time period of a current cycle according to the scanning parameter and the timing parameter; the second control module 30 is configured to control the scanning module to stop collecting the sensing data within a second preset time period of the current cycle according to the timing parameter.
For details of the configuration module 10, the first control module 20, and the second control module 30, please refer to the detailed description of the relevant parts in the power consumption control method, which is not repeated herein.
According to the power consumption control device, the scanning module is controlled to collect the sensing data of the sensor in the first preset time period of the current period through the first control module according to the scanning parameters and the timing parameters, and the scanning module is controlled to stop collecting the sensing data in the second preset time period of the current period through the second control module according to the timing parameters. Therefore, the power consumption can be reasonably controlled according to specific application scenes and application requirements, and the overall power consumption is further reduced.
In some of these embodiments, the power consumption control apparatus further comprises a processing module. The processing module is used for processing the induction data acquired by the scanning module in a first preset time period of the current cycle; or, the processing module is configured to process sensing data acquired by the scanning module in a first preset time period of a previous cycle.
In some embodiments, the power consumption control apparatus further includes a third control module, where the third control module is configured to control the power management module to enter the low power consumption mode within a second preset time period of the current cycle.
In some embodiments, the power management module is a low dropout regulator, and the third control module is configured to reduce the load capacity of the low dropout regulator to a preset value within a second preset time period of the current cycle.
In some embodiments, the power consumption control apparatus further includes an interrupt and wake-up module, where the interrupt and wake-up module is configured to generate an interrupt and wake-up signal, and the interrupt and wake-up signal is configured to wake up the electronic device to enter a power consumption control procedure of a next cycle after a second preset time period of a current cycle is ended.
For specific contents of the processing module, the third control module, and the interrupt wakeup module, reference is made to specific descriptions of relevant parts in the power consumption control method, which are not described herein again.
In some embodiments, the present invention provides an electronic device, as shown in fig. 10, which includes a memory 40 and a processor 50. The memory 40 and the processor 50 are communicatively connected to each other through a bus or other means, and fig. 10 illustrates the connection through the bus as an example.
The processor 50 may be a Central Processing Unit (CPU). The Processor 50 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 40, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions corresponding to the power consumption control method in the embodiments of the present invention. The processor 50 executes various functional applications and data processing of the processor 50, i.e., implements a power consumption control method, by executing non-transitory software programs, instructions, and modules stored in the memory 40.
The memory 40 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 50, and the like. Further, the memory 40 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 40 optionally includes memory located remotely from processor 50, which may be connected to the processor via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A power consumption control method is applied to electronic equipment, the electronic equipment comprises a sensor and a scanning module connected with the sensor, and the method is characterized by comprising the following steps:
configuring timing parameters of a current period and scanning parameters of a scanning module;
controlling the scanning module to acquire sensing data of the sensor in a first preset time period of the current cycle according to the scanning parameters and the timing parameters;
and controlling the scanning module to stop collecting the induction data in a second preset time period of the current period according to the timing parameters.
2. The power consumption control method of claim 1, wherein before the step of controlling the scanning module to stop collecting the sensing data within a second preset time period of the current cycle according to the timing parameter, the method further comprises:
and processing the induction data acquired by the scanning module in the first preset time period of the current cycle.
3. The power consumption control method of claim 1, wherein prior to the step of configuring the timing parameters of the current cycle and the scan parameters of the scan module, the method further comprises:
and processing the induction data acquired by the scanning module in the first preset time period of the last period.
4. The power consumption control method according to claim 1, wherein the electronic device further includes a power management module, and while controlling the scanning module to stop collecting the sensing data in a second preset time period of the current cycle according to the timing parameter, the method further includes:
and controlling the power supply management module to enter a low power consumption mode within a second preset time period of the current cycle.
5. The power consumption control method of claim 4, wherein the power management module is a low dropout linear regulator;
the step of controlling the power management module to enter the low power consumption mode in a second preset time period of the current cycle includes: and reducing the load carrying capacity of the low dropout regulator to a preset value in a second preset time period of the current cycle.
6. The power consumption control method of claim 1, wherein after the step of controlling the scan module to stop collecting the sensing data within a second preset time period of the current cycle according to the timing parameter, the method further comprises:
and generating an interrupt awakening signal, wherein the interrupt awakening signal is used for awakening the electronic equipment to enter a power consumption control flow of the next period after the second preset time period of the current period is finished.
7. A power consumption control device is applied to an electronic device, the electronic device comprises a sensor and a scanning module connected with the sensor, and the device is characterized by comprising:
the configuration module is used for configuring the timing parameters of the current period and the scanning parameters of the scanning module;
the first control module is used for controlling the scanning module to acquire the sensing data of the sensor in a first preset time period of the current cycle according to the scanning parameters and the timing parameters;
and the second control module is used for controlling the scanning module to stop acquiring the induction data within a second preset time period of the current period according to the timing parameters.
8. The power consumption control apparatus of claim 7, wherein the apparatus further comprises:
the processing module is used for processing the induction data acquired by the scanning module in the first preset time period of the current cycle; or, the processing module is configured to process the sensing data acquired by the scanning module in the first preset time period of the previous cycle.
9. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor performing the power consumption control method of any one of claims 1-6 by executing the computer instructions.
10. A computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the power consumption control method of any one of claims 1-6.
CN202010300622.1A 2020-04-16 2020-04-16 Power consumption control method and device, electronic equipment and computer readable storage medium Pending CN111596753A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211371210.2A CN116185160A (en) 2020-04-16 2020-04-16 Power consumption control device and method, electronic device, and computer-readable storage medium
CN202010300622.1A CN111596753A (en) 2020-04-16 2020-04-16 Power consumption control method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010300622.1A CN111596753A (en) 2020-04-16 2020-04-16 Power consumption control method and device, electronic equipment and computer readable storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202211371210.2A Division CN116185160A (en) 2020-04-16 2020-04-16 Power consumption control device and method, electronic device, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN111596753A true CN111596753A (en) 2020-08-28

Family

ID=72190417

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010300622.1A Pending CN111596753A (en) 2020-04-16 2020-04-16 Power consumption control method and device, electronic equipment and computer readable storage medium
CN202211371210.2A Pending CN116185160A (en) 2020-04-16 2020-04-16 Power consumption control device and method, electronic device, and computer-readable storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202211371210.2A Pending CN116185160A (en) 2020-04-16 2020-04-16 Power consumption control device and method, electronic device, and computer-readable storage medium

Country Status (1)

Country Link
CN (2) CN111596753A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201252572Y (en) * 2008-09-09 2009-06-03 北京时代凌宇科技有限公司 Device for reducing sensor node dormancy power consumption
CN101483908A (en) * 2009-02-18 2009-07-15 王翥 Wireless sensor network node
CN104035743A (en) * 2013-03-07 2014-09-10 亚德诺半导体技术公司 System and method for processor wake-up based on sensor data
CN105120314A (en) * 2015-08-05 2015-12-02 冠捷显示科技(厦门)有限公司 Energy-saving method of touchpad remote controller
CN106406496A (en) * 2016-09-05 2017-02-15 芯海科技(深圳)股份有限公司 Low power consumption control method for pressure-sensitive key identification device
CN107870783A (en) * 2016-09-23 2018-04-03 苹果公司 Low power touch sensing during the sleep state of electronic equipment
CN109144224A (en) * 2018-09-26 2019-01-04 Oppo广东移动通信有限公司 The power consumption optimization method and device of touch screen
CN110113777A (en) * 2019-04-29 2019-08-09 深圳广熵科技有限公司 A kind of collecting method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201252572Y (en) * 2008-09-09 2009-06-03 北京时代凌宇科技有限公司 Device for reducing sensor node dormancy power consumption
CN101483908A (en) * 2009-02-18 2009-07-15 王翥 Wireless sensor network node
CN104035743A (en) * 2013-03-07 2014-09-10 亚德诺半导体技术公司 System and method for processor wake-up based on sensor data
CN105120314A (en) * 2015-08-05 2015-12-02 冠捷显示科技(厦门)有限公司 Energy-saving method of touchpad remote controller
CN106406496A (en) * 2016-09-05 2017-02-15 芯海科技(深圳)股份有限公司 Low power consumption control method for pressure-sensitive key identification device
CN107870783A (en) * 2016-09-23 2018-04-03 苹果公司 Low power touch sensing during the sleep state of electronic equipment
CN109144224A (en) * 2018-09-26 2019-01-04 Oppo广东移动通信有限公司 The power consumption optimization method and device of touch screen
CN110113777A (en) * 2019-04-29 2019-08-09 深圳广熵科技有限公司 A kind of collecting method

Also Published As

Publication number Publication date
CN116185160A (en) 2023-05-30

Similar Documents

Publication Publication Date Title
US7971086B2 (en) Integrated waking/while-awake power management system with breaking distance timer for high wake-up latency portion of hardware
US9189053B2 (en) Performance based power management of a memory and a data storage system using the memory
DE102010032758B4 (en) Computer system, method of programming a real time clock and computer program product
CN105223915B (en) IC apparatus and the method for generating power traces
EP2526466B1 (en) External device power control during low power sleep mode without central processing unit intervention
CN106427835B (en) A kind of Low-power-consumptiodormancy dormancy circuit of new-energy automobile electronics VCU modules
TW200921358A (en) Electronic system and power control method thereof
US9507406B2 (en) Configuring power domains of a microcontroller system
US8659563B2 (en) Electronic device with a page turning function during a sleep mode of the electronic device
WO2021233219A1 (en) Automatic wake-up and diagnosis method for battery management system, battery management system, and vehicle
CN102929381B (en) Electronic system and method for managing power supply thereof
CN106292987B (en) A kind of processor power-off sequential control system and method
CN114257474A (en) Power utilization control method and device for intelligent gateway, computer equipment and storage medium
CN103546029B (en) A kind of suitching type adjuster and control method thereof
CN112462913B (en) Power supply voltage adjusting device, method, equipment and medium of solid state hard disk controller
CN111596753A (en) Power consumption control method and device, electronic equipment and computer readable storage medium
US20160124671A1 (en) Conversion method for reducing power consumption and computing apparatus using the same
CN114174956A (en) Preemptive wake-up circuit for waking up from low power mode
CN106325985B (en) Timer adjusting method and system and mobile terminal
CN115129138A (en) Power consumption control method, power consumption control system, storage medium, and electronic device
CN106814840A (en) Low power state for processor keeps pattern
DE112013001356T5 (en) Dynamic heat sensor shutdown
CN111140529B (en) Blower control method, blower control device and storage medium
KR100942922B1 (en) Power Management Unit controlling Wake-up Sequence and Method thereof
CN111923747B (en) Method and system for controlling processor work

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200828

RJ01 Rejection of invention patent application after publication