# Cannot send Downlink data from thingsboard to TTI

**URL:** <https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488>\
**Category:** TTN Network and Services\
**Tags:** format\
**Created:** [November 9, 2023, 9:32am UTC](https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488 "2023-11-09T09:32:30Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![khukhu](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/k/71c47a/32.png) [@khukhu](https://www.thethingsnetwork.org/forum/u/khukhu)\
**Post date:** [November 9, 2023, 9:32am UTC](https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488/1 "2023-11-09T09:32:31Z")

</div>

# Hi,

I can send uplink data from TTI cloud console to ThingsBoard by using MQTT integration.  
But I am facing a problem of downlink data from thingsboard to TTI .  
Downlink converter payload data is queuing in the ThingsBoard Integration, but it cannot proceed to TTI cloud.  
Uplink

message in TB integration  
{  
“topic”: “v3/iot-controller-application@agb-iot-tti/devices/eui-24e124445d080814/up”,  
“payload”: {  
“end\_device\_ids”: {  
“device\_id”: “eui-24e124445d080814”,  
“application\_ids”: {  
“application\_id”: “iot-controller-application”  
},  
“uplink\_message”: {  
“f\_port”: 85,  
“f\_cnt”: 5,  
“frm\_payload”: “AwAABAAABQAABgAABwEACAEB”,  
“decoded\_payload”: {  
“gpio\_in\_1”: “off”,  
“gpio\_in\_2”: “off”,  
“gpio\_in\_3”: “off”,  
“gpio\_in\_4”: “off”,  
“gpio\_out\_1”: “NC”,  
“gpio\_out\_2”: “NO”  
}  
}  
}  
Downlink

message in TB integration  
{  
“topic”: “v3/iot-controller-application@agb-iot-tti/devices/eui-24e124445d080814/down/push”,  
“payload”: {  
“downlinks”: [{  
“f\_port”: 2,  
“confirmed”: false,  
“frm\_payload”: {  
“fport”: 2  
},  
“priority”: “HIGHEST”  
}]  
}  
}

the above downlink cannot proceed to my TTI cloud downlink queue.  
My gateway is milesight UG 63  
Milesight UC 300 IoT controller  
I really hope for help to solve my issue.  
Khu khu

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [November 9, 2023, 10:21am UTC](https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488/2 "2023-11-09T10:21:07Z")

</div>

> [@khukhu](#):
>
> “downlinks”: [{  
> “f\_port”: 2,  
> “confirmed”: false,  
> “frm\_payload”: {  
> “fport”: 2  
> },  
> “priority”: “HIGHEST”  
> }]

This isn’t right - perhaps check the docs!

> [@khukhu](#):
>
> My gateway is milesight UG 63

Not really relevant - they all work to the same spec - but what would be super extra brilliant to know is what device you are using as that speaks to the format.

Please review your formatting of your post - you can edit it with the pencil tool after you’ve posted.

---

<div class="post-metadata">

**Author:** ![khukhu](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/k/71c47a/32.png) [@khukhu](https://www.thethingsnetwork.org/forum/u/khukhu)\
**Post date:** [November 9, 2023, 10:29am UTC](https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488/3 "2023-11-09T10:29:46Z")

</div>

OK. I will update it.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [November 9, 2023, 10:36am UTC](https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488/4 "2023-11-09T10:36:38Z")

</div>

What device!!!

---

<div class="post-metadata">

**Author:** ![khukhu](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/k/71c47a/32.png) [@khukhu](https://www.thethingsnetwork.org/forum/u/khukhu)\
**Post date:** [November 9, 2023, 10:37am UTC](https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488/5 "2023-11-09T10:37:17Z")

</div>

Milesight UC 300 IoT controller  
Here are download queue in TTI console  
{  
“name”: “ns.down.data.schedule.attempt”,  
“time”: “2023-11-09T09:58:28.972970329Z”,  
“identifiers”: [  
{  
“device\_ids”: {  
“device\_id”: “eui-24e124445d080814”,  
“application\_ids”: {  
“application\_id”: “iot-controller-application”  
},  
“dev\_eui”: “24E124445D080814”,  
“join\_eui”: “24E124C0002A0001”,  
“dev\_addr”: “27037069”  
}  
}  
],  
“data”: {  
“@type”: “[type.googleapis.com/ttn.lorawan.v3.DownlinkMessage](http://type.googleapis.com/ttn.lorawan.v3.DownlinkMessage)”,  
“raw\_payload”: “YGlwAyeDCAACFQHGTaQv”,  
“payload”: {  
“m\_hdr”: {  
“m\_type”: “UNCONFIRMED\_DOWN”  
},  
“mic”: “xk2kLw==”,  
“mac\_payload”: {  
“f\_hdr”: {  
“dev\_addr”: “27037069”,  
“f\_ctrl”: {  
“adr”: true  
},  
“f\_cnt”: 8,  
“f\_opts”: “AhUB”  
},  
“full\_f\_cnt”: 8  
}  
},  
“request”: {  
“downlink\_paths”: [  
{  
“uplink\_token”: “CiIKIAoUZXVpLTI0ZTEyNGZmZmVmNTU0NGESCCThJP/+9VRKEJXf4hQaDAjE2rKqBhDZkbGMAiCIvLejou8F”  
}  
],  
“rx1\_delay”: 5,  
“rx1\_data\_rate”: {  
“lora”: {  
“bandwidth”: 125000,  
“spreading\_factor”: 7,  
“coding\_rate”: “4/5”  
}  
},  
“rx1\_frequency”: “923400000”,  
“rx2\_data\_rate”: {  
“lora”: {  
“bandwidth”: 125000,  
“spreading\_factor”: 10,  
“coding\_rate”: “4/5”  
}  
},  
“rx2\_frequency”: “923200000”,  
“priority”: “HIGHEST”,  
“frequency\_plan\_id”: “AS\_923”  
},  
“correlation\_ids”: [  
“gs:uplink:01HESR9MYK4M1GSER5ZV1JYQ8Y”,  
“ns:downlink:01HESR9NBCZW0QV4ME97AZZJYH”,  
“ns:transmission:01HESR9NBCEDHAG5MQV7CAXDVH”  
]  
},  
“correlation\_ids”: [  
“gs:uplink:01HESR9MYK4M1GSER5ZV1JYQ8Y”,  
“ns:downlink:01HESR9NBCZW0QV4ME97AZZJYH”,  
“ns:transmission:01HESR9NBCEDHAG5MQV7CAXDVH”  
],  
“origin”: “ip-10-21-7-80.ap-southeast-2.compute.internal”,  
“context”: {  
“tenant-id”: “CgthZ2ItaW90LXR0aQ==”  
},  
“visibility”: {  
“rights”: [  
“RIGHT\_APPLICATION\_TRAFFIC\_READ”  
]  
},  
“unique\_id”: “01HESR9NBCN09WVRBKAS0KTM59”  
}

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [November 9, 2023, 10:39am UTC](https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488/6 "2023-11-09T10:39:10Z")

</div>

Ah, I can see that now, which is why clear formatted spaced posts are so important.

If you have your own instance, do you not have a support option as well??

---

<div class="post-metadata">

**Author:** ![khukhu](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/k/71c47a/32.png) [@khukhu](https://www.thethingsnetwork.org/forum/u/khukhu)\
**Post date:** [November 9, 2023, 10:41am UTC](https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488/7 "2023-11-09T10:41:37Z")

</div>

I do not understand what do you mean?  
You ask me about technical support from TTI?  
There is no any technical support for me, I am a new learner of TTI and thingsboard platform by reading document and try step by step.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [November 9, 2023, 11:26am UTC](https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488/8 "2023-11-09T11:26:54Z")

</div>

> [@khukhu](#):
>
> iot-controller-application@agb-iot-tti

You have an instance called **agb-iot-tti** so you are not using the community (TTN) edition.

If you have a private instance, did you subscribe to support?

Subscribing to a support plan is not related to how much you know, it’s about your choices when you registered - if you have support, TTI can help you. If you don’t, then it’s just whatever we can figure out here.

Hopefully in the meanwhile you’ve sorted out your JSON payload!

---

<div class="post-metadata">

**Author:** ![khukhu](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/k/71c47a/32.png) [@khukhu](https://www.thethingsnetwork.org/forum/u/khukhu)\
**Post date:** [November 9, 2023, 11:30am UTC](https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488/9 "2023-11-09T11:30:44Z")

</div>

Thank you for your well explanation. If so, I will try to contact technical support team or open a ticket.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [November 9, 2023, 1:00pm UTC](https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488/10 "2023-11-09T13:00:56Z")

</div>

Or you could just read the docs and make the JSON format correct!

---

<div class="post-metadata">

**Author:** ![khukhu](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/k/71c47a/32.png) [@khukhu](https://www.thethingsnetwork.org/forum/u/khukhu)\
**Post date:** [November 10, 2023, 2:07am UTC](https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488/11 "2023-11-10T02:07:02Z")

</div>

Yes, I have check the document, and I tried to fix the JSON format.  
I take a reference here.  
[ThingsBoard | The Things Stack for LoRaWAN (thethingsindustries.com)](https://www.thethingsindustries.com/docs/integrations/cloud-integrations/thingsboard/)

Sincerely I do not have enough skill in writing code.  
In my tti instance, Uplink payload formatter is processing well.  
I think I have problem in downlink formatter encoderDownlink(input)  
I read reference, I think, it is depending on the user background skills to make code modification.

\</\>  
function encodeDownlink(input) {  
return {  
bytes: ,  
fPort: 1,  
warnings: ,  
errors:   
};  
}

function decodeDownlink(input) {  
return {  
data: {  
bytes: input.bytes  
},  
warnings: ,  
errors:   
}  
}  
\</\>

---

<div class="post-metadata">

**Author:** ![Piet\_Pillay](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/piet_pillay/32/35697_2.png) [@Piet\_Pillay](https://www.thethingsnetwork.org/forum/u/Piet_Pillay)\
**Post date:** [November 10, 2023, 5:20am UTC](https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488/12 "2023-11-10T05:20:56Z")

</div>

will it be possible to make your post more readable

if you post code or any text from debug use the \</\> tool in the post editor please

---

<div class="post-metadata">

**Author:** ![khukhu](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/k/71c47a/32.png) [@khukhu](https://www.thethingsnetwork.org/forum/u/khukhu)\
**Post date:** [November 10, 2023, 5:47am UTC](https://www.thethingsnetwork.org/forum/t/cannot-send-downlink-data-from-thingsboard-to-tti/65488/13 "2023-11-10T05:47:25Z")

</div>

Ok, noted it.
