Wiki source code of OTA Auto Update For Gateway Firmware
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | **Table of Contents:** | ||
2 | |||
3 | {{toc/}} | ||
4 | |||
5 | |||
6 | |||
7 | |||
8 | |||
9 | = 1. What is OTA and how it works = | ||
10 | |||
11 | |||
12 | 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 (% style="color:blue" %)**bug fix** (%%)and (% style="color:blue" %)**new features**. | ||
13 | |||
14 | In below case, gateway will connect to Dragino server to check for updates: | ||
15 | |||
16 | * Every reboot | ||
17 | * Every midnight (~~UTC time: 12:00) | ||
18 | |||
19 | (% style="display:none" %) | ||
20 | |||
21 | |||
22 | = 2. Support hardrware & Software = | ||
23 | |||
24 | |||
25 | {{velocity}} | ||
26 | $xwiki.ssfx.use("js/xwiki/table/table.css") | ||
27 | $xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true) | ||
28 | {{/velocity}} | ||
29 | |||
30 | (% border="1" cellspacing="10" class="doOddEven filterable grid sortable" id="tableid" style="background-color:#f7faff; width:1191.22px" %) | ||
31 | (% class="sortHeader" %)|=(% style="width: 247px;color:#0070c0" %)Models|=(% style="width: 222px;color:#0070c0" %)Devices Type|=(% style="width: 317px;color:#0070c0" %)OS, CPU Info|=(% style="width: 223px;color:#0070c0" %)Firmware requirement|=(% style="width: 178px;color:#0070c0" %)OTA Update Detail | ||
32 | |(% style="width:247px" %)((( | ||
33 | [[LIG16>>https://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.html]],[[LPS8>>https://www.dragino.com/products/lora-lorawan-gateway/item/148-lps8.html]], [[LPS8N>>https://www.dragino.com/products/lora-lorawan-gateway/item/200-lps8n.html]], [[LG308>>https://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]], [[LG308N>>https://www.dragino.com/products/lora-lorawan-gateway/item/229-lg308n.html]], [[DLOS8>>https://www.dragino.com/products/lora-lorawan-gateway/item/160-dlos8.html]], [[DLOS8N** **>>https://www.dragino.com/products/lora-lorawan-gateway/item/225-dlos8n.html]] | ||
34 | )))|(% style="width:222px" %)LoRaWAN Gateway|(% style="width:317px" %)((( | ||
35 | * Linux OS: OpenWrt, | ||
36 | * CPU: 400MHz, | ||
37 | * Flash: 16MB, RAM: 64MB | ||
38 | )))|(% style="width:223px" %)((( | ||
39 | ((( | ||
40 | |||
41 | ))) | ||
42 | )))|(% style="width:178px" %)[[Change Log>>||anchor="H3.1ForLIG162CLPS82CLPS8N2CLG3082CLG308N2CDLOS82CDLOS8N"]] | ||
43 | |(% style="width:247px" %)[[LPS8v2>>https://www.dragino.com/products/lora-lorawan-gateway/item/228-lps8v2.html]]|(% style="width:222px" %)LoRaWAN Gateway|(% style="width:317px" %)((( | ||
44 | * Linux OS: Armbian, | ||
45 | * CPU: Quad-core Cortex-A7 1.2Ghz | ||
46 | * RAM: 512MB | ||
47 | * eMMC: 4GB | ||
48 | )))|(% style="width:223px" %)((( | ||
49 | |||
50 | )))|(% style="width:178px" %)[[Change Log>>||anchor="H3.2ForLPS8Nv2"]] | ||
51 | |(% style="width:247px" %)[[LG01v2>>https://www.dragino.com/products/lora-lorawan-gateway/item/244-lg01v2.html]]|(% style="width:222px" %)Single Channel LoRa Gateway|(% style="width:317px" %)((( | ||
52 | * Linux OS: Armbian, | ||
53 | * CPU: Quad-core Cortex-A7 1.2Ghz | ||
54 | * RAM: 512MB | ||
55 | * eMMC: 4GB | ||
56 | )))|(% style="width:223px" %)((( | ||
57 | |||
58 | )))|(% style="width:178px" %)[[Change Log>>||anchor="H3.3.ForLG01v2"]] | ||
59 | |||
60 | (% style="display:none" %) | ||
61 | |||
62 | |||
63 | = 3. OTA Update Change Log = | ||
64 | |||
65 | == 3.1 For LIG16,LPS8, LPS8N, LG308, LG308N, DLOS8, DLOS8N == | ||
66 | |||
67 | |||
68 | (% border="1" cellspacing="5" style="width:602.222px" %) | ||
69 | |(% style="background-color:#d9e2f3; color:#0070c0; width:106px" %)**Date**|(% style="background-color:#d9e2f3; color:#0070c0; width:182px" %)**Main Packages**|(% style="background-color:#d9e2f3; color:#0070c0; width:287px" %)**Change Log** | ||
70 | |(% style="background-color:#f2f2f2; width:106px" %)~-~-~-~-~-~-~-~-~-~-~-~-|(% style="background-color:#f2f2f2; width:182px" %)dragino_gw_fwd-2.6.0|(% style="background-color:#f2f2f2; width:287px" %)((( | ||
71 | * Basic versions | ||
72 | ))) | ||
73 | |(% style="background-color:#f2f2f2; width:106px" %)~-~-~-~-~-~-~-~-~-~-~-~-|(% style="background-color:#f2f2f2; width:182px" %)haserl_ui-1.2.1|(% style="background-color:#f2f2f2; width:287px" %)((( | ||
74 | * Basic versions | ||
75 | ))) | ||
76 | |(% style="background-color:#f2f2f2; width:106px" %)22-09-16|(% style="background-color:#f2f2f2; width:182px" %)dragino_gw_fwd-2.6.1|(% style="background-color:#f2f2f2; width:287px" %)((( | ||
77 | * Add lora global_config file for zn | ||
78 | ))) | ||
79 | |(% style="background-color:#f2f2f2; width:106px" %)22-11-16|(% style="background-color:#f2f2f2; width:182px" %)dragino_gw_fwd-2.6.3|(% style="background-color:#f2f2f2; width:287px" %)((( | ||
80 | * Optimize recycling threads | ||
81 | * Optimize log output | ||
82 | ))) | ||
83 | |||
84 | (% style="display:none" %) | ||
85 | |||
86 | |||
87 | == 3.2 For LPS8Nv2 == | ||
88 | |||
89 | |||
90 | (% border="1" cellspacing="5" style="width:770.222px" %) | ||
91 | |(% style="background-color:#d9e2f3; color:#0070c0; width:118px" %)**Date**|(% style="background-color:#d9e2f3; color:#0070c0; width:255px" %)**Main Packages**|(% style="background-color:#d9e2f3; color:#0070c0; width:383px" %)**Change Log** | ||
92 | |(% style="background-color:#f2f2f2; width:118px" %)2022-10-23|(% style="background-color:#f2f2f2; width:255px" %)draginofwd-22-10-23|(% style="background-color:#f2f2f2; width:383px" %)((( | ||
93 | * Fix i2c interface error ( for FWD) | ||
94 | ))) | ||
95 | |(% style="background-color:#f2f2f2; width:118px" %)2023-01-06|(% style="background-color:#f2f2f2; width:255px" %)((( | ||
96 | dragino-httpd | ||
97 | |||
98 | dragino-ui | ||
99 | |||
100 | draginoups | ||
101 | )))|(% style="background-color:#f2f2f2; width:383px" %)((( | ||
102 | * Add Login-Authentication | ||
103 | * Add system/general page | ||
104 | * Add the fallback interface | ||
105 | ))) | ||
106 | |(% style="background-color:#f2f2f2; width:118px" %)2023-01-10|(% style="background-color:#f2f2f2; width:255px" %)dragino-ui|(% style="background-color:#f2f2f2; width:383px" %)((( | ||
107 | * Add timezone setting | ||
108 | * Add Static IP setting with WLAN | ||
109 | * Add the http/ssh port setting | ||
110 | * Optimized built-in server updates | ||
111 | * Fix the basic station display with the EUI | ||
112 | * | ||
113 | ))) | ||
114 | |(% style="background-color:#f2f2f2; width:118px" %)2023-02-08|(% style="background-color:#f2f2f2; width:255px" %)dragino-ui|(% style="background-color:#f2f2f2; width:383px" %)((( | ||
115 | * add the edit the address of fallback | ||
116 | * Add Static IP setting with ETH | ||
117 | ))) | ||
118 | |(% style="background-color:#f2f2f2; width:118px" %)2023-02-16|(% style="background-color:#f2f2f2; width:255px" %)armbian-bsp-cli-draginohp0z|(% style="background-color:#f2f2f2; width:383px" %)((( | ||
119 | * Optimization Auto Update | ||
120 | * Add the docker cache clean | ||
121 | ))) | ||
122 | |(% style="background-color:#f2f2f2; width:118px" %)2023-03-18|(% style="background-color:#f2f2f2; width:255px" %)((( | ||
123 | dragino-ui | ||
124 | |||
125 | draginofwd | ||
126 | )))|(% style="background-color:#f2f2f2; width:383px" %)((( | ||
127 | * Fix LoRaWAN lost connection with the server, not being displayed correctly | ||
128 | * Optimized the IoOptimized the IT keepalive detection.((( | ||
129 | When the gateway's network is unreachable, the sys led will switch to red and wait for the network to recover | ||
130 | Once the network is back in access, the gateway will reload the running server(draginofwd) | ||
131 | ))) | ||
132 | ))) | ||
133 | |(% style="background-color:#f2f2f2; width:118px" %) |(% style="background-color:#f2f2f2; width:255px" %) |(% style="background-color:#f2f2f2; width:383px" %) | ||
134 | |(% style="background-color:#f2f2f2; width:118px" %) |(% style="background-color:#f2f2f2; width:255px" %) |(% style="background-color:#f2f2f2; width:383px" %) | ||
135 | |(% style="background-color:#f2f2f2; width:118px" %) |(% style="background-color:#f2f2f2; width:255px" %) |(% style="background-color:#f2f2f2; width:383px" %) | ||
136 | |||
137 | (% style="display:none" %) | ||
138 | |||
139 | |||
140 | == 3.3 For LG01v2 == | ||
141 | |||
142 | |||
143 | (% border="1" cellspacing="5" style="width:774.222px" %) | ||
144 | |(% style="background-color:#d9e2f3; color:#0070c0; width:126px" %)**Date**|(% style="background-color:#d9e2f3; color:#0070c0; width:252px" %)**Main Packages**|(% style="background-color:#d9e2f3; color:#0070c0; width:392px" %)**Change Log** | ||
145 | |(% style="background-color:#f2f2f2; width:126px" %) |(% style="background-color:#f2f2f2; width:252px" %) |(% style="background-color:#f2f2f2; width:392px" %) | ||
146 | |(% style="background-color:#f2f2f2; width:126px" %) |(% style="background-color:#f2f2f2; width:252px" %) |(% style="background-color:#f2f2f2; width:392px" %) | ||
147 | |||
148 | (% style="display:none" %) | ||
149 | |||
150 | |||
151 | == 3.4 TODO list == | ||
152 | |||
153 | |||
154 | * Solve "DC no in band" issue for Senet Downink in EU868 band. | ||
155 | * Fixed fwd IN865 global configuration. | ||
156 | * Fixed Basic-station no connection after gateway reboot/power cycle. | ||
157 | * Fix GPS time issue | ||
158 | * Online/offline detect and reload improvement for LPS8v2 for UDP Connection. | ||
159 | * Online/offline detect and reload improvement for LPS8v2 for Chirpstack Gateway-Bridge Connection | ||
160 | * Fix Redis Memory Leak for build-in TTS | ||
161 | * Fix AS923 Frequency Band Typo in Web (LPS8v2) | ||
162 | |||
163 | (% style="display:none" %) | ||
164 | |||
165 | |||
166 | == 3.5 Finish list == | ||
167 | |||
168 | |||
169 | * Add Fall Back IP to LPS8v2 | ||
170 | * Add Login-Authentication | ||
171 | |||
172 | (% style="display:none" %) | ||
173 | |||
174 | |||
175 | = 4. Disable OTA Update = | ||
176 | |||
177 | |||
178 | It is possible for clients to disable OTA update feature. Below is the instruction: | ||
179 | |||
180 | |||
181 | |||
182 | |||
183 | |||
184 |