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.

ModelsFirmware VersionComments
RS485-LB/LSAll firmware version 
SN50v3-LBAll firmware version 
PS-LB-NAAll firmware version 
TS01-LB/LSAll firmware version 
CS01-LBAll firmware version 
AIS01-LBAll firmware version 
TC01-LB/ TC11-LBAll Firmware Version 
LHT65NAll Firmware Version 
LHT65N-PIR,LHT65N-E31FAll Firmware Version 
D20-LB/D20S-LB/D22-LB/D23-LBAll Firmware Version 
S31/S31B-LB/LSAll Firmware Version 
AQS01-LAll Firmware Version 
UV254-LBAll Firmware Version 
SDI-12-LB/LSAll Firmware Version 
SE01-LB/LSAll Firmware Version 
PS-LBAll Firmware Version 
SE02-LBAll Firmware Version 
SPH01-LB/LSAll Firmware Version 
LMS01-LB/LSAll Firmware Version 
WL03A-LB/LSAll Firmware Version 
DS03A-LB/LSAll Firmware Version 
CPL03-LB/LSAll Firmware Version 
SW3L-LB/LSAll Firmware Version 
LCC01-LBAll Firmware Version 
PS-LB/LSAll Firmware Version 
LDS12-LB/LSAll Firmware Version 
LDS40-LB/LSAll Firmware Version 
DDS75-LB/LSAll Firmware Version 
DDS45-LB/LSAll Firmware Version 
DDS20-LB/LSAll Firmware Version 
DDS04-LB/LSAll Firmware Version 
MDS120-LB/LSAll Firmware Version 
MDS200-LB/LSAll Firmware Version 
DS20LAll Firmware Version 

3. How to do OTA update

3.1 Required Components

image-20230513120722-2.png

3.2 OTA Update Firmware via Mobile Phone + LA66

3.2.1 LA66 upgrade

The LA66 USB connects to the phone via the USB-Type C adapter.

image-20250219103117-5.jpeg

After the connection is successful, the phone will pop up a prompt box, check it, and click to "OK".

Note: Some mobile phone models need to manually enable the OTG function to properly identify external devices.

image-20250214162012-8.png

Then, the Device Tool will automatically jump to the main interface of the tool.

In the upper left corner of the main interface of the software, click "Upgrade Device" and select the "LaA66" type.

image-20250219095423-2.png

Follow the steps in order:

① Click "SELECT UPGRADE FILE" to choose the firmware to upgrade.

② After clicking Start, wait for the LA66 to burn in

image-20250214162029-9.png

Note:

1. In order to ensure that the LA66 USB works properly, make sure that there is a corresponding bootloader before updating the firmware.

2. If you don't have a bootloader, you need to use the "Tremo Programmer" software to download it. Click to get bootlooderthen refer to this link for instructions to burn.

When the upgrade is complete, it will prompt:"update successfully". 

image-20250219100549-3.png

3.2.2 LB series

  • Upgrade of external tools: LA66 USB
    image-20250214161740-1.pngimage-20250214161758-2.png
  • Before using LA66 as a firmware burning tool for -LB products, you need to burn OTA_DONGLE for LA66 first.
  • Click to get OTA_DONGLE V1.1.

image-20250219094223-1.png

The LA66 USB connects to the phone via the USB-Type c adapter.

image-20250219103130-6.jpeg

After the connection is successful, the phone will pop up a prompt box, check it and click to confirm.

Note:Some models of cell phones require the OTG function of the cell phone system to be enabled manually in order to recognize the external device correctly.

image-20250214161907-4.png

Then, the Device Tool will automatically jump to the main interface of the tool.

In the upper left corner of the main interface of the software, click "Upgrade Device" and select the LB type.

image-20250219100821-4.png

Follow the steps in order:

① Enter the DUIEI,.

② Enter the PIN (the PIN is the last 8 bytes of APPSKEY, It's 16 characters in total).

③ Select the LoRa frequency to match the original frequency of the node.

④ Choose the upgrade file,(The firmware upgrade file format only supports .bin files)

⑤ Press the reset button of the device to be upgraded and click "Start".

Note:

1. If you are unable to access the upgrade for an extended period of time, you can perform the device reset step again.

2. If you do not want to open the cover of the device to be upgraded, you can hold down the ACT key for 5s until the device blinks green. This action is the equivalent of pressing the reset button.

image-20250214161928-5.png

When the upgrade is complete, it will prompt:"update successfully".

image-20250214161941-6.png

3.3 OTA Update Firmware via PC

Video Instruction: -- OTA Upgrade Firmware (via LoRa) of LoRaWAN Sensors: https://youtu.be/SSvOqvBrwGg

Step1: Plug LA66 USB to PC and run OTA_Tool.

image-20250121091115-1.png

Step2: Set up OTA Tool

  • DevEUI: Input DevEUI of your sensor
  • Password: Passord of your sensor(Last eight bytes/ Last 16 characters 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. (If you did not ask us for a uniform update file, then you do not need to use this field, please ignore it.) Format is as below:

image-20230114174640-3.png

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.

image-20250121093705-3.png

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.

image-20250121093834-4.png

4. FAQ

4.1 OTA_Tool supports two upgrade methods for -LB products.

Note: The premise of using OTA_Tool is that all your devices have bootloaders.

1. Only devices with bootloader can perform OTA upgrades(OTA upgrade method).

2. This is because the boot loader's address is 0x08000000, the general functional firmware's address is 0x0800D000, and burning the firmware through OTA_Tool will only write content to the address 0x0800D000. So whether you use the OTA_Tool's OTA upgrade method or the UART upgrade method, you can only use it to download firmware without a bootloader, otherwise you will incorrectly place the bootloader at address 0x08000000.

  • For OTA_Tool, you can choose to use the OTA upgrade method, refer to the above upgrade steps in this user manual.

image-20250122104151-4.png

  • Of course, if you have a USB-TTL adapter, you can also choose to use the UART upgrade method via OTA_Tool.

image-20250122104131-3.png

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.

image-20230519102907-2.png

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 How to update the LA66 OTA Dongle V1.1 via mobile phone?

image-20250122113225-5.png

  • If you have never downloaded LA66 OTA DongleV1.0 to your LA66, you can directly upgrade the LA66 OTA DongleV1.1 program from your phone using the following method.

bootlooder and OTA_firmware.

Tool Download: Download link form Dropbox.  

Operation instructions: Reference for operating procedures.

         Please refer to FAQ 4.7 for detailed reasons.

4.5 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

4.6 The old version LA66 is different from the new version LA66. Can OTA_Tool be used for both versions?

The most obvious hardware difference between LA66 V1 and LA66v2 when burning is the presence of a "RESET "button, and the RESET operation is only for LA66 without a boot loader, you can refer to this link to learn how to upgrade LA66 without a boot loader:LA66 USB LoRaWAN Adapter User Manual - DRAGINO

image-20250122134752-6.png

In summary, as long as your LA66 has a boot loader, either LA66 V1 or LA66 V2 can use OTA_Tool.

4.7 Why can't LA66 burn its own working firmware after it is used for OTA upgrade of -LB products?

We are sorry for the inadequacy of LA66 for OTA updates in the past.

  • In the past, the download address of LA66 OTA DONGLE V1.0 was 0x08000000, and the address of the bootloader that existed by default when the LA66 was shipped was also 0x08000000.

Therefore, when you burn OTA_Firmwar v1.0 (LA66 OTA DONGLE v1.0) for the LA66 in order to use the LA66‘s ability to perform OTA upgrades for -LB products, the LA66’s bootloader is overridden.

So if you need to switch back to the LA66's working firmware, you'll need to refer to this link for instructions to burn firmware with a bootloader for the LA66.

image-20250122113225-5.png

  • For the new version of LA66 OTA DONGLE V1.1, we have changed the supported download address to 0x0800D000 the same as other working firmware addresses, so you can simply use OTA_Tool to burn LA66 OTA DONGLE V1.1 and LA66 working firmware for LA66.

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.

Tags:
    
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0