Wiki source code of Firmware Upgrade Instruction -- ASR
Last modified by Mengting Qiu on 2024/07/01 09:19
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 |
![]() |
1.1 | 35 | |
![]() |
15.2 | 36 | |
![]() |
1.2 | 37 | == 2.2 LDS02/LWL02 == |
![]() |
1.1 | 38 | |
![]() |
14.2 | 39 | |
![]() |
16.3 | 40 | [[Firmware Location(same as LDS01)>>https://www.dropbox.com/sh/9j35mnsxnz0y3ye/AACj5gHGOURGEHCpj-E861Mua?dl=0]] |
![]() |
1.1 | 41 | |
![]() |
14.2 | 42 | |
![]() |
1.12 | 43 | ((( |
![]() |
1.2 | 44 | Pin Mapping: |
![]() |
1.12 | 45 | ))) |
![]() |
1.1 | 46 | |
![]() |
6.2 | 47 | [[image:image-20220527084041-3.png||height="378" width="907"]] |
![]() |
1.1 | 48 | |
![]() |
1.2 | 49 | |
50 | |||
![]() |
14.2 | 51 | |
![]() |
17.1 | 52 | **LDS02/LDS02 v2.0 Pin Mapping** |
53 | |||
54 | Connector Type: 2.0mm pitch, 2 x 3 | ||
55 | |||
![]() |
6.2 | 56 | [[image:image-20220527084230-4.png]] |
57 | |||
![]() |
1.2 | 58 | LDS02/LDS02 v2.2 Pin Mapping |
59 | |||
60 | |||
![]() |
19.1 | 61 | == 2.3 LHT52 == |
![]() |
1.2 | 62 | |
![]() |
14.2 | 63 | |
![]() |
16.3 | 64 | [[Firmware Location>>https://www.dropbox.com/sh/ayxhuf5dihtfu6c/AABRe_suu54EdTSFZIbD7t-ea?dl=0]] |
![]() |
1.2 | 65 | |
![]() |
6.2 | 66 | [[image:image-20220527084401-5.png]] |
![]() |
1.2 | 67 | |
68 | LHT52 Pin Mapping | ||
69 | |||
70 | = 3. How to Upgrade = | ||
71 | |||
72 | == 3.1 Use DAP-Link and Connect to the Device as above photos == | ||
73 | |||
![]() |
14.2 | 74 | |
![]() |
1.2 | 75 | We need to connect VDD,GND,SWCLK,SWDIO to DAP-Link. |
76 | |||
77 | * Connection method: | ||
78 | |||
79 | * GND-GND, | ||
80 | |||
81 | * VDD-3.3V, | ||
82 | |||
83 | * SWCLK-CLK, | ||
84 | |||
85 | * SWDIO-SWD | ||
86 | |||
![]() |
7.2 | 87 | [[image:image-20220527084505-6.png]] |
![]() |
1.2 | 88 | |
89 | |||
![]() |
15.2 | 90 | |
![]() |
1.2 | 91 | == 3.2 Install PSoCProgrammer 3.27.1 == |
92 | |||
![]() |
14.2 | 93 | |
![]() |
1.11 | 94 | ((( |
![]() |
1.2 | 95 | Download Link: [[PSoCProgrammer3.27.1>>url:https://www.dragino.com/downloads/index.php?dir=tools/]] |
![]() |
1.11 | 96 | ))) |
![]() |
1.2 | 97 | |
![]() |
1.11 | 98 | ((( |
![]() |
17.1 | 99 | And then use PSoCProgrammer to upgrade the firmware ( (% style="color:red" %)**must use this version: PSoCProgrammer3.27.1** (%%)) |
![]() |
1.11 | 100 | ))) |
![]() |
1.2 | 101 | |
![]() |
12.2 | 102 | [[image:image-20220527084537-7.png]] |
![]() |
1.2 | 103 | |
104 | |||
105 | == 3.3 Download Sensor Firmware == | ||
106 | |||
![]() |
14.2 | 107 | |
![]() |
16.3 | 108 | Downlink sensor firmware to prepare the update. |
![]() |
1.2 | 109 | |
110 | |||
111 | == 3.4 Upgrade Firmware == | ||
112 | |||
![]() |
14.2 | 113 | |
![]() |
1.2 | 114 | Open PSOC Programmer, select the default configuration, no need to modify |
115 | |||
![]() |
12.2 | 116 | [[image:image-20220527084612-8.png]] |
![]() |
1.2 | 117 | |
![]() |
12.2 | 118 | |
![]() |
1.2 | 119 | Click the file icon to select the software to be burned: |
120 | |||
![]() |
12.2 | 121 | [[image:image-20220527084705-9.png]] |
![]() |
1.2 | 122 | |
123 | |||
![]() |
12.2 | 124 | [[image:image-20220527084739-10.png||height="453" width="1034"]] |
![]() |
1.2 | 125 | |
![]() |
12.2 | 126 | |
![]() |
14.2 | 127 | |
![]() |
1.10 | 128 | ((( |
![]() |
1.2 | 129 | 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 | 130 | ))) |
![]() |
1.2 | 131 | |
![]() |
12.2 | 132 | [[image:image-20220527084831-11.png]] |
![]() |
1.2 | 133 | |
134 | |||
![]() |
13.2 | 135 | [[image:image-20220527084907-12.png]] |
136 | |||
![]() |
16.3 | 137 | |
![]() |
1.9 | 138 | ((( |
![]() |
16.3 | 139 | (% style="color:red" %)**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 | 140 | ))) |
![]() |
1.2 | 141 | |
![]() |
1.9 | 142 | ((( |
![]() |
16.3 | 143 | (% style="color:red" %)**If you change different LoRa Frequency Bands/Region, you need using **(% style="color:blue" %)**AT+FDR **(% style="color:red" %)**command to restore factory data after program success.** |
![]() |
16.2 | 144 | ))) |
![]() |
13.2 | 145 | |
![]() |
15.2 | 146 | |
![]() |
1.2 | 147 | = 4. Trouble Shooting = |
148 | |||
149 | == 4.1 Unable to detect upgrade == | ||
150 | |||
![]() |
14.2 | 151 | |
![]() |
1.2 | 152 | * Try to shot the bootloader pin to GND and reset the device. So the device will runs in bootloader mode. |
![]() |
16.2 | 153 | |
![]() |
16.3 | 154 | * Or use (% style="color:blue" %)**AT+IREBOOT=7**(%%) to set the device to work in bootloader mode. |