Wiki source code of Firmware Upgrade Instruction -- ASR
Version 16.1 by Edwin Chen on 2022/09/05 23:17
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.11 | 1 | (% class="wikigeneratedid" %) |
![]() |
14.2 | 2 | **~ Table of Contents:** |
![]() |
1.11 | 3 | |
4 | {{toc/}} | ||
5 | |||
6 | |||
![]() |
1.2 | 7 | = 1. Introduction = |
![]() |
1.1 | 8 | |
![]() |
14.2 | 9 | |
![]() |
1.2 | 10 | This article shows the firmware upgrade method and troubleshooting for the below models Dragino sensors. |
![]() |
1.1 | 11 | |
![]() |
3.2 | 12 | |
![]() |
1.2 | 13 | = 2. Model and Connection = |
![]() |
1.1 | 14 | |
![]() |
1.2 | 15 | == 2.1 LDS01/LWL01 == |
![]() |
1.1 | 16 | |
![]() |
14.2 | 17 | |
![]() |
1.2 | 18 | [[Firmware Location>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LDS01/Firmware/]] |
![]() |
1.1 | 19 | |
![]() |
14.2 | 20 | |
![]() |
1.12 | 21 | ((( |
![]() |
1.2 | 22 | Pin Mapping: |
![]() |
1.12 | 23 | ))) |
![]() |
1.1 | 24 | |
![]() |
6.2 | 25 | [[image:image-20220527083845-1.png||height="473" width="915"]] |
![]() |
1.1 | 26 | |
![]() |
1.2 | 27 | LDS01/LWL01 Pin Mapping |
![]() |
1.1 | 28 | |
![]() |
3.2 | 29 | |
![]() |
15.2 | 30 | **DAP-Link Connection:** |
![]() |
1.1 | 31 | |
![]() |
3.2 | 32 | [[image:image-20220527083959-2.png]] |
![]() |
1.1 | 33 | |
![]() |
1.2 | 34 | Connect DAP-Link |
35 | |||
![]() |
1.1 | 36 | |
![]() |
15.2 | 37 | |
![]() |
1.2 | 38 | == 2.2 LDS02/LWL02 == |
![]() |
1.1 | 39 | |
![]() |
14.2 | 40 | |
![]() |
1.2 | 41 | [[Firmware Location(same as LDS01)>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LDS01/Firmware/]] |
![]() |
1.1 | 42 | |
![]() |
14.2 | 43 | |
![]() |
1.12 | 44 | ((( |
![]() |
1.2 | 45 | Pin Mapping: |
![]() |
1.12 | 46 | ))) |
![]() |
1.1 | 47 | |
![]() |
6.2 | 48 | [[image:image-20220527084041-3.png||height="378" width="907"]] |
![]() |
1.1 | 49 | |
![]() |
1.2 | 50 | LDS02/LDS02 v2.0 Pin Mapping |
51 | |||
52 | |||
![]() |
14.2 | 53 | |
![]() |
6.2 | 54 | [[image:image-20220527084230-4.png]] |
55 | |||
![]() |
1.2 | 56 | LDS02/LDS02 v2.2 Pin Mapping |
57 | |||
58 | |||
![]() |
14.2 | 59 | |
![]() |
1.2 | 60 | == 2.3 LHT52 == |
61 | |||
![]() |
14.2 | 62 | |
![]() |
1.8 | 63 | [[Firmware Location>>https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LHT52/firmware/]] |
![]() |
1.2 | 64 | |
![]() |
6.2 | 65 | [[image:image-20220527084401-5.png]] |
![]() |
1.2 | 66 | |
67 | LHT52 Pin Mapping | ||
68 | |||
![]() |
6.2 | 69 | |
![]() |
15.2 | 70 | |
![]() |
1.2 | 71 | = 3. How to Upgrade = |
72 | |||
73 | == 3.1 Use DAP-Link and Connect to the Device as above photos == | ||
74 | |||
![]() |
14.2 | 75 | |
![]() |
1.2 | 76 | We need to connect VDD,GND,SWCLK,SWDIO to DAP-Link. |
77 | |||
78 | * Connection method: | ||
79 | |||
80 | * GND-GND, | ||
81 | |||
82 | * VDD-3.3V, | ||
83 | |||
84 | * SWCLK-CLK, | ||
85 | |||
86 | * SWDIO-SWD | ||
87 | |||
![]() |
7.2 | 88 | [[image:image-20220527084505-6.png]] |
![]() |
1.2 | 89 | |
90 | |||
![]() |
15.2 | 91 | |
![]() |
1.2 | 92 | == 3.2 Install PSoCProgrammer 3.27.1 == |
93 | |||
![]() |
14.2 | 94 | |
![]() |
1.11 | 95 | ((( |
![]() |
1.2 | 96 | Download Link: [[PSoCProgrammer3.27.1>>url:https://www.dragino.com/downloads/index.php?dir=tools/]] |
![]() |
1.11 | 97 | ))) |
![]() |
1.2 | 98 | |
![]() |
1.11 | 99 | ((( |
![]() |
16.1 | 100 | And then use PSoCProgrammer to upgrade the firmware ( (% style="color:red" %) must use this version: PSoCProgrammer3.27.1 (%%)) |
![]() |
1.11 | 101 | ))) |
![]() |
1.2 | 102 | |
![]() |
12.2 | 103 | [[image:image-20220527084537-7.png]] |
![]() |
1.2 | 104 | |
105 | |||
![]() |
15.2 | 106 | |
![]() |
1.2 | 107 | == 3.3 Download Sensor Firmware == |
108 | |||
![]() |
14.2 | 109 | |
![]() |
1.2 | 110 | Downlink sensor firmware to prepare the update |
111 | |||
112 | |||
![]() |
15.2 | 113 | |
![]() |
1.2 | 114 | == 3.4 Upgrade Firmware == |
115 | |||
![]() |
14.2 | 116 | |
![]() |
1.2 | 117 | Open PSOC Programmer, select the default configuration, no need to modify |
118 | |||
![]() |
12.2 | 119 | [[image:image-20220527084612-8.png]] |
![]() |
1.2 | 120 | |
![]() |
12.2 | 121 | |
![]() |
1.2 | 122 | Click the file icon to select the software to be burned: |
123 | |||
![]() |
12.2 | 124 | [[image:image-20220527084705-9.png]] |
![]() |
1.2 | 125 | |
126 | |||
![]() |
12.2 | 127 | [[image:image-20220527084739-10.png||height="453" width="1034"]] |
![]() |
1.2 | 128 | |
![]() |
12.2 | 129 | |
![]() |
14.2 | 130 | |
![]() |
1.10 | 131 | ((( |
![]() |
1.2 | 132 | Click the download icon, and the progress bar as shown in the figure below will appear. When PASS appears, it proves that the burning is successful. |
![]() |
1.10 | 133 | ))) |
![]() |
1.2 | 134 | |
![]() |
12.2 | 135 | [[image:image-20220527084831-11.png]] |
![]() |
1.2 | 136 | |
137 | |||
![]() |
13.2 | 138 | [[image:image-20220527084907-12.png]] |
139 | |||
![]() |
1.9 | 140 | ((( |
![]() |
1.2 | 141 | It is very important to press the reset button after the upgrade., this is to set the device to work in Low Power mode |
![]() |
1.9 | 142 | ))) |
![]() |
1.2 | 143 | |
![]() |
1.9 | 144 | ((( |
![]() |
14.2 | 145 | (% style="color:red" %)If you change different LoRa Frequency Bands/Region, you need using AT+FDR command to restore factory data after program success. |
![]() |
13.2 | 146 | |
![]() |
15.2 | 147 | |
![]() |
13.2 | 148 | |
![]() |
1.9 | 149 | ))) |
![]() |
1.2 | 150 | |
151 | = 4. Trouble Shooting = | ||
152 | |||
153 | == 4.1 Unable to detect upgrade == | ||
154 | |||
![]() |
14.2 | 155 | |
![]() |
1.2 | 156 | * Try to shot the bootloader pin to GND and reset the device. So the device will runs in bootloader mode. |
![]() |
15.3 | 157 | * Or use **AT+IREBOOT=7** to set the device to work in bootloader mode. |