Files

3.3 KiB
Raw Permalink Blame History

Flash du Backpack ExpressLRS du RadioMaster Nomad (pont UDP MSPv2 0x0383)

Pourquoi ce patch ?

Sur le firmware stock ExpressLRS TX Backpack 1.5.9, la puce ESP32-C3 du RadioMaster Nomad n'accepte les trames MSP_ELRS_BACKPACK_SET_PTR (0x0383) que via ESP-NOW (et le port UDP 14555 ne relaie que du MAVLink).

Le patch patches/elrs_backpack_1.5.9_udp_msp_ptr.patch ajoute un pont UDP direct sur les ports 14550 et 14555 :

  • Tout paquet UDP de 15 octets commençant par $X< avec l'opcode 0x0383 et un CRC8 DVB-S2 valide est transmis directement sur Serial vers le processeur principal du Nomad.
  • Un compteur ptr_packets est exposé dans http://elrs_txbp.local/mavlink (ou http://10.0.0.1/mavlink en mode AP).
  • Permet au casque / steamframe-fpv de piloter CH6–CH8 en Wi-Fi tout en gardant CH1–CH5 libres pour g29_crsf et iNav en mode CRSF (Link Mode = Normal).

1. Compiler le firmware Backpack (1.5.9)

git clone --depth 1 --branch 1.5.9 https://github.com/ExpressLRS/Backpack.git elrs_backpack
cd elrs_backpack
git apply /chemin/vers/steamframe_fpv/patches/elrs_backpack_1.5.9_udp_msp_ptr.patch

# Créer un environnement Python 3.12 + PlatformIO
uv venv -p 3.12 .venv
uv pip install --python .venv/bin/python platformio

# Compiler pour ESP32-C3 TX Backpack (RadioMaster Nomad)
.venv/bin/pio run -e ESP32C3_TX_Backpack_via_WIFI

2. Flasher le RadioMaster Nomad

Important : Utilisez toujours python/binary_configurator.py avec --target radiomaster.txbp.nomad afin d'injecter la configuration matérielle (product_name, etc.) dans le binaire.

Option A — Mise à jour en Wi-Fi OTA (si la Backpack est déjà accessible)

.venv/bin/python python/binary_configurator.py \
  --target radiomaster.txbp.nomad \
  --flash wifi \
  --port elrs_txbp.local \
  .pio/build/ESP32C3_TX_Backpack_via_WIFI/firmware.bin

Option B — Flash via USB-C Passthrough (récupération / premier flash)

Branchez le Nomad en USB-C sur le PC (détecté par ex. sur /dev/ttyUSB0), puis :

.venv/bin/python python/binary_configurator.py \
  --target radiomaster.txbp.nomad \
  --flash passthru \
  --port /dev/ttyUSB0 \
  .pio/build/ESP32C3_TX_Backpack_via_WIFI/firmware.bin

Débranchez ensuite le câble USB-C et redémarrez le Nomad sur la radio.


3. Réglages ExpressLRS (script Lua sur la radio) & iNav

Dans le script Lua ExpressLRS :

  • Packet Rate : 100Hz Full (ou un mode Full)
  • Switch Mode : 16ch Rate/2 (débranchez brièvement le RX si ELRS refuse le changement à chaud)
  • Link Mode : Normal (CRSF standard, compatible iNav + g29_crsf)
  • > Backpack :
    • Backpack : On
    • HT Enable : On
    • HT Start Channel : AUX2 (Pan = CH6, Tilt = CH7, Roll = CH8)
    • Telemetry : WiFi (ou Off avec Enable Backpack WiFi pour le port 14550)

Dans steamframe-fpv (Réglages → Suivi de Tête & Radio) :

  • Protocole Wi-Fi : MSPv2 0x0383
  • Cible Réseau : 10.0.0.1:14550 (AP terrain) ou elrs_txbp.local:14555 / 14550 (LAN)
  • Dans iNav Configurator → Receiver, les canaux CH6, CH7, CH8 réagissent en temps réel (et CH1–CH5 restent dédiés à g29_crsf).