Skip to main content

TTN Stack v3

1.  Introduction

Notes for using Dragino Devices with TTN Stack3.

Use MQTT API for downlink: Reference: TTN Stack v3 MQTT reference

Download command is:

::: box 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}]}'

The MQTT command use -h,-p,-u,-P[ ]options. We can find them in the website.

image

find -h : broker address , -p port and -u: user name

image

find -P : Password

User MQTT.FX to simulate a downlink

image

Use MQTT.FX to simulate downlink

Input connection info

image

Input MQTT connection info

Send a downstream

image

Gateway traffic for downstream

image

Downstream data flow will like below:

image

image

3.  Trouble Shooting

3.1  Problem when register a device to TTNv3 if it is already register to TTNv2

When you register the device in V2 and V3 with the same key and EUI, the device can only connect to V2.

image

image

If you want the device to connect to V3. You must change your key and EUI, or delete the device registered on V2.

3.2  MIC Mismatch or MIC Failed

When the device is registered or the device is working normally, the problem of MIC mismatch and MIC failed occurs.

Under normal circumstances, users need to change the APPKEY to solve this problem.

image

MIC Mismatch

::: like-container