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
-
... ... @@ -114,8 +114,10 @@ 114 114 Download and Install gateway-rs 115 115 116 116 117 -=== 2.2.5 Step 2: Back to Semtech UDP page === 118 118 118 +=== 2.2.5 Step 2: Back to Semtech UDP page === 119 + 120 + 119 119 Back to the page of Semtech UDP check the secondary server settings and click the button of Save&Apply 120 120 121 121 [[image:image-20220526135125-7.png]] ... ... @@ -123,32 +123,41 @@ 123 123 Configuration of helium 124 124 125 125 126 -= 3. Gateway Registration for Basics Station = 127 127 128 -= =3.1Introduction ==129 += 3. Gateway Registration for Basics Station = 129 129 131 + 132 +== 3.1 Introduction == 133 + 134 + 130 130 ((( 131 131 ((( 132 132 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/]] 138 + 139 + 133 133 ))) 134 134 ))) 135 135 136 136 ((( 137 -**Below list the support products and Requirements:** 144 +(% style="color:blue" %)**Below list the support products and Requirements:** 138 138 ))) 139 139 140 140 ((( 141 141 ((( 142 - ~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]]149 +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]] 143 143 ))) 144 144 145 145 ((( 146 146 2. Firmware version since :[[lgw~~-~~-build-v5.4.1640315898>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]] 154 + 155 + 156 + 157 + 147 147 ))) 148 148 ))) 149 149 150 150 ((( 151 -**What do you need to prepare** 162 +(% style="color:blue" %)**What do you need to prepare** 152 152 ))) 153 153 154 154 ((( ... ... @@ -155,12 +155,14 @@ 155 155 ((( 156 156 A gateway that can access the internet normally 157 157 169 + 158 158 159 159 ))) 160 160 ))) 161 161 162 -== 3.2 Step 1 .Add Gateway ==174 +== 3.2 Step 1: Add Gateway == 163 163 176 + 164 164 ((( 165 165 ((( 166 166 The example for **EU** ... ... @@ -176,6 +176,8 @@ 176 176 ((( 177 177 ((( 178 178 Following picture is the successful added. 192 + 193 + 179 179 ))) 180 180 ))) 181 181 ... ... @@ -184,52 +184,66 @@ 184 184 Add Gateway 185 185 186 186 187 -== 3.3 Step 2. Create the API key == 188 188 203 +== 3.3 Step 2: Create the API key == 204 + 205 + 189 189 user need to create the CUPS API key and LNS API key. 190 190 208 + 191 191 [[image:image-20220526135349-9.png]] 192 192 193 193 Create CUPS API key 194 194 195 195 214 + 196 196 [[image:image-20220526135428-10.png]] 197 197 198 198 Create LNS API key 199 199 219 + 200 200 (% style="color:red" %)**Note : Please copy the API key.** 201 201 202 202 203 -== 3.4 Step 3. Update the gateway setting == 204 204 224 +== 3.4 Step 3: Update the gateway setting == 225 + 226 + 205 205 In the LoRa Basics Station LNS Authentication Key field, paste the API key you generated in the previous step. 206 206 229 + 207 207 [[image:image-20220526135528-11.png]] 208 208 209 209 paste the API key 210 210 211 211 212 -== 3.5 Step 4. Access the gateway GUI == 213 213 236 +== 3.5 Step 4: Access the gateway GUI == 237 + 238 + 214 214 User need to update the API key and install the Certificate 215 215 241 + 216 216 [[image:image-20220526135601-12.png]] 217 217 218 218 Access the gateway GUI 219 219 220 220 221 -== 3.6 Step 5. Configure Station == 222 222 248 +== 3.6 Step 5: Configure Station == 249 + 250 + 223 223 User need to input Server URI, Server CUPS Key and LNS Key, as well as install CUPS certificate. 224 224 225 -**just to clarify.** 226 226 254 +(% style="color:blue" %)**just to clarify:** 255 + 227 227 (% class="box" %) 228 228 ((( 229 - CUPS Server URI ~-~-> Server Adress 230 - CUPS Authorization Key ~-~-> Server CUPS API Key 231 - LNS Authorization Key ~-~-> Server LNS API Key 232 - CUPS certificate ~-~-> Server CA(user can use the button to install the certificate by default) 258 + CUPS Server URI ~-~-> Server Adress 259 + CUPS Authorization Key ~-~-> Server CUPS API Key 260 + LNS Authorization Key ~-~-> Server LNS API Key 261 + CUPS certificate ~-~-> Server CA(user can use the button to install the certificate by default) 233 233 ))) 234 234 235 235 [[image:image-20220526135654-13.png]] ... ... @@ -237,32 +237,41 @@ 237 237 Congfigure Station 238 238 239 239 240 -== 3.7 Start Station == 241 241 270 +== 3.7 Start Station == 271 + 272 + 242 242 ((( 243 243 When the user has finished the configuration,Please click Sace&Apply to start station to connect The Things Network. 244 244 276 + 245 245 246 246 ))) 247 247 248 -== 3.8 Siccessful Connection == 280 +== 3.8 Siccessful Connection == 249 249 282 + 250 250 If user completes the above steps,which will see live date in the TTN. 251 251 285 + 252 252 [[image:image-20220526135734-14.png]] 253 253 254 254 Station live date 255 255 256 256 257 -== 3.9 Trouble Shooting == 258 258 292 +== 3.9 Trouble Shooting == 293 + 294 + 259 259 User can check the station log in the logread/system log page. 260 260 297 + 261 261 [[image:image-20220526135845-15.png]] 262 262 263 263 Station Log 264 264 265 265 303 + 266 266 and recode the station log in the system/Recode log page. 267 267 268 268 [[image:image-20220526135940-16.png]] ... ... @@ -270,8 +270,10 @@ 270 270 Recore Log 271 271 272 272 273 -= 4. Configure node connection to TTNv3 = 274 274 312 += 4. Configure node connection to TTNv3 = 313 + 314 + 275 275 ((( 276 276 ((( 277 277 Following is an example for how to join the TTN v3 LoRaWAN Network. ... ... @@ -288,12 +288,14 @@ 288 288 ((( 289 289 We take LES01 as an example. 290 290 331 + 291 291 292 292 ))) 293 293 ))) 294 294 295 -== 4.1 Step1 == 336 +== 4.1 Step1 == 296 296 338 + 297 297 ((( 298 298 ((( 299 299 Create a device in TTN with the OTAA keys from LSE01. ... ... @@ -317,11 +317,15 @@ 317 317 [[image:image-20220526140044-18.png]] 318 318 319 319 320 -== 4.2 Step2 == 321 321 363 +== 4.2 Step2 == 364 + 365 + 322 322 ((( 323 323 ((( 324 324 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. 369 + 370 + 325 325 ))) 326 326 ))) 327 327 ... ... @@ -328,34 +328,45 @@ 328 328 [[image:image-20220526140132-19.png]] 329 329 330 330 331 -== 4.3 Step3 == 332 332 378 +== 4.3 Step3 == 379 + 380 + 333 333 Add APP EUI in the application: 334 334 383 + 335 335 [[image:image-20220526140205-20.png]] 336 336 337 337 338 -== 4.4 Step4 == 339 339 388 +== 4.4 Step4 == 389 + 390 + 340 340 Add APP KEY and DEV EUI: 341 341 393 + 342 342 [[image:image-20220526140251-21.png]] 343 343 344 344 345 -= 5. TTN V3 integrated into MQTT server = 346 346 347 -= =5.1Introduction ==398 += 5. TTN V3 integrated into MQTT server = 348 348 400 + 401 +== 5.1 Introduction == 402 + 403 + 349 349 ((( 350 350 ((( 351 351 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. 352 352 408 + 353 353 354 354 ))) 355 355 ))) 356 356 357 -== 5.2 Create device steps at MQTT == 413 +== 5.2 Create device steps at MQTT == 358 358 415 + 359 359 ((( 360 360 ((( 361 361 The user creates a new API KEY after creating a device on TTN V3. ... ... @@ -371,6 +371,8 @@ 371 371 ((( 372 372 ((( 373 373 Fill in Broker Address and Broker port. 431 + 432 + 374 374 ))) 375 375 ))) 376 376 ... ... @@ -379,8 +379,10 @@ 379 379 Fill in the username and password into MQTT. 380 380 381 381 441 + 382 382 [[image:image-20220526140420-23.png]] 383 383 444 + 384 384 The Application Server publishes uplink traffic on the following topics: 385 385 386 386 (% class="box" %) ... ... @@ -397,13 +397,18 @@ 397 397 ))) 398 398 399 399 ((( 461 + 462 + 400 400 ((( 401 -**Note**: Remember that the format of these topics for The Things Stack Open Source would contain {application id} instead of {application id}@{tenant id}. 464 +(% style="color:red" %)**Note**: **Remember that the format of these topics for The Things Stack Open Source would contain {application id} instead of {application id}@{tenant id}.** 465 + 466 + 402 402 ))) 403 403 ))) 404 404 405 405 [[image:image-20220526140452-24.png]] 406 406 472 + 407 407 ((( 408 408 ((( 409 409 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. ... ... @@ -420,7 +420,11 @@ 420 420 421 421 ((( 422 422 ((( 423 -**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. 489 + 490 + 491 +(% style="color:red" %)**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.** 492 + 493 + 424 424 ))) 425 425 ))) 426 426 ... ... @@ -434,17 +434,23 @@ 434 434 435 435 ((( 436 436 To send an unconfirmed downlink message to the device dev1 in application app1 in tenant tenant1 with the hexadecimal payload BE EF on FPort 15 with normal priority, use the topic v3/app1@tenant1/devices/dev1/down/push with the following contents: 507 + 508 + 437 437 ))) 438 438 439 439 ((( 440 -**Note**: Use this handy tool to convert hexadecimal to base64. 512 +(% style="color:red" %)**Note**: **Use this handy tool to convert hexadecimal to base64.** 513 + 514 + 441 441 ))) 442 442 443 443 [[image:image-20220526140936-27.png]] 444 444 445 445 446 -== 5.3 Send Downlink message == 447 447 521 +== 5.3 Send Downlink message == 522 + 523 + 448 448 ((( 449 449 How to configure downlink in TTN V3? 450 450 ))) ... ... @@ -454,7 +454,9 @@ 454 454 ))) 455 455 456 456 ((( 457 -Downlink command:01 00 00 5A 533 +(% style="color:blue" %)**Downlink command: 01 00 00 5A** 534 + 535 + 458 458 ))) 459 459 460 460 [[image:image-20220526141021-28.png]] ... ... @@ -462,6 +462,7 @@ 462 462 downlink 463 463 464 464 543 + 465 465 After sending, you can view it in live data. 466 466 467 467 [[image:image-20220526141052-29.png]] ... ... @@ -469,12 +469,15 @@ 469 469 downlink 470 470 471 471 551 + 472 472 ((( 473 473 When downlink is successfully sent, the downlink information can be received on the serial port. 474 474 ))) 475 475 476 476 ((( 477 -**Note**: If the downlink byte sent is longer, the number of bytes will be displayed. 557 +(% style="color:red" %)**Note**:** If the downlink byte sent is longer, the number of bytes will be displayed.** 558 + 559 + 478 478 ))) 479 479 480 480 [[image:image-20220526141116-30.png]] ... ... @@ -490,13 +490,13 @@ 490 490 491 491 ((( 492 492 ((( 493 -If the equipment uses CLASS A. You can set **AT+RPL=2** or send the downlink command: **2102** 575 +If the equipment uses (% style="color:blue" %)**CLASS A**(%%). You can set (% style="color:red" %)**AT+RPL=2** (%%)or send the downlink command: (% style="color:red" %)**2102** 494 494 ))) 495 495 ))) 496 496 497 497 ((( 498 498 ((( 499 -If the equipment uses CLASS C. You can set** AT+RPL=4** or send the downlink command: **2104** 581 +If the equipment uses (% style="color:blue" %)**CLASS C**(%%). You can set** (% style="color:red" %)AT+RPL=4(%%)** or send the downlink command: (% style="color:red" %)**2104** 500 500 ))) 501 501 ))) 502 502 ... ... @@ -503,6 +503,8 @@ 503 503 ((( 504 504 ((( 505 505 When the device successfully receives the downlink, the server will receive a confirmation packet of 00. 588 + 589 + 506 506 ))) 507 507 ))) 508 508 ... ... @@ -511,8 +511,10 @@ 511 511 downlink 512 512 513 513 514 -= 6. Request Remote Support = 515 515 599 += 6. Request Remote Support = 600 + 601 + 516 516 ((( 517 517 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. 518 518 \\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:** ... ... @@ -524,19 +524,24 @@ 524 524 * End Node traffic (from server UI) to shows end node activity in server. (Normally possible) 525 525 * 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) 526 526 527 -**~1. End Device Join Screen shot, we can check:** 528 528 614 +(% style="color:blue" %)**1. End Device Join Screen shot, we can check:** 615 + 529 529 * If the device is sending join request to server? 530 530 * What frequency the device is sending? 531 531 619 + 532 532 [[image:image-20220526141308-33.png]] 533 533 534 534 Console Output from End device to see the transmit frequency 535 535 536 -User can run **AT+CFG **command to print configuration information. 537 537 538 - * IsthedeviceinOTAAmoder ABP mode?**AT+NJM=1**OTAA mode),**AT+NJM=0**(ABPmode)625 +User can run (% style="color:blue" %)**AT+CFG **(%%)command to print configuration information. 539 539 627 +* Is the device in OTAA mode or ABP mode? (% style="color:red" %)**AT+NJM=1** (%%)(OTAA mode), (% style="color:red" %)**AT+NJM=0**(%%) (ABP mode) 628 + 629 + 630 + 540 540 [[image:image-20220526141612-36.png]] 541 541 542 542 ... ... @@ -543,13 +543,17 @@ 543 543 Console Output from End device to see the transmit frequency 544 544 545 545 546 -**2. Gateway packet traffic in gateway web or ssh. we can check:** 547 547 638 +(% style="color:blue" %)**2. Gateway packet traffic in gateway web or ssh. we can check:** 639 + 548 548 * ((( 549 549 If the gateway receive the Join request packet from sensor? (If this fail, check if the gateway and sensor works on the match frequency) 550 550 ))) 551 551 * ((( 552 552 If the gateway gets the Join Accept message from server and transmit it via LoRa? 645 + 646 + 647 + 553 553 ))) 554 554 555 555 [[image:image-20220526141739-37.png]] ... ... @@ -557,8 +557,9 @@ 557 557 Console Output from Gateway to see packets between end node and server. 558 558 559 559 560 -**3. Gateway Traffic Page in LoRaWAN Server** 561 561 656 +(% style="color:blue" %)**3. Gateway Traffic Page in LoRaWAN Server** 657 + 562 562 * ((( 563 563 If the Join Request packet arrive the gateway traffic in server? If not, check the internet connection and gateway LoRaWAN server settings. 564 564 ))) ... ... @@ -567,6 +567,9 @@ 567 567 ))) 568 568 * ((( 569 569 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. 666 + 667 + 668 + 570 570 ))) 571 571 572 572 [[image:image-20220526141823-38.png||height="501" width="1144"]] ... ... @@ -574,18 +574,21 @@ 574 574 The Traffic for the End node in the server, use TTNv3 as example 575 575 576 576 676 + 577 577 [[image:image-20220526141917-39.png]] 578 578 579 579 The Traffic for the End node in the server, use TTNv3 as example 580 580 581 581 582 -**4. Data Page in LoRaWAN server** 583 583 683 +(% style="color:blue" %)**4. Data Page in LoRaWAN server** 684 + 584 584 ((( 585 585 ((( 586 586 ((( 587 587 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. 588 588 690 + 589 589 [[image:image-20220526141956-40.png]] 590 590 ))) 591 591 ))) ... ... @@ -594,6 +594,7 @@ 594 594 The data for the end device set in server 595 595 596 596 699 + 597 597 [[image:image-20220526142033-41.png]] 598 598 599 599 Check if OTAA Keys match the keys in device