Towards a Memory-Safe IEEE 802.15.4 TSCH MAC Layer with Hardware-Determined Timing in Rust

IEEE 802.15.4 Time-Slotted Channel Hopping (TSCH) underpins reliable low-power wireless sensor networks and needs microsecond-accurate timing. Production implementations use C, where safety rests on conventions no compiler enforces. We present dot15d4, a heap-free IEEE 802.15.4 Medium Access Control (MAC) layer in Rust, and show that compile-time safety is compatible with hardware-fired radio timing. Typed channels move buffer ownership; a type-state driver rejects invalid radio transitions at compile time. A driver API, vendor-independent by design, lets each radio pre-arm its next operation in hardware while the current one runs. On nRF52840 boards, cell spacing holds to 50 ns (standard deviation), and the mean absolute single-hop synchronization error is 62 ns on a logic analyzer. On the slotframe of a Contiki-NG baseline, it is 58 ns, against 7.1 and 0.44 µs for that port at 16 and 1 µs ticks, a gap set by timer resolution, not the language. Pairing the stacks exposed a 48 µs reference error in that port. The guard window takes 87% of a listening cell’s charge. Miri and fuzzing found four defects; all are fixed, two by a type change the compiler enforces. dot15d4 is 96.8% safe code, at 2.5 times the flash of the C baseline.

Authors

Institutions

Publication Details

Journal
Sensors
Published
2026-11-16
DOI
https://doi.org/10.3390/s26227222
Primary Topic
Logic, programming, and type systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Towards a Memory-Safe IEEE 802.15.4 TSCH MAC Layer with Hardware-Determined Timing in Rust

An Braeken, Bruno Quoitin, Kris Steenhaut, Jeremy Dubrulle
Sensors
Logic, programming, and type systems
article

Towards a Memory-Safe IEEE 802.15.4 TSCH MAC Layer with Hardware-Determined Timing in Rust

An Braeken, Bruno Quoitin, Kris Steenhaut, Jeremy Dubrulle
article en

Abstract

IEEE 802.15.4 Time-Slotted Channel Hopping (TSCH) underpins reliable low-power wireless sensor networks and needs microsecond-accurate timing. Production implementations use C, where safety rests on conventions no compiler enforces. We present dot15d4, a heap-free IEEE 802.15.4 Medium Access Control (MAC) layer in Rust, and show that compile-time safety is compatible with hardware-fired radio timing. Typed channels move buffer ownership; a type-state driver rejects invalid radio transitions at compile time. A driver API, vendor-independent by design, lets each radio pre-arm its next operation in hardware while the current one runs. On nRF52840 boards, cell spacing holds to 50 ns (standard deviation), and the mean absolute single-hop synchronization error is 62 ns on a logic analyzer. On the slotframe of a Contiki-NG baseline, it is 58 ns, against 7.1 and 0.44 µs for that port at 16 and 1 µs ticks, a gap set by timer resolution, not the language. Pairing the stacks exposed a 48 µs reference error in that port. The guard window takes 87% of a listening cell’s charge. Miri and fuzzing found four defects; all are fixed, two by a type change the compiler enforces. dot15d4 is 96.8% safe code, at 2.5 times the flash of the C baseline.

SensorsVol. 26(22)
University of Mons (BE), Vrije Universiteit Brussel (BE)
Logic, programming, and type systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon