ACARS Hub on a Raspberry Pi: acarsdec, dumpvdl2, Router
Set up ACARS Hub on a Raspberry Pi with two RTL-SDRs: one compose file runs acarsdec, dumpvdl2 and acars_router, and feeds airframes.io and AvioADSB.
An ACARS Hub Raspberry Pi setup needs four containers and two RTL-SDR dongles. acarsdec decodes VHF ACARS, dumpvdl2 decodes VDL Mode 2, acars_router collects both, and ACARS Hub shows the messages on a web page. The same router can also send the messages to airframes.io and AvioADSB. This guide gives you one docker-compose.yml that does all of it.
Whether you may receive and share aviation datalink depends on your country, and some countries restrict it. This guide is not legal advice. Check the rules where you live first.
What you need
- A Raspberry Pi 4 or Pi 5, a power supply that holds up under load, and a microSD card or SSD. ACARS Hub's README says "A Raspberry Pi works well" (docker-acarshub README). It does not name a minimum model.
- A 64-bit Raspberry Pi OS. The ACARS Hub v4 image builds for
amd64andarm64only, and docker-acarsdec and docker-dumpvdl2 state that they do not run on 32-bit ARM (docker-acarsdec, docker-dumpvdl2). The only 32-bit option is a legacy v3 ACARS Hub tag, which this guide does not cover. - Two RTL-SDR dongles. One decodes ACARS, the other VDL Mode 2. Each needs its own serial number (see below).
- A VHF airband antenna, or one per dongle. A passive splitter lets two dongles share one antenna, at the cost of some signal.
Install Docker
SDR-Enthusiasts publish an install script for Debian-based systems, including Raspberry Pi OS. It installs Docker and docker-compose, and sets up RTL-SDR udev rules and driver exclusions so the containers can open the dongles (docker-install). Its README suggests downloading the script and reading it before you run it. The command it gives is:
bash <(wget -q -O - https://raw.githubusercontent.com/sdr-enthusiasts/docker-install/main/docker-install.sh)Reboot when it finishes.
Give each dongle its own serial
Both containers pick a dongle by serial number, so two dongles with the same serial cannot be told apart. Many dongles ship with the same default serial. Plug in one dongle at a time and write a new serial with rtl_eeprom, which is part of the rtl-sdr package (sudo apt install rtl-sdr; the install script above may have removed the driver tools, so install them if the command is missing):
rtl_eeprom -d 0 -s 00001090-d is the device index (default 0) and -s sets the serial string. rtl_eeprom asks for confirmation and then prints "Please replug the device for changes to take effect" (rtl_eeprom source). Replug it, then repeat for the second dongle with a different serial, for example 00001091. Label them. In the compose file below, one serial goes to acarsdec and the other to dumpvdl2.
Choose frequencies
ACARS is in the 129 to 137 MHz airband region, and VDL Mode 2 is around 136 MHz. Channels differ by country and region, so use the ones that are active near you. The upstream READMEs only give examples:
- docker-acarsdec example:
130.025 130.450 131.125 131.550 - docker-dumpvdl2 example:
136.725 136.975 136.875
The examples are not a recommendation for your area. A dongle covers a limited slice of spectrum at once, so keep each decoder's channels close together.
The compose file
Save this as docker-compose.yml in an empty folder, for example ~/acars. Replace the angle-bracket values.
services:
acarshub:
image: ghcr.io/sdr-enthusiasts/docker-acarshub:latest
container_name: acarshub
restart: always
ports:
- 8080:80
volumes:
- ./acars_data:/run/acars
tmpfs:
- /database:exec,size=64M
- /run:exec,size=64M
- /var/log:size=64M
environment:
- TZ=Etc/UTC
- ENABLE_ACARS=true
- ENABLE_VDLM=true
- ACARS_CONNECTIONS=zmq://acars_router:45550
- VDLM_CONNECTIONS=zmq://acars_router:45555
acars_router:
image: ghcr.io/sdr-enthusiasts/acars_router:latest
container_name: acars_router
restart: always
tmpfs:
- /run:exec,size=64M
- /var/log:size=64M
environment:
- TZ=Etc/UTC
- AR_OVERRIDE_STATION_NAME=<station-name>
- AR_ENABLE_DEDUPE=true
- AR_RECV_ZMQ_VDLM2=dumpvdl2:45555
# airframes.io takes ACARS over UDP 5550; AvioADSB takes it over TCP 31005
- AR_SEND_UDP_ACARS=feed.airframes.io:5550
- AR_SEND_TCP_ACARS=feed.avioadsb.org:31005
# both take VDL2 over TCP: airframes.io 5553, AvioADSB 31006
- AR_SEND_TCP_VDLM2=feed.airframes.io:5553;feed.avioadsb.org:31006
acarsdec:
image: ghcr.io/sdr-enthusiasts/docker-acarsdec:latest
container_name: acarsdec
restart: always
environment:
- QUIET_LOGS=true
- TZ=Etc/UTC
- RTL_SERIAL=<acars-dongle-serial>
- FEED_ID=<station-name>
- FREQUENCIES=130.025 130.450 131.125 131.550
- OUTPUT_SERVER=acars_router
- OUTPUT_SERVER_PORT=5550
- OUTPUT_SERVER_MODE=tcp
tmpfs:
- /run:exec,size=64M
- /var/log:size=64M
device_cgroup_rules:
- "c 189:* rwm"
volumes:
- /dev/bus/usb:/dev/bus/usb:ro
dumpvdl2:
image: ghcr.io/sdr-enthusiasts/docker-dumpvdl2:latest
container_name: dumpvdl2
restart: always
environment:
- QUIET_LOGS=true
- TZ=Etc/UTC
- RTL_SERIAL=<vdl2-dongle-serial>
- FEED_ID=<station-name>
- FREQUENCIES=136.725 136.975 136.875
- ZMQ_MODE=server
- ZMQ_ENDPOINT=tcp://0.0.0.0:45555
tmpfs:
- /run:exec,size=64M
- /var/log:size=64M
device_cgroup_rules:
- "c 189:* rwm"
volumes:
- /dev/bus/usb:/dev/bus/usb:roHow the pieces connect:
- acarsdec to acars_router. docker-acarsdec sends to
OUTPUT_SERVERonOUTPUT_SERVER_PORT. Its README listsudp,tcpandzmqas modes, and its own example usestcp. acars_router listens on TCP 5550 for ACARS by default (acars_router README). - dumpvdl2 to acars_router. dumpvdl2 runs a ZeroMQ server on port 45555, and acars_router connects to it with
AR_RECV_ZMQ_VDLM2=dumpvdl2:45555. - acars_router to ACARS Hub. ACARS Hub v4 connects to the router over ZeroMQ with the
*_CONNECTIONSvariables. The router serves ZeroMQ on 45550 (ACARS) and 45555 (VDLM2) by default. The acars_router README's own example still uses the olderENABLE_*=EXTERNALstyle for ACARS Hub; the ACARS Hub README callsexternaldeprecated, so this file usestrueand the connection strings instead. - acars_router to the networks. Separate several targets in one variable with a semicolon. A variable carries one transport. The airframes.io aggregator page lists ACARS on UDP 5550 and VDL2 on UDP 5552 or TCP 5553. AvioADSB is TCP only: ACARS 31005, VDL2 31006.
- Station name.
AR_OVERRIDE_STATION_NAMEreplaces the name in each message, so both feeds show the same name. Pick something you will recognise. You enter it on the AvioADSB dashboard later. - Web page. The ACARS Hub web interface is port 80 inside the container, mapped here to 8080.
./acars_datais mounted on/run/acarsso the message database survives restarts and upgrades.
If you only have one dongle, delete the other decoder's service, and set its ENABLE_* line in acarshub to false.
Start it and check
docker compose up -d
docker compose ps
docker logs -f acarsdec
docker logs -f dumpvdl2
docker logs -f acars_routerOpen http://<pi-ip>:8080 in a browser. ACARS Hub shows messages as they arrive. Traffic on VHF can be sparse, so give it several minutes, and longer if you are far from an airport or airway.
Then check the feeds:
- Open app.airframes.io/stations and look for your station name.
- Open avioadsb.org/feed-status from the same network (same public IP) as the Pi. It shows whether messages are arriving.
- Watch your own traffic appear on avioadsb.org/acars.
To claim the station, create an account, open the dashboard from the same network while the feed is sending, and add the station by the name you set in <station-name>. Claiming gives you an API key and offline alerts. The details are on the ACARS protocol page.
adsb.im does not send datalink to AvioADSB at the moment, so use this compose file for ACARS and VDL2 even if the Pi also runs adsb.im for ADS-B.
Troubleshooting
- Both dongles have the same serial. One container opens the dongle and the other fails or opens the wrong one. Re-run
rtl_eepromon each dongle separately, replug, and checkRTL_SERIALin the compose file. - Dongle not found. Check that the
device_cgroup_rulesand/dev/bus/usblines are present, and that the install script ran. A kernel driver that has already claimed the dongle blocks the container; the install script is meant to prevent that, and a reboot after running it matters. - USB power. Two dongles can draw more than a weak supply or an unpowered hub delivers. Random disconnects and decoders that stop after a few minutes point to power. Use the official supply or a powered hub.
- 32-bit OS. If an image fails with an architecture or "exec format" error, check
uname -m. It must printaarch64. A 32-bit Raspberry Pi OS cannot run these v4 images. - Ports. Something else already using port 8080 stops ACARS Hub from starting: change the left side of
8080:80. Only the ACARS Hub port is published to your network; the decoders and the router talk over the internal Docker network. - ACARS Hub is empty, but the decoders log messages. Check that
ENABLE_ACARSandENABLE_VDLMaretrueand that the*_CONNECTIONShosts match the container nameacars_router. - airframes.io works, AvioADSB does not. Confirm the Pi can reach
feed.avioadsb.orgon TCP 31005 and 31006, and that you open the feed-status page from the Pi's own network.
Going further
To send to more than two networks, or to filter and de-duplicate, see one acars_router, several aggregators. For a standalone dumpvdl2 container, see dumpvdl2 in Docker.
Next step
The feed hub lists every AvioADSB feed type. Check that this one arrives at avioadsb.org/feed-status, then add the station to your account on the dashboard.