Wiki source code of TTN Stack 3
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
14.5 | 1 | **~ Table of Contents:** |
![]() |
1.1 | 2 | |
![]() |
1.5 | 3 | {{toc/}} |
![]() |
1.3 | 4 | |
![]() |
14.2 | 5 | |
6 | |||
7 | |||
![]() |
14.5 | 8 | = 1. Introduction = |
![]() |
1.3 | 9 | |
![]() |
14.5 | 10 | |
![]() |
1.2 | 11 | Notes for using Dragino Devices with TTN Stack3. |
![]() |
1.1 | 12 | |
![]() |
2.2 | 13 | |
![]() |
1.1 | 14 | |
![]() |
14.5 | 15 | = 2. Downlink = |
16 | |||
17 | |||
![]() |
1.2 | 18 | Use MQTT API for downlink: Reference: [[TTN Stack v3 MQTT reference>>url:https://thethingsstack.io/v3.1.0/guides/getting-started/mqtt/]] |
![]() |
1.1 | 19 | |
![]() |
1.7 | 20 | ((( |
![]() |
14.5 | 21 | (% style="color:blue" %)**Download command is:** |
![]() |
1.7 | 22 | ))) |
![]() |
1.1 | 23 | |
![]() |
1.3 | 24 | (% class="box" %) |
25 | ((( | ||
![]() |
1.2 | 26 | 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}]}' |
![]() |
1.3 | 27 | ))) |
![]() |
1.1 | 28 | |
![]() |
1.7 | 29 | ((( |
![]() |
14.5 | 30 | |
31 | |||
![]() |
14.6 | 32 | The MQTT command use (% style="color:blue" %)**-h,-p,-u,-P** (%%)options. We can find them in the website. |
![]() |
14.5 | 33 | |
34 | |||
![]() |
1.7 | 35 | ))) |
![]() |
1.1 | 36 | |
![]() |
4.2 | 37 | [[image:image-20220526142338-3.png]] |
![]() |
1.1 | 38 | |
![]() |
14.7 | 39 | **find -h : broker address , -p port and -u: user name** |
![]() |
1.1 | 40 | |
![]() |
14.3 | 41 | |
![]() |
14.7 | 42 | |
![]() |
4.2 | 43 | [[image:image-20220526142307-2.png]] |
![]() |
1.1 | 44 | |
![]() |
14.7 | 45 | **find -P : Password** |
![]() |
1.1 | 46 | |
47 | |||
![]() |
14.7 | 48 | |
![]() |
1.2 | 49 | User MQTT.FX to simulate a downlink |
![]() |
1.1 | 50 | |
![]() |
5.2 | 51 | [[image:image-20220526142421-4.png]] |
![]() |
1.2 | 52 | |
53 | Use MQTT.FX to simulate downlink | ||
54 | |||
55 | |||
![]() |
14.7 | 56 | |
![]() |
1.2 | 57 | Input connection info |
58 | |||
![]() |
10.2 | 59 | [[image:image-20220526142512-5.png]] |
![]() |
1.2 | 60 | |
61 | Input MQTT connection info | ||
62 | |||
63 | |||
![]() |
14.7 | 64 | |
![]() |
1.2 | 65 | Send a downstream |
66 | |||
![]() |
10.2 | 67 | [[image:image-20220526142539-6.png]] |
![]() |
1.2 | 68 | |
69 | Gateway traffic for downstream | ||
70 | |||
![]() |
14.4 | 71 | |
![]() |
14.7 | 72 | |
![]() |
10.2 | 73 | [[image:image-20220526142616-7.png||height="579" width="1407"]] |
![]() |
1.2 | 74 | |
75 | |||
![]() |
14.7 | 76 | |
![]() |
1.2 | 77 | Downstream data flow will like below: |
78 | |||
![]() |
10.2 | 79 | [[image:image-20220526142741-8.png]] |
![]() |
1.2 | 80 | |
![]() |
10.2 | 81 | [[image:image-20220526142826-9.png]] |
![]() |
1.2 | 82 | |
![]() |
10.2 | 83 | |
![]() |
1.2 | 84 | |
![]() |
14.7 | 85 | = 3. Trouble Shooting = |
![]() |
1.2 | 86 | |
![]() |
14.7 | 87 | == 3.1 Problem when register a device to TTNv3 if it is already register to TTNv2 == |
88 | |||
89 | |||
![]() |
1.2 | 90 | When you register the device in V2 and V3 with the same key and EUI, the device can only connect to V2. |
91 | |||
![]() |
14.7 | 92 | |
![]() |
13.2 | 93 | [[image:image-20220526142914-10.png]] |
![]() |
1.2 | 94 | |
![]() |
13.2 | 95 | [[image:image-20220526143018-11.png||height="619" width="1049"]] |
![]() |
1.2 | 96 | |
![]() |
14.7 | 97 | |
![]() |
1.2 | 98 | If you want the device to connect to V3. You must change your key and EUI, or delete the device registered on V2. |
99 | |||
![]() |
13.2 | 100 | |
![]() |
1.2 | 101 | |
![]() |
14.7 | 102 | == 3.2 MIC Mismatch or MIC Failed == |
103 | |||
104 | |||
![]() |
1.3 | 105 | ((( |
![]() |
1.4 | 106 | ((( |
![]() |
1.2 | 107 | When the device is registered or the device is working normally, the problem of MIC mismatch and MIC failed occurs. |
![]() |
1.3 | 108 | ))) |
![]() |
1.4 | 109 | ))) |
![]() |
1.2 | 110 | |
![]() |
1.3 | 111 | ((( |
![]() |
1.4 | 112 | ((( |
![]() |
1.2 | 113 | Under normal circumstances, users need to change the APPKEY to solve this problem. |
![]() |
14.7 | 114 | |
115 | |||
![]() |
1.3 | 116 | ))) |
![]() |
1.4 | 117 | ))) |
![]() |
1.2 | 118 | |
![]() |
13.2 | 119 | [[image:image-20220526143057-12.png]] |
![]() |
1.2 | 120 | |
121 | MIC Mismatch |