Questions tagged [watchdog]

Watchdog and watchdog timers.

Watchdog / watchdog timer is mechanism built-in in the system on hardware or software level can reset the system if serious problems are detected.

External links that are helpful when working on watchdog:

475 questions
7
votes
3 answers

Disabling the STM32 IWDG during debugging

I have a ChibiOS 3.x program on a STM32F4 microcontroller where I use the IWDG watchdog to reset the MCU on errors like this: int main() { iwdgInit(); iwdgStart(&IWDGD, &wd_cfg); while(true) { // ... do stuff } } If I now…
Uli Köhler
  • 11,813
  • 14
  • 55
  • 105
7
votes
3 answers

Python Watchdog: Is there a way to pause the observer?

I am using Watchdog to monitor a directory and keep it in sync with Dropbox. I am facing a situation where every time I download a file from Dropbox, I trigger an upload event as I need to write to the directory Watchdog is monitoring. This is the…
Ayrx
  • 1,792
  • 4
  • 21
  • 31
7
votes
4 answers

Is BackgroundWorker's IsBusy same as "IsAlive"?

I am trying to figure out a way to verify that a BackgroundWorker thread is alive (i.e. still running. The thread is essentially implemented as a simple infinite loop: while (AllConditionsMet()) { DoSomeMagic(); Thread.Sleep(10000); } The…
scatmoi
  • 1,868
  • 3
  • 18
  • 32
6
votes
4 answers

Linux automatically restarting application on crash - Daemons

I have an system running embedded linux and it is critical that it runs continuously. Basically it is a process for communicating to sensors and relaying that data to database and web client. If a crash occurs, how do I restart the application…
user623879
  • 3,842
  • 8
  • 32
  • 52
6
votes
3 answers

How to secure methods in java (overflow and so on)

i have to write a "WatchDog" in Java, who secure that Threads don't perform too long. With the initialization of the Objects it's no Problem, i made a Class, who calls the WatchDog and the constructor with reflections in the run() method. A Thread…
Nicolas
  • 269
  • 4
  • 14
6
votes
1 answer

How can i terminate myself if i run too long?

I have a application that runs periodically (it's a scheduled task). The task is launched once a minute, and normally only takes a few seconds to do its business, then exits. But there's a ~1 in 80,000 chance (every two or three months) that the…
Ian Boyd
  • 220,884
  • 228
  • 805
  • 1,125
6
votes
2 answers

Systemd Daemon in Python with watchdog support

I want to write a daemon in python which gets started via systemd. I wan to use Type=notify, this way I don't have to do the double fork magic. According to the docs: The reference implementation for this notification is provided by…
guettli
  • 26,461
  • 53
  • 224
  • 476
6
votes
5 answers

Programming in presence of watchdog timer

I am new to embedded systems programming, although I have done courses during studies, practical programming is still a bit further away. Here is the problem: I have to program a small system on NXP LPC2103 microcontroller (ARM 7 based), without an…
Bogi
  • 1,714
  • 3
  • 20
  • 32
6
votes
2 answers

How to determine whether a hardware or a software watchdog is implemented on the machine?

I have an embedded computer I am trying to develop on and I wanted to know if the watchdog it has is a software watchdog or if it is a hardware watchdog. First I checked and I saw that /dev/watchdog is present inside /dev. But I did not see a…
nemo
  • 503
  • 1
  • 8
  • 19
6
votes
2 answers

AM335x watchdog does not work

I am currently working on TI AM335x board (Starter Kit) and I would like to get the OMAP watchdog working... As far as I know the platform automatically enables the watchdog during boot and I think it is confirmed by the following messages printed…
Morix Dev
  • 2,592
  • 24
  • 47
6
votes
1 answer

Python watchdog not firing all events

I am trying to watch some text files for when they are modified using watchdog but I only seem to get events for .tmp files. I understand this is how sublime text is saving files, but shouldn't I also get an event fired for the actual file too? This…
Errol Fitzgerald
  • 2,848
  • 2
  • 22
  • 34
6
votes
1 answer

python watchdog modified and created duplicate events

Running on Ubuntu, every time i create a file i get a modified and a created event. Is this by design or am i doing something wrong? I'm using the event handler class PatternMatchingEventHandler event_handler =…
dbers
  • 608
  • 5
  • 16
5
votes
2 answers

How to programmatically check if an application has hang in VB.NET

I need to write a monitoring/watchdog program to check a series of application The monitoring program should be able to Determine whether the applications it is monitoring has hang or no response If it hangs, restart the specific application What…
Dennis
  • 2,860
  • 4
  • 23
  • 37
5
votes
1 answer

Watchdog Python script for Windows file system

I would like to write a small notification script using python watchdog for windows. The script should do - watch a directory and when ever file is created - trigger an exe passing filename as argument. This says for windows you need "lot of…
webminal.org
  • 37,814
  • 34
  • 84
  • 122
5
votes
2 answers

Reasons for Soft Lock up?

When we enable CONFIG_DETECT_SOFTLOCKUP to detect soft lockups, it creates a new task called khungtaskd which will run every 1s. If khungtaskd fails to get scheduled for 'n' seconds, then Kernel will declare a soft lockup. My question is what are…
Pavan Manjunath
  • 24,688
  • 11
  • 92
  • 120
1 2
3
31 32