User Manual

www.dragino.com
LoRa Gateway User Manual ---Update:2017-11-07 39 / 67
8.3 Auto update MCU
Since Firmware IoT-4.1.1, auto update sketch is supported. With this feature, the Dragino's will
connect to a http/https server and get the latest sketch version and upload the sketch with this
version. The purpose of this feature is to reduce the tech support cost / time for remote
installation.
The feature can be configured in the page sensors -> microcontroller.
Auto Update On Boot: While this option is enabled. Device will connect to the auto server on every boot
and check if there is new version of Sketch to be update. If Device find newer version on the auto update
server, device will download it from the server and update the mcu with this new version.
Current Image Version: Shows the current sketch version. By default it is 0. Device will update this version to
the latest version number only after auto update successful.
Update URL: This URL contact the update information and the sketch.hex file. Device will connect to this
URL to check if there is newer version in the server.
Update Info: The text file includes the update information. An example for this file can be found
here: example for update information file. It should include:
image: the sketch used for auto update
md5sum: md5sum for this sketch.
version: the latest version number.
Enable MAC Identify: Instead of getting update information as specified in Update Info, The device will look
for the update information from the file: wifi_mac.txt. Which means, if the device has wifi mac address
A840417867AF, device will download the file: $Update_URL/A840417867AF.txt for auto update information.
Procedure for Auto Update Sketch:
Assume we have below configured: