This document provides a detailed explanation of the firmware flashing operation process for the RG-03H gateway. The primary objective is to flash dedicated firmware corresponding to specific frequency band, enabling switching of the device's operating frequency band (e.g., updating the frequency band firmware of non-PA version gateway from the default EU868 to AS923, or PA version gateway from the default US915 to IN865, etc.), thus adapting to device debugging scenarios that comply with radio frequency standards in different regions.
The device's operating frequency band parameters are embedded in the firmware. The target frequency band firmware must be written to the device's MCU via serial flashing, overwriting the original band configuration. Upon power-up, the device will operate according to the frequency parameters in the new firmware, enabling frequency band switching without requiring hardware modifications.
| Device Name | Specifications |
|---|---|
| PC | USB port equipped, Windows/Linux system |
| USB-TTL Module | Serial port chips like CH340G, CP2102, FT232 supporting 3.3V/5V level switching |
| RG-03H Gateway | Pins TXD, RXD, GND, VCC, RESET, IO0 exposed |
| Dupont Wires | Female-to-female/ male-to-male acceptable (depending on whether the sensor's flashing port uses header pins or sockets); at least 6 wires required |
| Regulated Power Supply (Optional) | Output voltage matching the device (3.3V/5V), current ≥500mA |
| USB-TTL Module Pin | Device Pin |
|---|---|
| VCC | VCC (not connected if the device is powered externally) |
| GND | GND |
| TXD | RXD |
| RXD | TXD |
| RST | RST |
| DTR | IO0 |

After connecting, insert the TTL module's USB end into the PC and open the Device Manager.
Check whether the virtual serial port is recognized (e.g., COM3). If no yellow exclamation mark appears, the connection is normal.
If the port is not recognized, check the driver installation, loose wiring, or TTL module failure.
Open flash_download_tool, and select ESP32 in the ChipType option.
Port: Select the virtual serial port recognized in Device Manager (e.g., COM3).
In the "Download Files" column, check the box in front of the first line.
Click the file browse control in the first line and select the firmware to be flashed.
Configure the flash address to 0.
SPI SPEED: Configure as 40MHz.
SPI MODE: Configure as DIO.
Select the DoNotChgBin option.
Baud Rate: Default 921600bps (for faster flashing speed).
Open the SSCOM serial port tool on the PC, and select the virtual serial port recognized in the Device Manager (e.g., COM3).
Configure the baud rate as 115200.
Open the serial port and select RTS, then deselect it. Observe the data content printed by the serial port tool.
Confirm whether the firmware flashing is correct by checking the frequency band and firmware version printed by the program.

Contact Us
This concludes today’s guide, designed to help you quickly get started with the new solution. For more resources, please visit our official website.
Official Website: https://www.ai-thinker.com
Development DOCS: https://docs.ai-thinker.com/
Official Forum: http://bbs.ai-thinker.com
Technical Support: support@aithinker.com