Hi, i would like some help with decoding a sensor i got.
Mosquitto broker recieve:
{“applicationID”:“6”,“applicationName”:“Elvaco-Tempsensors”,“deviceName”:“Elvaco1”,“devEUI”:“94193a010600040c”,“txInfo”:{“frequency”:868100000,“dr”:0},“adr”:true,“fCnt”:29,“fPort”:2,“data”:“AnsiVCI6MjQuMTcsIkgiOjM4fQ==”}
You need to base64 decode the data field (beware if you try to copy it from this posting it has been munged with pretty alternate quotes, you will have to substitute true ascii quotes if using a command which needs it quoted)
Once decoded you will find the contents are:
{“T”:24.17,“H”:38}
Which seems self-explanatory, apart from being a horribly inefficient way to encode information. Given LoRaWAN’s low bandwidth in longer range situations (your packet report shows the slowest DR0 was used!), a more efficient binary encoding really should be used.
No, but longer range messages need to have small packets, otherwise they take absurdly long on the air - which is any of impolite, an increase in the risk of suffering interference, or in same places outright illegal. Because LoRaWAN has fairly long, fixed-size headers, at the slower data rates just the header can end up consuming most of a reasonable packet duration, leaving only a few bytes (if any) for application data.
Your sensor took something like 18 bytes, to send only 3-4 bytes worth of information.
Allright, i changed my nodes to the standard format but that one doesnt’ seem to use base64 or hex, i should be getting bytes but i get “AAJlkAkB+xsq”, so i guess that needs to be decoded and then i will get bytes that needs to be translated into the proper message i can read?