Satellites

Satellites are the audio capture nodes in an Otavi deployment. They record bird sounds, filter out silence and noise on-device, and upload audio chunks to the hub via MQTT for identification.

What Satellites Do

  • Audio capture — record 3-second WAV chunks at 48kHz mono (BirdNET's native window)
  • On-device filtering — RMS silence gate + YAMNet VAD (per-category bird-likelihood) drops silence and non-bird audio before upload
  • MQTT upload — send audio chunks and telemetry to the hub over WSS (WebSocket Secure, port 443)
  • Heartbeat — periodic status reports to keep the satellite showing as "online" on the hub

Supported Platforms

Platform Type Status Page
Raspberry Pi Dedicated hardware Available Satellite: Raspberry Pi
Android phone Mobile app Available Satellite: Android

Feature Comparison

Otavi supports two types of satellites for capturing bird audio in the field: the Pi Satellite (a Node.js agent for Raspberry Pi) and the Phone Satellite (an Android app built with Capacitor). Both connect to the same hub and use the same MQTT protocol, but they differ in hardware capabilities, deployment model, and user interaction.

Feature Pi Satellite Phone Satellite
Audio source ALSA (USB microphone) AudioRecord, in the app's native engine
Sample rate 48kHz native 48kHz (falls back to 44.1kHz / 16kHz)
Audio filtering RMS silence gate + YAMNet VAD (Python sidecar via ai-edge-litert) RMS silence gate + YAMNet VAD (native engine, TensorFlow Lite)
Filter config Received from hub via MQTT Received from hub via MQTT
GPS gpsd (external chip), while the hub's Use GPS setting is on Built-in device GPS, as the hub's Use GPS and Refresh every settings say
Fixed position Set on the hub (satellite page, Set…), else the .env coordinates Settings page or its map, or set on the hub
Local buffer sql.js outbox (survives restart) SQLite outbox on the phone's storage (survives restart)
Recording modes live, simulate (white noise), replay (fixtures) Live only
Keep awake N/A (always on, headless) A foreground service while recording; the screen may go off. The app keeps it on while open (Settings, Keep screen on, on by default)
Default state Starts recording immediately Starts paused (tap the circle on Live), unless Start recording on launch is on or an update interrupted a recording
Settings source Environment variables + hub config push In-app settings page + hub config push
Telemetry CPU temp, storage free, uptime Battery level, storage free, network latency, uptime
Noise floor Reported in heartbeat Reported in heartbeat
Version tracking Reported in heartbeat Reported in heartbeat
Background operation Systemd service Foreground service with Stop in its notification: records, filters and uploads with the screen off, another app in front or the app swiped away phone 3.0.0
Deployment SSH + npm install + systemd APK install (sideload or build)
Update method Update on its satellite page (the updater fetches, builds and restarts it) One tap from the app's update banner
Connectivity WSS (port 443) WSS (port 443)
Registration Auto on first connect (env config) In-app registration screen
Rename From hub UI only From hub UI or in-app settings
On-device logging stdout/journald In-app log viewer with copy/clear

Shared Concepts

MQTT Registration

Every satellite must be registered with the hub before it can connect. Registration creates MQTT credentials and associates the satellite with a tenant. Registration can be done:

  • Via the web UI (Satellites page)
  • Via the REST API (POST /api/satellites)
  • In-app (Android satellite only)

MQTT Topics

All satellites use the same topic structure: {prefix}/{tenant_id}/{satellite_id}/{channel} where channel is audio, telemetry, heartbeat, config, ack and a few more (MQTT). The prefix is birdnet up to Pi 1.x and phone 1.x, otavi from 2.0.0; the hub speaks both.

Heartbeat

Satellites send a lightweight heartbeat at a configurable interval (default 30 seconds, set from hub tenant settings) via MQTT QoS 1. The heartbeat includes the satellite's current state (recording, paused, scheduled_off, error) and noise_floor_rms for filter calibration.

On-Device Audio Filtering

Before uploading, both satellite types pass each chunk through two gates, with one rule for both (decideYamnetGate() in @otavi/shared):

  1. Silence gate: drops a chunk whose RMS level is below filter_min_rms. Off by default (0): real microphones sit far below any fixed floor, and YAMNet scores silence near zero anyway.
  2. YAMNet gate: the YAMNet sound classifier scores the chunk, and the bird score sums its animal, bird and bird-call classes. A chunk below yamnet_min_bird_prob (default 0.01) is dropped. So is one where an excluded category (human voice, engines and other human sounds, insects, amphibians, other animals: the drop_*_at_satellite switches) is heard for real (a score of 0.2 or more, EXCLUDED_MIN_SCORE) and outscores a weak bird; a clear bird uploads whatever surrounds it. YAMNet gives every outdoor chunk a little of every category, so the floor keeps a quiet robin from losing to a voice nobody spoke.

Turning the audio filter off turns both gates off: every chunk then goes on to BirdNET, on the satellite or at the hub. The settings come from the hub (team defaults, per-satellite overrides) over MQTT. On phones, about three chunks in four go no further, which saves both upload and inference.

Recording Profiles

Profiles control when satellites capture audio. They are pushed from the hub via MQTT and can be changed on the Satellites page.

Profile Schedule Description
continuous 24/7 Always recording
dawn_chorus sunrise-30min to sunrise+2h Peak bird activity
night_migration sunset+30min to sunset+12h Nocturnal flight calls
low_power sunrise −30 min to +1 h, and sunset −1 h to +30 min Dawn and dusk only

Sunrise and sunset times follow the satellite's position (NOAA solar algorithm, one rule in the shared package). Pis Pi 2.3.0 and phones phone 3.1.0 apply their profile: outside its windows a satellite keeps the microphone closed and reports scheduled_off with the time the next window opens. Without a position (none yet, or 0,0) it records. A phone stays connected outside its windows and opens the microphone at the next window with its screen off, as long as its recording session is on.

When to Use Which

The Pi satellite is the better choice for permanent, always-on installations where power and network are reliable. The phone satellite is ideal for portable or temporary deployments -- field trips, surveys, or testing new locations before committing to a fixed setup.

Future Platforms

The following satellite platforms are planned but not yet available:

  • iPhone — iOS satellite app (planned)
  • ESP32 — low-power microcontroller satellite (planned)
  • Docker satellite — containerized satellite for testing and development (planned)

Status

The Satellites page, a satellite's page and the map show one status per satellite hub 0.93.0, worked out from when it was last heard and what it last said it was doing:

Status When
Recording Heard within the team's offline timeout (Team settings, Satellites; 5 minutes by default) and capturing; "until 09:11" when its profile stops it at that time
Off schedule Heard, outside its recording profile's windows; "from 06:42" says when the next opens
Paused Paused by someone: in the phone's app or with Stop in its notification. A paused phone that then goes quiet stays paused, with no offline alert
Error Heard, but it cannot hear: its capture keeps failing (a microphone gone, for instance), or its microphone gives only silence because another app on the phone has it; the status says which phone 3.2.0
Offline Quiet past the timeout, whatever it was doing. The "Satellite offline" alert follows after its own delay
Never connected Registered, never heard

Beside it, Low storage, Low battery or Overheating show while its telemetry says so (under 500 MB free, 15 % battery, over 80 °C; cleared at 600 MB, 20 %, 75 °C). Each raises one alert when it appears and one more if it gets critical; acknowledging it does not bring it back while the condition lasts. Updates, log requests and configuration pushes reach a satellite heard within the timeout.

Retiring a device

Two choices on the device page, both needing the right to administer that device:

  • Archive keeps everything. The device leaves the fleet page, the pickers, the map and the public counts, and stops raising offline alerts; its detections, audio, configuration history and credentials stay. Tick "Show archived" on the fleet page to find it again, or unarchive it. If the device ever sends a heartbeat or registers again, the hub unarchives it by itself and writes that to the activity log.
  • Delete removes the device and everything it recorded: audio files in the bucket first, then chunks, detections with their votes and annotations, configuration and keys. Alerts and field notes stay, unlinked. The dialog shows the counts and asks for the device name typed back.

pnpm --filter @otavi/hub audio:orphans reports audio files in the bucket that no recording refers to; add --delete to remove them.