# Gateway appears Disconnected and unable to connect a sensor

**URL:** <https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319>\
**Category:** Uncategorized\
**Tags:** gateways\
**Created:** [August 6, 2022, 9:24am UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319 "2022-08-06T09:24:12Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![helliesene](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/helliesene/32/35697_2.png) [@helliesene](https://www.thethingsnetwork.org/forum/u/helliesene)\
**Post date:** [August 6, 2022, 3:01pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/21 "2022-08-06T15:01:18Z")

</div>

ahh… hmm… ok, it says 1.0.2 as you say in the manual… I could try some different versions maybe.

---

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/48536_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [August 6, 2022, 3:03pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/22 "2022-08-06T15:03:32Z")

</div>

> [@helliesene](#):
>
> oftware version 3.4

Manual is at 3.1, so software changed, so maybe LoRaWAN version also changed.

---

<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:** [August 6, 2022, 3:58pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/23 "2022-08-06T15:58:45Z")

</div>

> [@helliesene](#):
>
> “name”: “js.join.accept”

You were asked for the Join Request.

Please format your posts using the toolbar - and whilst you worry about the range, consider the volunteers answering on here are doing so because they have working knowledge. The 10m referred to you being too close to your own gateway.

But until we see the formatted details of a join request, we won’t know if your gateway heard it.

And no, you can’t find a gateway, join and then miraculously be in range once you get home - you are either in range or not. If it’s not working when you are at home, just joining is unlikely to have it uplinking when you get home. The only way to diagnose such a situation would be to have the JSON of the join request.

---

<div class="post-metadata">

**Author:** ![helliesene](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/helliesene/32/35697_2.png) [@helliesene](https://www.thethingsnetwork.org/forum/u/helliesene)\
**Post date:** [August 6, 2022, 4:24pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/24 "2022-08-06T16:24:56Z")

</div>

Ok, thanks! I hope this is the one you are thing of.

[temperatur-sagene\_live\_data\_1659802992203.json](https://www.thethingsnetwork.org/forum/uploads/short-url/2vFKFNe2qrFu6wocK0Tmx5sxkqS.json) (1.4 KB)

---

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/48536_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [August 6, 2022, 4:36pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/25 "2022-08-06T16:36:21Z")

</div>

You can poke in the dark a bit with the LoRaWAN version, but you have to create and delete the end device every time (mots probably the TTN server won’t like you either), change it every time you create it an wait for a few join request.

But 10m and a wall between the gateway and node.

Use the \</\> or in between 3 ``` to post code or json

---

<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:** [August 6, 2022, 4:53pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/26 "2022-08-06T16:53:47Z")

</div>

> [@helliesene](#):
>
> I hope this is the one you are thing of.

You hoped wrong - re-read the request above - and post it in the topic formatted with \</\> - makes it simpler to read if you’re on a mobile device.

---

<div class="post-metadata">

**Author:** ![helliesene](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/helliesene/32/35697_2.png) [@helliesene](https://www.thethingsnetwork.org/forum/u/helliesene)\
**Post date:** [August 7, 2022, 10:19am UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/27 "2022-08-07T10:19:42Z")

</div>

Ok, i´ll try to get it right this time. After som testing back and forth, the result is still the same. My personal gw is turned off, so the issue with being to close is no more. It could be that I am to far, but after a walk where I had a direct visual contact with the gw antenna on the roof, this should also not be the issue.

I do get some network errors as seen below, and a bunch of “Join-Cluster-Fail” whatever that mean. I´m btw back to version 1.0.2 as the documentation stated. The 1.0.3 does not have revision B and 1.0.4 did not give any other result. 1.1.0 requires NwSKey, which my unit don´t have, so that dont work.

[tempsagene\_live\_data\_1659857782293.json](https://www.thethingsnetwork.org/forum/uploads/short-url/rpVxZMtW7ZyBVyeUqdMsVtC5xks.json) (15.0 KB)

```auto
{
  "time": "2022-08-07T07:25:19.554Z",
  "name": "synthetic.error.network_error",
  "isError": true,
  "isSynthetic": true,
  "unique_id": "synthetic.1659857119554",
  "data": {
    "error": "TypeError: network error"
  }
}

```

---

<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:** [August 7, 2022, 11:03am UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/28 "2022-08-07T11:03:56Z")

</div>

Not going to bother looking at that - a 15KB json file will have plenty several messages in - I’m happy to help but can’t spend time trawling through random data.

Please post as requested.

---

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/48536_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [August 7, 2022, 11:53am UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/29 "2022-08-07T11:53:48Z")

</div>

I am to patient.

This points me to your AppEUI/DevEUI/AppKey, I think your order of the bytes is incorrect, or the entire thing is wrong.

```auto
{
    "name": "ns.up.join.cluster.fail",
    "time": "2022-08-06T18:09:13.282073558Z",
    "identifiers": [
      {
        "device_ids": {
          "device_id": "eui-2cf7f12032400078",
          "application_ids": {
            "application_id": "tempsagene"
          }
        }
      }
    ],
    "context": {
      "tenant-id": "CgN0dG4="
    },
    "visibility": {
      "rights": [
        "RIGHT_APPLICATION_TRAFFIC_READ"
      ]
    },
    "unique_id": "01G9T5HKJ29C1FT5P55GWKG25N"
  }

```

As I said we can poke around in the dark, but with the correct information we maybe can get a solution.

---

<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:** [August 7, 2022, 12:22pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/30 "2022-08-07T12:22:26Z")

</div>

> [@Johan\_Scheepers](#):
>
> I am to patient.

Give it a year …

> [@Johan\_Scheepers](#):
>
> This points me to your AppEUI/DevEUI/AppKe

Probably always has in all this murk, but hard to tell.

> [@Johan\_Scheepers](#):
>
> I think your order of the bytes is incorrect, or the entire thing is wrong.

2C-F7-F1 is registered to Seeed so that makes sense.

But that doesn’t mean the JoinEUI or AppKey are OK.

---

<div class="post-metadata">

**Author:** ![helliesene](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/helliesene/32/35697_2.png) [@helliesene](https://www.thethingsnetwork.org/forum/u/helliesene)\
**Post date:** [August 7, 2022, 3:41pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/31 "2022-08-07T15:41:33Z")

</div>

hmm… it really should´t be. This is what I get when I do a Get request, and is exactly the same that I put in the console. (i have hidden the app key)

```auto
{
  "code": "0",
  "data": {
    "nodeEui": "2CF7F12032400078",
    "deviceCode": "4661481BA5F27EBD",
    "lorawanInformation": {
      "dev_eui": "2CF7F12032400078",
      "app_eui": "8000000000000009",
      "app_key": "hidden"
    }
  }
}

```

I also attached a small variant of the json file. It´s the same that repeats itself, but I wonder about the network failure that it states.

[eui-2cf7f12032400078\_live\_data\_1659887001050.json](https://www.thethingsnetwork.org/forum/uploads/short-url/wmsMdbowqPE1miwGe9euXw6QS6g.json) (4.4 KB)

---

<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:** [August 7, 2022, 4:14pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/32 "2022-08-07T16:14:37Z")

</div>

Your failure to post the JSON in a format that can be read without a download plus all the to’ing & fro’ing and you turning off your gateway for no apparent reason is beginning to hit all the troll alerts on the Discourse admin panel.

> [@helliesene](#):
>
> `"name": "synthetic.error.network_error",`

If these are what you are getting, this is your web browser losing the connection to the TTN console - it restores itself automatically and only shows that your internet connection isn’t great. It has little to do with the issue at hand.

Either turn on your gateway and show us a join request or get near one - but please stop posting random things that won’t move this thread forward.

---

<div class="post-metadata">

**Author:** ![helliesene](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/helliesene/32/35697_2.png) [@helliesene](https://www.thethingsnetwork.org/forum/u/helliesene)\
**Post date:** [August 7, 2022, 4:38pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/33 "2022-08-07T16:38:50Z")

</div>

I am sorry that I don´t have the competense to answer you just the right way you want Nick. If you have´nt noticed I am quite a noob when it comes to LoraWAn and this forum. What i do have is a competanse in treating people with a proper politeness. Now please don´t bother with my stupid questions anymore, I have had proper help so far from other people in the forum.

---

<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:** [August 7, 2022, 5:29pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/34 "2022-08-07T17:29:47Z")

</div>

We have asked you to give us the JSON for a Join Request inline, not as an attachment, several times now. You’ve shown you can put JSON in to a post. But we’ve made scant progress to seeing a Join Request and you keep attaching largish files that don’t provide the information to help you. It’s not impolite to say that you are not answering our questions that seek to help **YOU** , it’s trying to move this along **entirely for your benefit.**

---

<div class="post-metadata">

**Author:** ![helliesene](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/helliesene/32/35697_2.png) [@helliesene](https://www.thethingsnetwork.org/forum/u/helliesene)\
**Post date:** [August 7, 2022, 5:38pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/35 "2022-08-07T17:38:32Z")

</div>

And I appreciate the fact that you are trying to help me, I really do and NOW I think I understood what you were asking.

```auto
{
  "name": "js.join.accept",
  "time": "2022-08-07T16:39:32.128851420Z",
  "identifiers": [
    {
      "device_ids": {
        "device_id": "eui-2cf7f12032400078",
        "application_ids": {
          "application_id": "tempsagene"
        },
        "dev_eui": "2CF7F12032400078",
        "join_eui": "8000000000000009",
        "dev_addr": "260B0E68"
      }
    }
  ],
  "correlation_ids": [
    "rpc:/ttn.lorawan.v3.NsJs/HandleJoin:01G9WJT3GX9VV40X38H51BSYEP"
  ],
  "origin": "ip-10-100-6-236.eu-west-1.compute.internal",
  "context": {
    "tenant-id": "CgN0dG4="
  },
  "visibility": {
    "rights": [
      "RIGHT_APPLICATION_TRAFFIC_READ"
    ]
  },
  "unique_id": "01G9WJT3H0CB0KSNJ80FP51C4Q"
}

```

---

<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:** [August 7, 2022, 8:31pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/36 "2022-08-07T20:31:43Z")

</div>

Close, but not a Join **Request**. The one before this console line.

---

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/48536_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [August 8, 2022, 5:35am UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/37 "2022-08-08T05:35:29Z")

</div>

> [@helliesene](#):
>
> hmm… it really should´t be

Well there are really only **3** thing required to be configured between the Node and the End Device in the console.

1. AppEUI/DevEUI/AppKey (Order need to be correct, LSB/MSB)
2. Frequency plan
3. LoRaWAN version/Regional Parameters version  
4.You need to take heed not to overload the RX on the Gateway or the Node, thus the 10m plus and brick wall separation.

Yes there are 1000 other things can be messed up, but what I have seen, these are the 3 common things, especially with over the counter nodes.

---

<div class="post-metadata">

**Author:** ![helliesene](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/helliesene/32/35697_2.png) [@helliesene](https://www.thethingsnetwork.org/forum/u/helliesene)\
**Post date:** [August 8, 2022, 2:02pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/38 "2022-08-08T14:02:54Z")

</div>

Ok, 11th time is the charm… 🙃

```auto
{
  "name": "js.join.accept",
  "time": "2022-08-08T13:59:40.649445383Z",
  "identifiers": [
    {
      "device_ids": {
        "device_id": "eui-2cf7f12032400078",
        "application_ids": {
          "application_id": "tempsagene"
        },
        "dev_eui": "2CF7F12032400078",
        "join_eui": "8000000000000009",
        "dev_addr": "260BB67F"
      }
    }
  ],
  "correlation_ids": [
    "rpc:/ttn.lorawan.v3.NsJs/HandleJoin:01G9YW23V1PDKZ5PB3W97X2NE3"
  ],
  "origin": "ip-10-100-5-104.eu-west-1.compute.internal",
  "context": {
    "tenant-id": "CgN0dG4="
  },
  "visibility": {
    "rights": [
      "RIGHT_APPLICATION_TRAFFIC_READ"
    ]
  },
  "unique_id": "01G9YW23V9JDMP91TGE6XSXDQB"
}

```

---

<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:** [August 8, 2022, 4:29pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/39 "2022-08-08T16:29:27Z")

</div>

> [@helliesene](#):
>
> `"name": "js.join.accept",`

Still a big no. It’s the Join Request, like I’ve said several times, including 20h’s ago - that’s almost a day you’ve not made progress now:

> [@descartes](#):
>
> Close, but not a Join **Request**. The one before this console line.

---

<div class="post-metadata">

**Author:** ![helliesene](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/helliesene/32/35697_2.png) [@helliesene](https://www.thethingsnetwork.org/forum/u/helliesene)\
**Post date:** [August 8, 2022, 4:41pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/40 "2022-08-08T16:41:33Z")

</div>

Well, somehow it suddenly went online, and I am not sure why… It´s going to be exciting to see if the device stays online. And during the last 20 hours I have been sleeping and been to work, so not able to work on the 24 hours a day.

[Previous page](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319.md?page=1)

[Next page](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319.md?page=3)
