Version 20.2 by Xiaoling on 2023/06/01 15:14

Hide last authors
Edwin Chen 8.1 1 **Table of Contents:**
2
3 {{toc/}}
4
5
Xiaoling 11.2 6
Xiaoling 10.2 7 = 1. Overview =
Edwin Chen 1.1 8
Xiaoling 10.2 9
Edwin Chen 1.1 10 There are some new models of Dragino sensors support OTA update via Private LoRa Protocol, (Even the sensor runs LoRaWAN protocol by default)
11
12
Xiaoling 10.2 13 = 2. Support Models =
14
15
Edwin Chen 1.1 16 Here list the models that support OTA Update.
17
Edwin Chen 2.1 18
Edwin Chen 1.1 19 {{velocity}}
20 $xwiki.ssfx.use("js/xwiki/table/table.css")
21 $xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
22 {{/velocity}}
23
Xiaoling 20.2 24 (% border="1" cellspacing="5" class="doOddEven filterable grid sortable" id="tableid" style="background-color:#f2f2f2; width:670px" %)
Xiaoling 11.4 25 (% class="sortHeader" %)|=(% style="width: 193px;background-color:#D9E2F3" %)Models|=(% style="width: 222px;background-color:#D9E2F3" %)Firmware Version|=(% style="width: 251px;background-color:#D9E2F3" %)Comments
Xiaoling 11.2 26 |(% style="width:193px" %)PS-LB, SDI-12-LB|(% style="width:222px" %)All firmware version|(% style="width:251px" %)
Edwin Chen 11.1 27 |(% style="width:193px" %)SN50v3-LB|(% style="width:222px" %)All firmware version|(% style="width:251px" %)
Edwin Chen 12.1 28 |(% style="width:193px" %)D20-LB/D20S/LB/D22-LB/D23-LB|(% style="width:222px" %)All firmware version|(% style="width:251px" %)
29 |(% style="width:193px" %)(((
30 LHT65N-PIR,LHT65N-E31F
31 )))|(% style="width:222px" %)All firmware version|(% style="width:251px" %)
32 |(% style="width:193px" %)S31-LB, S31B-LB|(% style="width:222px" %)All firmware version|(% style="width:251px" %)
Edwin Chen 2.1 33
Xiaoling 20.2 34
35
Xiaoling 10.2 36 = 3. How to do OTA update =
37
38 == 3.1 Required Components ==
39
40
Edwin Chen 7.1 41 * Hardware: [[LA66 USB>>doc:Main.User Manual for LoRaWAN End Nodes.LA66 USB LoRaWAN Adapter User Manual.WebHome]] with [[OTA_firmware>>https://www.dropbox.com/sh/4qnjreg1esxu16i/AADbRjW_tuBP3IIkmf11nSoma?dl=0]] installed.
Xiaoling 20.2 42
Edwin Chen 7.1 43 * Software: [[OTA_Tool>>https://www.dropbox.com/sh/4qnjreg1esxu16i/AADbRjW_tuBP3IIkmf11nSoma?dl=0]]. Only support Windows now
44
Xiaoling 20.2 45
Edwin Chen 16.1 46 [[image:image-20230513120722-2.png||height="409" width="866"]]
Edwin Chen 7.1 47
Edwin Chen 14.1 48
Xiaoling 10.2 49 == 3.2 Update Steps ==
50
51
52 === (% style="color:blue" %)**Step1 :**(%%) Plug LA66 USB to PC and run OTA_Tool. ===
53
54
Edwin Chen 7.1 55 [[image:image-20230114172703-1.png]]
56
57
Xiaoling 10.2 58 === (% style="color:blue" %)**Step2:**(%%) Set up OTA Tool ===
Edwin Chen 7.1 59
60
Xiaoling 10.2 61 * (% style="color:blue" %)**DevEUI**(%%): Input Dev EUI of your sensor
62
63 * (% style="color:blue" %)**Password**(%%): Passord of your sensor
64
65 * (% style="color:blue" %)**Port**(%%): Com port of LA66 USB
66
67 * (% style="color:blue" %)**LoRa_Freq**(%%): Choose the shipped frequency band of your sensor.
68
69 * (% style="color:blue" %)**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.
70
71 * (% style="color:blue" %)**EUI 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:
72
Edwin Chen 7.1 73 [[image:image-20230114174640-3.png||height="130" width="1169"]]
74
75
Xiaoling 10.2 76 === (% style="color:blue" %)**Step3:**(%%) Press Start in OTA Tool and then Press Reset button to restart LA66 USB ===
Edwin Chen 7.1 77
Xiaoling 10.2 78
Edwin Chen 7.1 79 After press reset button, LA66 USB will restart and broadcast update process with the Dev EUI and Password.
80
81
Xiaoling 10.2 82 === (% style="color:blue" %)**Step4:** (%%)Press reset button on the end node, or re-activate the end node. ===
Edwin Chen 7.1 83
Xiaoling 10.2 84
Edwin Chen 7.1 85 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.
86
87
Xiaoling 10.2 88 === (% style="color:blue" %)**Step5:**(%%) Check result. ===
Edwin Chen 7.1 89
Xiaoling 10.2 90
Edwin Chen 7.1 91 Below shows the update successul result.
92
93 [[image:image-20230114174134-2.png]]
94
95
Edwin Chen 14.1 96 = 4. FAQ =
Edwin Chen 7.1 97
Edwin Chen 14.1 98 == 4.1 Can i use other devices to connect to PC if i don't have LA66 USB? ==
99
100
Xiaoling 20.2 101 If user doesn't have LA66 USB Adapter, they can still use other Dragino Device to connect to PC for OTA update.
102
103 (% style="color:blue" %)**Steps:**
104
Edwin Chen 14.1 105 * Find the suitable mode which base on LA66 chip ( All LoRaWAN model with LB or LS suffix , such as SN50v3-LB)
Xiaoling 20.2 106
Edwin Chen 14.1 107 * Update the LA66 USB OTA firmware to the device.
Xiaoling 20.2 108
Edwin Chen 14.1 109 * Connect the device to PC via UART interface.
Xiaoling 20.2 110
Edwin Chen 14.1 111 * 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.
112
Xiaoling 20.2 113
114
Edwin Chen 19.1 115 == 4.2 Where to find OTA Password? ==
116
Xiaoling 20.2 117
Edwin Chen 19.1 118 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>>mailto:support@dragino.com]] . and we will search the password for you.
119
120 [[image:image-20230519102907-2.png||height="286" width="580"]]
121
122
Edwin Chen 20.1 123 == 4.3 How about if i upgrade a crashed firmware via OTA update? ==
Edwin Chen 19.1 124
Edwin Chen 20.1 125
Xiaoling 20.2 126 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.
Edwin Chen 20.1 127
Xiaoling 20.2 128 (% style="color:red" %)**Here are notice:**
Edwin Chen 20.1 129
Xiaoling 20.2 130 ~1. OTA update frequency depend on the firmware frequency. If there is no frequency in the firmware. Bootloader will use EU868 as default frequency.
Edwin Chen 20.1 131
Xiaoling 20.2 132 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.
133
134
Edwin Chen 14.1 135 = 5. OTA Tool Known Bug: =
136
137
Xiaoling 10.2 138 ~1. If user click "(% style="color:blue" %)**Start**"(%%) but there is issue during update. User may need to close and open the tool again.
Edwin Chen 7.1 139
140
141
142
143