OTA Auto Update For Gateway Firmware

Version 69.1 by Kilight Cao on 2024/04/08 17:56

Table of Contents:

1. What is OTA and how it works

Dragino gateways support firmware OTA auto-update. In OTA update, the gateway will connect to Dragino update server and get the latest firmware and update it to the gateway for bug fix and new features

In below case, gateway will connect to Dragino server to check for updates:

  • Every reboot
  • Every midnight (~UTC time: 12:00)

 

2. Support hardrware & Software

ModelsDevices TypeOS, CPU InfoFirmware requirementOTA Update Detail
LoRaWAN Gateway
  • Linux OS: OpenWrt,
  • CPU: 400MHz,
  • Flash: 16MB, RAM: 64MB

 

Change Log
LPS8v2LoRaWAN Gateway
  • Linux OS: Armbian,
  • CPU: Quad-core Cortex-A7 1.2Ghz
  • RAM: 512MB
  • eMMC: 4GB

 

Change Log
LG01v2Single Channel LoRa Gateway
  • Linux OS: Armbian,
  • CPU: Quad-core Cortex-A7 1.2Ghz
  • RAM: 512MB
  • eMMC: 4GB

 

Change Log

 

3. OTA Update Change Log

3.1 For LIG16,LPS8, LPS8N, LG308, LG308N, DLOS8, DLOS8N

DateMain PackagesChange Log
------------dragino_gw_fwd-2.6.0
  • Basic versions
------------haserl_ui-1.2.1
  • Basic versions
22-09-16dragino_gw_fwd-2.6.1
  • Add lora global_config file for zn
22-11-16dragino_gw_fwd-2.6.3
  • Optimize recycling threads
  • Optimize log output
23-04-25dragino_gw_fwd-2.6.4
  • Fixed Semtech UDP mode lost connection issue
23-08-01dragino_gw_fwd-2.7.0
  • Fixed Cellular mode lost connection issue
23-12-10haserl_ui-1.4.0-5
  • Add no network detection
  • Fixed Basic station clock drift to 100mp
23-12-27haserl_ui-1.4.6-0
  • Optimized Cellular connection
  • Optimized BasicStation connection
  • Optimized IoT connections in cellular
  • Added auto-channel for MQTT
24-03-28

haserl_ui-1.5.3-0

dragino_gw_fwd-2.9.2-1

  • Add support for Loriot basic station
  • Add support for Chirp Wireless basic station
  • Optimized auto-update
  • Optimized FWD online/offline detect
  • Optimized ABP decoding efficiency
  • Optimized cellular connection
   
   
   
   

 

3.2 For LPS8v2

DateMain PackagesChange Log
2022-10-23draginofwd-22-10-23
  • Fix i2c interface error ( for FWD)
2023-01-06

dragino-httpd

dragino-ui

draginoups

  • Add Login-Authentication
  • Add system/general  page
  • Add the fallback interface
2023-01-10dragino-ui
  • Add timezone setting
  • Add Static IP setting with WLAN
  • Add the http/ssh port setting
  • Optimized built-in server updates
  • Fix the basic station display with the EUI
2023-02-08dragino-ui
  • add the edit the address of fallback
  • Add Static IP setting with ETH
2023-02-16armbian-bsp-cli-draginohp0z
  • Optimization Auto Update
  • Add the docker cache clean
2023-03-18

dragino-ui

draginofwd

  • Fix LoRaWAN lost connection with the server, not being displayed correctly
  • Optimized the IoT keepalive detection.

    When the gateway's network is unreachable, the sys led will switch to red and wait for the network to recover
    Once the network is back in access, the gateway will reload the running server(draginofwd)

2023-04-10

dragino-ui

dragino-fwd

draginohtppd

  • Fixed the wifi survey doesn't show the complete SSID
  • Fixed the LoRa global config of IN865 which is missing a frequency point
  • Fixed the LoRa frequency band type of AS923
  • Fixed lighttpd takes up a lot of CPU.
2023-04-18dragino-ui
  • Optimized the General page
2023-5-04dragnoups
  • Fixed block broken problem
2023-05-06dragino-ui
  • Update Package Filrer ruler
  • Update Stat package interval setting
2023-05-23

dragino-ui

draginoups

  • Add the AP function
  • Fix the incomplete display of 4g icon information
  •  
2023-06-14dragino-ui
  • Update the Web page for the built-in server
2023-06-30

dragino-ui

draginoups

  • Optimized resource consumption
  • Fix the gateway downtime bug
2023-07-08dragino-ui
  • Fix the Home page cellular icon display error 
2023-07-14dragino-ui
  • Reduce the memory usage of web UI
2023-07-16dragino-ui
  • Fixed the issue of cellular consuming a lot of data
2023-08-01dragino-ui
  • Fixed the issue of cellular Pinconde settings
2023-08-05draginofwd
  • Fixed the server connection status detection
2023-10-24dragino-ui
  • Fixed Uable install Chirpstack
2023-11-06dragino-ui
  • Add reset data for Chirpstack
2023-11-26dragino-ui
  • Fixed the issue unable to disable SSH
2023-12-01dragino-ui
  • Add batch register for Chirpstack
2023-12-05dragino-ui
  • Fixed basic-station abandonment issue
2023-12-06dragino-ui
  • Add cached writes are immediately written to the disk
  • Fix the issue that the backup page cannot be downloaded
2023-12-07draginoups
  • Enable Hardware watchdog from CPU
  • Improve TCP link retransmission speed. Improve the Basic Station connection stability.
2024-01-10dragino-ui
  • support watchdog chip
2024-02-03dragino-ui
  • Add bastion support for ChirpWiress
  • Add the Reset button for the Web UI
  • Fixes issue where reset would lose configurations
2024-03-01dragino-ui
  • Support WireGuard VPN Setting
2024-03-19dragino-ui
  • Fixed reset without restoring static IP settings
  • Fixed reset without restoring fallback/ssh settings
  • Fixed DNS resolution error after static IP setting
  • Fixed DNS/GW not showing up in wifi static
   
   
   
   
   

 

3.3 For MS48

DateMain PackagesChange Log
2023-12-28

dragino-ui

draginoups

  • Fix the LoRa page saved without frequency modification
  • Fix Modbus registers with no data
     
2024-01-10draginoups
  • Enable Hardware watchdog from CPU
2024-01-11

dragino-ui

draginoups

  • Add Modbus TCP mode

 

2024-02-18dragino-ui
  • Fix the enable check box that can't be checked on WebUi
2024-03-18

dragino-ui

draginomodbus

  • Add Write Decode Data to the register function
2024-04-07

dragino-ui

draginomodbus

  • Add the Reset button for the Web UI
  • Fix long payloads not being written to Modbus registers.
  • Fixes issue where reset would lose configurations or not to work
  • Fixed reset without restoring static IP settings
  • Fixed reset without restoring fallback/ssh settings
  • Fixed DNS resolution error after static IP setting
  • Fixed DNS/GW not showing up in wifi static

3.4 For LG01v2

DateMain PackagesChange Log
   
   

 

3.5 TODO list

  • Add offline storage of Lora packages, re-transmit Lora packages when online

 

3.6 Finish list

  • Add Fall Back IP to LPS8v2
  • Add Login-Authentication

 

4. Disable OTA Update

It is possible for clients to disable the OTA update feature. Below is the instruction:

LPS8V2:

image-20230830104754-1.png

LPS8/LPS8N/DLOS8/DLOS8N/LG308/LG308N:

image-20240408175151-1.png

  • Method 2: Using Command Line

sed -i 's/0 2 \* \* \*  \/etc\/init.d\/opkg-update start/\#0 2 \* \* \*  \/etc\/init.d\/opkg-update start/g' /etc/crontabs/root 

/etc/init.d/opkg-update disable

 

Tags:
Created by Xiaoling on 2022/12/23 10:57
    
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0