Skip to content

waggle-sensor/wagman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wagman: The Waggle Manager

The Wagman is a custom-designed embedded microcontroller board that manages power, monitors the operation of all system components, and resolves many classes of faults. Versions 1-4 of Wagman used Atmel MCUs with industrial operational range (-40 °C to 85 °C). The microcontroller is commonly used in Arduino-class boards. Wagman V5 uses no programmable MCUs and is entirely implemented in hardware with no customizable firmware.

The Waggle Manager (Wagman) board is our approach to providing enhanced resilience while also supporting Linux-based compute boards with extremely complex, and usually brittle, software stacks. In effect, the Linux boards become devices that can be managed. Instead of focusing on making the full-featured embedded OS resilient, Waggle borrows a design pattern from NASA deep space probes and relies on the simplified and environmentally hardened Wagman to provide a safe mode that enables recovery and reprogramming of the compute boards.

Wagman employs internal sensor inputs that are out of band with respect to the Linux boards, including CPU temperature, power draw, and humidity of the enclosure. A simple digital signal between the Linux system and Wagman provides a software-driven heartbeat monitor. Sealed relays allow WagMan to completely manage electrical power to subsystems (including the Linux single-board computers), permitting sequential power-up of subsystems to avoid power spikes or to electrically isolate and disconnect faulty boards.

When possible, Wagman can also manage boot image selection on the single-board computers. This includes booting from either an eMMC card (primary) or a microSD card (secondary), when both are installed, and the selection can be done via a board-level logic line that is routed to Wagman. By using the heartbeat line and boot selector, Wagman becomes capable of sophisticated recovery schemes. For example, when the heartbeat is lost, Wagman can try to reboot the device. After three failed attempts, Wagman can select the backup (secondary) boot image. The backup boot image can then determine how to rebuild or reinstall the image on the primary boot media. This approach allows for a “safe mode” that can reformat the media and reinstall a known configuration.

Firmware

The current version of Wagman is v5. It does not incorporate any programmable components and firmware. For archival purposes, the firmware targetting v4 Wagman boards can be found here and the firmware for older v3 Wagman boards is kept here. Wagman v1 and v2 were technology demonstrations and not for production use.

About

The Waggle Manager (Wagman), a custom circuit board and control system for Wild Waggle Nodes

Topics

Resources

Stars

Watchers

Forks