DLP 1.0 / MAVLink 2 framing / HMAC-SHA256
Drone Link Lab
A telemetry link between a simulated drone and a ground station. Every frame is checked by a CRC and signed with HMAC-SHA256, built from real bytes, live in your browser.
- frame
- 25 + LEN bytes
- checksum
- CRC-16/MCRF4XX
- signature
- HMAC-SHA256, 48 bit
- receiver
- 7 checks, R1 to R7
Fly it. Every frame is checked.
The drone sends a signed HEARTBEAT at 1 Hz and DRONE_TELEMETRY at 5 Hz. The ground station runs every frame through the seven receiver checks. Fly with the sticks or the keyboard, then open any frame.
A Transmitter
- Space
- arm
- WS
- climb
- AD
- yaw
- ↑↓
- pitch
- ←→
- roll
- RL
- RTH / land
Sticks and ARM use the RC channel. Mode, return home and land travel over the link as signed DRONE_COMMAND frames and are answered with DRONE_ACK.
B Drone and link
E Ground-station view
Decoded from accepted frames only.
- ARMED
- GPS_LOCK
- LOW_BATT
- RETURNING
- FAILSAFE
C Frame inspector
D Receiver pipeline
F Event log
Uint8Arrays built and checked by protocol.js.Break the link. Watch it hold.
The attacker can hear the link, record frames and inject its own. It knows the format and the CRC, but not the key. Launch an attack and follow the frame through the receiver, then switch a defence off and try again. Every attack touches only the simulated link on this page.
G Attacks
defences
H Live view
the drone shows its true state · the ground station shows what it believesI Attack frame through the receiver
no attack yetPick an attack.
The frame will travel through R1 to R7. Watch where it stops.
| Attack | Stopped by | Now |
|---|
A forged LOW_BATTERY is enough to make the ground station order the drone home. Turn off Require signature and try it.
How a frame is built, byte by byte.
A signed DRONE_TELEMETRY frame from the specification: header, payload, checksum with CRC_EXTRA, then the signature block. Step through it or press play.
Verified in your browser.
The conformance vectors of the specification, plus SHA-256 and HMAC reference vectors, run against the same code that drives the demo. Nothing here is precomputed.
running…
| # | Test | Expected | Got | Result |
|---|