Uplink Matrix
The ground station supports five uplink modes. Any combination can run at the same time. The agent routes cloud relay traffic across them based on a priority list with health checks and automatic failover.The five uplinks
Two traffic classes
The ground station handles two types of traffic, and they are independent: Client access is the traffic between connected laptops, phones, and the HDMI kiosk. This always stays on the local network (WiFi AP subnet, USB tether subnet, or Ethernet). It does not touch the internet. Cloud relay is the traffic between the ground station and the Altnautica cloud (Convex HTTP, MQTT telemetry, optional video). This goes out over whichever uplink currently has internet access. A client on the WiFi AP can stream video at full quality even if the 4G modem is down. Client access and cloud relay are decoupled.Priority and failover
Each uplink has a priority number. Lower number means higher preference. The agent uses the highest-priority uplink that has internet access. Default priorities:
WiFi AP does not appear in the priority list because it provides client access, not internet.
Health checks
Every 15 seconds, the agent sends an HTTPS HEAD request to the configured cloud endpoint (your-convex.example.com) on the current uplink. If three consecutive checks fail, the agent switches to the next available uplink.
Recovery checks run every 60 seconds on lower-priority uplinks. If a higher-priority uplink recovers (three consecutive successes), the agent switches back.
Failover events are logged and visible on the OLED Network screen, the Network tab in the ground-station panel, and the agent log.
Default configuration
4G is never enabled by default. You must opt in from the setup webapp, the OLED menu, or the ground-station panel in Mission Control. This prevents unexpected cellular data charges.
Data cap and throttle cascade
When a 4G modem is active, the agent tracks data usage via the kernel network statistics. Three thresholds trigger automatic responses:
The data cap resets on the 1st of each month at midnight local time.
You can set the cap from the setup webapp Network page or the Network tab in the ground-station panel. The default is 5 GB per month.
Bandwidth profile
Over 4G with video-to-cloud disabled (the default), steady state is 50-100 KB/s. That is about 300-700 MB per month for telemetry only.
WiFi AP and WiFi client on one radio
The Pi 4B has one onboard WiFi radio. By default, it hosts the AP on 2.4 GHz. If you enable WiFi client mode, the AP shuts down and the same radio joins the upstream network. You cannot run AP and client on the same radio at the same time. The RTL8812EU stays on 5 GHz in monitor mode for WFB-ng. It is never used for WiFi AP or client.Uplink sharing with AP clients
By default, devices connected to the WiFi AP cannot use the ground station’s internet connection. This prevents phones from burning 4G data on background app updates. If you want to share internet access with AP clients:- Open the setup webapp Network page or the ground-station panel in Mission Control
- Enable “Share uplink with AP clients”
- The agent enables IP forwarding and NAT
Configuring uplinks
You can change uplink settings from three places:Mesh gateway election (relay or receiver only)
When a node joins a mesh as arelay or receiver, batman-adv adds a sixth path: the cloud uplink can be carried by any node on the mesh, not just the local box. If a relay has a 4G modem and the receiver does not, batman-adv elects the relay’s uplink as the deployment-wide gateway.
Each mesh node makes its own gateway-server decision based on ground_station.cloud_uplink:
The receiver runs
batctl gw_mode client and picks the best gateway by Transmit Quality (TQ). If the active gateway dies, the next-best one takes over within a few seconds. You can pin a specific gateway via the Mesh tab in the ground-station panel, the CLI, or the REST API:
mode: auto releases the pin.
Read the Local Mesh details for how gateway election interacts with the rest of batman-adv.
What is next
- Hardware Tab for the full Mission Control management interface
- WiFi AP for laptop and phone connections
- Troubleshooting for connectivity issues
- Local Mesh (batman-adv) for cloud gateway election in mesh deployments