# How to manually clear watchdog counter

**URL:** <https://forum.sierrawireless.com/t/how-to-manually-clear-watchdog-counter/134>\
**Category:** Open AT\
**Created:** [November 14, 2005, 6:49pm UTC](https://forum.sierrawireless.com/t/how-to-manually-clear-watchdog-counter/134 "2005-11-14T18:49:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piedos](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@Piedos](https://forum.sierrawireless.com/u/Piedos)\
**Post date:** [November 14, 2005, 6:49pm UTC](https://forum.sierrawireless.com/t/how-to-manually-clear-watchdog-counter/134/1 "2005-11-14T18:49:27Z")

</div>

Jay says:

> [@](#):
>
> I agree with tomalex, do not use ‘while’ or big loop with ‘for’ because of the watchdog timer.
> 
> The watchdog timer is set to 4.5 seconds (Open AT Development Guide, chapter about security), so if your Open AT application keeps the hand more than 4.5 seconds in a loop then the module resets.
> 
> The best way is to use timers to allow the core software to work properly.

It does not need to be a loop, forexample I call a nested stack which handles many events and probably last more watchdog timer expire time, so there must be a function to reset watchdog counter manually in our applications.  
What does WaveCOM R&D think about this problem?

Note: My function is not recursive, thus I am sure call stack size is enough, and I don’t use allocate functions which my reset processor in improper use.

---

<div class="post-metadata">

**Author:** ![snoooze](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@snoooze](https://forum.sierrawireless.com/u/snoooze)\
**Post date:** [November 15, 2005, 9:15am UTC](https://forum.sierrawireless.com/t/how-to-manually-clear-watchdog-counter/134/2 "2005-11-15T09:15:27Z")

</div>

Hello [color=blue]piedos,

I’m not Wavecom R&D but here’s my opinion:

There’s no way to reset the Wavecom watchdog timer and according to me there shouldn’t be. The Wavecom watchdog timer is the only way the Core software can prevent the Open AT application from completely hanging the whole system.

If you can’t process everything you want within the watchdog timeout, then you should divide your code into several steps and use timers between each step so the core software can have a chance to execute for a while.

I mean, if your code takes more than 4-5 seconds to run then it shouldn’t matter if you take a couple of 100 ms pauses…

/Snoooze
