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

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

Info

Publication number
CN116185160A
CN116185160A CN202211371210.2A CN202211371210A CN116185160A CN 116185160 A CN116185160 A CN 116185160A CN 202211371210 A CN202211371210 A CN 202211371210A CN 116185160 A CN116185160 A CN 116185160A
Authority
CN
China
Prior art keywords
module
scanning
power consumption
period
preset time
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
CN202211371210.2A
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
Publication of CN116185160A publication Critical patent/CN116185160A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Power Sources (AREA)

Abstract

The disclosure relates to the technical field of pressure touch control, and particularly discloses a power consumption control device and method, electronic equipment and a computer readable storage medium. The device comprises: the configuration module is used for configuring the timing parameter of the current period and the scanning parameter of the scanning module; the first control module is used for controlling the electronic equipment to enter a first sleep mode and controlling the scanning module to acquire sensing data of the sensor in a first preset time period of the current period according to the scanning parameter and the timing parameter; the processing module is used for processing the induction data acquired by the scanning module in the first preset time period of the current period or the previous period in a normal working mode; and the second control module is used for controlling the electronic equipment to enter a second sleep mode in a second preset time period of the current period according to the timing parameter and controlling the scanning module to stop acquiring the sensing data. The present disclosure can control power consumption in a lower range.

Description

Power consumption control device and method, electronic device, 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 device and method, an electronic device, and a computer readable storage medium.
Background
Because of the bottleneck of battery technology, power consumption has become one of the core indexes of many mobile terminal chips, and meanwhile, low power consumption is also a powerful guarantee for mobile terminal chip products in market competition. How to reduce the power consumption to the maximum degree on the basis of meeting the performance requirements of users on products becomes a primary goal of mobile terminal chip manufacturers.
Currently, most mobile terminal chips adopt various low-power 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 to be solved in the art.
Disclosure of Invention
Based on this, it is necessary to provide a power consumption control apparatus and method, an electronic device, and a computer-readable storage medium for the problem of how to control power consumption according to a specific application scenario and application requirements.
In a first aspect, the present disclosure provides a power consumption control apparatus applied to an electronic device, where the electronic device includes a sensor and a scanning module connected to the sensor, the apparatus includes:
the configuration module is used for configuring the timing parameter of the current period and the scanning parameter of the scanning module;
the first control module is used for controlling the electronic equipment to enter a first sleep mode and controlling the scanning module to acquire sensing data of the sensor in a first preset time period of the current period according to the scanning parameter and the timing parameter;
the processing module is used for processing the induction data acquired by the scanning module in the first preset time period of the current period or the previous period in a normal working mode;
and the second control module is used for controlling the electronic equipment to enter a second sleep mode and controlling the scanning module to stop collecting the sensing data in a second preset time period of the current period according to the timing parameter, wherein the power consumption of the electronic equipment in the second sleep mode is smaller than that in the first sleep mode.
In one embodiment, after the electronic device enters the current period, the processing module, the configuration module, the first control module, and the second control module operate sequentially; the processing module is used for processing the induction data acquired by the scanning module in the first preset time period of the previous period in a normal working mode.
In one embodiment, after the electronic device enters the current period, the configuration module, the first control module, the processing module and the second control module work sequentially; the processing module is used for processing the induction data acquired by the scanning module in the first preset time period of the current period in a normal working mode.
In one embodiment, the electronic device further includes a power management module, and the apparatus further includes:
and the third control module is used for controlling the power management module to enter a low-power consumption mode in a second preset time period of the current period.
In one embodiment, the power management module is a low dropout linear regulator;
and the third control module is further configured to reduce the load capacity of the low dropout linear regulator to a preset value in a second preset time period of the current period.
In one embodiment, the electronic device further comprises a timer;
the second control module is further configured to control the electronic device to only start the timer in a second preset time period of the current period.
In one embodiment, the apparatus further comprises:
the wake-up module is used for generating an interrupt wake-up signal after the second control module controls the scanning module to stop collecting the sensing data, and the interrupt wake-up signal is used for waking up 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.
In one embodiment, the scan parameters include at least one of scan mode, scan channel number, scan period, voltage gain amplification.
In a second aspect, the present disclosure provides a power consumption control method applied to an electronic device, where the electronic device includes a sensor and a scanning module connected to the sensor, and the method includes:
configuring timing parameters of the current period and scanning parameters of a scanning module;
according to the scanning parameters and the timing parameters, entering a first sleep mode in a first preset time period of the current period and controlling the scanning module to acquire sensing data of the sensor;
entering a normal working mode and processing induction data acquired by the scanning module in the first preset time period of the current period;
and entering a second sleep mode in a second preset time period of the current period according to the timing parameter, and controlling the scanning module to stop acquiring the sensing data, wherein the second preset time period is a low-power consumption mode time period.
In a third aspect, the present disclosure further provides a power consumption control method applied to an electronic device, where the electronic device includes a sensor and a scanning module connected to the sensor, and the method includes:
entering a normal working mode and processing induction data acquired by the scanning module in a first preset time period of a previous period;
configuring timing parameters of the current period and scanning parameters of a scanning module;
according to the scanning parameters and the timing parameters, entering a first sleep mode in the first preset time period of the current period and controlling the scanning module to acquire sensing data of the sensor;
and entering a second sleep mode in a second preset time period of the current period according to the timing parameters, and controlling the scanning module to stop acquiring the sensing data.
In a fourth aspect, the present disclosure also provides an electronic device, the computer device comprising:
the power consumption control system comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions, so that the power consumption control method is executed.
In a fifth aspect, the present disclosure also provides 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.
The power consumption control device and method, the electronic equipment and the computer readable storage medium at least comprise the following beneficial effects:
the method and the device have the advantages that a first preset time period and a second preset time period are set in one period, the scanning module is controlled to collect 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, and the scanning module is controlled to stop collecting the sensing data in the second preset time period according to the timing parameters, so that the time for the scanning module to collect 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 in the same period, the power consumption is reasonably controlled, and the overall power consumption of the electronic equipment is controlled in a lower range.
Drawings
Fig. 1 is a schematic structural diagram of a power consumption control device according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a power consumption control device according to another embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a power consumption control device according to another embodiment of the present disclosure;
FIG. 4 is a flow chart of a power consumption control method according to an embodiment of the present disclosure;
FIG. 5 is a flowchart illustrating a power consumption control method according to another embodiment of the present disclosure;
FIG. 6 is a flowchart illustrating a power consumption control method according to another embodiment of the present disclosure;
FIG. 7 is a flowchart illustrating a power consumption control method according to another embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a specific example of an electronic device provided in the present application;
FIG. 9 is a time flow diagram of a specific example of a power consumption control method provided herein;
FIG. 10 is a time flow diagram of another specific example of a power consumption control method provided herein;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order that the invention may be readily understood, a more complete description of the invention will be rendered by reference to the appended drawings. The drawings illustrate preferred embodiments of the invention. 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 "fixed 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. The terms "vertical," "horizontal," "left," "right," "upper," "lower," "front," "rear," "circumferential," and the like as used herein are based on the orientation or positional relationship shown in the drawings and are merely for convenience of description and to simplify the description, rather than to indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus are not to be construed as limiting the 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 herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
As described in the background art, with the wide application 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, the existing strategies mainly comprise clock gating, power gating, multi-voltage domain power supply and the like, but the low-power-consumption control methods cannot control power consumption by combining specific application scenes and application requirements, so that the power consumption control effect is poor.
Based on this, the embodiment of the application provides a power consumption control device, a power consumption control method, an electronic device and a computer readable storage medium.
In some embodiments, a power consumption control device is provided and applied to an electronic device, where the electronic device includes a sensor and a scanning module connected with 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 the impedance of a human body, a photoelectric sensor, or the like. The pressure sensor is described herein as an example only.
Specifically, the pressure sensor converts pressure into a voltage signal, and the scanning module collects and converts the voltage signal so that the processor can perform operation processing.
As shown in fig. 1, the power consumption control apparatus 100 provided in this embodiment includes a configuration module 10, a first control module 20, a processing module 30, and a second control module 40.
Wherein the configuration module 10 is used for configuring the timing parameter of the current period and the scanning parameter of the scanning module.
Specifically, the whole process includes a plurality of scanning periods, and before the scanning module is controlled to collect data, the configuration module 10 may configure timing parameters of the period where the current period is located and scanning parameters of the scanning module. In some embodiments, the scan parameters may include parameters of scan mode, scan channel number, scan period, voltage gain amplification, etc., and the timing parameters may include parameters related to a timer.
It should be noted that, the step of configuring the timing parameters and the scanning parameters by the configuration module 10 may be performed at the initial stage of the current period, or may be performed at other time stages of the current period, which only needs to ensure that the configuration is completed before the scanning module performs scanning.
The first control module 20 is configured to control the electronic device to enter a first sleep mode and control the scanning module to collect sensing data of the sensor in a first preset time period of the current period according to the scanning parameter and the timing parameter.
Specifically, when the configuration module 10 configures the scan parameters and the timing parameters, the first control module 20 may control the electronic device to enter the first sleep mode and control the scan module to collect sensing data of the sensor in a first preset period of the current period. The first preset time period in the current period 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 is not limited herein.
It should be noted that other power consumption modules may also be included in the electronic device. The first sleep mode may refer to the electronic device only turning on the modules related to the timing function and the scanning function, and turning off the other modules, so that the electronic device operates in a lower power consumption operation mode. In this embodiment, the first control module 20 may control the electronic device to enter the first sleep mode in the process of controlling the scanning module to collect the sensing data of the sensor, which is beneficial to reducing power consumption.
The processing module 30 is configured to process, in a normal operation mode, the sensing data collected by the scanning module in a first preset period of a current cycle or a previous cycle.
Specifically, the normal operation mode may refer to a state opposite to the sleep mode, and refers to a state in which the electronic device is operating normally without entering the sleep mode. The processing module 30 may process the sensing data collected by the scanning module in the current period or the first preset period of the previous period in the normal working mode, and the processing procedure may include amplifying the collected analog signal and converting the amplified analog signal into a digital signal.
The second control module 40 is configured to control the electronic device to enter a second sleep mode and control the scanning module to stop collecting the sensing data in a second preset time period of the current period according to the timing parameter.
Specifically, the second control module 40 may control the electronic device to enter the second sleep mode and control the scanning module to stop collecting the sensing data during the second preset period of the current period. The second preset time period of the current period 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 is not limited herein. The second sleep mode may refer to the electronic device only turning on the module (e.g., timer) associated with the timing function and turning off the other modules so that the electronic device operates in a lower power consumption mode of operation. In this embodiment, the second control module 40 may control the electronic device to enter the second sleep mode in the process of controlling the scanning module to stop collecting the sensing data of the sensor, which is beneficial to reducing power consumption. It is to be understood that the power consumption in the second sleep mode is smaller than the power consumption in the first sleep mode.
According to the power consumption control device, the first control module controls the electronic equipment to enter the first sleep mode and controls the scanning module to collect sensing data of the sensor in a first preset time period of the current period according to the scanning parameters and the timing parameters, and the second control module controls the electronic equipment to enter the second sleep mode and controls the scanning module to stop collecting the sensing data in a second preset time period of the current period 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 sequentially operates the processing module 30, the configuration module 10, the first control module 20, and the second control module 40 after the electronic device enters the current cycle. The processing module 30 may process the sensing data collected by the scanning module during the first preset period of the previous cycle in the normal operation mode.
Specifically, during the current period, the processing module 30 first processes the sensing data collected by the scanning module during the first preset period of the previous period in the normal operation mode. After the processing module 30 has completed its work, the configuration module 10 may configure the timing parameters of the current cycle and the scanning parameters of the scanning module. After the configuration module 10 completes the configuration, the first control module 20 may control the electronic device to enter the first sleep mode and control the scanning module to collect sensing data of the sensor in a first preset period of the current period according to the scanning parameter and the timing parameter. After the first control module 20 completes the work, the second control module 40 may control the electronic device to enter the second sleep mode and control the scanning module to stop collecting the sensing data in a second preset time period of the current period according to the timing parameter.
That is, in the previous period, after the configuration module 10 configures the scan parameters and the timing parameters, the first control module 20 controls the scan module to complete the data acquisition in the first preset period, the processing module 30 does not process the data acquired by the scan module, and the second control module 40 directly controls the scan module to enter the second sleep mode. After entering the current period, the processing module 30 processes the sensing data collected in the first preset time period of the previous period, and then the configuration module 10 reconfigures the timing parameter of the current period and the scanning parameter of the scanning module. The time that the electronic device is in the second sleep mode can be increased, and the power consumption in each period can be further reduced.
In some of these embodiments, the power consumption control apparatus sequentially operates the configuration module 10, the first control module 20, the processing module 30, and the second control module 40 after the electronic device enters the current cycle. The processing module 30 may process the sensing data collected by the scanning module during the first preset time period of the current period in the normal operation mode.
Specifically, during the current period, the configuration module 10 first configures the timing parameters of the current period and the scan parameters of the scan module. After the configuration module 10 completes the configuration, the first control module 20 may control the electronic device to enter the first sleep mode and control the scanning module to collect sensing data of the sensor in a first preset period of the current period according to the scanning parameter and the timing parameter. After the first control module 20 completes the work, the processing module 30 processes the sensing data collected by the scanning module in the first preset time period of the current period in the normal working mode. After the processing module 30 completes the work, the second control module 40 may control the electronic device to enter the second sleep mode and control the scanning module to stop collecting the sensing data in a second preset period of the current period according to the timing parameter.
That is, in the current period, after the scan module is controlled to complete data acquisition and before the scan module is controlled to stop data acquisition, the processing module 30 processes the sensing data acquired by the scan module in the first preset period. After the processing module 30 processes the data, the second control module 40 may enter a second preset period of the current period, i.e. only start the module related to the timing function, such as a timer, close the other modules, and control the electronic device to operate in the second sleep mode, so as to reduce the power consumption of the electronic device to the greatest extent. In addition, the collected data is processed in time after the data collection is completed, so that the response speed is improved, and meanwhile, the phenomenon that the data is lost or other abnormal conditions are caused by the fact that the collected data is not processed in time is avoided, and the data processing is further affected.
In some embodiments, the electronic device further includes a power management module, as shown in fig. 2, the apparatus 100 further includes:
and a third control module 50, configured to control the power management module to enter a low power consumption mode during a second preset period of the current period.
In particular, the power management module is used to power other modules in the electronic device. The third control module 50 may control the power management module to enter a low power mode according to timing parameters. In a second preset time period of the current period, the scanning module stops collecting the sensing data, and at the moment, the power management module in the electronic equipment becomes a main power consumption source, and the condition of switching the power management module from a normal working mode to a low power consumption mode is provided because the load in the electronic equipment is very low at the moment. 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 some of these embodiments, the power management module is a low dropout linear regulator (Low Dropout regulator, LDO). A low dropout linear regulator is a voltage converter for subtracting an excess voltage from an input voltage, and outputting a voltage value required for a load, for example, from 5V to 3.3V.
Specifically, the third control module 50 may reduce the load carrying capability of the low dropout linear regulator to a preset value during the second preset time period of the current period. When the low dropout linear regulator is in the normal operation mode, the load in the electronic device is high, so that the load carrying capacity of the low dropout linear regulator needs to be kept high, and further the power consumption is high. When the scanning module stops collecting data in the second preset time period of the current period, the modules which need to keep working normally are fewer, so that the load in the whole electronic equipment is lower, the low-dropout linear voltage regulator does not need to keep strong carrying capacity, namely, the carrying capacity of the low-dropout linear voltage regulator can be reduced to a preset value, and the electricity consumption requirement of the modules which work normally in the second preset time period is met. Regarding the preset value, it may be set according to the power demand of the module that normally operates in the second preset period of time, and is not particularly limited herein.
In some of these embodiments, the electronic device further comprises a timer. The timer, as a module of the electronic device associated with the timing function, may be started during a second preset time period of the current cycle. That is, the second control module 40 may control the electronic device to start only the timer for a second preset period of the current period.
In some embodiments, as shown in fig. 3, the power consumption control apparatus 100 further includes a wake-up module 60, where the wake-up module 60 is configured to generate an interrupt wake-up signal after the second control module 40 controls the scan module to stop collecting the sensing data, and the interrupt wake-up signal is configured to wake up the electronic device to enter the power consumption control flow of the next cycle after the second preset period of the current cycle is completed.
Specifically, after the second control module 40 controls the scanning module to stop collecting the sensing data, the wake-up module 60 may generate an interrupt wake-up signal to wake-up the electronic device to enter the power consumption control flow of the next cycle. The interrupt wake-up signal may be preset when the configuration module 10 configures the timing parameter of the current period, and may generally be a timer, so that the timer may wake-up the interrupt system at the end of the second preset period of the current period. The electronic equipment automatically enters the power consumption control flow of the next period through the interrupt awakening of the awakening module 60, so that the continuous operation of the electronic equipment is facilitated.
The power consumption control flow entering the next cycle is that when the next cycle starts, the processing module 30, the configuration module 10, the first control module 20, and the second control module 40 work sequentially, or the configuration module 10, the first control module 20, the processing module 30, and the second control module 40 work sequentially.
The respective modules in the above-described power consumption control apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules. It should be noted that, in the embodiment of the present disclosure, the division of the modules is merely a logic function division, and other division manners may be implemented in actual practice.
Based on the same inventive concept, the embodiment of the disclosure also provides a power consumption control device method based on the power consumption control device. The implementation of the solution to the problem provided by the method is similar to that described in the above-mentioned device, so the specific limitation in the method embodiments of the power consumption control device or devices provided below may be referred to the limitation of the power consumption control device hereinabove, and will not be repeated here.
In some embodiments of the present disclosure, as shown in fig. 4, the power consumption control method provided in the present embodiment is applied to an electronic device, where the electronic device includes a sensor and a scanning module connected to the sensor, and the method includes the following steps:
step A10: the timing parameter of the current period and the scanning parameter of the scanning module are configured.
Step A20: and entering a first sleep mode in a first preset time period of the current period according to the scanning parameters and the timing parameters, and controlling the scanning module to acquire sensing data of the sensor.
Step A30: and entering a normal working mode and processing the sensing data acquired by the scanning module in the first preset time period of the current period.
Step A40: and entering a second sleep mode in a second preset time period of the current period according to the timing parameter, and controlling the scanning module to stop acquiring the sensing data, wherein the second preset time period is a low-power consumption mode time period.
In some embodiments, the electronic device further comprises a power management module, wherein the power management module is used for supplying power to other modules in the electronic device. The step a40 further includes:
step A42: and controlling the power management module to enter a low power consumption mode in a second preset time period of the current period.
In some embodiments, as shown in fig. 5, after the step a40, the method further includes:
step A50: and generating an interrupt wake-up signal, wherein the interrupt wake-up signal is used for waking up 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.
In some embodiments of the present disclosure, as shown in fig. 6, the present embodiment further provides a power consumption control method applied to an electronic device, where the electronic device includes a sensor and a scanning module connected to the sensor, and the method includes the following steps:
step B10: entering a normal working mode and processing induction data acquired by the scanning module in a first preset time period of a previous period;
step B20: configuring timing parameters of the current period and scanning parameters of a scanning module;
step B30: according to the scanning parameters and the timing parameters, entering a first sleep mode in the first preset time period of the current period and controlling the scanning module to acquire sensing data of the sensor;
step B40: and entering a second sleep mode in a second preset time period of the current period according to the timing parameters, and controlling the scanning module to stop acquiring the sensing data.
In some embodiments, the electronic device further comprises a power management module, wherein the power management module is used for supplying power to other modules in the electronic device. The step B40 further includes:
step B42: and controlling the power management module to enter a low power consumption mode in a second preset time period of the current period.
In some embodiments, as shown in fig. 7, after the step B40, the method further includes:
step B50: and generating an interrupt wake-up signal, wherein the interrupt wake-up signal is used for waking up 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.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
The hardware structure of the electronic device has various embodiments, and in order to more clearly describe the technical solutions of the present application, the power consumption control method described above is described below with reference to one specific example of the electronic device:
in one specific example, as shown in fig. 8, the electronic device includes a microcontroller core (core), a Bus (Bus), a Memory (Memory), a power management unit (Power Manage Unit, abbreviated as PMU), a clock reset controller (Rest Clock Controller, abbreviated as RCC), a low dropout linear regulator (Low Dropout Regulator, abbreviated as LDO), a clock Oscillator (OSC), an Analog Front End (AFE), a Sensor (Sensor), and a Timer (Timer), where AFE typically includes an analog-to-digital converter (analog-Digital Converter, abbreviated as ADC), a programmable gain amplifier (Programmable Gain Amplifier, abbreviated as 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 buses. The analog front end is connected with the sensor to jointly form a pressure sensing peripheral. The power consumption management unit is respectively connected with the analog front end, the low dropout linear voltage stabilizer, 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-described electronic device:
as shown in fig. 9, T cycle For one scan period, T1-T4 represent 4 time periods in the scan period.
T1: the electronic equipment is in a normal working mode, the configuration module 10 works, the electronic equipment executes the step A10, namely, the scanning mode, the scanning channel number, the voltage gain amplification factor and the scanning finishing wake-up enabling of the analog front end are configured through the microcontroller core through a bus, and meanwhile, the counting period of the timer is configured. When the configuration module 10 completes the above configuration, the first control module 20 controls the electronic device to enter the first sleep mode.
T2: the electronic device is in a first sleep mode. In this mode, the first control module 20 works, and the electronic device specifically executes step a20, and at this time, may turn off the clock except the pressure-sensitive peripheral device and the timer, and control the pressure-sensitive peripheral device to scan. In the first sleep mode, the clock except the pressure sensing peripheral and the timer is turned off, 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 completing data acquisition in the first preset time period, the interrupt wakeup system may be triggered to enter T3.
T3: the electronic device is in a normal working mode, the processing module 30 works, and the electronic device executes the step A30, namely, the processing of the sensing data acquired by the sensing peripherals in the first preset time period. After the data processing is completed, the second control module 40 controls the electronic device to enter the second sleep mode.
T4: the electronic device is in a second sleep mode. In this mode, the second control module 40 works, and the electronic device specifically executes step a40, i.e. controls the scanning module to stop data acquisition. At this time, all clocks except the timer may be turned off, and step a42 is performed, i.e., the load capacity of the low dropout linear regulator is reduced to a preset value, so that it operates in the low power consumption mode. In the second sleep mode, since all clocks except the timer are turned off and the load carrying capability of the low dropout linear regulator is reduced to a preset value, power consumption in the second sleep mode is further reduced compared to the first sleep mode. In this embodiment, T4 is the aforementioned second preset period, in which the electronic device waits for the timer to wake up overtime, and when the timer generates the interrupt wake-up signal overtime, the electronic device enters the T1 phase of the next cycle.
In the specific example, after the data is collected, the collected data is processed in time, so that the response speed is improved, and meanwhile, the phenomenon that the data is lost or other abnormal conditions are caused by not processing the collected data in time is avoided, and further the data processing is affected.
The following is another specific example of the power consumption control method applied to the above-described electronic device (see fig. 10):
t1: the electronic device is in the normal working mode, the processing module 30 works, and the electronic device executes step B10, namely, processes the data acquired by the peripheral device with the internal pressure sense in the previous period. After the data processing is finished, the configuration module 10 works, and the electronic device executes step B20, namely, configures the scan mode, the scan channel number, the voltage gain amplification factor and the scan completion wakeup enable of the analog front end through the microcontroller core via the bus, and configures the counting period of the timer. When the configuration module 10 completes the above configuration, the first control module 20 controls the electronic device to enter the first sleep mode.
T2: the electronic device is in a first sleep mode. In this mode, the first control module 20 operates, and the electronic device specifically executes step B30, where the clocks other than the clock and the timer of the pressure-sensitive peripheral device may be turned off, so as to control the pressure-sensitive peripheral device to scan. In the first sleep mode, since all clocks except the pressure-sensitive peripheral clock and the timer are turned off, power consumption of the electronic device is reduced to some extent while the data acquisition function is ensured. In this embodiment, T2 is the aforementioned first preset time period, and after completing data acquisition in the first preset time period, the interrupt wakeup system may be triggered to enter T3.
T3: the electronic device is in a second sleep mode. In this mode, the second control module 40 works, and the electronic device specifically executes step B40, i.e. controls the scanning module to stop data acquisition. At this time, all clocks except the timer may be turned off, and step B42 of reducing the load capacity of the low dropout linear regulator to a preset value is performed to operate in the low power consumption mode. In the second sleep mode, since all clocks except the timer are turned off and the load carrying capability of the low dropout linear regulator is reduced to a preset value, power consumption in the second sleep mode is further reduced compared to the first sleep mode. In this embodiment, T3 is the aforementioned second preset period, in which the electronic device waits for the timer to wake up overtime, and when the timer generates the interrupt wake-up signal overtime, the electronic device enters the T1 phase of the next cycle.
Compared with the first specific example, the second specific example combines the configuration of the pressure sensing peripheral and the data processing stage, reduces the process of waking the electronic device from the first sleep mode once, increases the time of the system in the second sleep mode, and further reduces the power consumption of the whole period.
In some embodiments, embodiments of the present invention provide an electronic device, as shown in FIG. 11, that includes a memory 70 and a processor 80. The memory 70 and the processor 80 may be communicatively coupled via a bus or otherwise, as illustrated in fig. 11.
The processor 80 may be a central processing unit (Central Processing Unit, CPU). Processor 80 may also be a chip such as other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination thereof.
The memory 70 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions corresponding to the power consumption control method in the embodiment of the invention. The processor 80 executes various functional applications of the processor 80 and data processing, i.e., implements a power consumption control method, by running non-transitory software programs, instructions, and modules stored in the memory 70.
The memory 70 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created by the processor 80, etc. In addition, the memory 70 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 70 may optionally include memory located remotely from processor 80, 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 appreciated by those skilled in the art that implementing all or part of the above-described embodiment method may be implemented by a computer program to instruct related hardware, where the program may be stored in a computer readable storage medium, and the program may include the above-described embodiment method when executed. Wherein the storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (12)

1. A power consumption control device applied to an electronic device, the electronic device comprising a sensor and a scanning module connected with the sensor, the device comprising:
the configuration module is used for configuring the timing parameter of the current period and the scanning parameter of the scanning module;
the first control module is used for controlling the electronic equipment to enter a first sleep mode and controlling the scanning module to acquire sensing data of the sensor in a first preset time period of the current period according to the scanning parameter and the timing parameter;
the processing module is used for processing the induction data acquired by the scanning module in the first preset time period of the current period or the previous period in a normal working mode;
and the second control module is used for controlling the electronic equipment to enter a second sleep mode and controlling the scanning module to stop collecting the sensing data in a second preset time period of the current period according to the timing parameter, wherein the power consumption of the electronic equipment in the second sleep mode is smaller than that in the first sleep mode.
2. The power consumption control apparatus according to claim 1, wherein the processing module, the configuration module, the first control module, and the second control module operate in order after the electronic device enters a current cycle; the processing module is used for processing the induction data acquired by the scanning module in the first preset time period of the previous period in a normal working mode.
3. The power consumption control apparatus according to claim 1, wherein the configuration module, the first control module, the processing module, and the second control module operate in order after the electronic device enters a current period; the processing module is used for processing the induction data acquired by the scanning module in the first preset time period of the current period in a normal working mode.
4. The power consumption control apparatus of claim 1, wherein the electronic device further comprises a power management module, the apparatus further comprising:
and the third control module is used for controlling the power management module to enter a low-power consumption mode in a second preset time period of the current period.
5. The power consumption control apparatus of claim 4, wherein the power management module is a low dropout linear regulator;
and the third control module is further configured to reduce the load capacity of the low dropout linear regulator to a preset value in a second preset time period of the current period.
6. The power consumption control apparatus according to claim 4, wherein the electronic device further comprises a timer;
the second control module is further configured to control the electronic device to only start the timer in a second preset time period of the current period.
7. The power consumption control apparatus according to any one of claims 1 to 6, characterized in that the apparatus further comprises:
the wake-up module is used for generating an interrupt wake-up signal after the second control module controls the scanning module to stop collecting the sensing data, and the interrupt wake-up signal is used for waking up 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.
8. The power consumption control apparatus according to any one of claims 1 to 6, wherein the scanning parameter includes at least one of a scanning mode, a scanning channel number, a scanning period, and a voltage gain amplification factor.
9. The power consumption control method is applied to electronic equipment, and the electronic equipment comprises a sensor and a scanning module connected with the sensor, and is characterized by comprising the following steps:
configuring timing parameters of the current period and scanning parameters of a scanning module;
according to the scanning parameters and the timing parameters, entering a first sleep mode in a first preset time period of the current period and controlling the scanning module to acquire sensing data of the sensor;
entering a normal working mode and processing induction data acquired by the scanning module in the first preset time period of the current period;
and entering a second sleep mode in a second preset time period of the current period according to the timing parameter, and controlling the scanning module to stop acquiring the sensing data, wherein the second preset time period is a low-power consumption mode time period.
10. The power consumption control method is applied to electronic equipment, and the electronic equipment comprises a sensor and a scanning module connected with the sensor, and is characterized by comprising the following steps:
entering a normal working mode and processing induction data acquired by the scanning module in a first preset time period of a previous period;
configuring timing parameters of the current period and scanning parameters of a scanning module;
according to the scanning parameters and the timing parameters, entering a first sleep mode in the first preset time period of the current period and controlling the scanning module to acquire sensing data of the sensor;
and entering a second sleep mode in a second preset time period of the current period according to the timing parameters, and controlling the scanning module to stop acquiring the sensing data.
11. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the power consumption control method of any of claims 9-10.
12. A computer readable storage medium having stored therein computer instructions which when executed by a processor implement the power consumption control method of any of claims 9-10.
CN202211371210.2A 2020-04-16 2020-04-16 Power consumption control device and method, electronic device, and computer-readable storage medium Pending CN116185160A (en)

Priority Applications (1)

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

Applications Claiming Priority (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

Related Parent Applications (1)

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

Publications (1)

Publication Number Publication Date
CN116185160A true CN116185160A (en) 2023-05-30

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 Before (1)

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

Country Status (1)

Country Link
CN (2) CN111596753A (en)

Family Cites Families (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
CN101483908B (en) * 2009-02-18 2011-05-11 王翥 Wireless sensor network node
US9349386B2 (en) * 2013-03-07 2016-05-24 Analog Device Global System and method for processor wake-up based on sensor data
CN105120314B (en) * 2015-08-05 2018-05-15 冠捷显示科技(厦门)有限公司 A kind of power-economizing method of touch panel remote controller
CN106406496A (en) * 2016-09-05 2017-02-15 芯海科技(深圳)股份有限公司 Low power consumption control method for pressure-sensitive key identification device
US10928881B2 (en) * 2016-09-23 2021-02-23 Apple Inc. Low power touch sensing during a sleep state of an electronic device
CN109144224B (en) * 2018-09-26 2020-08-07 Oppo广东移动通信有限公司 Power consumption optimization method and device for touch screen
CN110113777B (en) * 2019-04-29 2022-03-01 深圳广熵科技有限公司 Data acquisition method

Also Published As

Publication number Publication date
CN111596753A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
EP2115548B1 (en) Integrated waking/while-awake power management system
US9189053B2 (en) Performance based power management of a memory and a data storage system using the memory
US8977880B2 (en) Method for managing power supply of multi-core processor system involves powering off main and slave cores when master bus is in idle state
TWI475373B (en) Control device, control method, computer program product, and electronic device
CN105223915B (en) IC apparatus and the method for generating power traces
CN106427835B (en) A kind of Low-power-consumptiodormancy dormancy circuit of new-energy automobile electronics VCU modules
US8645729B2 (en) External device power control during low power sleep mode without central processing unit intervention
US9507406B2 (en) Configuring power domains of a microcontroller system
TW200921358A (en) Electronic system and power control method thereof
JP2012505468A (en) Power management in a system having a processor and a voltage converter for providing a power supply voltage to the processor
CN103345415A (en) Terminal energy-saving method and device for management timer
CN109613970B (en) Low-power-consumption processing method based on FPGA and DSP framework
CN115598406B (en) Low-power-consumption voltage monitoring method and system based on state machine
CN103546029B (en) A kind of suitching type adjuster and control method thereof
CN102929381B (en) Electronic system and method for managing power supply thereof
CN106292987B (en) A kind of processor power-off sequential control system and method
CN112105041A (en) Control method and device for environment adjusting equipment powered by battery and terminal
CN114257474A (en) Power utilization control method and device for intelligent gateway, computer equipment and storage medium
US9971535B2 (en) Conversion method for reducing power consumption and computing apparatus using the same
CN101414212A (en) Method for performing booking work
CN106814840A (en) Low power state for processor keeps pattern
CN115639897B (en) Real-time voltage control module
CN116185160A (en) Power consumption control device and method, electronic device, and computer-readable storage medium
CN115129138A (en) Power consumption control method, power consumption control system, storage medium, and electronic device
CN116513966A (en) Crane control method and device, electronic equipment and crane

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