CN104133546A - Method for reducing power consumption of embedded system - Google Patents
Method for reducing power consumption of embedded system Download PDFInfo
- Publication number
- CN104133546A CN104133546A CN201410400696.7A CN201410400696A CN104133546A CN 104133546 A CN104133546 A CN 104133546A CN 201410400696 A CN201410400696 A CN 201410400696A CN 104133546 A CN104133546 A CN 104133546A
- Authority
- CN
- China
- Prior art keywords
- embedded system
- power consumption
- reduction power
- dram
- frequency
- 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
Links
Landscapes
- Power Sources (AREA)
Abstract
The invention discloses a method for reducing the power consumption of an embedded system. The method for reducing the power consumption of the embedded system comprises the following steps that A1, the operation mode of the embedded system is judged; A2, whether the operation frequency of a dram needs to be reduced or not is determined according to the operation mode, if yes, the step A3 is executed, and if not, the step A1 is executed; A3, the operation frequency of the dram is reduced. By the adoption of the method for reducing the power consumption of the embedded system, the power consumption of the embedded system is significantly reduced, and the run time of the system is prolonged.
Description
Technical field
The present invention relates to embedded system technology field, be specifically related to a kind of method that reduces power consumption of embedded system.
Background technology
From current embedded consumption electronic product, media processing and radio communication, 3D game are merged gradually, and its powerful function has been brought the increase of chip processing power, and in complicated mobile application environment, power consumption increases considerably.Such as mobile phone, user often wishes stand-by time, listens to the music the time, and sees that the time of video can be longer, and under such background, the power consumption that how to reduce embedded chip is extremely urgent.The Android cell phone system run duration of prior art, under any scene, dram running frequency remains unchanged, cause dram power consumption larger, particularly, under blank screen music scene, do not need higher dram frequency, thereby caused extra electric quantity consumption.
Summary of the invention
The technical problem to be solved in the present invention is, for the deficiencies in the prior art, provides a kind of method that reduces power consumption of embedded system, and the embedded system dram running frequency that overcomes prior art remains unchanged, and causes the defect that dram power consumption is larger.
The present invention for solving the problems of the technologies described above adopted technical scheme is:
A method that reduces power consumption of embedded system, comprises step:
A1, judge the operational mode of embedded system;
A2, determine whether to reduce dram running frequency according to described operational mode, if so, execution step A3, otherwise execution step A1;
A3, reduction dram running frequency.
According to embodiments of the invention, also comprise step:
A4, reduce the working voltage of described embedded system.
According to embodiments of the invention, described embedded system is made as Android system.
According to embodiments of the invention, also comprise step:
A5, ahb bus frequency is reduced to 50MHz.
According to embodiments of the invention, reduce dram running frequency and comprise step before: locking CPU is monokaryon.
According to embodiments of the invention, also comprise step:
A4, reduce the working voltage of described embedded system.
According to embodiments of the invention, described embedded system is made as Android system.
According to embodiments of the invention, also comprise step:
A5, ahb bus frequency is reduced to 50MHz.
According to embodiments of the invention, described operational mode is made as blank screen music playing mode.
Implement technical scheme of the present invention, there is following beneficial effect: the present invention has significantly reduced power consumption of embedded system, extended the cruising time of system.
Brief description of the drawings
Below by describing particularly the present invention with reference to accompanying drawing and in conjunction with example, advantage of the present invention and implementation will be more obvious, wherein content shown in accompanying drawing is only for explanation of the present invention, and do not form the restriction of going up in all senses of the present invention, in the accompanying drawings:
Fig. 1 is process flow diagram of the present invention;
Fig. 2 is embodiment of the present invention process flow diagram.
Embodiment
As shown in Figure 1, the present invention reduces the method for power consumption of embedded system, comprises step:
A1, judge the operational mode of embedded system;
A2, determine whether to reduce dram running frequency according to described operational mode, if so, execution step A3, otherwise execution step A1;
A3, reduction dram running frequency.
According to embodiments of the invention, also comprise step: A4, reduce the working voltage of described embedded system.Described embedded system is made as Android system.Also comprise step: A5, ahb bus frequency is reduced to 50MHz.According to embodiments of the invention, reduce dram running frequency and comprise step before: locking CPU is monokaryon.
As shown in Figure 2, the embodiment applying on Android cell phone system for the present invention.
1) Android cell phone system enters earlysuspend
Earlysuspend is the characteristic function that Android system increases on the basis of standard linux operating system.In the time that user's space enters suspend to kernel requests, can be introduced into earlysuspend state.Structearly_suspend has comprised two important callback interface suspend and resume, is respectively used to carry out in earlysuspend and laterresume.In the time that system enters earlysuspend state, kernel can call the early suspend call back function that drives registration one by one.The driver of for example display screen can be registered early suspend conventionally, and in its call back function, driver can and backlightly all be closed screen.In order to prevent that user from pressing after power key under bright screen, press again power key and wake up at once, do not carry out during this period the operation of dram frequency modulation.This method, in the earlysuspend stage, is provided with trigger dramfreq_timer, and for triggered time next time is set, dramfreq_timer is for triggering the operation in the stage of entering 2, and the triggered time is set to (this time can change) after 2s.If within 2s clock, user presses power key and has waken equipment up, enter lateresume flow process, no longer trigger the stage 2; Otherwise enter the stage 2.
2) judge whether to carry out the frequency modulation of dram running frequency
Enter within this stage means 2s clock, system is not waken up, and user does not press power key wake-up device.This stage judges according to the value of dramfreq_wake_lock, if this value is 1, represents now not meet the condition that low-power consumption blank screen broadcasts, and the next processing time of amendment dramfreq_timer is again to trigger and enter the stage 2 after 1s clock; If this value is 0, represent now to meet the condition that low-power consumption blank screen broadcasts, enter the operation in stage 3.
3) locking cpu is monokaryon
This stage, in order further to reduce cpu power consumption, only keeps monokaryon cpu online in system, close other cpu.If do not consider the impact that cpu power consumption is brought system power dissipation, can not lock cpu is monokaryon.The operation of locking monokaryon is simpler, the cpu_down interface providing by kernel, and can close other does not need the cpu core of opening.This interface can cross-platformly use, not only arm framework, and the polycaryon processor of other non-arm framework is all supported.
4) dram running frequency frequency reducing
This stage is by dram frequency modulation driving function _ dramfreq_set (struct devfreq*df, unsigned int freq_target) complete dram frequency modulation, parameter d f is device structure body pointer, and freq_target is the target frequency that dram will set.Dram running frequency frequency is reduced to minimum value.In addition, use interface function regulator_set_voltage (struct regulator*regulator, int min_uV, intmax_uV), Android cell phone system voltage is done to step-down processing, system voltage is reduced to 1.0v.In function body, regulator is voltage-regulation pointer, and min_uV is the minimum voltage that equipment needs, and max_uV is the available ceiling voltage of equipment.Calling interface function _ _ ahb_set_rate (unsigned long ahb_freq) does down conversion process to ahb bus frequency, and frequency is reduced to 50MHz, wherein: ahb_freq is the frequency that ahb bus will be set.
The value of dramfreq_wake_lock, is responsible for change by Android layer, when being checked through can enter low-power consumption blank screen music time, this value is written as to 0, otherwise is written as 1.The isMusicActive () method of AudioManager class during Android layer wraps by Android.media, whether can judge currently has music to play; Detect and have or not single audio stream to hold wakelock (wakelock is a kind of lock mechanism in Android system, as long as hold this lock, system just cannot enter dormancy) by wakeLock.mTag.contains (" AudioMix ").
Those skilled in the art do not depart from essence of the present invention and spirit, can there is various deformation scheme to realize the present invention, the foregoing is only the better feasible embodiment of the present invention, not thereby limit to interest field of the present invention, the equivalent structure that all utilizations instructions of the present invention and accompanying drawing content are done changes, within being all contained in interest field of the present invention.
Claims (9)
1. a method that reduces power consumption of embedded system, is characterized in that, comprises step:
A1, judge the operational mode of embedded system;
A2, determine whether to reduce dram running frequency according to described operational mode, if so, execution step A3, otherwise execution step A1;
A3, reduction dram running frequency.
2. the method for reduction power consumption of embedded system according to claim 1, is characterized in that, also comprises step:
A4, reduce the working voltage of described embedded system.
3. the method for reduction power consumption of embedded system according to claim 2, is characterized in that: described embedded system is made as Android system.
4. the method for reduction power consumption of embedded system according to claim 3, is characterized in that, also comprises step:
A5, ahb bus frequency is reduced to 50MHz.
5. the method for reduction power consumption of embedded system according to claim 1, is characterized in that: before reducing dram running frequency, comprise step: locking CPU is monokaryon.
6. the method for reduction power consumption of embedded system according to claim 5, is characterized in that, also comprises step:
A4, reduce the working voltage of described embedded system.
7. the method for reduction power consumption of embedded system according to claim 6, is characterized in that: described embedded system is made as Android system.
8. the method for reduction power consumption of embedded system according to claim 7, is characterized in that, also comprises step:
A5, ahb bus frequency is reduced to 50MHz.
9. according to the method for the reduction power consumption of embedded system described in claim 1 to 8, it is characterized in that: described operational mode is made as blank screen music playing mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410400696.7A CN104133546A (en) | 2014-08-13 | 2014-08-13 | Method for reducing power consumption of embedded system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410400696.7A CN104133546A (en) | 2014-08-13 | 2014-08-13 | Method for reducing power consumption of embedded system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104133546A true CN104133546A (en) | 2014-11-05 |
Family
ID=51806258
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410400696.7A Pending CN104133546A (en) | 2014-08-13 | 2014-08-13 | Method for reducing power consumption of embedded system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104133546A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104853418A (en) * | 2015-02-11 | 2015-08-19 | 数据通信科学技术研究所 | Low consumption terminal and low power consumption control method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1419666A (en) * | 2000-03-24 | 2003-05-21 | 英特尔公司 | Method and apparatus to implement the ACPI (advanced configuration and power interface) C3 state in a RARAM based system |
CN1567211A (en) * | 2003-06-23 | 2005-01-19 | 华邦电子股份有限公司 | Method and apparatus for detecting and adjusting refresh time of Dynamic Random Access Memory (DRAM) using temperature |
CN101727163A (en) * | 2008-11-04 | 2010-06-09 | 合勤科技股份有限公司 | Embedded system with power saving function and related power saving method thereof |
CN103581448A (en) * | 2012-08-09 | 2014-02-12 | 华为技术有限公司 | Multifunctional intelligent terminal and energy management method thereof |
-
2014
- 2014-08-13 CN CN201410400696.7A patent/CN104133546A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1419666A (en) * | 2000-03-24 | 2003-05-21 | 英特尔公司 | Method and apparatus to implement the ACPI (advanced configuration and power interface) C3 state in a RARAM based system |
CN1567211A (en) * | 2003-06-23 | 2005-01-19 | 华邦电子股份有限公司 | Method and apparatus for detecting and adjusting refresh time of Dynamic Random Access Memory (DRAM) using temperature |
CN101727163A (en) * | 2008-11-04 | 2010-06-09 | 合勤科技股份有限公司 | Embedded system with power saving function and related power saving method thereof |
CN103581448A (en) * | 2012-08-09 | 2014-02-12 | 华为技术有限公司 | Multifunctional intelligent terminal and energy management method thereof |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104853418A (en) * | 2015-02-11 | 2015-08-19 | 数据通信科学技术研究所 | Low consumption terminal and low power consumption control method |
CN104853418B (en) * | 2015-02-11 | 2019-02-15 | 数据通信科学技术研究所 | Low-power consumption terminal and Low-power-consumptiocontrol control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3971715A1 (en) | Picture processing method based on vertical synchronous signals and electronic equipment | |
KR102148948B1 (en) | Multi tasking method of electronic apparatus and electronic apparatus thereof | |
US20160209907A1 (en) | Method for performing power-saving mode in electronic device and electronic device therefor | |
US8279213B2 (en) | Synchronized media processing | |
CN110678825A (en) | Low power environment computing system with machine learning functionality | |
US20140047256A1 (en) | Terminal device and method for operating the same | |
CN106250093A (en) | The search mechanism of the audio frequency previously caught | |
CN110853644B (en) | Voice wake-up method, device, equipment and storage medium | |
CN104636169B (en) | A kind of system wake-up method and device | |
WO2013026311A1 (en) | Method and device for application program operation, mobile terminal | |
CN105677477A (en) | Method and device for optimizing application program resources and electronic equipment | |
US20160117269A1 (en) | System and method for providing universal serial bus link power management policies in a processor environment | |
JP2021105725A (en) | Noise reduction method, device, electronic apparatus, and recording medium based on on-vehicle multiple sound range | |
JP2014174995A (en) | Reducing power consumption during graphics rendering | |
KR102060431B1 (en) | Apparatus and method for managing power in multi-core system | |
WO2017206918A1 (en) | Terminal awakening accelerating method and related product | |
KR20210158746A (en) | Usb type-c subsystem power management | |
CN103260224A (en) | Mobile terminal and method for achieving refreshing of charging animation during charging | |
CN110543333B (en) | Sleep processing method and device for processor, mobile terminal and storage medium | |
US20210136688A1 (en) | Application processor that performs core switching based on modem data and a system on chip (soc) that incorporates the application processor | |
US10545562B2 (en) | Electronic device and method for operating the same | |
CN204156936U (en) | A kind of acoustic control speech-sound intelligent mobile phone | |
CN104133546A (en) | Method for reducing power consumption of embedded system | |
CN106249874B (en) | A kind of report method of sensing data, processor and mobile terminal | |
US20100332902A1 (en) | Power efficient watchdog service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141105 |
|
RJ01 | Rejection of invention patent application after publication |