Skip to content Link Search Menu Expand Document
ModalAI DOCS
Store

M0184 Software Guide

voxl-elrs command line tool: bind, flash, and configure the M0184 receiver over CRSF.

Table of contents

  1. Summary
    1. Components
    2. Software Block Diagram
  2. Use Cases
    1. The voxl-elrs Utility
    2. Firmware Updates
    3. Presets and SKU Configuration
    4. Setting Up PWM Pins
      1. Stock pin presets
      2. Requires Arm
    5. Driving PWM Over IP
      1. Transmitter setup
      2. Example Usage
      3. Failsafe

Summary

Components

Component/RepoNotes
elrs-build-dockerDocker container that can clone/build FW with ease
VOXL SDKUsed to deploy all required software/firmware components to VOXL / ELRS hardware
ExpressLRSFork of Express LRS supporting ELRSv1 (goal is to mainline) that runs on ELRS v1 (M0184)
crsf_rcPX4 driver running in voxl-px4 that communicates over CRSF to ELRS v1 hardware
voxl-elrsVOXL2 command line utility, used to update FW/config on ELRS v1 from VOXL2, part of the SDK
FW bootloaderOpen source ExpressLRS bootloader

Software Block Diagram

M0184 software block diagram

Use Cases

The voxl-elrs Utility

voxl-elrs is the on-target command line tool for talking to the receiver over CRSF. It ships with VOXL SDK (1.4.1 or newer) as part of the voxl-elrs package.

With no arguments it picks the transport automatically: the crsf_raw MPA pipe when voxl-px4 is running, otherwise the qup7 serial backend. A serial device path (/dev/ttyUSB0), qup*, or mpa:* value can be passed explicitly with -p, and -b overrides the default 420000 baud.

voxl-elrs ping                # verify the receiver responds
voxl-elrs enumerate           # list every CRSF parameter
voxl-elrs get-param 0         # read a parameter by index
voxl-elrs set-param 1 1       # write a parameter
voxl-elrs get-rc              # current RC channel values
voxl-elrs get-link-stats      # live RSSI / link quality / SNR
voxl-elrs failsafe            # report failsafe state
voxl-elrs bind                # put the receiver in bind mode
voxl-elrs version             # build info

Command names that aren’t built in are matched against the receiver’s own CRSF COMMAND parameters, so commands like bind and unbind execute whatever the connected firmware exposes. save-json / load-json export and import the full receiver configuration as JSON (live, read-only, and command parameters are skipped).

Tab completion for all commands and flags is available by sourcing bash_completions/voxl-elrs from the repo (or dropping it into /etc/bash_completion.d).

Firmware Updates

Firmware binaries ship on the VOXL under /usr/share/modalai/voxl-elrs/firmware (override with the ELRS_FIRMWARE_DIR environment variable); the same catalog lives in the repo under data/firmware.

voxl-elrs list-firmware                  # every binary in the local catalog
voxl-elrs list-firmware modalai_m0184    # filter by target (case-insensitive)
voxl-elrs update                         # auto-detect receiver, flash if newer
voxl-elrs upload-firmware fw.bin         # flash a specific file, even an older one (XMODEM)
voxl-elrs upload-firmware fw.bin esp     # ...or via ESPTool

update auto-detects the connected receiver, compares its installed version against the newest catalog binary, and flashes over XMODEM for MODALAI targets (ESPTool for others).

From a host PC, the -B (Betaflight) and -E (EdgeTX) flags run a serial passthrough first — for example, updating a ModalAI TX module through an EdgeTX radio connected over USB:

voxl-elrs -E -p /dev/ttyACM0 -b 921600 update --target MODALAI_M0193_TX

Presets and SKU Configuration

Receiver settings are managed as JSON presets under /usr/share/modalai/voxl-elrs/config on target (ELRS_CONFIG_ROOT overrides; sources in data/config). Each preset declares which vehicles it applies to (a supported_skus regex list) and a priority; every preset matching the vehicle’s SKU with a priority above 0 is merged in priority order before being applied. Priority 0 presets are only loaded by hand with load-preset.

voxl-elrs list-presets            # every preset in the catalog
voxl-elrs list-presets-for-sku $(cat /data/modalai/sku.txt)   # presets matching this vehicle's SKU
voxl-elrs configure-sku           # apply the merged preset for this SKU
voxl-elrs configure               # firmware update + preset apply in one step

configure is the one-stop provisioning command: it upgrades the receiver firmware from the local catalog if needed (waiting for the receiver to reboot), then applies the merged preset for the SKU in /data/modalai/sku.txt. To apply a different SKU, pass it with --sku; a bare SKU argument is rejected:

voxl-elrs configure --sku MRB-D0014-4-V1-C27-T7

Setting Up PWM Pins

The receiver’s four PWM pins (J4 pads P0-P3) are driven by per-pin mapping curves that translate an RC channel’s value into a PWM output. Pins are normally configured through the SKU presets above — for example stinger_leds.json drives Stinger’s LED bar from RC channel 7 — but the maps can also be inspected and tuned directly:

voxl-elrs pwm-map 0                    # decode pin 0's map and plot it
voxl-elrs pwm-map-set 0 2 0 1500 --mode interp --yes   # move one control point
voxl-elrs pwm-map-tune 1               # interactive tuning shell

pwm-map prints the control points plus an ASCII plot honoring the pin’s map mode (off, step, or interp); pwm-map-set edits a single point with a confirmation preview; pwm-map-tune opens an interactive shell to adjust, plot, and save or discard changes.

Stock pin presets

voxl-elrs configure sets these pins on the vehicles below, and voxl-configure-mpa runs it during every SDK install. Running either one again puts these values back over any change you made to the same settings.

Commands and presets differ between voxl-elrs versions. Check which one the vehicle has, then pick it in any version tab on this page; the other tabs follow:

dpkg-query -W voxl-elrs
PresetVehiclesPinsInput channelOutput modeFailsafeRequires Arm
Seeker LEDsD0008, D0019, D0020Pin 1750 Hz900 usOff
Stinger LEDsD0013Pin 1, Pin 4750 Hz1500 usOff
D0008 sUPI ConfigurationD0008 before V6Pin 2, Pin 38, 950 Hz988 usOff
Seeker sUPI GPIO ConfigurationD0019, D0020, D0008 V6Pin 2, Pin 38, 9On/Off900 us (off)On

On D0008, D0019 and D0020 V6 and newer, voxl-configure-mpa also loads Seeker Micro Bright LEDs, which keeps Pin 1 on channel 7 with a 1000 us failsafe. To list the presets that apply to a vehicle:

voxl-elrs preset list
PresetVehiclesPinsInput channelOutput modeFailsafeRequires Arm
Seeker LEDsD0008, D0019, D0020Pin 1750 Hz900 usOff
Stinger LEDsD0013Pin 1, Pin 4750 Hz1500 usOff
D0008 sUPI ConfigurationD0008 before V6Pin 2, Pin 38, 950 Hz988 usOff
Seeker sUPI GPIO ConfigurationD0019, D0020Pin 2, Pin 38, 9On/Off900 us (off)On
XBright Patrios sUPI D0008 DDP2 (SDK 1.8.0)D0008 V6Pin 2, Pin 3 (Pin 1 as Seeker LEDs, 1000 us failsafe)8, 9On/Off900 us (off)On

voxl-elrs older than 1.1.2 (SDK 1.6.3 and older) never applies Seeker sUPI GPIO Configuration by SKU; it is only loaded by hand. Upgrading such a vehicle to a newer SDK turns Requires Arm on for Pin 2 and Pin 3. To list the presets that apply to a vehicle:

voxl-elrs list-presets-for-sku $(cat /data/modalai/sku.txt)

Requires Arm

Requires Arm has nothing to do with arming the drone. It is not PX4’s armed state, the motors, or the arm switch on your transmitter. A pin with Requires Arm stays at its failsafe value even while the vehicle is armed and flying, until the receiver itself is armed with voxl-elrs.

Each receiver PWM pin has a Requires Arm setting. When it’s on, the pin follows its input channel only while the receiver’s own PWM Armed setting is Armed. While disarmed, the pin outputs its failsafe value, set by its Failsafe Mode. Seeker sUPI GPIO Configuration uses 900 us, which is off for On/Off pins.

PWM Armed is not saved. It starts Disarmed every time the receiver powers up or reboots, so whatever uses the pins has to arm it after each boot:

voxl-elrs pwm arm       # let Requires Arm pins follow their channels
voxl-elrs pwm disarm    # hold them at failsafe
voxl-elrs pwm status    # report ARMED or DISARMED

The older names arm, disarm and get-arm-status still work.

voxl-elrs arm               # let Requires Arm pins follow their channels
voxl-elrs disarm            # hold them at failsafe
voxl-elrs get-arm-status    # report ARMED or DISARMED

From C, libelrs provides elrs_arm_all_pwm(), elrs_disarm_all_pwm() and elrs_get_arm_stats().

If nothing on the vehicle sends the arm, the pins stay at failsafe. If your payload doesn’t need this gate, turn Requires Arm off on its pins:

voxl-elrs param set pin-2/requires-arm off
voxl-elrs param set pin-3/requires-arm off

voxl-elrs pwm pin overrides are refused on a Requires Arm pin while the receiver is disarmed; the command reports that the pin holds its failsafe until voxl-elrs pwm arm.

set-param takes a parameter index, which depends on the receiver firmware. List the parameters, find Requires Arm under Output Mapping, Pin 2 (and Pin 3), and write 0 (Off) to its index:

voxl-elrs enumerate
voxl-elrs set-param <index> 0

Running voxl-elrs configure or voxl-configure-mpa again reapplies the stock presets and turns it back on.

Troubleshooting: something keeps turning Requires Arm back on

These can write the stock presets to the receiver again:

  • voxl-configure-mpa, which runs voxl-elrs configure. SDK installs and upgrades run it.
  • voxl-elrs configure, or loading the sUPI preset by hand.
  • Applying a preset or the SKU defaults from the ELRS page in voxl-portal or from the voxl-elrs desktop app.
  • A payload service that loads the sUPI preset when it starts.

voxl-elrs configure does not run at boot by itself, so a setting that changes back after a plain reboot points to a service on the vehicle.

1. Check whether a reboot brings it back. Turn Requires Arm off as above, reboot, and read the setting again:

voxl-elrs param get pin-2/requires-arm
voxl-elrs param get pin-3/requires-arm
voxl-elrs get-param <index>

2. Find the services that talk to the receiver. Every program that uses the receiver through libelrs has the library loaded. This lists them with their systemd service:

for pid in $(grep -l libelrs /proc/[0-9]*/maps 2>/dev/null | cut -d/ -f3); do
  systemctl status "$pid" --no-pager | head -1
done

voxl-portal shows up here too; it only writes to the receiver when someone applies a preset on its ELRS page. A script that runs the voxl-elrs command doesn’t stay loaded, so also check the log of the last boot:

journalctl -b | grep -iE 'elrs|preset'

3. Disable what you don’t need. Stop and disable a service you don’t use, reboot, and repeat step 1:

systemctl disable --now <service>

voxl-configure-mpa enables the services the SKU needs, so a later run can turn a disabled service back on.

Driving PWM Over IP

The PWM pins can also be driven with no RC transmitter at all: a ground station sends button states over IP as MAVLink MANUAL_CONTROL, voxl-mavlink-server forwards them to PX4, and the crsf_rc driver translates configured buttons into RC channel values sent to the receiver — where the PWM maps above turn them into outputs.

Transmitter setup

If using a normal RC transmitter as a USB Joystick such as a RadioMaster Zorro there is a little bit of manual setup required in order for QGC and other applications to recognize the buttons correctly. If using a Logitech USB controller or other where buttons enumerate automatically this section can be skipped.

The following instructions were compiled using a RadioMaster Zorro connected via USB-C to the host PC.

edgeTX v2.10+ is required, in order to validate FW version:

  • Press the SYS button, which will bring you to the TOOLS page
  • Press the PAGE < button to navigate to the VERSION page
  • Confirm edgeTX version is >= v2.10

In order to upgrade FW version, follow the instructions here: https://manual.edgetx.org/installing-and-updating-edgetx/update-from-opentx-to-edgetx-1 https://manual.edgetx.org/edgetx-how-to/access-dfu-and-bootloader-mode

In order to translate the RadioMaster Zorro’s channel mappings to buttons. do the following:

  • Press the MDL button
  • Press the PAGE > button once to navigate to the SETUP page
  • Scroll all the way to the bottom until you see the USB Joystick section
  • In the USB Joystick section, set Mode to Advanced
  • Set If.mode to Joystick
  • Set Circ. cut to None
  • Navigate to [Channel Settings] and press enter
  • Set CH1 - CH4 to X, Y, Z, rotX (NOTE: The channels used for switches/buttons need to be on channel 9 or above for them to populate in QGC)

  • In the [Channel Settings] menu, navigate to the channel you’d like to setup, i.e. CH9
  • Set Mode to Btn
  • Set Positions to either 2POS or 3POS depending on the physical switch
  • Set Button no. to be the button numbers in QGC that you’d like this switch to populate (NOTE: A 2POS switch requires two buttons (0,1), whereas a 3POS switch requires 3 buttons (0,1,2))
  • Return to the home screen
  • Press the MDL button
  • Press the PAGE > button 5 times to navigate to the MIXES page
  • Scroll down to the corresponding channel which was setup, i.e. CH9
  • Select each channel to be used (hold down button) and set the source as the physical switch you’d like to link to the channel
  • In order to finalize changes you may need to disconnect and reconnect the joystick or restart QGC

Example Usage

Let’s say a LED bar was soldered to PWM pin P0, and configured for RC channel 7 (for example Stinger Vision FPV).

A PWM value of 1000 turns it off, a value of 1500 turns it to IR, and a value of 2000 turns it to visible light.

On an RC transmitter, we configure a 3-pos switch to map to buttons 1, 2 and 3.

In voxl-px4, we set PX4 params using params/v1.14/radio_helpers/pwm_via_elrs.params:

  • RC_CRSF_BUTTON1 to 1, RC_CRSF_PWMCHN1 to 7, RC_CRSF_PWMVAL1 to 191* (This maps to 1000)
  • RC_CRSF_BUTTON2 to 2, RC_CRSF_PWMCHN2 to 7, RC_CRSF_PWMVAL2 to 992* (This maps to 1500)
  • RC_CRSF_BUTTON3 to 3, RC_CRSF_PWMCHN3 to 7, RC_CRSF_PWMVAL3 to 1792* (This maps to 2000)

*See PWM value mappings here

Failsafe

RC failsafe behavior is ultimately the autopilot’s own (e.g. PX4’s RC-loss failsafe parameters) — the VOXL services never synthesize or zero out RC toward the flight controller. What the RC mux in voxl-mavlink-server (en_elrs_rc_mux in /etc/modalai/voxl-mavlink-server.conf, enabled on FPV SKUs via voxl-configure-mavlink-server factory_enable_rc_mux) decides is which source is published on the rc_active MPA pipe for onboard consumers:

  • A live ELRS link always wins. While the receiver is delivering RC frames, rc_active carries the receiver’s channels, even if RC-over-IP (MANUAL_CONTROL or RC_CHANNELS_OVERRIDE) is also arriving.
  • ELRS lost while IP RC is connected: the receiver is considered failsafed after 500 ms without an RC frame, and rc_active switches to the IP stream on the next message.
  • ELRS regained: switches back to the receiver as soon as live frames resume.
  • Two IP sources (SDK 1.8.0, voxl-mavlink-server 1.4.20 and newer): RC_CHANNELS_OVERRIDE is accepted from a ground station over UDP or from onboard services through the mavlink_onboard pipe, at the same priority as MANUAL_CONTROL. Up to 18 channels pass through as sent; trailing channels set to UINT16_MAX (or 0 on channels 9-18) are dropped, as PX4 does. Whichever IP source is active keeps rc_active while its messages stay fresh, so two senders are never interleaved. When neither is active, the more recent one is selected.
  • Both lost: IP RC times out after 5 seconds without a MANUAL_CONTROL message, or 1 second without an RC_CHANNELS_OVERRIDE message. With the ELRS link also down, rc_active deliberately goes silent rather than publishing stale values. Consumers see no RC data, and the autopilot’s own RC-loss failsafe governs the vehicle.

Note that MANUAL_CONTROL and RC_CHANNELS_OVERRIDE are always forwarded to the flight controller regardless of the mux; the mux only selects what onboard services see on rc_active.