# Data are visible at the gateway but not in the application

**URL:** <https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054>\
**Category:** The Things Stack v3\
**Tags:** gateways, ttn-mapper, end-devices\
**Created:** [October 5, 2023, 7:49am UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054 "2023-10-05T07:49:24Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![desiderius](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/desiderius/32/35697_2.png) [@desiderius](https://www.thethingsnetwork.org/forum/u/desiderius)\
**Post date:** [October 5, 2023, 7:49am UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/1 "2023-10-05T07:49:24Z")

</div>

Hello,

i have TTN Gateway “MikroTik LoRaWAN wAP LoRa8 kit” on my roof at a height of ~25 meters  
with MikroTik LoRaWAN - Omni Antenne 824-960 MHz .

As clients there are 1. channel beehive monitoring devices in my garden.  
It sends on 868 Mhz SF 7 Bandwith 125 Mhz, i thins its something about 32 bits every 5 minutes.

i have tried to decrypt the Payload:  
FRMPayload = 0116D7AFEB3584518DB39AEEFB5462E471936F693B (from packet, encrypted)  
= 0808104410F10000FFAE000000000B00038537D92D (decrypted)

It works fine since 09.07.2023 until 01.10.2023. Then the data in the Application have stopped.

I see the data on the MikroTik Gateway.

 ![lora_3](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/9/1/9191a3376edb62c13ba53be4387396be302c8810.png)

And i see the data on the ttn gateway overview.

 ![lora_1](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/5/2/52ca0e7221ded2b6d08edb6132d83013d9e06bf7.png)

 ![lora2](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/8/5/8561cadb61f5c45b2d2524557d3715115cd0cf01.png)

But there are no Data in the Application.

What am I missing, what am I doing wrong?

---

<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:** [October 5, 2023, 8:40am UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/2 "2023-10-05T08:40:33Z")

</div>

> [@desiderius](#):
>
> As clients there are 1. channel beehive monitoring devices in my garden

Hmmm, Not LoRaWAN compatible. Why not use all 8 channels?

> [@desiderius](#):
>
> But there are no Data in the Application

What is the last fcnt value for the device listed in the application?

---

<div class="post-metadata">

**Author:** ![desiderius](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/desiderius/32/35697_2.png) [@desiderius](https://www.thethingsnetwork.org/forum/u/desiderius)\
**Post date:** [October 5, 2023, 9:14am UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/3 "2023-10-05T09:14:44Z")

</div>

It’s an community [beelogger.de](http://beelogger.de) project with  
RFM95-868MHz LORA SX1276 Chip  
i think this is the limiting factor.

i checkt it its using min 3 Channels.

 ![lora_4](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/8/6/861ecc73d09b772c8e9dc71c5b20a68414707567.png)

The data are visible on the Gateway site on TTN but they are not forwarded to the TTN Application.

f\_cnt number on the gateway TTN Site “event details” is 1046. You can see it on the screenshot in my first post.

I cant find the fcnt number on the ttn application site “[The Things Network Console](https://eu1.cloud.thethings.network/console/applications/beeloggerblue05)”

Where i can see it?

---

<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:** [October 5, 2023, 11:37am UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/4 "2023-10-05T11:37:03Z")

</div>

> [@desiderius](#):
>
> I cant find the fcnt number on the ttn application site “[The Things Network Console](https://eu1.cloud.thethings.network/console/applications/beeloggerblue05)”
> 
> Where i can see it?

It is the number next to the arrow pointing up on the device overview page.

---

<div class="post-metadata">

**Author:** ![desiderius](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/desiderius/32/35697_2.png) [@desiderius](https://www.thethingsnetwork.org/forum/u/desiderius)\
**Post date:** [October 5, 2023, 11:52am UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/5 "2023-10-05T11:52:16Z")

</div>

> [@kersing](#):
>
> the arrow pointing up on the device overview pag

Sorry, i dont see it. Where?

 ![lora_5](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/3/4/34d7e6c19734d13045571d2cb57bc0ed9b268e69.png)

---

<div class="post-metadata">

**Author:** ![desiderius](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/desiderius/32/35697_2.png) [@desiderius](https://www.thethingsnetwork.org/forum/u/desiderius)\
**Post date:** [October 5, 2023, 11:54am UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/6 "2023-10-05T11:54:20Z")

</div>

> [@kersing](#):
>
> It is the number next to the arrow pointing up on the device overview page.

Maybe here?

 ![lora_6](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/4/c/4c07c6f9260b4a7df014b53aaa705f35d9bca090.png)

---

<div class="post-metadata">

**Author:** ![desiderius](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/desiderius/32/35697_2.png) [@desiderius](https://www.thethingsnetwork.org/forum/u/desiderius)\
**Post date:** [October 5, 2023, 12:00pm UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/7 "2023-10-05T12:00:53Z")

</div>

if the left arrow is the fcnt number then its 16382  
so it dosent match with 1100

 ![grafik](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/c/b/cb03b60f8e7628770963f5b02f57c8b03d380b79.png)

so can set it right, on the page?

---

<div class="post-metadata">

**Author:** ![desiderius](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/desiderius/32/35697_2.png) [@desiderius](https://www.thethingsnetwork.org/forum/u/desiderius)\
**Post date:** [October 5, 2023, 12:34pm UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/8 "2023-10-05T12:34:28Z")

</div>

I think i know what happens.  
The sender has an Problem when the fcount reachs 16382,  
the sender switch to 0 or 1 and starts to count from the beginning.

So i think the is something to be fixed in the code.

```auto
> payload[cnt_pld] = ((uint16_t)0xFF00 & PayloadHeader) >> 8;
> cnt_pld++;
> payload[cnt_pld] = ((uint16_t)0x00FF & PayloadHeader);
> cnt_pld++;

```

But the question now is how i can reset the fcount on the website, so its work for the next 16382 times.  
Until the real problem is solved.

---

<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:** [October 5, 2023, 1:08pm UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/9 "2023-10-05T13:08:10Z")

</div>

you are looking at a mac message

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/f/1/f1cfcc47846e9f79a83b7073803275aae7e6e054.png)

---

<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:** [October 5, 2023, 1:13pm UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/10 "2023-10-05T13:13:22Z")

</div>

under the node general settings there is a network layer and then mac settings

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/0/1/0116eeb79861bc00c8e3d27ade0872edac7b9b59.png)

---

<div class="post-metadata">

**Author:** ![desiderius](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/desiderius/32/35697_2.png) [@desiderius](https://www.thethingsnetwork.org/forum/u/desiderius)\
**Post date:** [October 5, 2023, 4:42pm UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/11 "2023-10-05T16:42:51Z")

</div>

> [@desiderius](#):
>
> e next 16382 times.  
> Until the real problem is solved.

I may have found a solution:

> [@How to reset frame counter on V3?](https://www.thethingsnetwork.org/forum/t/how-to-reset-frame-counter-on-v3/47884/6):
>
> At least for 1.0.x ABP devices, it seems in V3 the downlink counter (as used by TTN) is reset automatically when TTN detects and allows that the uplink counter has been reset. I’m sure one can confirm in the code somewhere. In V2, for the downlink counters, this needed one to click the “reset frame counters” link in the V2 Console. Some testing showed that after a LoRaWAN 1.0.x device (MAC V1.0.2, PHY V1.0.2 REV B) was restarted, [the next downlink used FCnt = 1](https://runkit.io/avbentem/lorawan-packet-decoder/branches/master/?data=YBcTASagAQCvz%2F2C), even though before that device r…

But i cant finde this option:  
 ![grafik](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/d/2/d27d36e4f414e975acb2cb1be8b7eece3b0bcadb.png)

can you please help?

---

<div class="post-metadata">

**Author:** ![desiderius](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/desiderius/32/35697_2.png) [@desiderius](https://www.thethingsnetwork.org/forum/u/desiderius)\
**Post date:** [October 5, 2023, 4:57pm UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/12 "2023-10-05T16:57:49Z")

</div>

> [@Piet\_Pillay](#):
>
> under the node general settings there is a network layer and then mac settings

I am a little confused, are the fcount and MAC the same term fo the same number?  
I thought this was an ascending package number, sequence number, number of sent uplinks.

MAC normaly **(Media Access Control)** but in this case the “MAC state” is completely different  
ist a little bit confusing.

Ok i have reset the “MAC state” must the fcnt start by 0 or 1?

---

<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:** [October 5, 2023, 5:30pm UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/13 "2023-10-05T17:30:08Z")

</div>

> [@desiderius](#):
>
> But i cant finde this option:

> [@desiderius](#):
>
> are the fcount and MAC the same term fo the same number?

You may find you are substantially more productive with these issues by looking at:

[https://www.thethingsindustries.com/docs/](https://www.thethingsindustries.com/docs/)

which has an explicit entry for ‘reset f\_cnt’ when entered in the search which leads to a section called troubleshooting as ABP f\_cnt issues are sufficiently common that forum search yields dozens of hits

and

[https://www.thethingsnetwork.org/docs/lorawan/](https://www.thethingsnetwork.org/docs/lorawan/)

for general principles, an evenings read well spent.

Please be aware that everyone answering here are volunteers, so best to keep your questions for when the docs aren’t providing any answers.

---

<div class="post-metadata">

**Author:** ![jyohoiottn](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jyohoiottn](https://www.thethingsnetwork.org/forum/u/jyohoiottn)\
**Post date:** [May 18, 2024, 4:03pm UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/14 "2024-05-18T16:03:37Z")

</div>

Hello team and I am suffering the same problem with the application not receiving the uplink message from the gateway when I power down the IOT device. Is there any other workaround ? I have tried all your ideas here with no sucess at all… Many thanks Antonio Cirone

---

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/46550_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [May 19, 2024, 1:12pm UTC](https://www.thethingsnetwork.org/forum/t/data-are-visible-at-the-gateway-but-not-in-the-application/65054/15 "2024-05-19T13:12:39Z")

</div>

Powering down a IOT means to me you switching it off.

What do you see in the console?

What is the RSSI of the node?

How far is the node from the gateway
