<
From version < 4.9 >
edited by Xiaoling
on 2022/05/11 15:20
To version < 32.2 >
edited by Xiaoling
on 2022/07/13 14:44
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,8 +1,9 @@
1 -**~ Contents:**
1 +**~ Table of Contents:**
2 2  
3 3  {{toc/}}
4 4  
5 5  
6 +
6 6  = 1. OTAA Join Process Debug =
7 7  
8 8  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.
... ... @@ -19,7 +19,7 @@
19 19  * If the device is sending join request to server?
20 20  * What frequency the device is sending?
21 21  
22 -[[image:https://wiki.dragino.com/images/thumb/0/0f/OTAA_Join-1.jpg/600px-OTAA_Join-1.jpg||height="316" width="600"]]
23 +[[image:image-20220526164956-15.png]]
23 23  
24 24  Console Output from End device to see the transmit frequency
25 25  
... ... @@ -29,7 +29,7 @@
29 29  * If the gateway receive the Join request packet from sensor? (If this fail, check if the gateway and sensor works on the match frequency)
30 30  * If the gateway gets the Join Accept message from server and transmit it via LoRa?
31 31  
32 -[[image:https://wiki.dragino.com/images/thumb/1/1c/OTAA_Join-2.png/600px-OTAA_Join-2.png||height="325" width="600"]]
33 +[[image:image-20220526163608-2.png]]
33 33  
34 34  Console Output from Gateway to see packets between end node and server.
35 35  
... ... @@ -40,7 +40,7 @@
40 40  * 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.
41 41  * 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.
42 42  
43 -[[image:https://wiki.dragino.com/images/thumb/5/5c/OTAA_Join-3.png/600px-OTAA_Join-3.png||height="301" width="600"]]
44 +[[image:image-20220526163633-3.png]]
44 44  
45 45  The Traffic for the End node in the server, use TTN as example
46 46  
... ... @@ -49,11 +49,11 @@
49 49  
50 50  * 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.
51 51  
52 -[[image:https://wiki.dragino.com/images/thumb/e/ec/OTAA_Join-4.png/600px-OTAA_Join-4.png||height="181" width="600"]]
53 +[[image:image-20220526163704-4.png]]
53 53  
54 54  The data for the end device set in server
55 55  
56 -[[image:https://wiki.dragino.com/images/thumb/b/b1/OTAA_Join-5.png/600px-OTAA_Join-5.png||height="166" width="600"]]
57 +[[image:image-20220526163732-5.png]]
57 57  
58 58  Check if OTAA Keys match the keys in device
59 59  
... ... @@ -94,15 +94,15 @@
94 94  Here are the freuqency tables for these bands as reference:
95 95  )))
96 96  
97 -[[image:https://wiki.dragino.com/images/thumb/3/3f/US915_FRE_BAND-1.png/600px-US915_FRE_BAND-1.png||height="170" width="600"]]
98 +[[image:image-20220526163801-6.png]]
98 98  
99 99  US915 Channels
100 100  
101 -[[image:https://wiki.dragino.com/images/thumb/8/8a/AU915_FRE_BAND-1.png/600px-AU915_FRE_BAND-1.png||height="167" width="600"]]
102 +[[image:image-20220526163926-7.png]]
102 102  
103 103  AU915 Channels
104 104  
105 -[[image:https://wiki.dragino.com/images/thumb/3/3a/CN470_FRE_BAND-1.png/600px-CN470_FRE_BAND-1.png||height="205" width="600"]]
106 +[[image:image-20220526163941-8.png]]
106 106  
107 107  (((
108 108  CN470 Channels
... ... @@ -112,7 +112,7 @@
112 112  If we look at the [[TTN network server frequency plan>>url:https://www.thethingsnetwork.org/docs/lorawan/frequency-plans.html]], we can see the US915 frequency band use the channel 8~~15.So the End Node must work at the same frequency in US915 8~~15 channels for TTN server.
113 113  )))
114 114  
115 -[[image:https://wiki.dragino.com/images/thumb/9/9a/US915_FRE_BAND-2.png/600px-US915_FRE_BAND-2.png||height="288" width="600"]]
116 +[[image:image-20220526164052-9.png]]
116 116  
117 117  (((
118 118  TTN FREQUENCY PLAN
... ... @@ -166,7 +166,7 @@
166 166  To solve this, disable the Frame Counter Check will solve this issue , or reset the frame counter in the device page.
167 167  )))
168 168  
169 -[[~[~[image:https://wiki.dragino.com/images/thumb/1/19/ABP_Issue-1.jpg/600px-ABP_Issue-1.jpg~|~|height="340" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:ABP_Issue-1.jpg]]
170 +[[image:image-20220526164508-10.png]]
170 170  
171 171  Disable Frame Counter Check in ABP Mode
172 172  
... ... @@ -181,7 +181,7 @@
181 181  Depends on Class A or Class C, the receive windows will be a little difference,
182 182  )))
183 183  
184 -[[image:https://wiki.dragino.com/images/thumb/1/1a/Downstream_LoRaWAN-1.png/600px-Downstream_LoRaWAN-1.png||height="590" width="600"]]
185 +[[image:image-20220531161828-1.png]]
185 185  
186 186  receive windows for Class A and Class C
187 187  
... ... @@ -207,7 +207,7 @@
207 207  Configure a downstream to the end device
208 208  )))
209 209  
210 -[[image:https://wiki.dragino.com/images/thumb/8/82/Downstream_debug_1.png/600px-Downstream_debug_1.png||height="217" width="600"]]
211 +[[image:image-20220526164623-12.png]]
211 211  
212 212  (((
213 213  Set a downstream in TTN and see it is sent
... ... @@ -218,7 +218,7 @@
218 218  This downstream info will then pass to the gateway downstream list. and include the DR which is used (SF9BW125) in EU868 is DR3
219 219  )))
220 220  
221 -[[image:https://wiki.dragino.com/images/thumb/d/dc/Downstream_debug_2.png/600px-Downstream_debug_2.png||height="245" width="600"]]
222 +[[image:image-20220526164650-13.png]]
222 222  
223 223  (((
224 224  Gateway Traffic can see this downstream info
... ... @@ -233,7 +233,7 @@
233 233  When the downstream packet appear on the traffic of Gateway page. The LoRaWAN gateway can get it from LoRaWAN server and transmit it. In Dragion Gateway, this can be checked by runinng "logread -f" in the SSH console. and see below:
234 234  )))
235 235  
236 -[[image:https://wiki.dragino.com/images/thumb/2/21/Downstream_debug_3.png/600px-Downstream_debug_3.png||height="195" width="600"]]
237 +[[image:image-20220526164734-14.png]]
237 237  
238 238  (((
239 239  Gateway Sent out this packet
... ... @@ -262,22 +262,7 @@
262 262  )))
263 263  )))
264 264  
265 -(% class="box infomessage" %)
266 266  (((
267 -AT+RX2DR=3 ~-~--> The RX2 DataRate
268 -)))
269 -
270 -(% class="box infomessage" %)
271 -(((
272 - AT+RX1DL=1000 ~-~--> Receive Delay 1
273 -)))
274 -
275 -(% class="box infomessage" %)
276 -(((
277 - AT+RX2DL=2000 ~-~--> Receive Delay 2
278 -)))
279 -
280 -(((
281 281  **when the device running, we can see below info:**
282 282  )))
283 283  
... ... @@ -284,10 +284,10 @@
284 284  {{{ [12502]***** UpLinkCounter= 0 *****
285 285   [12503]TX on freq 868500000 Hz at DR 0
286 286   [13992]txDone
287 - [15022]RX on freq 868500000 Hz at DR 0 --> RX1 window open at frequency: 868500000, DR0, after 15022-13992= 1030ms of txdone
288 - [15222]rxTimeOut --> no packet arrive in RX1 window. (duration: 200ms)
289 - [15987]RX on freq 869525000 Hz at DR 3 --> RX2 window open at frequency: 869525000, DR3, after 15987-13992= 1995ms of txdone
290 - [16027]rxTimeOut --> no packet arrive in RX2 window. (duration: 40 ms)}}}
273 + [15022]RX on freq 868500000 Hz at DR 0 --> RX1 window open at frequency: 868500000, DR0, after 15022-13992= 1030ms of txdone
274 + [15222]rxTimeOut --> no packet arrive in RX1 window. (duration: 200ms)
275 + [15987]RX on freq 869525000 Hz at DR 3 --> RX2 window open at frequency: 869525000, DR3, after 15987-13992= 1995ms of txdone
276 + [16027]rxTimeOut --> no packet arrive in RX2 window. (duration: 40 ms)}}}
291 291  
292 292  (((
293 293  
... ... @@ -303,14 +303,15 @@
303 303   [15022]RX on freq 868100000 Hz at DR 0
304 304   [15222]rxTimeOut
305 305   [15987]RX on freq 869525000 Hz at DR 3
306 - [16185]rxDone --> We have got the downstream packet.
292 + [16185]rxDone --> We have got the downstream packet.
307 307   Rssi= -64
308 308   Receive data
309 309   1:0012345678}}}
310 310  
297 +
311 311  == 5.3 If problem doesn’t solve ==
312 312  
313 -**If user has checked below steps and still can't solve the problem, please send us (support @ dragino.com) the sceenshots for each step to check. They include:**
300 +(% style="color:red" %)**If user has checked below steps and still can't solve the problem, please send us (support @ dragino.com) the sceenshots for each step to check. They include:**
314 314  
315 315  * End node console to show the transmit freuqency and DR.
316 316  * Gateway (from gateway UI) traffic to show the packet got from end node and receive from Server.
... ... @@ -348,29 +348,24 @@
348 348  
349 349  (% class="box infomessage" %)
350 350  (((
351 -Change to ABP Mode: AT+NJM=0
338 +**Change to ABP Mode: AT+NJM=0**
339 +**Change to fix frequency: AT+CHS=904900000**
340 +**Change to fix DR: AT+DR=0**
352 352  )))
353 353  
354 -(% class="box infomessage" %)
355 -(((
356 -Change to fix frequency: AT+CHS=904900000
357 -)))
343 +[[image:image-20220526165525-16.png]]
358 358  
359 -(% class="box infomessage" %)
360 -(((
361 -Change to fix DR: AT+DR=0
362 -)))
363 363  
364 -[[image:https://wiki.dragino.com/images/e/e6/Decrypt_a_LoRaWAN_Packet1.jpg||alt="Decrypt a LoRaWAN Packet1.jpg" height="607" width="558"]]
365 -
366 366  2. In LG02 , configure to receive above message
367 367  
368 -[[image:https://wiki.dragino.com/images/c/c3/Decrypt_a_LoRaWAN_Packet2.jpg||alt="Decrypt a LoRaWAN Packet2.jpg" height="337" width="558"]]
348 +[[image:image-20220526165612-17.png]]
369 369  
350 +
370 370  In LG02 console, we can see the hex receive are:
371 371  
372 -[[image:https://wiki.dragino.com/images/f/f1/Decrypt_a_LoRaWAN_Packet3.jpg||alt="Decrypt a LoRaWAN Packet3.jpg" height="179" width="558"]]
353 +[[image:image-20220526171112-21.png]]
373 373  
355 +
374 374  3. Decode the info in web
375 375  
376 376  [[https:~~/~~/lorawan-packet-decoder-0ta6puiniaut.runkit.sh>>url:https://lorawan-packet-decoder-0ta6puiniaut.runkit.sh/]]
... ... @@ -383,13 +383,13 @@
383 383  
384 384  AT+APPSKEY=00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 11 (End Node App Session Key)
385 385  
386 -(((
387 387  [[https:~~/~~/lorawan-packet-decoder-0ta6puiniaut.runkit.sh/?data=40c1190126800100024926272bf18bbb6341584e27e23245&nwkskey=00000000000000000000000000000111&appskey=00000000000000000000000000000111>>url:https://lorawan-packet-decoder-0ta6puiniaut.runkit.sh/?data=40c1190126800100024926272bf18bbb6341584e27e23245&nwkskey=00000000000000000000000000000111&appskey=00000000000000000000000000000111]]
388 -)))
389 389  
390 -[[image:https://wiki.dragino.com/images/7/77/Decrypt_a_LoRaWAN_Packet4.png||alt="Decrypt a LoRaWAN Packet4.png" height="390" width="558"]]
370 +[[image:image-20220526171029-20.png]]
391 391  
392 -The FRMPayload is the device payload.
372 +(((
373 + The FRMPayload is the device payload.
374 +)))
393 393  
394 394  
395 395  = 8. Why i see uplink 0x00 periodcally on the LHT65 v1.8 firmware =
... ... @@ -396,6 +396,7 @@
396 396  
397 397  Since firmware v1.8, LHT65 will send MAC command to request time, in the case if DR only support max 11 bytes, this MAC command will be bundled to a separate uplink payload with 0x00.
398 398  
381 +
399 399  = 9. Why do I see a "MIC Mismatch" error message from the server? =
400 400  
401 401  (((
... ... @@ -420,36 +420,96 @@
420 420  
421 421  * (((
422 422  If a node is registered with multiple servers, it may also cause the "mic mismatch" error.
406 +
407 +
423 423  )))
424 424  
425 425  = 10. Why i got the payload only with "0x00" or "AA~=~="? =
426 426  
412 +* If you are using US915, AU915 and AS923 frequencies.This is normal phenomenon.
413 +
414 +(((
415 +When using the frequency mentioned above, the server sometimes adjusts the rate of the node, because the node defaults to the adaptive rate.
416 +)))
417 +
418 +(((
419 +When the server adjusts your node rate to 0, the maximum payload length is 11 bytes. The server sometimes sends an ADR packet to the node,and the node will reply to the server after receiving the ADR packet, but the number of payload bytes exceeds the limit,so it will send a normal uplink packet, and an additional 00 data packet.
420 +)))
421 +
427 427  * (((
428 -If you are using US915, AU915 and AS923 frequencies.This is normal phenomenon.
423 +Solution: Use the decoder to filter out this 00 packet.
429 429  )))
425 +* (((
426 +Some node decoders may not have filtering function, or you need decoders of other servers and formats. Please send an email to [[david.huang@dragino.cc>>mailto:david.huang@dragino.cc]]
430 430  
428 +
429 +)))
430 +
431 += 11. Why my Dev EUI and APP EUI is 0x000000000000, how to solve? =
432 +
431 431  (((
432 -When using the frequency mentioned above, the server sometimes adjusts the rate of the node, because the node defaults to the adaptive rate.
434 +It is possible the keys is erased during upgrading of firmware. and the console output shows below after AT+CFG
433 433  )))
434 434  
435 435  (((
436 -When the server adjusts your node rate to 0, the maximum payload length is 11 bytes. The server sometimes sends an ADR packet to the node,
438 +AT+APPKEY=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
437 437  )))
438 438  
439 439  (((
440 -and the node will reply to the server after receiving the ADR packet, but the number of payload bytes exceeds the limit,
442 +AT+NWKSKEY=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
441 441  )))
442 442  
443 443  (((
444 -so it will send a normal uplink packet, and an additional 00 data packet.
446 +AT+APPSKEY=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
445 445  )))
446 446  
447 -* (((
448 -Solution: Use the decoder to filter out this 00 packet.
449 +(((
450 +AT+APPEUI=00 00 00 00 00 00 00 00
449 449  )))
450 -* (((
451 -Some node decoders may not have filtering function, or you need decoders of other servers and formats. Please send an email to david.huang@dragino.cc
452 +
453 +(((
454 +
452 452  )))
453 453  
454 -(% class="wikigeneratedid" id="H" %)
457 +(((
458 +You can get the keys from the box sticker or send mail to Dragino Support to check keys with the provided SN number.
459 +)))
460 +
461 +(((
462 +You can rewrites the keys by running commands in AT Console
463 +)))
464 +
465 +(((
466 +**For example:**
467 +)))
468 +
469 +(((
470 +AT+APPKEY=85 41 47 20 45 58 28 14 16 82 A0 F0 80 0D DD EE
471 +)))
472 +
473 +(((
474 +AT+NWKSKEY=AA CC B0 20 30 45 37 32 14 1E 14 93 E2 3B 20 11
475 +)))
476 +
477 +(((
478 +AT+APPSKEY=11 23 02 20 30 20 30 60 80 20 20 30 30 20 10 10
479 +)))
480 +
481 +(((
482 +AT+APPEUI=2C 45 47 E3 24 12 23 24
483 +)))
484 +
485 +(((
486 +(Any combination of 16 bit codes can be used)
487 +
488 +
489 += 12. I set my device is LoRaWAN Class C mode, why i still see Class A after boot? =
490 +)))
491 +
492 +
493 +Class C only refers to status after OTAA Join successfully. The OTAA Join Process will use Class A mode.
494 +
495 +
496 +
497 +(% class="wikigeneratedid" %)
455 455  
image-20220526163523-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +633.8 KB
Content
image-20220526163608-2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +116.4 KB
Content
image-20220526163633-3.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +65.6 KB
Content
image-20220526163704-4.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +78.8 KB
Content
image-20220526163732-5.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +18.5 KB
Content
image-20220526163801-6.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +19.3 KB
Content
image-20220526163926-7.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +19.4 KB
Content
image-20220526163941-8.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +27.9 KB
Content
image-20220526164052-9.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +59.3 KB
Content
image-20220526164508-10.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +50.2 KB
Content
image-20220526164547-11.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +98.9 KB
Content
image-20220526164623-12.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +22.2 KB
Content
image-20220526164650-13.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +45.0 KB
Content
image-20220526164734-14.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +120.3 KB
Content
image-20220526164956-15.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +634.4 KB
Content
image-20220526165525-16.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +185.4 KB
Content
image-20220526165612-17.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +116.5 KB
Content
image-20220526165855-18.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +183.7 KB
Content
image-20220526170151-19.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +70.4 KB
Content
image-20220526171029-20.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +70.6 KB
Content
image-20220526171112-21.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +183.8 KB
Content
image-20220531161828-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +98.6 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0