Issue: Find a way to decode phyPayload without using TTN and ChirpStack
Setup: Using LoRa Gateway MQTT bridge protocol
LoRa® Server: loraserver 3.x (JSON-V3)
Details: I have successfully sent data through Lora gateway by uplink topic to my MQTT broker address. From the MQTT I have sent the data to database through http. Below is an example of the data:
{“phyPayload”:“QAEAAAKAQAAIcOtyV9HTTrZBwn2x”,“txInfo”:{“frequency”:923600000,“modulation”:“LORA”,“loRaModulationInfo”:{“bandwidth”:125,“spreadingFactor”:10,“codeRate”:“4/5”,“polarizationInversion”:false}},“rxInfo”{“gatewayID”:“YMWo//5xqe8=”,“rssi”:-15,“loRaSNR”:12,“channel”:2,“rfChain”:0,“board”:0,“antenna”:0,“location”:null,“fineTimestampType”:“NONE”,“context”:“fMZuQg==”,“uplinkID”:“sCERXyJcRHSchK4mPIPaYg==”}}
From the data, I have converted the phyPayload (in base 64) to hex by using PHP code.
For example from the above data, QAEAAAKAQAAIcOtyV9HTTrZBwn2x convert to 40010000028040000870EB7257D1D34EB641C27DB1
My problem is, I want to get sensor data (Humidity, Temperature, Pressure, etc) from the above phyPayload data to display on my application web. I try to decode it using PHP but not successfully.
Can anyone give me an example or documentation about it? Thank you.