DISCLAIMER THIS SITE INCLUDING ALL ITS CONTENT (TEXT, PICTURES, BINARIES ETC.) IS NOT ALLOWED TO BE USED IN CRIMINAL OR ILLEGAL ACTIVITIES. IT IS FOR NON COMERCIAL PURPOSE ONLY! I AM IN NO WAY RESPONSIBLE FOR ANY EXTERNAL CONTENT POINTED TO FROM THIS SITE. UNDER NO CIRCUMSTANCES I AM RESPONSIBLE FOR ANY DAMAGES TO YOUR RADIO, PC OR OTHER EQUIPMENT. USE THIS SITE AND ALL OF ITS CONTENT AT YOUR OWN RISK! BY USING THIS SITE AND ITS CONTENT YOU HAVE ACCEPTED THIS DISCLAIMER.
|
Pin | Description | |
1 | - | |
2 | TX | |
3 | RX | |
4 | DTR | |
5 | GND | |
6 | - | |
7 | RTS | |
8 | - |
Componen placement | PCB full view | |
Various views of the finished WatchDog | ||
The WatchDog internals | ||
You can download a PDF File with the schematic and the PCB here
and the firmware HEX file here.
If you dont have the Adobe Acrobat Reader installed on your machine you can find it here
WatchDog V1.0, 26.8.2007, See also http://www.min.at/prinz/oe1rib/watchdog ESC) Cancel, ENTER) Save, Press Character before colon to change value Flags: -------------------------------- a: On/Off mode: N b: WatchDog mode: Y c: OK with every Character: N d: OK by level change on Pin: N e: Show prompt: Y f: Show LED status: Y g: Start with output power on: Y Values: -------------------------------- h: Start Delay (seconds): 120 i: Prompt Character: > j: OK Character: o k: ON Character: 1 l: OFF Character: 0 m: Timeout (seconds): 030 n: Grace period (count): 004 |
WatchDog configuration displaying the default values |
To change a configuration parameter press the character before the ':' (colon). If this parameter is a flag it just toggles its value and the configuration overview is displayed again. In case of a character or a numeric value you will see a prompt where you can change the value.
i: Press Character: |
To change a character just press the character at the "press character" prompt. Escape cancels the input and could not be used as input.
m: Enter Value: |
At this prompt you can enter a numeric value in the range 000 - 999. Enter accepts the value, escape cancels the input, backspace can be used to correct the value.
A description of the parameter follows:
Character | Parameter | Description |
a | On/Off mode | Allows turning output power on and off by sending a ON or OFF character to the WatchDog. If WatchDog mode is set to YES the on or off state must be acknowledged within [TimeOut] by using the ON, OFF, OK characters or if OK with every Character is set to YES with any character. |
b | WatchDog mode | Enables the [TimeOut] and [Grace] parameters. WatchDog must be triggerd by either the OK character, any character (if OK with every Character is set to YES or by the ON or OFF character if On/Off mode is set to YES. |
c | OK with every Character | Allows triggering or acknowledgement of power output by any character sent to the WatchDog |
d | OK by level change on Pin | The WatchDog can also be triggered or acknowledged by a level change on either the DTR or RTS line of the RS232. To configure which signal should be used a jumper must be soldered on the PCB. |
e | Show prompt | Display Prompt Character every time the WatchDog is triggered, a [Grace] period ends or a power cycle occures. |
f | Show LED status | Include the current LED status in the prompt in the form of !#[Prompt Character] .
So if promt is set to > and [Grace] = 3 the output would be !3> |
g | Start with output power on | If set to YES output power is on if the WatchDog is plugged into a 220V Socket |
h | Start Delay (seconds) | After pluggin the WatchDog into a 220V socket wait this much seconds. This parameter also specifies the duration of the power cycle (how many seconds output power should be turned off) |
i | Prompt Character | Which character to use as prompt. See also Show prompt parameter |
j | OK Character | Which character should be used as OK from the server. |
k | ON Character | The character to be used to turn output power on |
l | OFF Character | The character to be used to turn output power off |
m | Timeout (seconds) | How many seconds to wait for a WatchDog trigger |
n | Grace period (count) | How many times Timeout can go by without a WatchDog trigger. |
The WatchDog uses 2 LED's to show it's status. A red LED indicates 220V output power and a green LED shows the current WatchDog status.
Status LED's | Description |
Red LED off, green LED off: In normal operation output power turned off using OFF character or no 220V input power. | |
Red LED steady, green LED off: Normal operation, WatchDog is receiving heartbeats or in On/Off mode set to YES and WD mode turned off output power turned on by using ON Character. | |
Red LED steady, green LED blinking every second: No heartbeat received for [TimeOut] seconds, [Grace] is >= 3, output power supplyed. | |
Red LED steady, green LED blinking every 500ms (1/2 second): No heartbeat received for [TimeOut] seconds, [Grace] is = 2, output power supplyed. | |
Red LED steady, green LED blinking every 200ms (1/5 second): No heartbeat received for [TimeOut] seconds, [Grace] is = 1, output power supplyed. | |
WatchDog performing a power cycle, WatchDog has not received a heartbeat for [Timeout] * [Grace] seconds, no output power supplyed |
I'm in the process of ordering professional PCB boards for the WatchDog. If you are interested please mail me (Info @ MIN.at). Board costs will be about EUR 20,-- per Board. The more requests, the more boards will be produced, the cheaper a single board will be.
A Bill of Materials can be downloaded here.
This paper can also be found in the german HAM Radio Magazine
"Funkamateur" at www.funkamateur.de, Issue 01 / 2008, Page 32, Title: "Automatischer Rechnerneustart mittels Watchdog" |
73, OE1RIB