ESC Passthrough (AM32, Bluejay, BLHeli_S)
PX4 can act as the link between an ESC configurator and the ESCs, so that you can read and change ESC settings and flash ESC firmware without disconnecting the ESCs from the flight controller. This works with the browser-based configurators am32.ca (AM32 ESCs) and esc-configurator.com (Bluejay and BLHeli_S ESCs).
Only ESCs on the first eight FMU PWM outputs that are assigned to a motor in Actuator Configuration can be configured (IO outputs are not supported). The vehicle must be disarmed: requests are ignored while it is armed.
The flight controller is connected to the computer with its USB cable (or another serial port), and the configurator talks to the ESCs through the ESC signal wires. While a configuration session is active, the dshot and pwm_out drivers are stopped, so every output they drive is off, including servos.
INFO
ESC passthrough is only in the firmware of some boards (see Firmware Support).
WARNING
Remove the propellers before you connect a configurator.
Firmware Support
ESC passthrough needs the esc_4way driver, which is only in the firmware of boards that set CONFIG_DRIVERS_ESC_4WAY=y in their default.px4board.
You can check if it is present from the MAVLink Shell by entering the command esc_4way status (a response of command not found means it is not present).
If it is not present you can add the key (CONFIG_DRIVERS_ESC_4WAY=y) in the board's boards/<vendor>/<board>/default.px4board or enable it in boardconfig under drivers > esc_4way, then build and upload the firmware. USB auto-detection also needs CONFIG_DRIVERS_CDCACM_AUTOSTART=y; without it, start the server on a serial port.
At time of writing (November 2026) it is present in the default firmware for these boards:
- AGAM FMU-v6XRT (
agam_fmu-v6xrt) - ARK FMU-v6S (
ark_fmu-v6s) - ARK FMU-v6X (
ark_fmu-v6x) - ARK FMU-v6X RT (
ark_fmu-v6xrt) - ARK FPV (
ark_fpv) - ARK Pi6X Flow (
ark_pi6x) - NXP MR-NAVQ95 (
nxp_mr-navq95): serial port only (see Using Another Serial Port); reboot the flight controller after the session - NXP MR-VMU-RT1176 (
px4_fmu-v6xrt) nxp_mr-tropic- Pixhawk 6X-RT (
px4_fmu-v6xrt)
ESC Pin UART
The esc_4way driver and Serial Passthrough's ESC channel mode both drive the ESC signal pins as a half-duplex UART, which exists for STM32F7/H7, NXP i.MX RT1064/RT1176 and i.MX95 boards. On STM32 boards the UART bit timing comes from a spare hardware timer, CONFIG_UART_BITBANG_TIMER (default 13). That timer must be enabled in the board's NuttX configuration (CONFIG_STM32H7_TIM13=y or CONFIG_STM32F7_TIM13=y in nuttx-config/nsh/defconfig), and nothing else on the board may use it: not the high-resolution timer (HRT), the tone alarm, an LED, or a PWM/DShot output timer.
Configure the ESCs
- Set the parameter SYS_USB_AUTO to
1(Auto-detect) and reboot the flight controller. - Plug in the USB cable and power the ESCs (connect the battery).
- Before any other program opens the USB port, open am32.ca or esc-configurator.com in a browser that supports WebSerial (Chrome or Edge).
- Click Connect and select the flight controller's USB port. The flight controller recognises the configurator and starts the ESC configuration server; the outputs are switched off at that moment.
- Read, change and write the ESC settings, or flash new ESC firmware. The configurator numbers the ESCs by motor: ESC 1 is the output assigned to Motor 1, ESC 2 is Motor 2, and so on.
- Click Disconnect when you are done. The flight controller reboots, so the USB connection drops. After that reboot the outputs work normally again.
If you unplug the USB cable or close the configurator without disconnecting, the flight controller also reboots.
Command Line Tools
Host Tool
Tools/esc_4way.py reads and writes one ESC from a computer through the ESC configuration server, or through any flight controller that supports MSP (MultiWii Serial Protocol) and the BLHeli 4way interface:
Tools/esc_4way.py info # probe the ESC on Motor 1
Tools/esc_4way.py settings # AM32 settings, raw and decoded
Tools/esc_4way.py direction toggle # or: direction set 0|1
Tools/esc_4way.py dump esc0_flash.bin
Tools/esc_4way.py flash AM32_firmware.hex # Intel hex or bin
Tools/esc_4way.py read 0xF800 184 -o settings.bin
Tools/esc_4way.py write 0xF800 settings.bin
Tools/esc_4way.py check /dev/ttyACM0 # protocol self-checkWhen the port sends MAVLink heartbeats, the tool first sets SYS_USB_AUTO to 1 over MAVLink and reboots the flight controller, which frees the port for the ESC configuration server. The parameter stays set. --setup does that without listening for heartbeats first. Use -d to select the serial device (default /dev/ttyACM0) and --target for the ESC (default 0 for the ESC on Motor 1). Set --no-exit to keep the session open. The flight controller reboots after a run without --no-exit. If -d is the port's /dev/serial/by-id/ name, a run started during that reboot waits for the port. The tool needs pymavlink to set SYS_USB_AUTO over MAVLink.
Using Another Serial Port
The ESC configuration server does not have to run on the USB port. esc_4way start -d <device> starts it on any serial port, which is useful for boards without USB, or for a UART connected to a companion computer:
esc_4way start -d /dev/ttyS3Use the device node of the port, for example /dev/ttyS3 for a UART or /dev/ttyACM0 for USB. The port must not be used by another module, such as MAVLink (see Serial Port Configuration). Then connect the host tool or configurator to the other end of that serial link, for example with Tools/esc_4way.py -d <host serial device> info. The server is started manually in this case, so USB auto-detection is not involved. Stop it with esc_4way stop, or reboot the flight controller.
USB Vendor ID
am32.ca only shows USB devices from a list of known flight controller vendor IDs, so use a version of the configurator whose list includes the vendor ID of your board's USB port. esc-configurator.com has an override for this and shows the port regardless of its vendor ID.
See Also
- Serial Passthrough (MAVLink SERIAL_CONTROL): raw access to the ESC signal pins over MAVLink, for example from a companion computer.
- DShot ESCs