CN104503860A - Embedded device low-power-consumption watchdog utilization method - Google Patents

Embedded device low-power-consumption watchdog utilization method Download PDF

Info

Publication number
CN104503860A
CN104503860A CN201410854075.6A CN201410854075A CN104503860A CN 104503860 A CN104503860 A CN 104503860A CN 201410854075 A CN201410854075 A CN 201410854075A CN 104503860 A CN104503860 A CN 104503860A
Authority
CN
China
Prior art keywords
house dog
time
power consumption
low
embedded device
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
CN201410854075.6A
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.)
Shenzhen Hangsheng Electronic Co Ltd
Original Assignee
Shenzhen Hangsheng Electronic 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 Shenzhen Hangsheng Electronic Co Ltd filed Critical Shenzhen Hangsheng Electronic Co Ltd
Priority to CN201410854075.6A priority Critical patent/CN104503860A/en
Publication of CN104503860A publication Critical patent/CN104503860A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention belongs to a watchdog utilization method and particularly relates to an embedded device low-power-consumption watchdog utilization method. The method comprises the steps of A, setting watchdog time to be n second during the normal operation of the device; B, calculating the longest time of sleep, which is m seconds, before the program runs to enter the low-power-consumption stop mode; C, resetting counts of the watchdog, and resetting the watchdog time to be longer than m seconds; D, enabling the watchdog to enter sleep and wake up after the longest time m seconds or shorter than m seconds; E, setting the watchdog time to operate normally for n seconds after waking up; F, ending. By the aid of the method, the problem that the overall running effect is affected due to automatic resetting of the device when the device enters the low-power-consumption stop mode and the device stop mode time is longer than n seconds is solved.

Description

A kind of embedded device low-power consumption house dog using method
Technical field
The invention belongs to a kind of house dog using method, particularly relate to a kind of embedded device low-power consumption house dog using method.
Background technology
Existing embedded device house dog set of time is n second, and n will carry out a dog feeding operation within second, otherwise device reset is restarted.When equipment enters low-power consumption stop mode, at this moment the time of equipment stop mode can only be less than n second, otherwise when the equipment stop mode time is greater than n second, equipment can reset and restart.The overall operation effect of equipment can be affected like this, have very large defect and limitation.
Summary of the invention
Technical matters to be solved by this invention is: a kind of embedded device low-power consumption house dog using method---solve when equipment enters low-power consumption stop mode, the equipment stop mode time is when being greater than n second, equipment can reset and restart, and affects the problem of the overall operation effect of equipment.
The using method of house dog when the present invention is achieved in that a kind of embedded device low-power consumption, is characterized in that: the method comprises the following steps:
A. the time arranging house dog during normal operation is n second;
B., before program runs to and enters low-power consumption stop mode, the maximum duration calculating this time sleep is m second;
C. the counting of house dog resets, and resets the time of house dog for being greater than m second;
D. enter sleep, the longest m wakes up after second, or is less than m and wakes up second;
E. after waking up, the set of time of house dog runs n second for normal;
F. terminate.
Further technical scheme of the present invention is: described method can also be:
The maximum duration that B sleeps at every turn does not need to calculate, and fixed value is m second;
The house dog time that C resets is fixed as the value being greater than m second.
Further technical scheme of the present invention is: the maximum duration m of described house dog arranges according to device hardware difference different, and the equipment low-power consumption stop mode time, m will within the maximum time of house dog.
Further technical scheme of the present invention is: arrange between n second house dog time and computing equipment low-power consumption stop mode maximum duration, run other flow processs.
Further technical scheme of the present invention is: after the method circulation N time, terminates.
The invention has the beneficial effects as follows: the present invention can before equipment enters low-power consumption stop mode, according to the time demand of equipment equipment low-power consumption stop mode, what reset house dog feeds the dog time, such equipment would not be restarted because reason for this reason resets, low-power consumption and house dog can be good at coordinative role, the defect before elimination and limitation.
Accompanying drawing explanation
The using method of house dog during a kind of embedded device low-power consumption of Fig. 1 the present invention;
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation:
Embodiment 1
As shown in Figure 1, the using method of house dog when the present invention is achieved in that a kind of embedded device low-power consumption, the method comprises the following steps:
A. the time arranging house dog during normal operation is n second;
B., before program runs to and enters low-power consumption stop mode, the maximum duration calculating this time sleep is m second;
C. the counting of house dog resets, and resets the time of house dog for being greater than m second;
D. enter sleep, the longest m wakes up after second, also can be less than m and wake up second;
E. after waking up, the set of time of house dog runs n second for normal;
F. terminate.
When house dog normally runs, setting-up time is n second, enter low-power consumption stop mode, computing equipment low-power consumption stop mode maximum duration, prevent equipment low-power consumption stop mode overlong time from making equipment restart reset, when equipment enters low-power consumption stop mode, detect the maximum duration of equipment low-power consumption stop mode, the counting of house dog resets afterwards, resetting the house dog time is greater than the equipment low-power consumption stop mode time, house dog stops how long being all within the equipment low-power consumption stop mode time in low-power consumption, also be within the timing of house dog, can not cause house dog because low-power consumption stops causing the reset of equipment to restart.
Embodiment 2
The using method of house dog during a kind of embedded device low-power consumption of the present invention can also be following steps:
A. the time arranging house dog during normal operation is n second;
The maximum duration that B sleeps at every turn does not need to calculate, and fixed value is m second;
The house dog time that C resets also can be fixed as the value being greater than m second;
D. enter sleep, the longest m wakes up after second, also can be less than m and wake up second;
E. after waking up, the set of time of house dog runs n second for normal;
F. terminate.
As described in embodiment 1-2, a kind of embedded device low-power consumption is the using method of house dog, and the maximum duration m of described house dog arranges according to device hardware difference different, and the equipment low-power consumption stop mode time, m will within the maximum time of house dog.This maximum duration does not have account form, and can be understood as the length of one's sleep that equipment needs, can be fixing also can not fixing.
Be understandable that, for those of ordinary skills, can be equal to according to technical scheme of the present invention and inventive concept thereof and replace or change, and all these change or replace the protection domain that all should belong to the claim appended by the present invention.

Claims (5)

1. the using method of house dog during embedded device low-power consumption, is characterized in that: the method comprises the following steps:
A. the time arranging house dog during normal operation is n second;
B., before program runs to and enters low-power consumption stop mode, the maximum duration calculating this time sleep is m second;
C. the counting of house dog resets, and resets the time of house dog for being greater than m second;
D. enter sleep, the longest m wakes up after second, or is less than m and wakes up second;
E. after waking up, the set of time of house dog runs n second for normal;
F. terminate.
2. house dog using method during a kind of embedded device low-power consumption according to claim 1, is characterized in that: described method step B and step C is improved to:
The maximum duration that B sleeps at every turn does not need to calculate, and fixed value is m second;
The house dog time that C resets is fixed as the value being greater than m second.
3. according to house dog using method during a kind of embedded device low-power consumption described in claim 1 or 2,
It is characterized in that: the maximum duration l of described house dog arranges and determines according to device hardware, and equipment low-power consumption stop mode maximum duration m is within the maximum time of house dog.
4. house dog using method during a kind of embedded device low-power consumption according to claim 1 and 2, is characterized in that: between steps A and step B, operational outfit normal flow.
5. a kind of embedded device low-power consumption house dog using method according to claim 1 and 2, is characterized in that: after the method circulation N time, terminates.
CN201410854075.6A 2014-12-31 2014-12-31 Embedded device low-power-consumption watchdog utilization method Pending CN104503860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410854075.6A CN104503860A (en) 2014-12-31 2014-12-31 Embedded device low-power-consumption watchdog utilization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410854075.6A CN104503860A (en) 2014-12-31 2014-12-31 Embedded device low-power-consumption watchdog utilization method

Publications (1)

Publication Number Publication Date
CN104503860A true CN104503860A (en) 2015-04-08

Family

ID=52945260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410854075.6A Pending CN104503860A (en) 2014-12-31 2014-12-31 Embedded device low-power-consumption watchdog utilization method

Country Status (1)

Country Link
CN (1) CN104503860A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107851050A (en) * 2015-07-08 2018-03-27 微软技术许可有限责任公司 The WatchDog Timer of high availability and energy efficient

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5761414A (en) * 1995-12-06 1998-06-02 Mitsuba Corporation Method for detecting execution errors of a microprocessor
CN2599652Y (en) * 2002-12-04 2004-01-14 华为技术有限公司 Entrance guard dog checking circuit
CN1815449A (en) * 2005-02-01 2006-08-09 艾默生网络能源有限公司 Watchdog control method
CN101171563A (en) * 2005-05-10 2008-04-30 Nxp股份有限公司 Sleep watchdog circuit for asynchronous digital circuits
CN101711052A (en) * 2009-11-03 2010-05-19 深圳和而泰智能控制股份有限公司 Method for reducing stand-by power consumption of wireless transceiver system and system thereof
CN103676728A (en) * 2013-11-27 2014-03-26 奇瑞汽车股份有限公司 Watchdog circuit system for electronic control unit of automobile

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5761414A (en) * 1995-12-06 1998-06-02 Mitsuba Corporation Method for detecting execution errors of a microprocessor
CN2599652Y (en) * 2002-12-04 2004-01-14 华为技术有限公司 Entrance guard dog checking circuit
CN1815449A (en) * 2005-02-01 2006-08-09 艾默生网络能源有限公司 Watchdog control method
CN101171563A (en) * 2005-05-10 2008-04-30 Nxp股份有限公司 Sleep watchdog circuit for asynchronous digital circuits
CN101711052A (en) * 2009-11-03 2010-05-19 深圳和而泰智能控制股份有限公司 Method for reducing stand-by power consumption of wireless transceiver system and system thereof
CN103676728A (en) * 2013-11-27 2014-03-26 奇瑞汽车股份有限公司 Watchdog circuit system for electronic control unit of automobile

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107851050A (en) * 2015-07-08 2018-03-27 微软技术许可有限责任公司 The WatchDog Timer of high availability and energy efficient
CN107851050B (en) * 2015-07-08 2021-04-09 微软技术许可有限责任公司 Device with watchdog timer and method for operating watchdog timer

Similar Documents

Publication Publication Date Title
MX358065B (en) Circuit, method, and device for waking up main mcu.
TW201608371A (en) Managing applications for power conservation
MX342074B (en) Wake pattern management.
GB2513748A (en) Power conservation by way of memory channel shutdown
JP2012123823A5 (en)
GB2500153A (en) A Method, Computer Program and System to Optimize Memory Management of An Application Running on a Virtual Machine
CN103345415A (en) Terminal energy-saving method and device for management timer
PH12020500323A1 (en) Discontinuous reception method, terminal device and network device
CN104111850B (en) A kind of method and system for reducing micro-control unit MCU power consumptions
MX2016005401A (en) Method and device for waking up mcu.
CN104714620A (en) Method and device for adjusting wakeup frequency of intelligent terminal
CN102981825A (en) Method and system of managing background data of mobile terminal
CN104615472A (en) Method for preventing BIOS+ME FW online refresh failure
MX2015006489A (en) Memory optimization method and device.
CN105095045A (en) Method and system for monitoring background service of Android system
CN104503860A (en) Embedded device low-power-consumption watchdog utilization method
CN104679601A (en) Watchdog starting method of interference preventing system
CN105843314A (en) Low-power low level awaken circuit
CN101833480B (en) Method for realizing watchdog by using timer and resetting pin of singlechip
BR112013021773A2 (en) information processing apparatus, power supply control method, and, program
CN102880480A (en) Method for updating application program of intelligent water meter on line
CN116010143A (en) Method for automatically feeding dogs under dormancy and energy storage system
CN205066280U (en) Avionics cooling constant temperature equipment
CN103226507A (en) Method for preventing system crash in embedded system
CN102915258A (en) Control method of watchdog circuit

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: 20150408

RJ01 Rejection of invention patent application after publication