Skip to content

Update repeaters from the bottom of the hill - #3938

Open
jbrazio wants to merge 1 commit into
meshcore-dev:devfrom
jbrazio:feat/nrf52-gdfu-ota-direct
Open

jbrazio wants to merge 1 commit into
meshcore-dev:devfrom
jbrazio:feat/nrf52-gdfu-ota-direct

Conversation

@jbrazio

@jbrazio jbrazio commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Update repeaters from the bottom of the hill

nRF52: reboot straight into the GDFU bootloader on start ota

The best repeaters sit on rooftops, towers and hilltops. Those are also the hardest nodes to maintain. BLE DFU only reaches a few metres, so every firmware release means another trip, a ladder, a weatherproof enclosure to open, or a key to someone else's roof. In practice many remote repeaters stay on old firmware because nobody wants to make that trip.

GDFU (GFSK Device Firmware Update) moves the update onto a sub-GHz radio link. Your phone talks Bluetooth to a small proxy next to you, and the proxy sends the firmware to the repeater over GFSK. With line of sight and suitable antennas, you can update a hilltop repeater from the car park or the valley below it. The repeater never comes down. In real-world tests with this bootloader, updates have worked at distances of more than 1 km.

A few things make it suitable for repeaters specifically:

  • The bootloader beacons over radio and waits for a proxy. A repeater with no valid application firmware can still be recovered remotely.
  • Every frame carries a CRC and an acknowledgement, and the bootloader verifies the final image before activating it. A failed transfer leaves the bootloader ready for another attempt.
  • It is an open-source fork of the OTAFIX / Adafruit nRF52 bootloader, so USB DFU and UF2 still work as before.

More information.

How it fits together

App ── Bluetooth ── GDFU proxy ── GFSK radio ── Repeater (GDFU bootloader)
  • gdfu-bootloader is the nRF52840 bootloader with an SX1262 GFSK transport. It is hardware-tested on the Heltec T114 and ProMicro nRF52840, and build-tested on RAK4631, RAK3401, SenseCAP Solar P1 and XIAO nRF52840.
  • gdfu-proxy is ESP32 firmware (for example a Heltec WiFi LoRa 32 V3) that bridges Bluetooth to the radio link.
  • gdfu-application is the client app (Android, iOS or Web Bluetooth) that discovers targets and drives the update. Get it on Google Play or the App Store.

The proxy and the repeater have to use the same radio profile (433.175 MHz or 864.1 MHz, GFSK 80 kbps).

What this PR changes

One change in NRF52Board::startOTAUpdate(). If the bootloader version string starts with gdfu-, start ota does this:

  1. Replies OK: 0x<target_id>. The ID is the low 32 bits of the BLE MAC (NRF_FICR->DEVICEADDR[0]), the same value the GDFU bootloader puts in its beacon, so you can match this node to a target in the app.
  2. Schedules enterOTADfu() on a 2 s software timer, so the reply still goes out over the mesh before the reset.
  3. Returns without starting the BLE DFU service.

With any other bootloader the function behaves exactly as it does today.

Why it is needed

A GDFU bootloader image ships a single OTA transport. With GFSK enabled, BLE OTA is not built in. Today start ota brings up the Bluefruit DFU service and waits for a BLE client, which can't work with this bootloader. Nothing on the GFSK side ever hears about it. The only way to reach the GDFU bootloader would be a double-tap of reset or a USB connection, which defeats the point of updating a node you can't touch.

The bootloader already reports its version through getBootloaderVersion(), so the firmware can detect GDFU at runtime. Board variants and existing installs need no build flag or configuration change.

When the bootloader version starts with "gdfu-", reply with the GDFU
beacon target_id and reset into the bootloader after 2 s instead of
starting the BLE DFU service, which a GDFU image does not provide.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant