Changes for page Communicate with ABP End Node on the LPS8-V2 Gateway
Last modified by Xiaoling on 2024/08/19 15:29
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -20,7 +20,6 @@ 20 20 * Just storing the data on the gateway or external storage 21 21 22 22 23 - 24 24 **The basic of this feature is the decoding of** (% style="color:blue" %)**LoRaWAN ABP End Node**(%%). **Requirements:** 25 25 26 26 1. LoRaWAN End Node in ABP mode. Make sure your end node works in this mode. End node most are default set to OTAA mode ... ... @@ -37,7 +37,6 @@ 37 37 Once the gateway is DHCP an IPV4 address, and then you can access the build-in server TTN-Stack. 38 38 39 39 40 - 41 41 == 2.1. Configure the gateway mode == 42 42 43 43 ... ... @@ -44,7 +44,6 @@ 44 44 You can access the gateway's Manage Web UI, via the URL ( (% style="color:blue" %)__**//http:~/~/<hostname> or http:~/~/<local-IPV4-address> //**__(%%)) in your browser 45 45 46 46 47 - 48 48 === (% style="color:#037691" %)**Selecting the right frequency band**(%%) === 49 49 50 50 ... ... @@ -51,7 +51,6 @@ 51 51 [[image:image-20220802142103-1.png]] 52 52 53 53 54 - 55 55 === (% style="color:#037691" %)**Configure the Semtech UDP forwarder**(%%) === 56 56 57 57 ... ... @@ -58,7 +58,6 @@ 58 58 [[image:image-20220802142147-3.png]] 59 59 60 60 61 - 62 62 == 2.2. Login to the built-in server TTN-Stack == 63 63 64 64 ... ... @@ -77,7 +77,6 @@ 77 77 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/HP0C/WebHome/image-20220725171719-1.png?width=769&height=570&rev=1.1||alt="image-20220725171719-1.png"]] 78 78 79 79 80 - 81 81 == 2.3. Add the gateway & the sensor == 82 82 83 83 ... ... @@ -84,7 +84,6 @@ 84 84 Here only show the image of the finish, more details about how to add the gateway & sensor refer to this wiki: 85 85 86 86 87 - 88 88 === (% style="color:#037691" %)**Add the gateway**(%%) === 89 89 90 90 ... ... @@ -91,7 +91,6 @@ 91 91 [[image:image-20220802142946-5.png]] 92 92 93 93 94 - 95 95 === (% style="color:#037691" %)**Add the Sensor**(%%) === 96 96 97 97 ... ... @@ -98,7 +98,6 @@ 98 98 [[image:image-20220802143031-6.png||height="794" width="1375"]] 99 99 100 100 101 - 102 102 == 2.4. Add the decoder == 103 103 104 104 ... ... @@ -108,7 +108,6 @@ 108 108 [[image:image-20220802143129-7.png]] 109 109 110 110 111 - 112 112 == 2.5. Visual Data == 113 113 114 114 ... ... @@ -120,7 +120,6 @@ 120 120 [[image:image-20220802143214-8.png]] 121 121 122 122 123 - 124 124 = 3. Forward the data or store the data = 125 125 126 126 ... ... @@ -127,34 +127,30 @@ 127 127 You are done most of the work, now you just need to plan the flow of data to where. 128 128 129 129 130 - 131 131 == 3.1 Forward data to an external server based on MQTT/HTTP. == 132 132 133 133 122 +=== (% style="color:blue" %)**MQTT**(%%) === 134 134 135 -=== (% style="color:#037691" %)**MQTT**(%%) === 136 136 125 +You need to connect to this public address on your external server and subscribe to the topic (% style="color:#037691" %)**(v3/<application_name>/devices/<devices_name>/up)**. 137 137 138 -You need to connect to this public address on your external server and subscribe to the topic **(v3/<application_name>/devices/<devices_name>/up)**. 139 139 140 - 141 141 [[image:image-20220802144754-9.png]] 142 142 143 143 144 -**subscribe to the topic and get the data** 131 +(% style="color:#037691" %)**subscribe to the topic and get the data** 145 145 146 146 [[image:image-20220802145408-10.png]] 147 147 148 148 149 149 137 +=== (% style="color:blue" %)**HTTP**(%%) === 150 150 151 -=== (% style="color:#037691" %)**HTTP**(%%) === 152 152 153 - 154 154 [[image:image-20220802145450-11.png||height="676" width="1164"]] 155 155 156 156 157 - 158 158 == 3.2 Forward data to the built-in application server Node-Red. == 159 159 160 160 ... ... @@ -161,13 +161,12 @@ 161 161 [[image:image-20220802150715-1.png||height="739" width="1171"]] 162 162 163 163 164 - 165 165 == 3.3 Just storing the data on the gateway or external storage. == 166 166 167 167 168 168 Data can be stored or read by subscribing to topics: (% style="color:#037691" %)**v3/<application_name>/devices/<devices_name>/up**. 169 169 170 -Then add the storage node **(write file)**, Users can download the Node-Red flowchart from this link to test data storage:[[attach:test_data_storage.json||target="_blank"]] 154 +Then add the storage node (% style="color:#037691" %)**(write file)**(%%), Users can download the Node-Red flowchart from this link to test data storage:[[attach:test_data_storage.json||target="_blank"]] 171 171 172 172 After the configuration is complete, users can find the node logs in the root/ directory 173 173 ... ... @@ -178,8 +178,6 @@ 178 178 [[image:image-20220806153112-9.png||height="575" width="1167"]] 179 179 180 180 181 - 182 - 183 183 [[image:image-20220806153048-8.png||height="608" width="1165"]] 184 184 185 185 ... ... @@ -186,19 +186,22 @@ 186 186 [[image:image-20220806153150-10.png]] 187 187 188 188 189 - 190 190 = 4. Sent the downlink to the sensor = 191 191 192 192 193 193 Downlinks can be scheduled by publishing the message to the topic (% style="color:#037691" %)** v3/<application_name>/devices/<devices_name>/down/push**. 194 194 176 + 195 195 (% style="color:red" %)**Note**: **Remember that the format of this topic for The Things Stack Open Source deployment would be (v3/<application_name>/devices/<devices_name>/down/push).** 196 196 179 + 197 197 [[MQTT Server ~| The Things Stack for LoRaWAN (thethingsindustries.com)>>url:https://www.thethingsindustries.com/docs/integrations/mqtt/]] 198 198 199 199 200 -Instead of /push, you can also use /replace to replace the downlink queue. Replacing with an empty array clears the downlink queue. Example:183 +Instead of /push, you can also use /replace to replace the downlink queue. Replacing with an empty array clears the downlink queue. 201 201 185 +Example: 186 + 202 202 (% class="box" %) 203 203 ((( 204 204 { ... ... @@ -217,9 +217,8 @@ 217 217 [[image:image-20220802164844-3.png||height="345" width="1131"]] 218 218 219 219 205 +(% style="color:blue" %)**Node-red** 220 220 221 -**Node-red** 222 - 223 223 Users can download the Node-Red flowchart for testing [[attach:mqtt-test.json||target="_blank"]] 224 224 225 225 ... ... @@ -226,7 +226,6 @@ 226 226 [[image:image-20220802172021-6.png||height="455" width="1240"]] 227 227 228 228 229 - 230 230 = 5. Trouble Shootings = 231 231 232 232