sheeriot / surveyor

RF Field Surveyor - A Django Project for LoRaWAN Field Performance Evaluation
0 stars 0 forks source link

Track Downlinks on Device page #65

Open krisdthompson opened 6 days ago

krisdthompson commented 6 days ago

The Device Page (PackGraph) should be able to render downlink info.

krisdthompson commented 6 days ago

Here is what event.data.body looks like

{
  "meta": {
    "application": "647fda8010000000",
    "device": "647fda0000008a4a",
    "device_addr": "165e3d39",
    "gateway": "b0fd0b7007690000",
    "network": "77b25b9c66c54954803379830e7acb76",
    "packet_hash": "2945573c43b6b78fb590a6a8d02dd1c2",
    "packet_id": "77c23889c2a64415167aeab85ca4023e",
    "tags": [
      "KT-RS4A",
      "ubi-5702hb-poolhouse",
      "loc-8624C3F8+8WV",
      "iotdash-konahome"
    ],
    "time": 1719508138.345
  },
  "params": {
    "counter_down": 531,
    "encrypted_payload": "GukO+k0=",
    "lora": {
      "header": {
        "ack": false,
        "adr": true,
        "confirmed": true,
        "pending": false,
        "type": 5,
        "version": 0
      },
      "mac_commands": []
    },
    "payload": "oAAAASw=",
    "port": 100,
    "radio": {
      "datarate": 2,
      "datr": "SF8BW500",
      "delay": 0.03134727478027344,
      "freq": 926.9,
      "gps_time": 1403543355800,
      "hardware": {
        "chain": 0,
        "channel": 6,
        "gps": {
          "alt": 230,
          "lat": 30.423490524291992,
          "lng": -97.93257904052734
        },
        "power": 26,
        "rssi": -71,
        "snr": 7.5,
        "status": 1,
        "tmst": 1707528068
      },
      "modulation": {
        "bandwidth": 500000,
        "coderate": "4/5",
        "inverted": true,
        "spreading": 8,
        "type": "LORA"
      },
      "size": 24,
      "time": 1719508138.822444
    }
  },
  "type": "downlink"
}
krisdthompson commented 6 days ago

Downlink data is now being collected for the konahome pipeline.