OTA Update Firmware/Configure for Sensors
Table of Contents:
1. Overview
There are some new models of Dragino sensors support OTA update via Private LoRa Protocol, (Even the sensor runs LoRaWAN protocol by default).
User can use the OTA update to update the configure file or firmware to the sensors.
2. Support Models
Here list the models that support OTA Update.
Models | Firmware Version | Comments |
---|---|---|
RS485-LB/LS | All firmware version | |
SN50v3-LB | All firmware version | |
PS-LB-NA | All firmware version | |
TS01-LB/LS | All firmware version | |
CS01-LB | All firmware version | |
AIS01-LB | All firmware version | |
TC01-LB/ TC11-LB | All Firmware Version | |
LHT65N | All Firmware Version | |
LHT65N-PIR,LHT65N-E31F | All Firmware Version | |
D20-LB/D20S-LB/D22-LB/D23-LB | All Firmware Version | |
S31/S31B-LB/LS | All Firmware Version | |
AQS01-L | All Firmware Version | |
UV254-LB | All Firmware Version | |
SDI-12-LB/LS | All Firmware Version | |
SE01-LB/LS | All Firmware Version | |
PS-LB | All Firmware Version | |
SE02-LB | All Firmware Version | |
SPH01-LB/LS | All Firmware Version | |
LMS01-LB/LS | All Firmware Version | |
WL03A-LB/LS | All Firmware Version | |
DS03A-LB/LS | All Firmware Version | |
CPL03-LB/LS | All Firmware Version | |
SW3L-LB/LS | All Firmware Version | |
LCC01-LB | All Firmware Version | |
PS-LB/LS | All Firmware Version | |
LDS12-LB/LS | All Firmware Version | |
LDS40-LB/LS | All Firmware Version | |
DDS75-LB/LS | All Firmware Version | |
DDS45-LB/LS | All Firmware Version | |
DDS20-LB/LS | All Firmware Version | |
DDS04-LB/LS | All Firmware Version | |
MDS120-LB/LS | All Firmware Version | |
MDS200-LB/LS | All Firmware Version | |
DS20L | All Firmware Version |
3. How to do OTA update
3.1 Required Components
- Hardware: LA66 USB with OTA_firmware installed.
- Software: OTA_Tool. Only support Windows now
3.2 OTA Update Firmware
Video Instruction: -- OTA Upgrade Firmware (via LoRa) of LoRaWAN Sensors: https://youtu.be/SSvOqvBrwGg
Step1: Plug LA66 USB to PC and run OTA_Tool.
Step2: Set up OTA Tool
- DevEUI: Input DevEUI of your sensor
- Password: Passord of your sensor(Last eight bytes of APPSKEY)
- Port: Com port of LA66 USB
- LoRa_Freq: Choose the shipped frequency band of your sensor.
- Upload_File: The firmware to be upload to the sensor. make sure the firmware is with surfix _without_bootloader. For example: LHT65N_EU868_v1.5_without_bootloader.
- DEUI_File: If customer has lots of sensors. He can also import the Dev EUI files and use droplist to choose the sensor to update. Format is as below:
Step3: After re-plugging the LA66 USB, click "Start" in the OTA tool.
Upon re-plugging, the LA66 USB will reboot and broadcast the update process using the Dev EUI and passcode
Step4: Press reset button on the end node, or re-activate the end node.
When the OTA Tool displays “LA66 is scanning for sensor Dev EUI ‘DevEUI’. Please reset the sensor for connection and update”, press and hold the ACT button on the terminal node for 5 seconds to perform a terminal node reset so that the OTA Tool can connect successfully.
In every reboot/ reactivate, the end node will check if there is update request. If end node gets the update request from LA66. End node will check if the Dev EUI and Password match. If match, End node will establish connection with LA66 USB for OTA update.
Step5: Check result.
Below shows the update successul result.
3.3 OTA Update Configure
Video Instruction: -- OTA Upgrade Configure (via LoRa) of LoRaWAN Sensors: https://youtu.be/5XedoNVkbQQ
OTA Update Configure is good for batch update configure in same type of sensors.
4. FAQ
4.1 Can i use other devices to connect to PC if i don't have LA66 USB?
If user doesn't have LA66 USB Adapter, they can still use other Dragino Device to connect to PC for OTA update.
Steps:
- Find the suitable mode which base on LA66 chip ( All LoRaWAN model with LB or LS suffix , such as SN50v3-LB)
- Update the LA66 USB OTA firmware to the device.
- Connect the device to PC via UART interface.
- Make sure power off or update the firmware back to original firmware , because the LA66 USB OTA fimware is not low power consumption firmware. it will consume the battery very fast.
4.2 Where to find OTA Password?
Each device has a shipped label with OTA Password which is 16 chars. like below. If user don't find this, please send us a photo for the device with Dev EUI to support@dragino.com . and we will search the password for you.
4.3 How about if i upgrade a crashed firmware via OTA update?
OTA update is done via Bootloader and only change the firmware partition. So update a crash firmware via OTA update won't destroy bootloader and user can use OTA method to update again.
Here are notice:
1. OTA update frequency depend on the firmware frequency. If there is no frequency in the firmware. Bootloader will use EU868 as default frequency.
2. OTA update require a reset or reactivate action. If the crash firmware doesn't have them work, user need to manuall push the physic reset button on the PCB or power off/on device.
4.4 Will OTA update effect the Local LoRaWAN Network.
User can configure the OTA_Frequency.txt file to change the Update frequency point so it won't conflict with the general LoRa Frequency. See below for the file as reference and explain. The OTA update also use a none-use SF (SF=5) which won't conflict with the current use SF.
#Define the OTA frequency use for OTA.
#End Node has FRE1 and SF=5. So don't change FRE1 settings
#FRE2 include several frequencies point.
#PC first use FRE1 to create connection to end node, then use one of FRE2 frequencies to process downlink.
#Format:
#Frequency Band;FRE1;FRE2
EU868;869.0;868.7,868.9
IN865;866.9;865.1,865.3
KZ865;866.5;866.1,866.3
KR920;921.7;921.3,921.5
MA869;870.5;870.7,870.9
US915;923.1;923.7,924.1
CN470;505.5;605.7,505.9
AU915;923.7;924.7,925.5
AS923;923.5;923.3,923.7
AS923-2;921.2;921.8,922.0
AS923-3;916.4;917.0,917.2
AS923-4;917.1;917.6,917.8
EU433;434.5;433.9,434.1
RU864;869.3;869.5,869.7
5. OTA Tool Known Bug:
1. If user click "Start" but there is issue during update. User may need to close and open the tool again.