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.
Flash the firmware
- Connect the board to the computer with a USB cable that carries data.
- Click the button below and pick the board's serial port from the list.
- The page detects the chip and selects the matching firmware. Follow the prompts; writing takes a minute or two.
This browser cannot use the Web Serial API. Open this page in a current version of Chrome or Edge on a computer, or download a firmware file below and flash it with esptool.
Web Serial only works on HTTPS pages and on localhost.
- The flashing dialog is in English. Erase device wipes the whole flash: check it on a new board, or when you want to clear the saved Wi-Fi and gateway settings. Leave it unchecked to upgrade and keep those settings.
- If the port is missing from the list, install the driver for the board's USB-to-serial chip (CP210x or CH34x).
- If it will not connect, hold BOOT and tap RESET (or replug the cable) so the chip enters download mode, then try again. Press RESET once writing finishes.
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
- 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, openhttp://192.168.4.1/. - Choose the Wi-Fi network and enter its password. You can also use device provisioning in the 云亿连 / OpenIoTHub app (AirKiss or Bluetooth).
- 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