User Manual

www.dragino.com
LoRa Gateway User Manual ---Update:2017-11-07 38 / 67
8. Upgrade Micro Controller Sketch
There are three ways for use to upgrade the sketch to the MCU use LG01.
8.1 Upgrade Sketch via Arduino IDE
We have already introduce this method in above, please see from here
8.2 Upgrade Sketch via Web UI
Upgrade Sketch via Web UI is a good way to distribute production sketch in hex format.
User can get the hex production file and below is the upgrade step:
In LG01, Go to page Sensor --> Flash MCU , Select the hex file and upload it to LG01.
Reboot LG01, After reboot, check page Sensor --> MicroController , If the Sketch has defined the
MCU version, you can see from this page and check if upgrade is correctly.
How to get the HEX file?
In the Arduino IDE, when compile the Sketch, User can see where the code is located as below:
Then open the directory and get the hex file (DO NOT use the one with bootloader)