Skip to content

1. NS data

NS data is the original data used to subscribe to LoRaWAN MAC layer communication in the ThinkLink(TKL) system in real time, and the data subscribed to is the data communicated between the Gateway and NS. By viewing NS data, users can obtain the complete uplink and downlink data packet information between the device and the gateway, which is convenient for in-depth debugging, network performance analysis and troubleshooting.

1.1. Format of NS data

NS data can be viewed in JSON format, including complete physical layer and link layer parameters, which can clearly reflect the context of each wireless communication. The following is an example of a typical NS data format:

json
{
  "EUI": "5a53012501030011",
  "token": 35160,
  "payload": {
    "rxpk": {
      "mid": 8,
      "chan": 4,
      "codr": "4/5",
      "data": "QKg6ATIAQ2sL/g+03laRsIW5iqvAAD0TohUdGw==",
      "datr": "SF7BW125",
      "foff": 9,
      "freq": 471.1,
      "jver": 1,
      "lsnr": 12,
      "modu": "LORA",
      "rfch": 1,
      "rssi": -95,
      "size": 28,
      "stat": 1,
      "time": "2025-09-24T07:02:03.802672Z",
      "tmst": 2379579148,
      "rssis": -96
    }
  },
  "version": 2,
  "identifier": 0
}
json
{
  "EUI": "5a53012501030011",
  "token": 52914,
  "payload": {
    "txpk": {
      "codr": "4/5",
      "data": "YKg6ATIm+AkNqlP+VU6cdZ50",
      "datr": "SF7BW125",
      "fdev": 0,
      "freq": 501.5,
      "imme": false,
      "ipol": true,
      "modu": "LORA",
      "ncrc": false,
      "powe": 22,
      "prea": 8,
      "rfch": 1,
      "size": 18,
      "time": "",
      "tmms": 0,
      "tmst": 760845965
    }
  },
  "version": 2,
  "identifier": 3
}

description:

  • rxpk field represents upstream data packet, including signal strength (RSSI), signal-to-noise ratio (LSNR), frequency, timestamp and other key parameters.
  • txpk field represents downlink data packet, which can be used to verify whether the instruction is successfully issued.
  • data the fields are base64-encoded raw payload data, which can be parsed with the binding model in subsequent processes.

1.2. Decoder of LoRaWAN

This feature is especially useful for developers to fully monitor sensor communication early in deployment to ensure reliable data transmission.

Click the "+" next to the data message to view the LoRaWAN NS message parsing for NS data.