https://github.com/orc/pcwatchdog
A control/monitor utility for the Berkshire Products USB PC Watchdog
https://github.com/orc/pcwatchdog
Last synced: about 1 month ago
JSON representation
A control/monitor utility for the Berkshire Products USB PC Watchdog
- Host: GitHub
- URL: https://github.com/orc/pcwatchdog
- Owner: Orc
- License: mit
- Created: 2017-04-16T03:10:11.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2020-06-15T22:41:14.000Z (about 6 years ago)
- Last Synced: 2025-02-24T13:13:14.803Z (over 1 year ago)
- Language: C
- Size: 6.84 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
pcwatchdog is a little utility to work with the Berkshire Products
USB PC Watchdog.
To build: cc -o watchdog watchdog.c
watchdog -h gives a brief help message describing what you can do with it:
usage: pcwatchdog [-f device] [-h]
pcwatchdog [-f device] command {...}
If not specified, pcwatchdog uses the device /dev/uhid0
the commands are:
ping -- ping the watchdog card, resetting the alarm clock.
temp -- read the pcwatchdog thermometer.
status -- read the current status of the pcwatchdog.
switches -- show the current settings on the dip switch bank.
version -- show the firmware version#.
arm-time -- show (=set) the startup arming delay.
stored-arm-time-- show (=set) the stored startup arming delay.
alarm -- show the remaining alarm time (=set the default alarm time).
stored-alarm -- show (=set) the stored alarm time.
trigger -- show (=0; clear) how many times the watchdog was been pinged.
enable -- turn the watchdog on.
disable -- turn the watchdog off.
relay -- show (=set) external relay parameters.
buzzer -- show (=set) buzzer parameters.
count -- show (=0; clear) how many times the computer has been reset.
pulse -- show (=configure) how long a reset lasts.
reset -- press the Big Red Switch.
the command ``pcwatchdog command=?'' returns a description of
the valid arguments for the command