Drone LinkLAB
GitHub

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
Fig. 1 Quadcopter, edge view. Drag to rotate, scroll or pinch to zoom.

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.

Share of radio frames dropped or corrupted in transit.

A Transmitter

SET_MODE
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.

E Ground-station view

Decoded from accepted frames only.

ALT-
SPEED-
BATT-
SATS-
MODE-
LOST (SEQ)0
  • ARMED
  • GPS_LOCK
  • LOW_BATT
  • RETURNING
  • FAILSAFE

C Frame inspector

waiting for the first frame

D Receiver pipeline

    F Event log

      Fig. 2 One simulated link. Upper lane: drone to ground. Lower lane: ground to drone. Frames are real 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 believes
      ground station believes ALT -BATT -MODE -

      I Attack frame through the receiver

      no attack yet

        Pick an attack.

        The frame will travel through R1 to R7. Watch where it stops.

        which layer stops it
        AttackStopped byNow

        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…

          #TestExpectedGotResult