Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about implementing the watchdog using C# #15

Open
bdoyle159 opened this issue Jul 13, 2023 · 0 comments
Open

Question about implementing the watchdog using C# #15

bdoyle159 opened this issue Jul 13, 2023 · 0 comments

Comments

@bdoyle159
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant