Wireless spanning tree protocol for TinyOS.
From an initial disconnected state, each node finds a suitable parent node to form a multi-hop path to the root of the tree. The protocol is resilient to cycles in the network graph, as well as parent death.
This implementation was done on TelosB motes. Onboard sensors readings are used to populate message data.