dumpvdl2 in Docker: Receive and Feed VDL Mode 2
Run dumpvdl2 in Docker with an RTL-SDR and an airband antenna, then feed VDL Mode 2 to airframes.io and AvioADSB through acars_router.
This guide takes you from an RTL-SDR and an airband antenna to a working dumpvdl2 docker setup that sends VDL Mode 2 messages to airframes.io and AvioADSB. You run two containers: docker-dumpvdl2 decodes the radio signal, and acars_router forwards the decoded messages to each aggregator.
VDL Mode 2 is the digital VHF datalink at 136 MHz. Airliners use it for the same company messages as VHF ACARS and for controller-pilot datalink (CPDLC). Whether you may receive and share these transmissions depends on your country, so check your local rules first.
What you need
- A computer that runs Docker. The
docker-dumpvdl2image is built for amd64 and arm64 only. On a Raspberry Pi that means a 64-bit OS, and the README says the container will not run on ARM32 devices. - An RTL-SDR dongle. A model with a TCXO (temperature-compensated oscillator) drifts less as it warms up.
- An antenna that works at 136 MHz. An ADS-B antenna cut for 1090 MHz is a poor match here, so use a VHF airband antenna.
- Time to check which VDL Mode 2 channels are used near you. The dumpvdl2 README says 136.975 MHz is the most ubiquitous (the Common Signalling Channel) and also lists 136.725, 136.775 and 136.875 MHz. It does not say which are used in which country, so check local channel lists before you pick.
Find the dongle serial
If you run only one dongle, you can leave the serial out. If you run two, give each a unique serial so the container opens the right one.
Install the rtl-sdr tools, then list the devices. rtl_test prints each dongle with its serial number.
rtl_testTo write a new serial, use rtl_eeprom. Replace 0 with the index of the dongle you want to change.
rtl_eeprom -d 0 -s <new-serial>After a successful write the tool prints "Configuration successfully written. Please replug the device for changes to take effect." Unplug the dongle and plug it back in. Device index numbers are not persistent, which is why the serial matters. Write the serial of each dongle on the case.
The docker-compose.yml
Save this as docker-compose.yml. Replace the values in angle brackets.
services:
dumpvdl2:
image: ghcr.io/sdr-enthusiasts/docker-dumpvdl2:latest
container_name: dumpvdl2
restart: always
device_cgroup_rules:
- "c 189:* rwm"
volumes:
- /dev/bus/usb:/dev/bus/usb:ro
environment:
- TZ=<your-timezone>
- RTL_SERIAL=<your-dongle-serial>
- FEED_ID=<station-name>
- GAIN=40
- PPM=0
- 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
acars_router:
image: ghcr.io/sdr-enthusiasts/acars_router:latest
container_name: acars_router
restart: always
environment:
- TZ=<your-timezone>
- AR_ENABLE_DEDUPE=true
- AR_RECV_ZMQ_VDLM2=dumpvdl2:45555
- AR_SEND_TCP_VDLM2=feed.airframes.io:5553;feed.avioadsb.org:31006
tmpfs:
- /run:exec,size=64M
- /var/logWhat the settings do:
| Setting | Meaning |
|---|---|
RTL_SERIAL | The serial of the dongle this container opens. |
FEED_ID | Required. The decoder puts it into every message as the station name. Pick a name you will recognise, because you enter it when you claim the station. |
GAIN | RTL-SDR gain. The image default is 40. |
PPM | Frequency correction in parts per million. Default 0. |
FREQUENCIES | Channels in MHz, separated by spaces or semicolons. |
ZMQ_MODE, ZMQ_ENDPOINT | Make dumpvdl2 publish its output on a ZeroMQ socket. acars_router connects to it. |
AR_RECV_ZMQ_VDLM2 | Tells acars_router to read VDL Mode 2 from the dumpvdl2 container on port 45555. |
AR_SEND_TCP_VDLM2 | TCP destinations for VDL Mode 2, separated by ;. |
Start it:
docker compose up -dCheck that it decodes
Follow the decoder log.
docker logs -f dumpvdl2The docker-dumpvdl2 README does not describe what the log looks like when things work. It does say QUIET_LOGS=true mutes the log to the bare minimum, and that is not set here, so you should see the decoder start and report on the channels it opened. Give it some time before you judge it, because VDL Mode 2 traffic depends on how many aircraft are in range. The router log is the second place to look.
docker logs -f acars_routerFeed airframes.io and AvioADSB
The single AR_SEND_TCP_VDLM2 line above sends every message to both destinations.
| Destination | Address | Transport |
|---|---|---|
| airframes.io | feed.airframes.io port 5553 | TCP |
| AvioADSB | feed.avioadsb.org port 31006 | TCP |
The airframes.io aggregator documentation also lists port 5552 for VDL Mode 2 over UDP. TCP is the better fit here because AvioADSB only accepts TCP, and one acars_router variable can hold both addresses. AvioADSB does not accept UDP.
Then check each side:
- airframes.io: open app.airframes.io/stations and look for your station.
- AvioADSB: open avioadsb.org/feed-status from the same network as the receiver. Allow a few minutes.
- Live messages: avioadsb.org/acars?type=vdl2 shows VDL Mode 2 traffic from the whole network.
To claim the station on AvioADSB, create an account, open the dashboard from the same network while the feed is sending, and add the station by the FEED_ID you chose. Claiming gives you a contributor API key and offline email alerts.
adsb.im sends ADS-B to AvioADSB, but it does not send datalink (ACARS, VDL Mode 2 or HFDL) to AvioADSB. Use this Docker setup for VDL Mode 2 even if the rest of your station runs on adsb.im.
Without Docker for the decoder
dumpvdl2 itself can write to a file, UDP or ZeroMQ. It has no TCP output. If you install dumpvdl2 natively, send its JSON over UDP to an acars_router on the same machine, and let the router forward over TCP. Nothing leaves your machine over UDP.
dumpvdl2 --rtlsdr <your-dongle-serial> --gain 40 --station-id <station-name> \
--output decoded:json:udp:address=127.0.0.1,port=5555 \
136725000 136975000 136875000In this form frequencies are in Hz. --station-id sets the station name in the output. Run acars_router with AR_SEND_TCP_VDLM2 as in the compose file and publish or host-network its UDP port 5555, which is its default VDL Mode 2 listen port. The dumpvdl2 README shows the UDP output syntax with the pp_acars format; the json format uses the same syntax, as the airframes.io dumpvdl2 install page shows.
Troubleshooting
- No messages at all. Check the antenna is a VHF airband antenna with a clear view of the sky, and that
FREQUENCIESlists channels used near you. Try 136.975 first. - Weak or few messages. Move the antenna higher and away from other electronics. Change
GAINin small steps and restart the container each time. Too much gain can be as bad as too little. - Messages appear but drift or fail on one channel. Set
PPMto the correction your dongle needs; the gain and PPM guide shows how to measure it withrtl_test -p. - Container exits or cannot open the dongle. Check that
RTL_SERIALmatches the serial you set. Check that thedevice_cgroup_rulesand/dev/bus/usblines are present, and that no other program (such as an ADS-B decoder) is already using that dongle. Use a separate dongle per decoder. - Decoder works but nothing reaches an aggregator. Confirm
AR_RECV_ZMQ_VDLM2=dumpvdl2:45555matchesZMQ_ENDPOINT, and that the host can reachfeed.airframes.ioport 5553 andfeed.avioadsb.orgport 31006 over TCP. - AvioADSB feed status shows nothing. Open the page from the same public IP address as the receiver.
Add ACARS and HFDL
The same acars_router can take ACARS and HFDL and send them to several aggregators. See one acars_router, several aggregators.
Next step
Open avioadsb.org/feed-status to check that your VDL Mode 2 feed arrives, then add the station on the dashboard by its FEED_ID. The feeding hub lists every other feed type.