Hello,
I’m still quite a beginner and just can’t get any further…
I just set up my gateway (RPI3+ iC880A with LoRa Gateway OS) and everything works so far. My device can be activated via ABP (1.03) and also sends data in the uplink. But I don’t know how to convert them.
In my device (Arduino MKR1300) I send the string “helloWorld” (HEX: 68 65 6C 6C 6F 57 6F 72 6C 64) and use the following keys:
- devAddr: 01be3a44
- nwkSKey: 11396d60f102cdb1015bc0ac39b6a128
- appSKey: 51d212cf2e759e696b84feb07b7a535d
In the LIVE-Data of my device I get a json with data “aGVsbG9Xb3JsZA==”. How do I get my original information from this?
LIVE DEVICE DATA uplink:
[
{
"type": "uplink",
"payload": {
"adr": true,
"applicationID": "1",
"applicationName": "LoRa_office214",
"data": "aGVsbG9Xb3JsZA==",
"devEUI": "a8610a3233378809",
"deviceName": "MKR1300",
"fCnt": 3,
"fPort": 2,
"rxInfo": [
{
"gatewayID": "b827ebfffe566321",
"loRaSNR": 7.8,
"location": null,
"name": "",
"rssi": -35
}
],
"txInfo": {
"dr": 5,
"frequency": 868500000
}
}
}
]
LIVE LORAWAN FRAMES uplink:
[
{
"downlinkMetaData": {
"txInfo": {
"gatewayId": "b827ebfffe566321",
"immediately": false,
"timeSinceGpsEpoch": null,
"timestamp": 154418027,
"frequency": 868100000,
"power": 14,
"modulation": "LORA",
"loraModulationInfo": {
"bandwidth": 125,
"spreadingFactor": 7,
"codeRate": "4/5",
"polarizationInversion": true
},
"board": 0,
"antenna": 0
}
},
"phyPayload": {
"mhdr": {
"mType": "UnconfirmedDataDown",
"major": "LoRaWANR1"
},
"macPayload": {
"fhdr": {
"devAddr": "0072476f",
"fCtrl": {
"adr": true,
"adrAckReq": false,
"ack": true,
"fPending": false,
"classB": false
},
"fCnt": 10,
"fOpts": [
{
"cid": "LinkADRReq",
"payload": {
"dataRate": 5,
"txPower": 4,
"chMask": [
true,
true,
true,
true,
true,
true,
true,
true,
false,
false,
false,
false,
false,
false,
false,
false
],
"redundancy": {
"chMaskCntl": 0,
"nbRep": 1
}
}
}
]
},
"fPort": null,
"frmPayload": null
},
"mic": "7f35b3a7"
}
},
{
"uplinkMetaData": {
"rxInfo": [
{
"gatewayId": "b827ebfffe566321",
"time": null,
"timeSinceGpsEpoch": null,
"timestamp": 153418027,
"rssi": -37,
"loraSnr": 9.8,
"channel": 0,
"rfChain": 1,
"board": 0,
"antenna": 0,
"location": null,
"fineTimestampType": "NONE"
}
],
"txInfo": {
"frequency": 868100000,
"modulation": "LORA",
"loRaModulationInfo": {
"bandwidth": 125,
"spreadingFactor": 7,
"codeRate": "4/5",
"polarizationInversion": false
}
}
},
"phyPayload": {
"mhdr": {
"mType": "ConfirmedDataUp",
"major": "LoRaWANR1"
},
"macPayload": {
"fhdr": {
"devAddr": "0072476f",
"fCtrl": {
"adr": true,
"adrAckReq": false,
"ack": false,
"fPending": false,
"classB": false
},
"fCnt": 4,
"fOpts": [
{
"cid": "LinkADRReq",
"payload": {
"channelMaskAck": true,
"dataRateAck": true,
"powerAck": true
}
}
]
},
"fPort": 2,
"frmPayload": [
{
"bytes": "YGDq+3trviWyMw=="
}
]
},
"mic": "3dc83b0f"
}
}
]