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