Wiki source code of TTN Stack 3
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.5 | 1 | **~ Contents:** |
![]() |
1.1 | 2 | |
![]() |
1.5 | 3 | {{toc/}} |
![]() |
1.3 | 4 | |
5 | = 1. Introduction = | ||
6 | |||
![]() |
1.2 | 7 | Notes for using Dragino Devices with TTN Stack3. |
![]() |
1.1 | 8 | |
![]() |
1.3 | 9 | = 2. Downlink = |
![]() |
1.1 | 10 | |
![]() |
1.2 | 11 | Use MQTT API for downlink: Reference: [[TTN Stack v3 MQTT reference>>url:https://thethingsstack.io/v3.1.0/guides/getting-started/mqtt/]] |
![]() |
1.1 | 12 | |
![]() |
1.7 | 13 | ((( |
![]() |
1.2 | 14 | **Download command is:** |
![]() |
1.7 | 15 | ))) |
![]() |
1.1 | 16 | |
![]() |
1.3 | 17 | (% class="box" %) |
18 | ((( | ||
![]() |
1.2 | 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}]}' |
![]() |
1.3 | 20 | ))) |
![]() |
1.1 | 21 | |
![]() |
1.7 | 22 | ((( |
![]() |
1.3 | 23 | The MQTT command use (% style="color:#4f81bd" %)**-h,-p,-u,-P** (%%)options. We can find them in the website. |
![]() |
1.7 | 24 | ))) |
![]() |
1.1 | 25 | |
![]() |
1.3 | 26 | [[image:https://wiki.dragino.com/images/thumb/2/2f/Stack_v3_downlink_1.png/600px-Stack_v3_downlink_1.png||height="375" width="600"]] |
![]() |
1.1 | 27 | |
![]() |
1.2 | 28 | find -h : broker address , -p port and -u: user name |
![]() |
1.1 | 29 | |
![]() |
1.3 | 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"]] |
![]() |
1.1 | 31 | |
![]() |
1.2 | 32 | find -P : Password |
![]() |
1.1 | 33 | |
34 | |||
![]() |
1.2 | 35 | User MQTT.FX to simulate a downlink |
![]() |
1.1 | 36 | |
![]() |
1.3 | 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"]] |
![]() |
1.2 | 38 | |
39 | Use MQTT.FX to simulate downlink | ||
40 | |||
41 | |||
42 | Input connection info | ||
43 | |||
![]() |
1.3 | 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"]] |
![]() |
1.2 | 45 | |
46 | Input MQTT connection info | ||
47 | |||
48 | |||
49 | Send a downstream | ||
50 | |||
![]() |
1.3 | 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"]] |
![]() |
1.2 | 52 | |
53 | Gateway traffic for downstream | ||
54 | |||
![]() |
1.3 | 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"]] |
![]() |
1.2 | 56 | |
57 | |||
58 | Downstream data flow will like below: | ||
59 | |||
![]() |
1.3 | 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"]] |
![]() |
1.2 | 61 | |
![]() |
1.3 | 62 | [[image:https://wiki.dragino.com/images/1/1f/Stack_v3_downlink_7.png||alt="Stack v3 downlink 7.png" height="371" width="453"]] |
![]() |
1.2 | 63 | |
![]() |
1.3 | 64 | = 3. Trouble Shooting = |
![]() |
1.2 | 65 | |
![]() |
1.3 | 66 | == 3.1 Problem when register a device to TTNv3 if it is already register to TTNv2 == |
![]() |
1.2 | 67 | |
68 | When you register the device in V2 and V3 with the same key and EUI, the device can only connect to V2. | ||
69 | |||
![]() |
1.3 | 70 | [[image:https://wiki.dragino.com/images/thumb/0/0d/V3v2.png/600px-V3v2.png||alt="V3v2.png" height="403" width="600"]] |
![]() |
1.2 | 71 | |
![]() |
1.3 | 72 | [[image:https://wiki.dragino.com/images/thumb/b/b9/V2v3.png/600px-V2v3.png||alt="V2v3.png" height="352" width="600"]] |
![]() |
1.2 | 73 | |
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 | |||
![]() |
1.3 | 76 | == 3.2 MIC Mismatch or MIC Failed == |
![]() |
1.2 | 77 | |
![]() |
1.3 | 78 | ((( |
![]() |
1.4 | 79 | ((( |
![]() |
1.2 | 80 | When the device is registered or the device is working normally, the problem of MIC mismatch and MIC failed occurs. |
![]() |
1.3 | 81 | ))) |
![]() |
1.4 | 82 | ))) |
![]() |
1.2 | 83 | |
![]() |
1.3 | 84 | ((( |
![]() |
1.4 | 85 | ((( |
![]() |
1.2 | 86 | Under normal circumstances, users need to change the APPKEY to solve this problem. |
![]() |
1.3 | 87 | ))) |
![]() |
1.4 | 88 | ))) |
![]() |
1.2 | 89 | |
![]() |
1.3 | 90 | [[image:https://wiki.dragino.com/images/thumb/d/dd/MIC_mismatch.png/600px-MIC_mismatch.png||height="208" width="600"]] |
![]() |
1.2 | 91 | |
92 | MIC Mismatch |