OpenIoTHub gateway firmware

Turn an ESP32 board into an OpenIoTHub (云亿连) gateway that reaches devices on your local network. Plug it into a computer with USB and flash it from this page. Nothing to install.

Loading firmware information…

Flash the firmware

  1. Connect the board to the computer with a USB cable that carries data.
  2. Click the button below and pick the board's serial port from the list.
  3. The page detects the chip and selects the matching firmware. Follow the prompts; writing takes a minute or two.

Supported chips and downloads

Chip Update package (web OTA) Full image (esptool)
Loading…

Firmware is built for 4 MB of flash. The ESP32-S3, C3, C6 and C5 builds include Bluetooth provisioning; the original ESP32 build does not.

After flashing: join your Wi-Fi

  1. On startup the board opens a hotspot named OIH-Gateway-XXXX. Join it from a phone and the setup page should open on its own. If it does not, open http://192.168.4.1/.
  2. Choose the Wi-Fi network and enter its password. You can also use device provisioning in the 云亿连 / OpenIoTHub app (AirKiss or Bluetooth).
  3. Once the board is on your router, its admin page is at http://<device IP>:34323/. Scan the QR code there with the app to add this gateway.

Hold BOOT for 2 seconds and release to enter setup again. Hold it for 5 seconds to factory-reset.

Already running: update over the web

If the device is already online, no USB cable is needed. Download the update package for its chip from the table above, open http://<device IP>:34323/ota on the device, and upload that file. Wi-Fi and gateway settings are kept. If the new firmware fails to start, the device goes back to the previous version.

Flash with esptool

Download the full image for the chip and write it at address 0. It spans from the bootloader through the app partition and overwrites the settings area in between, so the saved Wi-Fi and gateway settings are erased.

esptool.py --chip esp32c3 write_flash 0x0 gateway-c-esp32c3-factory.bin