# TTN does not get my data (after about 2 hours)

**URL:** <https://www.thethingsnetwork.org/forum/t/ttn-does-not-get-my-data-after-about-2-hours/56445>\
**Category:** Pycom\
**Created:** [April 13, 2022, 12:39pm UTC](https://www.thethingsnetwork.org/forum/t/ttn-does-not-get-my-data-after-about-2-hours/56445 "2022-04-13T12:39:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jusm](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jusm/32/35697_2.png) [@jusm](https://www.thethingsnetwork.org/forum/u/jusm)\
**Post date:** [April 13, 2022, 12:39pm UTC](https://www.thethingsnetwork.org/forum/t/ttn-does-not-get-my-data-after-about-2-hours/56445/1 "2022-04-13T12:39:47Z")

</div>

Hello everyone,  
I connected a sensor (pysense in combination with a lopy4, both by pycom) to TTN. Everything works perfectly fine and I can see the data in the cloud. After 2 hours the data arrival stops and it seems like the sensor is not active anymore although it indeed is.  
I did not find anything that could explain this behavior. Does anyone has an idea?  
Best regards and thanks in advance!

---

<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:** [April 13, 2022, 2:36pm UTC](https://www.thethingsnetwork.org/forum/t/ttn-does-not-get-my-data-after-about-2-hours/56445/2 "2022-04-13T14:36:16Z")

</div>

Is it still transmitting? Many end devices conveniently have UART type debug output, or lights that flash. If you can measure it with something that unlike a typical multi-meter does not distort operation, you’d also tend to see a large pulse in power draw.

What gateway are you using? If you have your own gateway you should be able to see if it is receiving raw traffic in the gateway’s own logs or in the TTN console page for the gateway.

Has your device lost power and restarted, or crashed / asserted and restarted? Losing the state of the LoRaWAN session is known to cause many problems.

---

<div class="post-metadata">

**Author:** ![jusm](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jusm/32/35697_2.png) [@jusm](https://www.thethingsnetwork.org/forum/u/jusm)\
**Post date:** [May 12, 2022, 8:48am UTC](https://www.thethingsnetwork.org/forum/t/ttn-does-not-get-my-data-after-about-2-hours/56445/3 "2022-05-12T08:48:46Z")

</div>

Thank you for your answer!  
It suddently sent data when I was working on the setup. Unfortunately I do not know what I changed therefore…

---

<div class="post-metadata">

**Author:** ![Sandgroper](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sandgroper/32/46619_2.png) [@Sandgroper](https://www.thethingsnetwork.org/forum/u/Sandgroper)\
**Post date:** [May 12, 2022, 1:12pm UTC](https://www.thethingsnetwork.org/forum/t/ttn-does-not-get-my-data-after-about-2-hours/56445/4 "2022-05-12T13:12:54Z")

</div>

Depending on your configuration, the device you are using, the size and rate you are sending messages, your device may be throttling the transmission of packets,

---

<div class="post-metadata">

**Author:** ![jlousado](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jlousado/32/46360_2.png) [@jlousado](https://www.thethingsnetwork.org/forum/u/jlousado)\
**Post date:** [May 16, 2022, 9:33am UTC](https://www.thethingsnetwork.org/forum/t/ttn-does-not-get-my-data-after-about-2-hours/56445/5 "2022-05-16T09:33:27Z")

</div>

Hi, I have a similar problem, for which I can’t find a solution. whenever the node resets or turns itself off, when it turns back on, even when sending to the gateway (correctly received), the data is not received in the application. if I remove the node and recreate it, with the same settings, it works correctly again. It only happens on TTN V3, on TTN V2 it worked correctly. Gateway and node are TTGO ESP32 Oled with LoRa. How to solve the problem that the application continues to receive data after the node is reset, without having to recreate the node?

---

<div class="post-metadata">

**Author:** ![jlousado](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jlousado/32/46360_2.png) [@jlousado](https://www.thethingsnetwork.org/forum/u/jlousado)\
**Post date:** [May 16, 2022, 9:50am UTC](https://www.thethingsnetwork.org/forum/t/ttn-does-not-get-my-data-after-about-2-hours/56445/6 "2022-05-16T09:50:44Z")

</div>

With “reset frame counters” enabled, that’s fine, but the system shows a message that is vulnerable.  
But for now, is one possible solution.

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [May 16, 2022, 9:58am UTC](https://www.thethingsnetwork.org/forum/t/ttn-does-not-get-my-data-after-about-2-hours/56445/7 "2022-05-16T09:58:12Z")

</div>

> [@jlousado](#):
>
> How to solve the problem that the application continues to receive data after the node is reset, without having to recreate the node?

To solve this issue you have to save the relevant counters to NVM as specified in the LoRaWAN standard. Your reset causes the counters to restart from 0 which makes the LoRaWAN backend think the uplinks are a replay attack.

---

<div class="post-metadata">

**Author:** ![jlousado](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jlousado/32/46360_2.png) [@jlousado](https://www.thethingsnetwork.org/forum/u/jlousado)\
**Post date:** [May 16, 2022, 10:24am UTC](https://www.thethingsnetwork.org/forum/t/ttn-does-not-get-my-data-after-about-2-hours/56445/8 "2022-05-16T10:24:17Z")

</div>

Thank you.  
AB.

---

<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:** [May 16, 2022, 11:04am UTC](https://www.thethingsnetwork.org/forum/t/ttn-does-not-get-my-data-after-about-2-hours/56445/9 "2022-05-16T11:04:58Z")

</div>

> [@jlousado](#):
>
> Gateway and node are TTGO ESP32 Oled with LoRa

Is your gateway a TTGO ESP32?
