Changes for page Notes for TTN
Last modified by Mengting Qiu on 2024/08/20 17:29
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -62,13 +62,9 @@ 62 62 63 63 === 2.2.2 Below list the support products and Requirements: === 64 64 65 -((( 66 -~1. LoRaWAN Gateway model: [[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.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]] [[LPS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/148-lps8.html]] 67 -))) 65 +1. LoRaWAN Gateway model: [[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.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]] [[LPS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/148-lps8.html]] 68 68 69 -((( 70 -2. Firmware version since :[[lgw~~-~~-build-v5.4.1644658774>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LIG16/Firmware/Release/]] 71 -))) 67 +1. Firmware version since :[[lgw~~-~~-build-v5.4.1644658774>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LIG16/Firmware/Release/]] 72 72 73 73 === 2.2.3 Example === 74 74 ... ... @@ -95,54 +95,38 @@ 95 95 == 3.1 Introduction == 96 96 97 97 ((( 98 -((( 99 99 The LoRa Basics™ Station protocol simplifies management of large scale LoRaWAN networks. LoRa Basics™ Station is the preferred way of connecting Gateways to The Things Stack. [[The LoRa Basics Station doc>>url:https://www.thethingsindustries.com/docs/gateways/lora-basics-station/]] 100 100 ))) 101 -))) 102 102 103 -((( 104 104 **Below list the support products and Requirements:** 105 -))) 106 106 107 -((( 108 -((( 109 - ~1. LoRaWAN Gateway model: [[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.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]] [[LPS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/148-lps8.html]] 99 +1. ((( 100 +LoRaWAN Gateway model: [[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.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]] [[LPS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/148-lps8.html]] 110 110 ))) 111 111 112 -((( 113 - 2.Firmware version since :[[lgw~~-~~-build-v5.4.1640315898>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]]103 +1. ((( 104 +Firmware version since :[[lgw~~-~~-build-v5.4.1640315898>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]] 114 114 ))) 115 -))) 116 116 117 -((( 118 118 **What do you need to prepare** 119 -))) 120 120 121 121 ((( 122 -((( 123 123 A gateway that can access the internet normally 124 124 ))) 125 -))) 126 126 127 127 == 3.2 Step 1. Add Gateway == 128 128 129 129 ((( 130 -((( 131 131 The example for **EU** 132 132 ))) 133 -))) 134 134 135 135 ((( 136 -((( 137 137 User can add your gateway into The Things Network V3 according to the previous step 138 138 ))) 139 -))) 140 140 141 141 ((( 142 -((( 143 143 Following picture is the successful added. 144 144 ))) 145 -))) 146 146 147 147 [[image:https://wiki.dragino.com/images/thumb/5/5f/Add_gateway_1.1.png/600px-Add_gateway_1.1.png||height="397" width="600"]] 148 148 ... ... @@ -161,7 +161,7 @@ 161 161 162 162 Create LNS API key 163 163 164 - (% style="color:red" %)**Note : Please copy the API key.**144 +**Note : Please copy the API key.** 165 165 166 166 == 3.4 Step 3. Update the gateway setting == 167 167 ... ... @@ -185,13 +185,11 @@ 185 185 186 186 **just to clarify.** 187 187 188 -(% class="box" %) 189 -((( 190 - CUPS Server URI ~-~-> Server Adress 191 - CUPS Authorization Key ~-~-> Server CUPS API Key 192 - LNS Authorization Key ~-~-> Server LNS API Key 193 - CUPS certificate ~-~-> Server CA(user can use the button to install the certificate by default) 194 -))) 168 +{{{ CUPS Server URI --> Server Adress 169 + CUPS Authorization Key --> Server CUPS API Key 170 + LNS Authorization Key --> Server LNS API Key 171 + CUPS certificate --> Server CA(user can use the button to install the certificate by default) 172 +}}} 195 195 196 196 [[image:https://wiki.dragino.com/images/thumb/8/8c/Confiure_station_cao.png/600px-Confiure_station_cao.png||height="321" width="600"]] 197 197 ... ... @@ -228,42 +228,30 @@ 228 228 = 4. Configure node connection to TTNv3 = 229 229 230 230 ((( 231 -((( 232 232 Following is an example for how to join the TTN v3 LoRaWAN Network. 233 233 ))) 234 -))) 235 235 236 236 ((( 237 -((( 238 238 The gateway is already set up to connect to the TTN network, so we now need to configure the TTNv3 server. 239 239 ))) 240 -))) 241 241 242 242 ((( 243 -((( 244 244 We take LES01 as an example. 245 245 ))) 246 -))) 247 247 248 248 == 4.1 Step1 == 249 249 250 250 ((( 251 -((( 252 252 Create a device in TTN with the OTAA keys from LSE01. 253 253 ))) 254 -))) 255 255 256 256 ((( 257 -((( 258 258 Each LSE01 is shipped with a sticker with the default device EUI as below: 259 259 ))) 260 -))) 261 261 262 262 ((( 263 -((( 264 264 You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot: 265 265 ))) 266 -))) 267 267 268 268 [[image:https://wiki.dragino.com/images/thumb/c/c7/TTNv3--01.png/600px-TTNv3--01.png||alt="TTNv3--01.png" height="277" width="600"]] 269 269 ... ... @@ -272,10 +272,8 @@ 272 272 == 4.2 Step2 == 273 273 274 274 ((( 275 -((( 276 276 There are all our nodes in the repository. Users can choose the corresponding brand, model, firmware version and frequency.The decoder and configuration information of the node are pre-configured.Users do not need to configure them. 277 277 ))) 278 -))) 279 279 280 280 [[image:https://wiki.dragino.com/images/thumb/f/fc/TTNv3--03.png/600px-TTNv3--03.png||alt="TTNv3--03.png" height="333" width="600"]] 281 281 ... ... @@ -296,30 +296,22 @@ 296 296 == 5.1 Introduction == 297 297 298 298 ((( 299 -((( 300 300 The Application Server exposes an MQTT server to work with streaming events. In order to use the MQTT server you need to create a new API key, which will function as connection password. You can also use an existing API key, as long as it has the necessary rights granted. 301 301 ))) 302 -))) 303 303 304 304 == 5.2 Create device steps at MQTT == 305 305 306 306 ((( 307 -((( 308 308 The user creates a new API KEY after creating a device on TTN V3. 309 309 ))) 310 -))) 311 311 312 312 ((( 313 -((( 314 314 Then copy the password and open MQTT.fx. 315 315 ))) 316 -))) 317 317 318 318 ((( 319 -((( 320 320 Fill in Broker Address and Broker port. 321 321 ))) 322 -))) 323 323 324 324 [[image:https://wiki.dragino.com/images/thumb/8/82/V3_MQTT1_.png/600px-V3_MQTT1_.png||alt="V3 MQTT1 .png" height="325" width="600"]] 325 325 ... ... @@ -330,9 +330,7 @@ 330 330 331 331 The Application Server publishes uplink traffic on the following topics: 332 332 333 -(% class="box" %) 334 -((( 335 - v3/{application id}@{tenant id}/devices/{device id}/join 289 +{{{ v3/{application id}@{tenant id}/devices/{device id}/join 336 336 v3/{application id}@{tenant id}/devices/{device id}/up 337 337 v3/{application id}@{tenant id}/devices/{device id}/down/queued 338 338 v3/{application id}@{tenant id}/devices/{device id}/down/sent ... ... @@ -341,41 +341,31 @@ 341 341 v3/{application id}@{tenant id}/devices/{device id}/down/failed 342 342 v3/{application id}@{tenant id}/devices/{device id}/service/data 343 343 v3/{application id}@{tenant id}/devices/{device id}/location/solved 344 - )))298 +}}} 345 345 346 346 ((( 347 -((( 348 -**Note**: Remember that the format of these topics for The Things Stack Open Source would contain {application id} instead of {application id}@{tenant id}. 301 +Note: Remember that the format of these topics for The Things Stack Open Source would contain {application id} instead of {application id}@{tenant id}. 349 349 ))) 350 -))) 351 351 352 352 [[image:https://wiki.dragino.com/images/thumb/d/dc/V3_MQTT3.png/600px-V3_MQTT3.png||alt="V3 MQTT3.png" height="400" width="600"]] 353 353 354 354 ((( 355 -((( 356 356 While you could subscribe to all of these topics separately, for the simplicity of this tutorial we use # to subscribe to all topics, i.e. to receive all uplink traffic. 357 357 ))) 358 -))) 359 359 360 360 [[image:https://wiki.dragino.com/images/thumb/e/e8/V3_MQTT4.jpg/600px-V3_MQTT4.jpg||alt="V3 MQTT4.jpg" height="326" width="600"]] 361 361 362 362 ((( 363 -((( 364 364 Downlinks can be scheduled by publishing the message to the topic v3/{application id}@{tenant id}/devices/{device id}/down/push. 365 365 ))) 366 -))) 367 367 368 368 ((( 369 -((( 370 -**Note**: Remember that the format of this topic for The Things Stack Open Source deployment would be v3/{application id}/devices/{device id}/down/push. 317 +Note: Remember that the format of this topic for The Things Stack Open Source deployment would be v3/{application id}/devices/{device id}/down/push. 371 371 ))) 372 -))) 373 373 374 374 ((( 375 -((( 376 376 Instead of /push, you can also use /replace to replace the downlink queue. Replacing with an empty array clears the downlink queue. Example: 377 377 ))) 378 -))) 379 379 380 380 [[image:https://wiki.dragino.com/images/thumb/e/e8/V3_MQTT5.png/600px-V3_MQTT5.png||alt="V3 MQTT5.png" height="289" width="600"]] 381 381 ... ... @@ -384,7 +384,7 @@ 384 384 ))) 385 385 386 386 ((( 387 - **Note**: Use this handy tool to convert hexadecimal to base64.331 +Note: Use this handy tool to convert hexadecimal to base64. 388 388 ))) 389 389 390 390 [[image:https://wiki.dragino.com/images/thumb/9/9f/V3_MQTT6.png/600px-V3_MQTT6.png||alt="V3 MQTT6.png" height="313" width="600"]] ... ... @@ -418,7 +418,7 @@ 418 418 ))) 419 419 420 420 ((( 421 - **Note**: If the downlink byte sent is longer, the number of bytes will be displayed.365 +Note: If the downlink byte sent is longer, the number of bytes will be displayed. 422 422 ))) 423 423 424 424 [[image:https://wiki.dragino.com/images/thumb/c/c9/Downlink_52.png/600px-Downlink_52.png||height="407" width="600"]] ... ... @@ -426,28 +426,20 @@ 426 426 downlink 427 427 428 428 ((( 429 -((( 430 430 If you want to get a successful reply to send downlink in TTN v3. You need to set the response level. 431 431 ))) 432 -))) 433 433 434 434 ((( 435 -((( 436 -If the equipment uses CLASS A. You can set **AT+RPL=2** or send the downlink command: **2102** 377 +If the equipment uses CLASS A. You can set AT+RPL=2 or send the downlink command: 2102 437 437 ))) 438 -))) 439 439 440 440 ((( 441 -((( 442 -If the equipment uses CLASS C. You can set** AT+RPL=4** or send the downlink command: **2104** 381 +If the equipment uses CLASS C. You can set AT+RPL=4 or send the downlink command: 2104 443 443 ))) 444 -))) 445 445 446 446 ((( 447 -((( 448 448 When the device successfully receives the downlink, the server will receive a confirmation packet of 00. 449 449 ))) 450 -))) 451 451 452 452 [[image:https://wiki.dragino.com/images/thumb/d/d9/Downlink_54.png/600px-Downlink_54.png||height="127" width="600"]] 453 453 ... ... @@ -457,7 +457,7 @@ 457 457 458 458 ((( 459 459 These pages are useful to check what is wrong on the Join process. Below shows the four steps that we can check the Join Process. 460 -\\If problem not solve, and you need dragino remote support, please follow to this document: [[TTN Support instruction>>url:https://www.dragino.com/downloads/index.php?dir=&file=TTNv3_Support_Guide.pdf]] (% style="color:red" %)**If user has checked below steps and still can't solve the problem, please send us (support @ dragino.com) the screenshots for each step to check. They include:**396 +\\If problem not solve, and you need dragino remote support, please follow to this document: [[TTN Support instruction>>url:https://www.dragino.com/downloads/index.php?dir=&file=TTNv3_Support_Guide.pdf]] If user has checked below steps and still can't solve the problem, please send us (support @ dragino.com) the screenshots for each step to check. They include: 461 461 ))) 462 462 463 463 * End node is connected to serial port to show the Join frequency and DR. (If possible) ... ... @@ -466,6 +466,7 @@ 466 466 * End Node traffic (from server UI) to shows end node activity in server. (Normally possible) 467 467 * End Node Keys screen shot shows in end node and server. so we can check if the keys are correct. (In most case, we found keys doesn't match, especially APP EUI) 468 468 405 + 469 469 **~1. End Device Join Screen shot, we can check:** 470 470 471 471 * If the device is sending join request to server? ... ... @@ -475,9 +475,9 @@ 475 475 476 476 Console Output from End device to see the transmit frequency 477 477 478 -User can run **AT+CFG**command to print configuration information.415 +User can run AT+CFG command to print configuration information. 479 479 480 -* Is the device in OTAA mode or ABP mode? **AT+NJM=1**(OTAA mode),**AT+NJM=0**(ABP mode)417 +* Is the device in OTAA mode or ABP mode? AT+NJM=1 (OTAA mode), AT+NJM=0 (ABP mode) 481 481 482 482 [[image:https://wiki.dragino.com/images/thumb/c/c5/LoRaWAN_Communication_Debug23.png/600px-LoRaWAN_Communication_Debug23.png||height="514" width="600"]] 483 483 ... ... @@ -485,12 +485,8 @@ 485 485 486 486 **2. Gateway packet traffic in gateway web or ssh. we can check:** 487 487 488 -* ((( 489 -If the gateway receive the Join request packet from sensor? (If this fail, check if the gateway and sensor works on the match frequency) 490 -))) 491 -* ((( 492 -If the gateway gets the Join Accept message from server and transmit it via LoRa? 493 -))) 425 +* If the gateway receive the Join request packet from sensor? (If this fail, check if the gateway and sensor works on the match frequency) 426 +* If the gateway gets the Join Accept message from server and transmit it via LoRa? 494 494 495 495 [[image:https://wiki.dragino.com/images/thumb/1/1c/OTAA_Join-2.png/600px-OTAA_Join-2.png||height="325" width="600"]] 496 496 ... ... @@ -499,15 +499,9 @@ 499 499 500 500 **3. Gateway Traffic Page in LoRaWAN Server** 501 501 502 -* ((( 503 -If the Join Request packet arrive the gateway traffic in server? If not, check the internet connection and gateway LoRaWAN server settings. 504 -))) 505 -* ((( 506 -If the server send back a Join Accept for the Join Request? if not, check if the keys from the device match the keys you put in the server, or try to choose a different server route for this end device. 507 -))) 508 -* ((( 509 -If the Join Accept message are in correct frequency? If you set the server to use US915 band, and your end node and gateway is EU868, you will see the Join Accept message are in US915 band so no possible to Join success. 510 -))) 435 +* If the Join Request packet arrive the gateway traffic in server? If not, check the internet connection and gateway LoRaWAN server settings. 436 +* If the server send back a Join Accept for the Join Request? if not, check if the keys from the device match the keys you put in the server, or try to choose a different server route for this end device. 437 +* If the Join Accept message are in correct frequency? If you set the server to use US915 band, and your end node and gateway is EU868, you will see the Join Accept message are in US915 band so no possible to Join success. 511 511 512 512 [[image:https://wiki.dragino.com/images/thumb/d/da/LoRaWAN_Communication_Debug22.png/600px-LoRaWAN_Communication_Debug22.png||height="268" width="600"]] 513 513 ... ... @@ -521,12 +521,8 @@ 521 521 **4. Data Page in LoRaWAN server** 522 522 523 523 * ((( 524 -((( 525 -((( 526 526 If this data page shows the Join Request message from the end node? If not, most properly you have wrong settings in the keys. Keys in the server doesn't match the keys in End Node. 527 527 ))) 528 -))) 529 -))) 530 530 531 531 [[image:https://wiki.dragino.com/images/thumb/9/99/LoRaWAN_Communication_Debug4.png/600px-LoRaWAN_Communication_Debug4.png||height="222" width="600"]] 532 532