Skip to content

v0.2.1

Choose a tag to compare

@hogib hogib released this 01 Nov 19:22
· 27 commits to main since this release

Bug fixes from a module-by-module review, tether latency down ~20×, and cheaper encoding on the ROV. Same programs and targets as v0.2.0; prebuilt, fully static binaries.

File For
eeye-v0.2.1-linux-arm64, hellion-v0.2.1-linux-arm64 Raspberry Pi 3/4/5 (and Zero 2 W) on a 64-bit OS
eeye-v0.2.1-linux-armv7, hellion-v0.2.1-linux-armv7 Raspberry Pi 2/3/4/5 on a 32-bit OS (needs ARMv7 + NEON; not Pi 1 / Zero)
eeye-v0.2.1-linux-amd64, hellion-v0.2.1-linux-amd64 x86-64 Linux (a topside laptop)

Upgrading: git pull && sudo ./install.sh on both machines — it remembers your choices and restarts the services. Or replace the two binaries in /usr/local/bin and sudo systemctl restart hellion eeye. Configs are unchanged. Installing for the first time: see the README's Installing — two machines on a LAN now need just --topside-ip and --rov-ip, no JSON editing.

Latency

Frame bus to frame bus through both hellions (encode, RTP, relay, decode), on an idle x86 laptop:

v0.2.0 v0.2.1
640×480, 30 fps 70.4 ms 3.8 ms
640×480, 60 fps 37.0 ms 3.7 ms
1280×720, 30 fps 74.8 ms 8.3 ms

The topside decoder held two frames: one in ffmpeg's H.264 parser (waiting for the next frame to know the current one had ended) and one in the frame-threaded rawvideo output. hellion now marks the end of each frame for its own decoder, and the decoder's output uses slice threading. QGroundControl and recordings get the stream exactly as before. The last frames of a stream are no longer lost either. Camera, tether and the Pi's encode add to these numbers on the vehicle — not measured yet.

Fixes

  • The page's picture reconnects by itself. If its stream dropped (a topside restart), the picture used to freeze on its last frame — and once the link recovered, it looked live. It now reconnects within a second of the stream being back, and greys out with PICTURE NOT UPDATING meanwhile. Hidden tabs stop streaming.
  • Preview slots no longer leak during an outage (each page reload used one; the fifth viewer was refused).
  • /health answers at once — it took 3 s per poll with the ROV unreachable, delaying the stale-picture warning by as much.
  • Pi camera: every control change leaked a frame from eeye's pool; the eighth froze the video until a restart.
  • Packet-loss counting froze for up to a minute after a long cable pull, showing 0% while packets were being lost.
  • A stale picture can't persist: eeye decodes only the newest frame the camera has ready, instead of working through a backlog the driver keeps.
  • SD-card writes can't stall the picture: the health file is written off the pilot's thread.
  • Two pages applying settings at the same moment are serialized.
  • 32-bit ARM builds from source get NEON — it was silently compiled out, so every effect did 3.5–6× the work. (The release binaries always had it.) make NEON=0 for a Pi 1 / Zero.
  • install.sh --tether checks the interface exists before changing anything (a wrong name used to stop the install halfway).

Cheaper on the ROV

The encoder now gets frames already converted to the format and colour range H.264 needs (done in C, ~0.2 ms at 720p) instead of through an ffmpeg filter: 29% less encoder CPU at 720p30 on x86, and 25% fewer bytes through the pipe.

Build

Built from v0.2.1 with GCC 15.3 (Bootlin 2026.08 toolchains), glibc, statically linked: -O3, OpenMP on, libjpeg-turbo 3.2.0 with its SIMD code, NEON on armv7 (-march=armv7-a -mfpu=neon-vfpv4). Runs on Linux 3.2+ (amd64, armv7) / 3.7+ (arm64). hellion needs ffmpeg at runtime; use IP addresses in its config (a static binary cannot look up hostnames).

Testing

All 17 C test suites pass on each binary as shipped (built with the same toolchain): natively for amd64, under qemu-user for armv7 and arm64, which exercises the NEON paths — including new tests for the end-of-frame markers, the loss counter after a long outage, and the auto visibility and camera-control paths. The static amd64 hellion was measured through two instances on an idle laptop (the latency table above: 3.6 ms at 640×480 30 fps, 7.8 ms at 720p). The page's reconnecting preview was tested by running its reader against a real hellion while restarting hellion and the stream's source; the preview slot leak, /health timing and the encoder CPU saving were each measured before and after. These binaries have not yet been run on real Pi hardware with a camera attached.

Not yet verified

  • Nothing here has run on the Pi, its camera, or the Fathom-X tether — tested on x86 machines, including both placements end to end with a webcam on a laptop.
  • install.sh has been run on real machines only partly (one topside install, which found the --tether and address problems fixed here); the new address options are tested in a sandbox.
  • Auto visibility is tuned on simulated underwater frames and a webcam, not real footage.