# 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:** 9\
**Page:** 3

<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:16pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/41 "2022-08-08T17:16:30Z")

</div>

You should then see the decoded data in the application console.

What is in that json? You can see the gateways the devices are using.

---

<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, 6:06pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/42 "2022-08-08T18:06:18Z")

</div>

Well, I a bit scared of giving you the wrong bit, but here goes nothing. “Packetbroker” may be the GW it uses?

```auto
{
  "name": "ns.up.data.process",
  "time": "2022-08-08T16:27:23.132506458Z",
  "identifiers": [
    {
      "device_ids": {
        "device_id": "eui-2cf7f12032400078",
        "application_ids": {
          "application_id": "tempsagene"
        },
        "dev_eui": "2CF7F12032400078",
        "join_eui": "8000000000000009",
        "dev_addr": "260B0946"
      }
    }
  ],
  "data": {
    "@type": "type.googleapis.com/ttn.lorawan.v3.UplinkMessage",
    "raw_payload": "QEYJCyaABQACTVAik8KlwEfhkoLcKg==",
    "payload": {
      "m_hdr": {
        "m_type": "UNCONFIRMED_UP"
      },
      "mic": "koLcKg==",
      "mac_payload": {
        "f_hdr": {
          "dev_addr": "260B0946",
          "f_ctrl": {
            "adr": true
          },
          "f_cnt": 5
        },
        "f_port": 2,
        "frm_payload": "TVAik8KlwEfh",
        "full_f_cnt": 5
      }
    },
    "settings": {
      "data_rate": {
        "lora": {
          "bandwidth": 125000,
          "spreading_factor": 12
        }
      },
      "coding_rate": "4/5",
      "frequency": "867300000"
    },
    "rx_metadata": [
      {
        "gateway_ids": {
          "gateway_id": "packetbroker"
        },
        "packet_broker": {
          "message_id": "01G9Z4GJD1NF40M3T82M8D8011",
          "forwarder_net_id": "000013",
          "forwarder_tenant_id": "ttnv2",
          "forwarder_cluster_id": "ttn-v2-legacy-eu",
          "forwarder_gateway_eui": "C0EE40FFFF297392",
          "forwarder_gateway_id": "eui-c0ee40ffff297392",
          "home_network_net_id": "000013",
          "home_network_tenant_id": "ttn",
          "home_network_cluster_id": "eu1.cloud.thethings.network"
        },
        "rssi": -112,
        "channel_rssi": -112,
        "snr": -6.5,
        "location": {
          "latitude": 59.902731,
          "longitude": 10.741787,
          "altitude": 62
        },
        "uplink_token": "eyJnIjoiWlhsS2FHSkhZMmxQYVVwQ1RWUkpORkl3VGs1VE1XTnBURU5LYkdKdFRXbFBhVXBDVFZSSk5GSXdUazVKYVhkcFlWaFphVTlwU2xkaVIzQTFWRlZzTUZwSVRqTlBTRVpaV2xab2FVbHBkMmxrUjBadVNXcHZhVTU2U2toVWVscE1WakpzY0ZSWVRURlJNVXB4VTBad01FMVdPSGRhZVVvNUxtaGpTM0ZKY1RSdWRFMXVkVGc0Y0VKQk1rTTBYMEV1VTB3M1NtMWplVGcwWXpsbGJsaEpNQzVMUW5JdE5XUlVSRmx6Y2t3d1puUkthREp6Vm00ek5WUk1WVkY1T0hoU1ZreFdPVTlyYjFkamJtWTRNbXBDYURBMk5YRkdUVEkyTmtwV2RUSnhTalV4VW5aelFrbHVhR2hyTWxKZlFrOUJSMDltYUhVd1FqTmxjbXBXZFZWclZuZHFWMkpKT1dFeVUwbGljbTVuZWxSa2RXbHdNMkUxY1ROcGVFcHNRekV5TFhWTloxaDRaVkpFZFZoUlRWaG5SVXBEVmtwMVNXSk1PRko2VDFCVVIycEpVVjlFWkdkcFNHb3pRUzU2WWpaS2JYTklOVWRFY2s1Q1VVWnZOMnRUUm5abiIsImEiOnsiZm5pZCI6IjAwMDAxMyIsImZ0aWQiOiJ0dG52MiIsImZjaWQiOiJ0dG4tdjItbGVnYWN5LWV1In19",
        "received_at": "2022-08-08T16:27:22.911388237Z"
      }
    ],
    "received_at": "2022-08-08T16:27:22.928433299Z",
    "correlation_ids": [
      "ns:uplink:01G9Z4GJDGNZG5ZAN7K1TYBK52",
      "pba:conn:up:01G9YK8055Q7PAJ77WG4ZEF157",
      "pba:uplink:01G9Z4GJD1NF40M3T82M8D8011",
      "rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01G9Z4GJDG4CRAJ3DR1BFP5Q1G"
    ],
    "device_channel_index": 4,
    "consumed_airtime": "1.482752s"
  },
  "correlation_ids": [
    "ns:uplink:01G9Z4GJDGNZG5ZAN7K1TYBK52",
    "pba:conn:up:01G9YK8055Q7PAJ77WG4ZEF157",
    "pba:uplink:01G9Z4GJD1NF40M3T82M8D8011",
    "rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01G9Z4GJDG4CRAJ3DR1BFP5Q1G"
  ],
  "origin": "ip-10-100-5-248.eu-west-1.compute.internal",
  "context": {
    "tenant-id": "CgN0dG4="
  },
  "visibility": {
    "rights": [
      "RIGHT_APPLICATION_TRAFFIC_READ"
    ]
  },
  "unique_id": "01G9Z4GJKWMF7P9DEEFRJ6RH9E"
}

```

---

<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, 7:41pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/43 "2022-08-08T19:41:23Z")

</div>

Great you have your node up and connected via a gateway that is on V2 that still needs to migrate to V3.

That gateway is in Oslo harbor, you can see it’s latitude and longitude, the SF is a bit high but you are most probably some distance from it.

---

<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, 7:50pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/44 "2022-08-08T19:50:16Z")

</div>

> [@helliesene](#):
>
> Browan/MerryIOT Hotspot Miner V1

Now what documentation or steps did you follow to set it up on TTN? I cant see much doc around this, to set it up on TTN.

---

<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, 7:54pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/45 "2022-08-08T19:54:25Z")

</div>

> [@helliesene](#):
>
> I a bit scared of giving you the wrong bit

It’s all rather simple - we ask for something like Join Request, you provide something that says Join Request in it.

As @Johan_Scheepers says, you must be some distance from this gateway, so wondering why you have yet to turn on your own gateway.

The “Forward uplink data message” is more informative - as.up.data.forward - than ns.up.data.process

The “Packetbroker” links various LoRaWAN networks together - see [https://www.thethingsindustries.com/docs/getting-started/packet-broker/](https://www.thethingsindustries.com/docs/getting-started/packet-broker/)

---

<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, 9:03pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/46 "2022-08-08T21:03:17Z")

</div>

Thanks, well my GW is on, but disconnected… aaand I suspect it never has registered to TTN properly. As stadet by Johan, the documentation on this is very poor… So thats my next issue… To get the GW up&running. 🙂 And yes, the GW in Oslo harbor is quite far from where I am, and there are GW closer, but they seem to not reach very long.

BTW, what may have got this working is that I had to remove the sensor from the Sensecap portal: [SENSECAP](https://sensecap.seeed.cc/portal/). I got a mail from their support that mentioned this. I have asked for an explanation why, and are awaiting their response.

---

<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 9, 2022, 7:50am UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/47 "2022-08-09T07:50:23Z")

</div>

> [@helliesene](#):
>
> the documentation on this is very poor

Just to clarify, you’re saying that the documentation for taking a Raspberry Pi based Helium Browan/MerryIOT Hotspot Miner V1 and converting it to a normal gateway and setting it up for TTN is poor?

Where did you find those docs?

And @Johan_Scheepers was referring to the SenseCap device, not the gateway.

The devil is in the detail here!

---

<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 9, 2022, 5:17pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/48 "2022-08-09T17:17:31Z")

</div>

Yes, the documentation from Browan/MerryIOT is not very good when it comes to TTN and LW. I found some on their website and youtube.

You sure that Johan was referring to de device? The docs on the device is quite good (although it has a few flaws like the fact that you cant register the device on both TTN and their own console.)

---

<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 9, 2022, 5:44pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-appears-disconnected-and-unable-to-connect-a-sensor/58319/49 "2022-08-09T17:44:27Z")

</div>

> [@helliesene](#):
>
> You sure that Johan was referring to de device?

Pretty sure, but he can confirm. It’s not like we’d go looking for docs on turning a Helium gateway in to a proper one. To that end I think you lost the irony in the comment about exactly that - mostly people are keeping their miners going hoping to strike it rich one day …

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