# Device being seen by gateway but not updating status/data

**URL:** <https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303>\
**Category:** How to get started\
**Created:** [February 11, 2020, 9:53pm UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303 "2020-02-11T21:53:42Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlubeck](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jlubeck/32/25844_2.png) [@jlubeck](https://www.thethingsnetwork.org/forum/u/jlubeck)\
**Post date:** [February 11, 2020, 9:53pm UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/1 "2020-02-11T21:53:42Z")

</div>

Hi,  
I had a couple of devices setup and working in the past. After a few months I went back to them, and it looks like they are not updating information. The strange thing is that if I go to [https://console.thethingsnetwork.org/gateways/{name}/traffic](https://console.thethingsnetwork.org/gateways/%7Bname%7D/traffic) I see downlink traffic coming from a specific device.

But if I then go to [https://console.thethingsnetwork.org/applications/{name}/devices/{name}](https://console.thethingsnetwork.org/applications/%7Bname%7D/devices/%7Bname%7D)  
The last seen status is 8 months ago, and inside the data tab, everything is empty.

What could be going on?

Thank you!

---

<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:** [February 11, 2020, 10:17pm UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/2 "2020-02-11T22:17:18Z")

</div>

What counter values are the devices at?

---

<div class="post-metadata">

**Author:** ![jlubeck](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jlubeck/32/25844_2.png) [@jlubeck](https://www.thethingsnetwork.org/forum/u/jlubeck)\
**Post date:** [February 11, 2020, 11:07pm UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/3 "2020-02-11T23:07:53Z")

</div>

This is what the Lorawan gateway is showing:  
 ![Screen Shot 2020-02-11 at 6.08.26 PM](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/9/697056f2135b9f0da70b2e06336e9cb580ee6847.png)

And this what thethingsnetwork is showing on the device overview:  
 ![Screen Shot 2020-02-11 at 6.05.50 PM](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/3/9/396edb6d424a425be665caad532212c4a3a2cde0.png)

Does that help answer your question? Sorry, I’m new at all this…

---

<div class="post-metadata">

**Author:** ![jlubeck](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jlubeck/32/25844_2.png) [@jlubeck](https://www.thethingsnetwork.org/forum/u/jlubeck)\
**Post date:** [February 11, 2020, 11:11pm UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/4 "2020-02-11T23:11:05Z")

</div>

And this is what the gateway is seeing on thethingsnetwork  
 ![Screen Shot 2020-02-11 at 6.10.10 PM](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/5/8/58aad09fd526d1c43566293eafaa4302068881b4.png)

The third one is the device in question

---

<div class="post-metadata">

**Author:** ![Paul\_Stewart](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/paul_stewart/32/46922_2.png) [@Paul\_Stewart](https://www.thethingsnetwork.org/forum/u/Paul_Stewart)\
**Post date:** [February 11, 2020, 11:33pm UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/5 "2020-02-11T23:33:08Z")

</div>

Starting with the basics -

1. check and double check your keys.
2. check your antenna connections
3. make sure you have good coverage (but not too close to the gateway as well)

What kind of node are you using?  
Are you trying with ABP or OTAA?

---

<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:** [February 11, 2020, 11:42pm UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/6 "2020-02-11T23:42:54Z")

</div>

The counters are totally out of sync. You will probably need to restart the device to get it back in working order.  
Then monitor if it keeps sending data to the application when the counter reaches 64k. I suspect it will not (device on TTN is probably set to 16 bit counters when the node is using 32 bits).

BTW, keep in mind TTN fair access policy allows for 30 seconds airtime for a node per day. You seem to be sending 100 packets in \< 2 hours which will result in a lot more airtime.

---

<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:** [February 11, 2020, 11:57pm UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/7 "2020-02-11T23:57:16Z")

</div>

To see/confirm that the device has exceeded the limits of a 16 bits uplink frame count (65,536), one can paste a Base-64 encoded payload from the gateway’s Traffic page into [an online decoder](https://runkit.io/avbentem/lorawan-packet-decoder/branches/master), and then also specify the AppSKey and NwkSKey. Using those secrets, the decoder will show the MSB of the frame count (which is not in the packet itself, but needs to be determined by the server, for which a real LoRaWAN server then assumes the counters are not too far out of sync).

See [After resetting frame counters, payload is shown on gateway traffic but not in application](https://www.thethingsnetwork.org/forum/t/after-resetting-frame-counters-payload-is-shown-on-gateway-traffic-but-not-in-application/19331/12) to re-sync the uplink frame count in TTN and the device. That won’t work for the downlink counter though, so simply restarting the devices is surely easier, but maybe you want to know what’s happened.

---

<div class="post-metadata">

**Author:** ![jlubeck](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jlubeck/32/25844_2.png) [@jlubeck](https://www.thethingsnetwork.org/forum/u/jlubeck)\
**Post date:** [February 12, 2020, 2:24am UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/8 "2020-02-12T02:24:51Z")

</div>

Thank you all for your replies. I’ll make sure to check everything and get back to you all with more info/results

---

<div class="post-metadata">

**Author:** ![ThomasF](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/thomasf/32/25844_2.png) [@ThomasF](https://www.thethingsnetwork.org/forum/u/ThomasF)\
**Post date:** [February 19, 2020, 11:30am UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/9 "2020-02-19T11:30:30Z")

</div>

Hi,

We are experiencing the same problem.  
We have a Things Indoor Gateway. We set up this gateway in the things network console and it’s working, its status is connected and in the traffic page we see join and uplink trames.

We created an application and set up 7 devices with their deveui and AppKEY (OTAA ), but we are not able to see their status, for any of the 7 devices.

We have already used these devices with another gateway without thethingsnetwork platform and it’s worked well.  
But with the Things Indoor Gateway and the Things network console even when we reset the devices (they send a join command after restart) their status are still never seen.

Do you have any idea to understand and fix this problem ?

Thank you !

---

<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:** [February 19, 2020, 12:48pm UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/10 "2020-02-19T12:48:45Z")

</div>

> [@ThomasF](#):
>
> in the traffic page we see join and uplink trames

For those 7 devices? So, the OTAA joins succeeded and the devices are transmitting data uplinks, [with a 0x26/0x27 TTN DevAddr](https://www.thethingsnetwork.org/docs/lorawan/addressing.html)? (Just to make sure they did not join the previous network.)

> [@ThomasF](#):
>
> We created an application and set up 7 devices with their deveui and AppKEY

What about their AppEUIs?

Any cross-region involved? Are you seeing data through some integration, or when using the MQTT API?

---

<div class="post-metadata">

**Author:** ![ThomasF](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/thomasf/32/25844_2.png) [@ThomasF](https://www.thethingsnetwork.org/forum/u/ThomasF)\
**Post date:** [February 19, 2020, 8:46pm UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/11 "2020-02-19T20:46:58Z")

</div>

Thank you for your response.

> [@arjanvanb](#):
>
> For those 7 devices? So, the OTAA joins succeeded and the devices are transmitting data uplinks, [with a 0x26/0x27 TTN DevAddr](https://www.thethingsnetwork.org/docs/lorawan/addressing.html)? (Just to make sure they did not join the previous network.)

Not for the 7, for some devices I don’t see any traffic (join or uplink), for the devices appearing in the console their DevAddr are not prefixed with 0x26 or 0x27. See below the trafic.  
 ![gateway-traffic](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/5/a/5ae1695932aaf887e02f5c07b991c639c7e38dab.png)

> [@arjanvanb](#):
>
> What about their AppEUIs?

Now I received data with a device, but I updated the device to set the AppEUI with the same AppEUI defined by TheThingsNetwork.  
I’m little bit confused because I thought that the devEUI and appKey was enough. Does this mean we have to register all our devices in the TheThingsNetwork (we will deploy 300 devices), read the AppEUIs and set up each device with this AppEUI ?

Regarding the MQTT, for now we just want to test the reception of data. After that we want to send the data to AWS IOT (we already use that with Multitech gateway for MQTT broker)

---

<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:** [February 19, 2020, 9:28pm UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/12 "2020-02-19T21:28:32Z")

</div>

> [@ThomasF](#):
>
> for the devices appearing in the console their DevAddr are not prefixed with 0x26 or 0x27

If you are sure your’re seeing data from your devices (and not some other devices in your neighbourhood), then apparently they (re-)joined to the other network. If two networks know the same device, then both might receive the Join Request and might create a Join Accept, in which case it will be a roulette game as to which Join Accept is handled by the device, if any. So, make sure they’re no longer registered with the other network (at least not with the very same values for DevEUI, AppKey and AppEUI).

> [@ThomasF](#):
>
> I thought that the devEUI and appKey was enough. Does this mean we have to register all our devices in the TheThingsNetwork (we will deploy 300 devices), read the AppEUIs and set up each device with this AppEUI ?

Indeed, you will need the DevEUI and AppKey (in the device’s settings) and the AppEUI (in the application’s settings; in V2 **make sure to select the right AppEUI in the device’s settings** , in V3 you will also be able to set this in the device directly). If the devices already have those assigned/programmed, then you can also copy these existing values from the device into TTN. For the AppEUI you can add one or more AppEUIs to an application, using either TTN Console or [the command line `ttnctl`](https://www.thethingsnetwork.org/docs/network/cli/).

(Like written above: when not using a TTN-generated AppEUI then make sure the other network does not know the device with the very same values.)

> [@ThomasF](#):
>
> Regarding the MQTT, for now we just want to test the reception of data.

I asked as sometimes TTN Console does not show data, while the other interfaces work just fine. Something to remember when troubleshooting. 🙂 Also note that the MQTT API has [an error topic](https://www.thethingsnetwork.org/docs/applications/mqtt/api.html#error-events), which (sometimes) can help during debugging. So even a command line MQTT client can be very helpful.

---

<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:** [February 29, 2020, 10:53am UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/13 "2020-02-29T10:53:33Z")

</div>

11 posts were split to a new topic: [Despite using persistent frame counters, gateway traffic is not forwarded to device after restart](https://www.thethingsnetwork.org/forum/t/despite-using-persistent-frame-counters-gateway-traffic-is-not-forwarded-to-device-after-restart/34941)

---

<div class="post-metadata">

**Author:** ![ThomasF](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/thomasf/32/25844_2.png) [@ThomasF](https://www.thethingsnetwork.org/forum/u/ThomasF)\
**Post date:** [February 20, 2020, 3:07pm UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/15 "2020-02-20T15:07:19Z")

</div>

Thanks a lot for your response.

> [@arjanvanb](#):
>
> Indeed, you will need the DevEUI and AppKey (in the device’s settings) and the AppEUI (in the application’s settings; in V3 you will also be able to set this in the device). If the devices already have those assigned/programmed, then you can also copy these existing values from the device into TTN. For the AppEUI you can add one or more AppEUIs to an application, using either TTN Console or [the command line `ttnctl`](https://www.thethingsnetwork.org/docs/network/cli/).

I don’t see the command to set the AppEUI in the console in the API Reference manual. Could you tell me how to do that ?

---

<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:** [February 20, 2020, 3:55pm UTC](https://www.thethingsnetwork.org/forum/t/device-being-seen-by-gateway-but-not-updating-status-data/34303/16 "2020-02-20T15:55:31Z")

</div>

In TTN Console just go into Settings, and then EUIs, and click “add EUI”.

![TTN Console](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/a/a/aaaa2367c9bd3f34832ae3ab97c988f97494e061.png)

But you’re right, it seems `ttnctl` might not support that? I don’t have it installed on the machine I’m using right now; maybe its help shows more options?

The [source code](https://github.com/TheThingsNetwork/ttn/tree/develop/ttnctl/cmd) does not seem to implement some `applications set` command either. But for `devices set` it seems that the `--app-eui` flag [_changes_ the device’s AppEUI rather than selecting some application with that AppEUI](https://github.com/TheThingsNetwork/ttn/blob/develop/ttnctl/cmd/devices_set.go#L48-L61). I don’t know if that AppEUI needs to be known to some application already then… In the [Application Manager API](https://www.thethingsnetwork.org/docs/applications/manager/), the AppEUI might also be part of `SetDevice` rather than `SetApplication`.

I’m quite sure that TTN Console uses some of the public APIs as well…
