# Cnf uplinks with a payload \> 17 bytes are not working

**URL:** <https://www.thethingsnetwork.org/forum/t/cnf-uplinks-with-a-payload-17-bytes-are-not-working/38175>\
**Category:** Uncategorized\
**Created:** [June 29, 2020, 12:23pm UTC](https://www.thethingsnetwork.org/forum/t/cnf-uplinks-with-a-payload-17-bytes-are-not-working/38175 "2020-06-29T12:23:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yomi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/yomi/32/25844_2.png) [@Yomi](https://www.thethingsnetwork.org/forum/u/Yomi)\
**Post date:** [June 29, 2020, 12:23pm UTC](https://www.thethingsnetwork.org/forum/t/cnf-uplinks-with-a-payload-17-bytes-are-not-working/38175/1 "2020-06-29T12:23:12Z")

</div>

I’m currently experiencing the problem, that confirmed uplinks with more than 17 bytes are not working with TTN when sending with a dr of sf12 or sf11.

The following tests are working fine:

- Sending uplinks with \< 17 bytes
- Sending unconfirmed
- Sending with a dr \<= sf10
- Sending to another LoRaWAN network server (ChirpStack)

But as soon as I increase the uplink payload to 18 bytes or more, and send them to TTN, I see the following behavior:  
 ![ttn](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/f/e/fe34be2c9474c01dce356fbce687582ea5aaa1dc.png)

The antenna is in the same room. The RSSI of the uplinks are at around -40dBm. Join (OTAA) and uplinks are sending with sf12, cnf = true, adr = true, send trials = 3.

As much as I know, sending uplinks up to 51 bytes shouldn’t be a problem with sf12.

Anyone experiencing/ed the same or something similar?

Any suggestion?

Thanks in advance for your help.

---

<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:** [June 29, 2020, 12:33pm UTC](https://www.thethingsnetwork.org/forum/t/cnf-uplinks-with-a-payload-17-bytes-are-not-working/38175/2 "2020-06-29T12:33:26Z")

</div>

> [@Yomi](#):
>
> The antenna is in the same room.

You may well be overloading most of the RF circuitry on your gateway - try moving one of them in to another room or better, 25m away.

---

<div class="post-metadata">

**Author:** ![Yomi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/yomi/32/25844_2.png) [@Yomi](https://www.thethingsnetwork.org/forum/u/Yomi)\
**Post date:** [June 29, 2020, 12:43pm UTC](https://www.thethingsnetwork.org/forum/t/cnf-uplinks-with-a-payload-17-bytes-are-not-working/38175/3 "2020-06-29T12:43:24Z")

</div>

Thanks for the suggestion.  
I just tried moving my device 30-40m away but no difference (except for a RSSI at around -100dBm).

But I also think that an overloaded RF circuit is unlikely since it’s working with a payload of 17 bytes but not with 18 bytes.

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [June 29, 2020, 12:53pm UTC](https://www.thethingsnetwork.org/forum/t/cnf-uplinks-with-a-payload-17-bytes-are-not-working/38175/4 "2020-06-29T12:53:55Z")

</div>

As it seems the downlinks are actually being transmitted, I’d peek in the network Traffic to see what’s in the failing downlinks and what is in the successful ones. Using SF11 or SF12 may very well trigger some network ADR MAC command sooner than for other data rates; maybe the device’s LoRaWAN doesn’t like that? (That would not explain why 17 bytes uplinks would work on SF12, while 18 bytes would not. But well.)

---

<div class="post-metadata">

**Author:** ![Yomi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/yomi/32/25844_2.png) [@Yomi](https://www.thethingsnetwork.org/forum/u/Yomi)\
**Post date:** [June 29, 2020, 1:00pm UTC](https://www.thethingsnetwork.org/forum/t/cnf-uplinks-with-a-payload-17-bytes-are-not-working/38175/5 "2020-06-29T13:00:49Z")

</div>

Here’s an example of a working and a failing scenario:  
 ![ttn2](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/f/b/fb49705a8f6e1fc5eeca699c7fb09aa8233374e8.png)

Good idea, I’ll check if I can see something in the network traffic.

If I remember correctly, I’m using the STM32 implementation with the 1.0.2 RevB LoRaWAN specs.

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [June 29, 2020, 1:55pm UTC](https://www.thethingsnetwork.org/forum/t/cnf-uplinks-with-a-payload-17-bytes-are-not-working/38175/7 "2020-06-29T13:55:05Z")

</div>

Please post the gateway’s full LoRaWAN packets as text, so one can investigate in [an online decoder](https://runkit.io/avbentem/lorawan-packet-decoder/branches/master).

---

<div class="post-metadata">

**Author:** ![Yomi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/yomi/32/25844_2.png) [@Yomi](https://www.thethingsnetwork.org/forum/u/Yomi)\
**Post date:** [June 29, 2020, 2:11pm UTC](https://www.thethingsnetwork.org/forum/t/cnf-uplinks-with-a-payload-17-bytes-are-not-working/38175/8 "2020-06-29T14:11:04Z")

</div>

I just tested a newer version of the used LoRa stack from ST (from V1.1.4 to V1.3.1) but couldn’t reproduce this error. It seems to have been fixed during the last two years.

We will search for a solution to update to this version.

Thanks a lot you for you fast support.

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [June 29, 2020, 5:13pm UTC](https://www.thethingsnetwork.org/forum/t/cnf-uplinks-with-a-payload-17-bytes-are-not-working/38175/9 "2020-06-29T17:13:19Z")

</div>

Before anything else, you should take some time to think about how unreasonably long the on-air time of a packet with 18 payload bytes at SF11 or SF12 actually is. Even at SF10 it’s pretty long.

Also, LoRaWAN confirmed uplink isn’t very well thought out, as if its the ack that is lost, the node will never get another for that sequence number and instead will simply retry until its give up limit. Generally you’re better off doing your own application-level confirmation, not only because of that, but because for many applications it make as much sense to retry with fresher data as it does to keep trying to get increasingly stale data through.

And regardless if a confirming downlink is network-level or application-level, it’s still a very large cost on gateway capacity, since a gateway cannot receive on any channel while it is transmitting a downlink.
