Hello,
I had a problem for 1 month to use a Watchdog mechanism in Netduino Plus. FYI, the "Watchdog" acts as a software reboot with a predefined timer.
The watchdog functions have been already developed in C# Micro Framework, but they never work. Based on the comment I got from Chris: "No watchdog implemented in the gen1 hardware. We're currently designing a software update for gen2 hardware which would enable it."
Finally, I created my own watchdog function which works well to reboot the Netduino after a fixed time (e.g., 5h).
public class MainFrame{ const Int32 wdDelay = 1000 * 60 * 60 * 5; // 5h static Timer wdtimer = new Timer(watchdog, null, wdDelay, 0); public static void Main() { // Write your codes here } public static void watchdog(object state) { PowerState.RebootDevice(false); //Watchdog.Enabled = true; }}
I hope it helps you in your project