# Understand how to decode

**URL:** <https://discourse.nodered.org/t/understand-how-to-decode/34484>\
**Category:** General\
**Created:** [19 October 2020 09:21 UTC](https://discourse.nodered.org/t/understand-how-to-decode/34484 "2020-10-19T09:21:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gpontaro](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@Gpontaro](https://discourse.nodered.org/u/Gpontaro)\
**Post date:** [19 October 2020 09:21 UTC](https://discourse.nodered.org/t/understand-how-to-decode/34484/1 "2020-10-19T09:21:33Z")

</div>

Hi

I have installed a ttn package in node red and connected uplink node to my ttn application. My problem is how to get right values in node red.

In node red I can see that I receive a payload but it is not the same as the one I see in ttn console.  
why ?

Here an example

**in ttn console I see the following**  
`payload BE1945512090008570403809080EB0`

with

fields

```auto
{
  "battery_level": 3760,
  "dl_counter": 8,
  "gps_quality": "Poor",
  "hdop": 3,
  "lati_hemisphere": "North",
  "latitude": 45.85348333333334,
  "latitude_dmm": "N 45°51.209",
  "long_hemisphere": "East",
  "longitude": 8.950666666666667,
  "longitude_dmm": "E 008°57.04",
  "payload": "BE1945512090008570403809080EB0",
  "sats": 8,
  "temperature": 25,
  "trigger": "pushbutton",
  "ul_counter": 9
}

```

I am using a decoder

**in node red I see**

```auto
msg : Object
object
dev_id: "field_tester"
payload: object
payload: "YO5YASYDCAACCgEGOo6i"
message: object
app_id: "stabio_signal"
dev_id: "field_tester"
port: 0
gateway_id: "amstabio001"
config: object
modulation: "LORA"
data_rate: "SF9BW125"
airtime: 164864000
counter: 8
frequency: 869525000
power: 27
_msgid: "404babea.7db164"

```

how can I get fields as in ttn console or the string decoded ? maybe i am using wrong node ?  
not sure I am receiving all the payload ..  
if you have a flow example would be great.

thanks a lot  
kind regs  
gp

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 October 2020 12:52 UTC](https://discourse.nodered.org/t/understand-how-to-decode/34484/2 "2020-10-19T12:52:30Z")

</div>

> [@Gpontaro](#):
>
> payload: "YO5YASYDCAACCgEGOo6i"

This looks like base 64.

When converted (using the base64 node) you will see `60EE58012603085020A01063A8EA2`

My guess is that in that hexadecimal data is your information

Do you have a manual that describes the payload?

Do you see anything in this...?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/a/6a3e2f6280a0fafd616be484c4b76694fc250ef7.png)

### EDIT...

PS,  
The title of your thread is poor at best and will not really attract the users who know what you have. You should really edit the title to say something like "Need help decoding GPS values from a ttn payload"

Also, I have no idea what you mean by the following...

- "I am using a decoder" - what decode? where?
- "connected uplink node to my ttn application" - what is `ttn`? what is uplink node?
- "I have installed a ttn package in node red" - which package? Can you provide a link to the flows library entry for this package?

... you might get more help by providing more info

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 December 2020 12:52 UTC](https://discourse.nodered.org/t/understand-how-to-decode/34484/3 "2020-12-18T12:52:42Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
