Skip to content

Question about implementing the watchdog using C# #15

Description

@bdoyle159

I'm fairly new to the linux/embedded space but need to implement the watchdog for our SOM. So far I have successfully compiled and installed the module and am able to use the watchdog, but want to know if I am using the correct commands as the driver was intended. I will need to implement this using C#, and plan to run these commands using a C# Process object. Is there a better way to use the watchdog functionality?

To enable and feed the watchdog from the terminal, I am using:
echo 1 > /dev/watchdog1
To stop the watchdog, I use:
echo 0 > /dev/watchdog1
To change the timeout from the default, I use:
rmmod imanager_wdt
insmod /lib/modules/$(uname -r)/extra/imanager/imanager_wdt.ko timeout=60

This seems to work just fine, but I wanted to know if these commands are the correct usage or if there is a better way.
Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions