i’m really sorry, but i’m a little lost here on how to properly decode data send by an LMIC arduino device with Dragino LoRa HAT.
In LMIC i’m using the following test string as a data:
static uint8_t mydata[] = “Hello, world!”;
To send the data the following command is used:
LMIC_setTxData2(1, mydata, sizeof(mydata)-1, 0);
The Lora App Server receives the LoraWAN Frame and puts the “rx” onto mqtt with an output like follows:
If i simly use base64 decoding (e.g. paste the received data into https://www.base64decode.org/) then the outcome is garbage, not the string i expect.
In the Application Server Settings for the Application i tried “Payload Encoding: none” und “Cayenne LPP”, but this did not make any difference.
What piece in this puzzle am i missing? Are there some further settings i need to make?
Please give me a hint on how to properly decode that payload.
I don’t really know why you have this behavior with the frame counter validation enabled. You are reading this JSON on MQTT, right ? What do you have in “Live event logs” tabs ?
However, keep the frame counter validation enabled. You won’t have anything if you have it disabled.
I’m so new at this field, i am using a Arduino Nano with LMIC library in OTAA mode to send data to a gateway in a chirpstack server, i want to decode the data that i receive, for example “ABQAFA==” but i don’t have idea how to proceed.
I tried with this tool https://www.base64decode.org/ but i don’t have some answer with sense.
you’re right, 00 14 bytes mean an integer temperature in hex. In this case, i’m going to write a code to decode the original message in decimal on the chirpstack server in the Custom JavaScript codec functions, Does that idea make sense?.
Hello Brocaar,
Please I have a node that is connected to a voltage divider as voltage sensor and AC712 current sensor, I am trying to get an ABP arduino code to send my voltage, current and power data to the chirpstack server. and also send downlink to turn on or off two LEDs on the node. please your help will be appreciated…