Build-in decoders
Decoding is the first phase in data processing in uplink communication. In this phase incoming data is normalized into SenML and additional (meta)data is enabled if applicable.

Data decoders

A regular data decoder transforms incoming payload into measurements in SenML, following the data protocol of the specific device.

ThingsML for LoRa payload

ThingsML is a generic LoRa payload format, allowing you to send multiple measurements encoded in your payload in a compact way. Learn more about the ThingsML for Lora data protocol.

Additional data

With additional data (decoders), metadata corresponding to the message received is enabled.

LoRa Geolocation data

Add LoRa Geolocation data to messages where location could be calculated.
SenML record name
Content
locOrigin
vs: "KPNLORA" Indicating that the location information in the SenML record comes from the LoRa network.
latitude
v The latitude of the location in decimal notation.
u: "lat"
longitude
v The longitude of the location in decimal notation.
u: "lon"
radius
v The theoretical inaccuracy of the calculated location. Can be used to visualize a circle around the location on a map.
u: "m" In meters.

Location by LoRa On Premises Gateway reception

To extend the reach of our LoRa network on your location, we offer LoRa On Premise Gateways. A LoRa On Premise Gateway is an extension of our regular LoRa network. They have a smaller reach than our regular outdoor gateways, but you can position it for example in your warehouse to guarantee coverage for your LoRa devices.
Additionally, in KPN Things we have integrated the LoRa On Premises Gateway with our localisation service. When you enable Location by LoRa On Premises Gateway reception, KPN Things will detect when data from your device is received by one of your On Premise Gateways. Then KPN Things will add the administrative location of that gateway to the message. That way, the application can use that data to locate the device at the moment the message was sent.
To get this to work, you need to register your On Premise Gateways in your KPN Things account through the KPN Things API's by giving the gateway ID and the coordinates of the location you have positioned the gateway.

No-decoders

With no-decoders incoming data is not interpreted, it is only put into SenML.

Raw LoRa payload

SenML record name
Content
payload
vs The received payload in hexadecimal notation (example: 010203).
port
v The application port the data was received on.

SenML data

If your device uses the SenML data format to send data to KPN Things, the data will be accepted as is, without further decoding.
Copy link
On this page
Data decoders
ThingsML for LoRa payload
Additional data
LoRa Geolocation data
Location by LoRa On Premises Gateway reception
No-decoders
Raw LoRa payload
SenML data