Last modified by Xiaoling on 2023/04/20 18:14
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,4 +1,5 @@ 1 -**Table of Contents:** 1 +* 2 +** Table of** **Contents: 2 2 3 3 {{toc/}} 4 4 ... ... @@ -20,7 +20,6 @@ 20 20 1. LoRaWAN Gateway model: [[LPS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/148-lps8.html]], [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]], [[DLOS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/160-dlos8.html]] ,[[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.html]] 21 21 1. Firmware version for below instruction:**[[(% style="color:purple" %)Since LG02_LG08~~-~~-build-v5.4.1593400722-20200629-1120>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]](%%)** 22 22 23 - 24 24 = 2. How it works = 25 25 26 26 ... ... @@ -132,27 +132,22 @@ 132 132 Above scripts are store in /etc/lora/decoder/. User can put their scripts here and select it in the UI. 133 133 134 134 135 - 136 136 === 2.2.2 How to Decode My End Node === 137 137 138 138 139 - **1.**Configure the ABP keys for your end node in the gateway. enable ABP decode in Web UI138 +1/ Configure the ABP keys for your end node in the gateway. enable ABP decode in Web UI 140 140 141 - **2.**Don't choose MQTT service, use LoRaWAN.140 +2/ Don't choose MQTT service, use LoRaWAN. 142 142 143 - **3.**When your end node send a message to the gateway, there will be a file store in /var/iot/channels. full path should be /var/iot/channels/END_NODE_DEV_ADDR142 +3/ When your end node send a message to the gateway, there will be a file store in /var/iot/channels. full path should be /var/iot/channels/END_NODE_DEV_ADDR 144 144 145 - **4.**Use the /etc/lora/decoder/Dragino_LHT65 as template to decode your payload. This script is written in Lua language. User can manually call this script when you see the data file in /var/iot/channels by running:144 +4/ Use the /etc/lora/decoder/Dragino_LHT65 as template to decode your payload. This script is written in Lua language. User can manually call this script when you see the data file in /var/iot/channels by running: 146 146 147 147 {{{/etc/lora/decoder/Dragino_LHT65 END_NODE_DEV_ADDR 148 148 }}} 149 149 150 - **5.**What you see as output is the MQTT data device will upload, user's end node has different payload compare with LHT65, most properly this file will report with error. User need to modify to match the actual payload.149 +5/ What you see as output is the MQTT data device will upload, user's end node has different payload compare with LHT65, most properly this file will report with error. User need to modify to match the actual payload. Some notice: 151 151 152 - 153 -(% style="color:red" %) 154 -**Some notice:** 155 - 156 156 * RSSI and SNR are added when gateway receive the packet, so there is always this field. 157 157 * If you rename the file, please make it executable. 158 158 * See this link for lua.bit module: [[http:~~/~~/luaforge.net/projects/bit/>>url:http://luaforge.net/projects/bit/]] ... ... @@ -194,8 +194,6 @@ 194 194 * **rxwindow:** transmit on Rx1Window or Rx2Window. 195 195 196 196 197 - 198 - 199 199 (% style="color:blue" %)**Completely exmaple:** 200 200 201 201 * **Old version:** echo 018193F4,imme,hex,0101 > /var/iot/push/test ... ... @@ -203,7 +203,6 @@ 203 203 204 204 205 205 206 - 207 207 (% style="color:#037691" %)**Downstream Frequency** 208 208 209 209 The LG308 will use the RX2 window info to send the downstream payload, use the default LoRaWAN settings, as below: ... ... @@ -219,7 +219,6 @@ 219 219 220 220 221 221 222 - 223 223 (% style="color:#037691" %)**Examples:** 224 224 225 225 (% class="box" %)