Vraag

Decoding uplink data packet at application server

  • 30 juni 2017
  • 6 reacties
  • 800 keer bekeken

Hi all,

I was checking KPN network with my own application server. I have successfully got below data packet at application server.

{"DevEUI_uplink": {"Time": "2017-06-27T12:14:26.864+02:00","DevEUI": "0059AC00001811E5","FPort": "14","FCntUp": "0","ADRbit": "1","MType": "2","FCntDn": "1","payload_hex": "73fb54","mic_hex": "0ccf541d","Lrcid": "0059AC02","LrrRSSI": "-111.000000","LrrSNR": "-9.000000","SpFact": "12","SubBand": "G0","Channel": "LC1","DevLrrCnt": "6","Lrrid": "FF0100B8","Late": "0","LrrLAT": "52.741642","LrrLON": "4.908659","Lrrs": {"Lrr": [{"Lrrid": "FF0100B8","Chain": "0","LrrRSSI": "-111.000000","LrrSNR": "-9.000000","LrrESP": "-120.514969"},{"Lrrid": "FF01007E","Chain": "0","LrrRSSI": "-113.000000","LrrSNR": "-15.000000","LrrESP": "-128.135208"},{"Lrrid": "FF010526","Chain": "0","LrrRSSI": "-118.000000","LrrSNR": "-14.000000","LrrESP": "-132.169540"}]},"CustomerID": "100006356","CustomerData": {"alr":{"pro":"SMTC/LoRaMote","ver":"1"}},"ModelCfg": "0","InstantPER": "0.000000","MeanPER": "0.000000","DevAddr": "142041E6"}}

So Can anyone let me know how to decode Payload_hex from above message. I have already checked with Hex to string decoding and base64 decoding but have no success. I am using microchip RN2483 Lora module at node. Thanks in advance.

Regards,
Gopal

6 reacties

Reputatie 6
Badge +6
Hi @Gopal Vishwakarma,

Welcome to the LoRa Community! 😁

Great to hear that you successfully received the data package at your application server.
To help the LoRa users with decoding these data packages our Productmanager Michiel Jol placed a topic with tips for decoding messages. Take a look at this topic and I am confident that you will find the right way for decoding.

If you don't succeed with help of this topic, please let me know.
Hi Rick,
Thanks for reply.
I have tried with hex to string conversion and base64 decoding but have no success. I guess I am missing something minor. Please if let me know if you know any online decoder site. so that I will check on online site and implement the same at application server. Thanks for help

Regards,
Gopal
Reputatie 6
Badge +6
Hi Gopal,

I have searched for a online decoder site and when you google on Hex to Text converter you will find various online converters. Through this page you can find these converters.

Out of curiosity, I want to know what kind of message you wanted to send within this Payload_hex. Can you explain this to me?
Hi Rick,
Thanks for reply.
At my application server, I got below payloads.
payload_hex": "73fb54"
payload_hex": "81027f"
payload_hex": "81029a"
payload_hex": "73fb14"
I was trying to decode this but I am unable to do so till now. As per your suggestion I tried five to six different online decoder but decoding is giving some symbols, not proper data.
As given below ,I am expecting this kind of actual decoded data at application server.
00898F
00871C
00273E
00267B
Thanks for support.
Reputatie 6
Badge +6
Hi Gopal,

Can you send me a private message with the actual data you should give after decoding these payload messages?

In the meantime, I am going to discuss this issue with the developers. I would also like to ask you how to did you get to these payload messages?

Normally, you first decide what you want to send and then convert it to a payload hex.

Finally, I checked the device you are using with this data package and I can see that you have have chosen a hookbin url as a destination. And you also have a device that has an application server as a destination.
Reputatie 3
Badge +1
Hi @Gopal Vishwakarma,

Can you post some example here. What is the payload you send from your LoRa Device and what is the payload from the same message that shows up in the debugger (KPN portal) online?

Can you also post a piece of your code, how you send the message. Is it in a String a character array ?

Reageer