Grace: Low-Cost Time-Synchronized GPIO Tracing for IoT Testbeds

Laura Harms, Christian Richter, Olaf Landsiedel

2022 18th International Conference on Distributed Computing in Sensor Systems (DCOSS)

Best paper award

Abstract

Testbeds have become a vital tool for evaluating and benchmarking applications and algorithms in the Internet of Things (IoT). Testbeds commonly consist of low-power IoT devices augmented with observer nodes providing control, logging, and often also power-profiling. Today, the research community operates numerous testbeds, sometimes with hundreds of IoT nodes, to allow for detailed and large-scale evaluation. Most testbeds, however, lack opportunities for tracing distributed program execution with high accuracy in time, for example, via minimally invasive, distributed GPIO tracing. And the ones that do, like Flocklab, are built from custom hardware, which is often too complex, inflexible, or expensive to use for other research groups.
This paper closes this gap and introduces Grace, a low-cost, retrofittable, distributed, and time-synchronized GPIO tracing system built from off-the-shelf components, costing less than €20 per node. Grace extends observer nodes in a testbed with (1) time-synchronization via wireless sub-GHz transceivers and (2) logic analyzers for GPIO tracing and logging, enabling time-synchronized GPIO tracing at a frequency of up to 8 MHz. We deploy Grace in a testbed and show that it achieves an average time synchronization error between nodes of 1.53 μs.

Bibtex

@INPROCEEDINGS{2022-dcoss-grace,
  author={Harms, Laura and Richter, Christian and Landsiedel, Olaf},
  booktitle={2022 18th International Conference on Distributed Computing in Sensor Systems (DCOSS)}, 
  title={Grace: Low-Cost Time-Synchronized GPIO Tracing for IoT Testbeds}, 
  year={2022},
  pages={9-16},
  doi={10.1109/DCOSS54816.2022.00013}
}