Changes for page TTN Stack 3

Last modified by Xiaoling on 2023/04/23 15:28

From version 1.8
edited by Xiaoling
on 2022/05/17 09:56
Change comment: There is no comment for this version
To version 1.2
edited by Xiaoling
on 2022/05/17 09:30
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,33 +1,24 @@
1 -**~ Contents:**
1 += Introduction =
2 2  
3 -{{toc/}}
4 -
5 -= 1. Introduction =
6 -
7 7  Notes for using Dragino Devices with TTN Stack3.
8 8  
9 -= 2. Downlink =
5 += Downlink =
10 10  
11 11  Use MQTT API for downlink: Reference: [[TTN Stack v3 MQTT reference>>url:https://thethingsstack.io/v3.1.0/guides/getting-started/mqtt/]]
12 12  
13 -(((
9 +
14 14  **Download command is:**
15 -)))
16 16  
17 -(% class="box" %)
18 -(((
19 19  mosquitto_pub -h eu1.cloud.thethings.industries -p 1883 -t v3/akXXXXXps@XXXXXX/devices/lsn50/down/push -u akXXXXXps@XXXXXX -P NNSXS.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.LVQZECLX5FZ3XO5ACOW47IZ6HM54DMBBU776C53ZQHPLPQALIXYA -m '{"downlinks":[{"f_port": 2,"frm_payload":"AwAA","priority": "HIGH","confirmed": true}]}'
20 -)))
21 21  
22 -(((
23 -The MQTT command use (% style="color:#4f81bd" %)**-h,-p,-u,-P** (%%)options. We can find them in the website.
24 -)))
25 25  
26 -[[image:https://wiki.dragino.com/images/thumb/2/2f/Stack_v3_downlink_1.png/800px-Stack_v3_downlink_1.png||alt="File:Stack v3 downlink 1.png" height="459" width="734"]]
15 +The MQTT command use -h,-p,-u,-P options. We can find them in the website.
27 27  
17 +[[~[~[image:https://wiki.dragino.com/images/thumb/2/2f/Stack_v3_downlink_1.png/600px-Stack_v3_downlink_1.png~|~|height="375" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:Stack_v3_downlink_1.png]]
18 +
28 28  find -h : broker address , -p port and -u: user name
29 29  
30 -[[image:https://wiki.dragino.com/images/thumb/a/a6/Stack_v3_downlink_2.png/600px-Stack_v3_downlink_2.png||height="395" width="600"]]
21 +[[~[~[image:https://wiki.dragino.com/images/thumb/a/a6/Stack_v3_downlink_2.png/600px-Stack_v3_downlink_2.png~|~|height="395" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:Stack_v3_downlink_2.png]]
31 31  
32 32  find -P : Password
33 33  
... ... @@ -34,7 +34,7 @@
34 34  
35 35  User MQTT.FX to simulate a downlink
36 36  
37 -[[image:https://wiki.dragino.com/images/thumb/5/5c/Stack_v3_downlink_3.png/600px-Stack_v3_downlink_3.png||height="439" width="600"]]
28 +[[~[~[image:https://wiki.dragino.com/images/thumb/5/5c/Stack_v3_downlink_3.png/600px-Stack_v3_downlink_3.png~|~|height="439" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:Stack_v3_downlink_3.png]]
38 38  
39 39  Use MQTT.FX to simulate downlink
40 40  
... ... @@ -41,7 +41,7 @@
41 41  
42 42  Input connection info
43 43  
44 -[[image:https://wiki.dragino.com/images/thumb/4/44/Stack_v3_downlink_4.png/600px-Stack_v3_downlink_4.png||height="437" width="600"]]
35 +[[~[~[image:https://wiki.dragino.com/images/thumb/4/44/Stack_v3_downlink_4.png/600px-Stack_v3_downlink_4.png~|~|height="437" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:Stack_v3_downlink_4.png]]
45 45  
46 46  Input MQTT connection info
47 47  
... ... @@ -48,45 +48,39 @@
48 48  
49 49  Send a downstream
50 50  
51 -[[image:https://wiki.dragino.com/images/thumb/e/ec/Stack_v3_downlink_5.png/600px-Stack_v3_downlink_5.png||alt="Stack v3 downlink 5.png" height="438" width="600"]]
42 +[[~[~[image:https://wiki.dragino.com/images/thumb/e/ec/Stack_v3_downlink_5.png/600px-Stack_v3_downlink_5.png~|~|alt="Stack v3 downlink 5.png" height="438" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:Stack_v3_downlink_5.png]]
52 52  
53 53  Gateway traffic for downstream
54 54  
55 -[[image:https://wiki.dragino.com/images/thumb/8/8a/Stack_v3_downlink_8.png/600px-Stack_v3_downlink_8.png||alt="Stack v3 downlink 8.png" height="235" width="600"]]
46 +[[~[~[image:https://wiki.dragino.com/images/thumb/8/8a/Stack_v3_downlink_8.png/600px-Stack_v3_downlink_8.png~|~|alt="Stack v3 downlink 8.png" height="235" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:Stack_v3_downlink_8.png]]
56 56  
57 57  
58 58  Downstream data flow will like below:
59 59  
60 -[[image:https://wiki.dragino.com/images/thumb/d/d1/Stack_v3_downlink_6.png/600px-Stack_v3_downlink_6.png||alt="Stack v3 downlink 6.png" height="233" width="600"]]
51 +[[~[~[image:https://wiki.dragino.com/images/thumb/d/d1/Stack_v3_downlink_6.png/600px-Stack_v3_downlink_6.png~|~|alt="Stack v3 downlink 6.png" height="233" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:Stack_v3_downlink_6.png]]
61 61  
62 -[[image:https://wiki.dragino.com/images/1/1f/Stack_v3_downlink_7.png||alt="Stack v3 downlink 7.png" height="371" width="453"]]
63 63  
64 -= 3. Trouble Shooting =
54 +[[~[~[image:https://wiki.dragino.com/images/1/1f/Stack_v3_downlink_7.png~|~|alt="Stack v3 downlink 7.png" height="371" width="453"~]~]>>url:https://wiki.dragino.com/index.php/File:Stack_v3_downlink_7.png]]
65 65  
66 -== 3.1 Problem when register a device to TTNv3 if it is already register to TTNv2 ==
56 += Trouble Shooting =
67 67  
58 +== Problem when register a device to TTNv3 if it is already register to TTNv2 ==
59 +
68 68  When you register the device in V2 and V3 with the same key and EUI, the device can only connect to V2.
69 69  
70 -[[image:https://wiki.dragino.com/images/thumb/0/0d/V3v2.png/600px-V3v2.png||alt="V3v2.png" height="403" width="600"]]
62 +[[~[~[image:https://wiki.dragino.com/images/thumb/0/0d/V3v2.png/600px-V3v2.png~|~|alt="V3v2.png" height="403" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:V3v2.png]]
71 71  
72 -[[image:https://wiki.dragino.com/images/thumb/b/b9/V2v3.png/600px-V2v3.png||alt="V2v3.png" height="352" width="600"]]
64 +[[~[~[image:https://wiki.dragino.com/images/thumb/b/b9/V2v3.png/600px-V2v3.png~|~|alt="V2v3.png" height="352" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:V2v3.png]]
73 73  
74 74  If you want the device to connect to V3. You must change your key and EUI, or delete the device registered on V2.
75 75  
76 -== 3.2 MIC Mismatch or MIC Failed ==
77 77  
78 -(((
79 -(((
69 +== MIC Mismatch or MIC Failed ==
70 +
80 80  When the device is registered or the device is working normally, the problem of MIC mismatch and MIC failed occurs.
81 -)))
82 -)))
83 83  
84 -(((
85 -(((
86 86  Under normal circumstances, users need to change the APPKEY to solve this problem.
87 -)))
88 -)))
89 89  
90 -[[image:https://wiki.dragino.com/images/thumb/d/dd/MIC_mismatch.png/600px-MIC_mismatch.png||height="208" width="600"]]
75 +[[~[~[image:https://wiki.dragino.com/images/thumb/d/dd/MIC_mismatch.png/600px-MIC_mismatch.png~|~|height="208" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:MIC_mismatch.png]]
91 91  
92 92  MIC Mismatch