# How the sensor data can be decoded on the gateway?

**URL:** <https://www.thethingsnetwork.org/forum/t/how-the-sensor-data-can-be-decoded-on-the-gateway/37401>\
**Category:** Gateways\
**Created:** [May 28, 2020, 10:37am UTC](https://www.thethingsnetwork.org/forum/t/how-the-sensor-data-can-be-decoded-on-the-gateway/37401 "2020-05-28T10:37:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nvdak](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/nvdak/32/32909_2.png) [@nvdak](https://www.thethingsnetwork.org/forum/u/nvdak)\
**Post date:** [May 28, 2020, 10:37am UTC](https://www.thethingsnetwork.org/forum/t/how-the-sensor-data-can-be-decoded-on-the-gateway/37401/1 "2020-05-28T10:37:39Z")

</div>

I have PoE enabled Raspberry Pi 3B+ based LoRaWAN® Gateway and RN2483 Low-Power Long-Range Lora Technology Transceiver Module.  
I need to find a solution for "How the sensor data can be decoded on the gateway? Please help…

---

<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:** [May 28, 2020, 10:41am UTC](https://www.thethingsnetwork.org/forum/t/how-the-sensor-data-can-be-decoded-on-the-gateway/37401/2 "2020-05-28T10:41:34Z")

</div>

Is this question yours too? [Lora Gateway Decoding](https://www.thethingsnetwork.org/forum/t/lora-gateway-decoding/36200).

---

<div class="post-metadata">

**Author:** ![nvdak](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/nvdak/32/32909_2.png) [@nvdak](https://www.thethingsnetwork.org/forum/u/nvdak)\
**Post date:** [May 28, 2020, 11:15am UTC](https://www.thethingsnetwork.org/forum/t/how-the-sensor-data-can-be-decoded-on-the-gateway/37401/3 "2020-05-28T11:15:20Z")

</div>

Yes, this one for alternate if that one will not work.

---

<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:** [May 28, 2020, 11:17am UTC](https://www.thethingsnetwork.org/forum/t/how-the-sensor-data-can-be-decoded-on-the-gateway/37401/4 "2020-05-28T11:17:20Z")

</div>

Are you saying that you are asking something different here? Then I guess you need to explain more about what you want.

---

<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 28, 2020, 12:26pm UTC](https://www.thethingsnetwork.org/forum/t/how-the-sensor-data-can-be-decoded-on-the-gateway/37401/5 "2020-05-28T12:26:45Z")

</div>

> [@nvdak](#):
>
> I need to find a solution for "How the sensor data can be decoded on the gateway?

Does this mean you now have your gateway working?

---

<div class="post-metadata">

**Author:** ![nvdak](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/nvdak/32/32909_2.png) [@nvdak](https://www.thethingsnetwork.org/forum/u/nvdak)\
**Post date:** [May 28, 2020, 12:32pm UTC](https://www.thethingsnetwork.org/forum/t/how-the-sensor-data-can-be-decoded-on-the-gateway/37401/6 "2020-05-28T12:32:54Z")

</div>

My gateway is working fine, it is just showing connected on ttn. Now I want to do decode on the gateway.

---

<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 28, 2020, 12:50pm UTC](https://www.thethingsnetwork.org/forum/t/how-the-sensor-data-can-be-decoded-on-the-gateway/37401/7 "2020-05-28T12:50:41Z")

</div>

The gateway passes the message to TTN which can then, depending on how you have it configured, store the data or pass it on to your server.

Any decoding is based on how the node was programmed - so you’ll need to tell us more about the node to be able to point you in the right direction: what sensors does it have on it, how did you set it up, where are the uplinks being stored?

---

<div class="post-metadata">

**Author:** ![nvdak](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/nvdak/32/32909_2.png) [@nvdak](https://www.thethingsnetwork.org/forum/u/nvdak)\
**Post date:** [May 28, 2020, 12:35pm UTC](https://www.thethingsnetwork.org/forum/t/how-the-sensor-data-can-be-decoded-on-the-gateway/37401/8 "2020-05-28T12:35:14Z")

</div>

> **[anthonykirby/lora-packet](https://github.com/anthonykirby/lora-packet)**
>
> LoRa radio packet decoder. Contribute to anthonykirby/lora-packet development by creating an account on GitHub.

  
I found little bit solution in this link.

---

<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:** [May 28, 2020, 2:48pm UTC](https://www.thethingsnetwork.org/forum/t/how-the-sensor-data-can-be-decoded-on-the-gateway/37401/9 "2020-05-28T14:48:23Z")

</div>

> [@nvdak](#):
>
> [GitHub - anthonykirby/lora-packet: LoRa radio packet decoder](https://github.com/anthonykirby/lora-packet)

Beware that you cannot use that on a gateway, as [it needs to know a lot of device details](https://www.thethingsnetwork.org/forum/t/simplest-low-cost-forever-persistent-storage-method-for-sensor-data/37202/14) to determine which device an uplink belongs to and to decrypt the application payload.
