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 | |||
![]() |
1.3 | 32 | The MQTT command use (% style="color:#4f81bd" %)**-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 | |
![]() |
1.2 | 39 | find -h : broker address , -p port and -u: user name |
![]() |
1.1 | 40 | |
![]() |
14.3 | 41 | |
![]() |
4.2 | 42 | [[image:image-20220526142307-2.png]] |
![]() |
1.1 | 43 | |
![]() |
1.2 | 44 | find -P : Password |
![]() |
1.1 | 45 | |
46 | |||
![]() |
1.2 | 47 | User MQTT.FX to simulate a downlink |
![]() |
1.1 | 48 | |
![]() |
5.2 | 49 | [[image:image-20220526142421-4.png]] |
![]() |
1.2 | 50 | |
51 | Use MQTT.FX to simulate downlink | ||
52 | |||
53 | |||
54 | Input connection info | ||
55 | |||
![]() |
10.2 | 56 | [[image:image-20220526142512-5.png]] |
![]() |
1.2 | 57 | |
58 | Input MQTT connection info | ||
59 | |||
60 | |||
61 | Send a downstream | ||
62 | |||
![]() |
10.2 | 63 | [[image:image-20220526142539-6.png]] |
![]() |
1.2 | 64 | |
65 | Gateway traffic for downstream | ||
66 | |||
![]() |
14.4 | 67 | |
![]() |
10.2 | 68 | [[image:image-20220526142616-7.png||height="579" width="1407"]] |
![]() |
1.2 | 69 | |
70 | |||
71 | Downstream data flow will like below: | ||
72 | |||
![]() |
10.2 | 73 | [[image:image-20220526142741-8.png]] |
![]() |
1.2 | 74 | |
![]() |
10.2 | 75 | [[image:image-20220526142826-9.png]] |
![]() |
1.2 | 76 | |
![]() |
10.2 | 77 | |
![]() |
1.3 | 78 | = 3. Trouble Shooting = |
![]() |
1.2 | 79 | |
![]() |
1.3 | 80 | == 3.1 Problem when register a device to TTNv3 if it is already register to TTNv2 == |
![]() |
1.2 | 81 | |
82 | When you register the device in V2 and V3 with the same key and EUI, the device can only connect to V2. | ||
83 | |||
![]() |
13.2 | 84 | [[image:image-20220526142914-10.png]] |
![]() |
1.2 | 85 | |
![]() |
13.2 | 86 | [[image:image-20220526143018-11.png||height="619" width="1049"]] |
![]() |
1.2 | 87 | |
88 | If you want the device to connect to V3. You must change your key and EUI, or delete the device registered on V2. | ||
89 | |||
![]() |
13.2 | 90 | |
![]() |
1.3 | 91 | == 3.2 MIC Mismatch or MIC Failed == |
![]() |
1.2 | 92 | |
![]() |
1.3 | 93 | ((( |
![]() |
1.4 | 94 | ((( |
![]() |
1.2 | 95 | When the device is registered or the device is working normally, the problem of MIC mismatch and MIC failed occurs. |
![]() |
1.3 | 96 | ))) |
![]() |
1.4 | 97 | ))) |
![]() |
1.2 | 98 | |
![]() |
1.3 | 99 | ((( |
![]() |
1.4 | 100 | ((( |
![]() |
1.2 | 101 | Under normal circumstances, users need to change the APPKEY to solve this problem. |
![]() |
1.3 | 102 | ))) |
![]() |
1.4 | 103 | ))) |
![]() |
1.2 | 104 | |
![]() |
13.2 | 105 | [[image:image-20220526143057-12.png]] |
![]() |
1.2 | 106 | |
107 | MIC Mismatch |