Skip to content

HBG3 OTA Update

Mraanderson edited this page Jan 14, 2024 · 8 revisions

OTA Update

Connect the HBG3 to a WiFi network with an internet connection and use the OLED button to toggle to the Update screen.

  • Set the HBG3 into a WiFi mode with Internet
  • Press button to get to update screen
  • Long press to check for and install an update if available

If a button is not available/installed, toggling the OLED is not possible (if an OLED is even installed) so use a Telnet session.

Android Telnet to update

Ensure you have v8.1 or higher. The easiest way to update is the using Over The Air update from a Telnet session. I prefer JuiceSSH and with the paid for version to save settings.

  • Power on the HBG3 with WiFi in Client (not direct) mode - Switch up, an Internet connection is required
  • Ensure your Telnet device is on the same network
  • Scan the network to get the IP address of the HBG3 using Fing app or Network Analyzer app
  • Connect to HBG3 using the IP, Telnet and port 3000
  • Run ota_update

Arduino IDE to update

If you have to full package you will only need the update file dumped in the sketches folder and renamed, in its own folder.

  • Upload to overwrite

Serial connection

Using Arduino IDE console or https://serial.huhn.me/ from a browser when the HBG3 is connected by WiFi to an Internet connected network.

Send ota_update


Dumped from Here

HBG3 running v8.1 or higher. Less than this will need to update to v8.1/v8.2 the old way before being able to use the new mechanism.

Actually, it's an "over the internet" update scheme. Once running v8.1 or newer, the HBG3 must then be connected to the internet via a local WiFi access point. So use the serial/debug monitor, or SkyPortal/SkySafari, to first configure hbg_wlan_mode_red_switch

Connect to the HBG3 by Telnet and issue the command. An update will be displayed on the OLED if one is connected

ota_update


Testing

If a flashable binary for the HBG3 is available for testing, assuming one is already running v8.35 or newer, this is easy to try out from the Serial/Debug interface:

ota_update /hbg3/testing.bin

Or for the All-In-One (AIO):

ota_update /hbg3/aio-testing.bin

That's it.. no variable to set, and next time one uses ota_update (with no args, or from the OLED+button) it will restore the latest released version.