WatchDog .cab
Download Version 1.0.0.9 from Google Code
The MobiRnD WatchDog application, compiled for Windows Mobile 5.0/6.0 devices and zipped into a device installation (.cab) file.
To install the WatchDog, copy this file to your device using ActiveSync or by other means (downloading from a server/email), locate the .cab using the "File Explorer" (sometimes called "File Manager") application on your device, select the .cab to run it.
You may install the WatchDog on your device or your device storage card.
Once you have the WatchDog installed, you will need to add a settings XML file for each application you want the WatchDog to monitor. You can find the WatchDog installed in \Program Files\WatchDog (on the device) or \Storage Card\Program Files\WatchDog (on the storage card). From your device or using ActiveSync, create a subfolder called "settings" within the WatchDog directory. Within this subfolder, add your settings XML files. The name of the file does not matter, as long as it has an .xml extension and is within this folder.
The contents of the XML file should follow this format:
<?xml version="1.0" encoding="utf-8"?>
<watchdog>
<application_name>NAME OF YOUR APPLICATION</application_name>
<application_path>FULL PATH TO YOUR APPLICATION</application_path>
<startup_delay_minutes># of MINUTES</startup_delay_minutes>
<restart_delay_minutes># of MINUTES</restart_delay_minutes>
<contingency_plans>
<contingency_plan>
<retry_threshhold># of RETRIES</retry_threshhold>
<action>FULL PATH TO SECONDARY APPLICATION</action>
</contingency_plan>
<contingency_plan>
<retry_threshhold># of RETRIES</retry_threshhold>
<action>REBOOT/action>
</contingency_plan>
</contingency_plans>
</watchdog>
application_name |
REQUIRED |
the user-friendly name of your application; will be used in logging |
application_path |
REQUIRED |
the full path to your application on the device; use the constant "INSTALL" to indicate that the WatchDog should first check the device (root directory "\") and then check the storage card ("\Storage Card\") |
startup_delay_minutes |
OPTIONAL |
the number of minutes to wait after the device initially starts before starting this application |
restart_delay_minutes |
OPTIONAL |
the number of minutes to wait after the WatchDog has noticed that the application is no longer running before trying to start again |
contingency_plans |
OPTIONAL |
a set of instructions for what to do if restarting the application is not working |
contingency_plan: retry_threshhold |
REQUIRED |
the number of retry attempts before the action should be taken |
contingency_plan: action |
REQUIRED |
either "REBOOT" to indicate the phone should be rebooted or the full path to an executable that should be started |
Example for the SimpleSurvey.exe application (watchdog_SimpleSurvey.xml) :
<?xml version="1.0" encoding="utf-8"?> <watchdog> <application_name>SimpleSurvey</application_name> <application_path>\Storage Card\Program
Files\SimpleSurvey\SimpleSurvey.exe</application_path> <startup_delay_minutes>3</startup_delay_minutes> <restart_delay_minutes>10</restart_delay_minutes> <contingency_plans> <contingency_plan> <retry_threshhold>5</retry_threshhold> <action>REBOOT</action> </contingency_plan> </contingency_plans> </watchdog>
|