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:

555 questions
5
votes
1 answer

Python Watchdog issue - missing events

I am using Python Watchdog to monitor a folder on Ubuntu. It's working fine with 1 or 2 files, but when I moved 50 files by command mv *.xml dest_folder then it received only 2 events and processed only 2 files. Below is the code. def on_moved(self,…
umesh varyani
  • 71
  • 1
  • 4
4
votes
2 answers

Watchdog monitoring UNIX domain socket, triggering events upon specific content

I am on an embedded platform (mipsel architecture, Linux 2.6 kernel) where I need to monitor IPC between two closed-source processes (router firmware) in order to react to a certain event (dynamic IP change because of DSL reconnect). What I found…
kriegaex
  • 63,017
  • 15
  • 111
  • 202
4
votes
4 answers

Crash reporting watchdog for when my application locks up on a customer's machine

I'm working with a somewhat unreliable (Qt/windows) application partly written for us by a third party (just trying to shift the blame there). Their latest version is more stable. Sort of. We're getting fewer reports of crashes, but we're getting…
Ned
  • 2,142
  • 17
  • 24
4
votes
4 answers

Disabling STM32 HAL IWDG or WWDG (watchdog) before STOP mode

I using an STM32 (L0 5) HAL I need to disable IWDG or WWDG before entering in STOP mode. The below code is working fine until IWDG is resetting the MCU from STOP mode. For WWDG usage this is much faster and reset before HAL_PWR_EnterSTOPMode is…
Colateral
  • 1,736
  • 2
  • 18
  • 22
4
votes
3 answers

C# remote watchdog

We have a number of services (mostly console applications) running across several remote computers. I need to implement some form of a watchdog to make sure all these services are running as expected. Some services are executed via Windows Task…
alexn
  • 57,867
  • 14
  • 111
  • 145
4
votes
2 answers

Meaning of writing 'V' to watchdog device file

What does it mean when we do echo V > /dev/watchdog? One article said it can prevent stopping watchdog accidentally. I am not clear about this purpose.
nathan
  • 754
  • 1
  • 10
  • 24
4
votes
1 answer

Retrieving return address of an exception on ARM Cortex M0

I am trying to retrieve the return address of an IRQ handler in my code. My aim is to save the value of the PC just before the watchdog timer expires and before the reset for debug purposes, using WDT_IRQHandler(). I am also testing this approach…
Vitomakes
  • 315
  • 4
  • 12
4
votes
0 answers

Python watchdog on network shares right issues

Im using python 2.7 on Windows 7 Enterprise SP1 with watchdog to watch some network shares for file changes. I have to networkshares on the same physical (assumed Linux) host that are connected to two different subfolders. So let's say I connected…
Dschoni
  • 3,714
  • 6
  • 45
  • 80
4
votes
1 answer

Watchdog timer triggers during MSP430F5529 initialization

I am coding a simple game and trying to test it on an MSP430F5529 microcontroller. The problem I have encountered is relating to the watchdog timer. The code I have written causes a device reset, which is an indication of a watchdog timer issue. I…
gbudan
  • 889
  • 7
  • 17
4
votes
1 answer

In_close_write event from python watchdog

I'm working on a simple watchdog script that will run md5sum on some very large images uploaded to our FTP. Watchdog doesn't seem to have a IN_CLOSE_WRITE event which exists in pyinotify. I tried checking if the file is still open as a work around…
redrodan
  • 41
  • 1
  • 3
4
votes
1 answer

When to use windowed watchdog for embedded systems

This post is not for asking how to use it, but when. There is a lot of documentation about windowed watchdogs (WW), and most microcontrollers already include it. Every vendor states that WW are meant for safety applications, but no one says more…
3
votes
1 answer

Can you enable watchdog in iOS for debug mode?

One of my apps got rejected because it exceeded the startup time limit. The watchdog process killed it. Is there any way you can enable this watchdog component in debug mode? I've read somewhere that it's disabled for debugging purposes (which seems…
Yannick
  • 1,076
  • 1
  • 11
  • 23
3
votes
3 answers

pywintypes.com_error: (-2147221008, 'CoInitialize has not been called.', None, None)

When I try to run this code as is I get this error "IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch) pywintypes.com_error: (-2147221008, 'CoInitialize has not been called.', None, None)" , however if I run…
Robotics101
  • 93
  • 1
  • 2
  • 9
3
votes
1 answer

How to ping /dev/watchdog from 2 processes?

In Linux (running on ARM) there is one process that has an open fd to /dev/watchdog/ and is sending an ioctl() each few seconds as a keep alive: while (1) { ioctl(fd, WDIOC_KEEPALIVE, 0); sleep(10); } I want to send the keep alive from…
yfr24493AzzrggAcom
  • 159
  • 1
  • 2
  • 13
3
votes
1 answer

Watchdog Project: Reference before assignment error

I'm trying to create a program that allocates downloaded files to a specific directory of my choosing, however this seems to only work with one if statement, whenever I expanded it to more than one, it just gives me the error shown below. I've tried…
Cybergenik
  • 130
  • 1
  • 5
  • 11