ExpressLRS / Backpack

Firmware for ExpressLRS compatible backpacks
GNU General Public License v3.0
100 stars 73 forks source link

Add extra commands for HDZero goggles #73

Closed pkendall64 closed 1 year ago

pkendall64 commented 1 year ago

This PR does a few things...

  1. Adds a new MSP command from the goggles (VRx) to the backpack to put the backpack into BIND or WIFI modes
  2. Delays reboot after binding so a response can be sent to the goggles
  3. Upgrades the base platform to 5.2.0 for ESP32 (same as for main ELRS firmware)
  4. copies boot_app0.bin from the framework to the build dir, so all 4 binary files are there for flashing

To flash the HDZero goggles, make a folder ELRS in the root of the SD card and copy the following 4 .bin files to that folder.

In the goggles, go to Firmware and select Update ESP32. Once it's done, go to Connections and ensure the backpack is enabled in the goggles, you can select Start Binding, and on your ELRS radio select Bind in the Lua script. After that, you should be good to change channels, and enable/disable the DVR from the radio!

EDIT: Adds a HDzero goggle target which has a new compile option NO_AUTOBIND, which stops all the auto-binding on 3x power-up or auto-wifi shenanigans as it's not required if the goggles can send commands to the backpack and flash it over serial internally.

This requires the goggle firmware to be running the branch from my repository https://github.com/pkendall64/hdzero-goggle/tree/elrs-internal