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