Ir para o conteúdo principal
Ir para o conteúdo principal
I/O and Modbus controller

comtac LPN KM LoRaWAN decoder and payload format

The comtac LPN KM is a LoRaWAN I/O and Modbus controller that reports digital inputs, temperature and button presses. It is rated IP65, it runs on a replaceable LiMn02 5Ah Backup battery and it works from -25 to 60 °C.

Payload format

An uplink from the device as it arrives at the network server, and what the official decoder returns for it. Examples come from the decoder's own test cases.

Example 1 · fPort 20

Payload (hex)

10 00 0C C3 5F EE 66 01 11 40 00 00 12 40 00 00

Decoded (JSON)

{
  "payloadLength": 16,
  "port": 20,
  "portFunction": "DI_DATA",
  "decoder": {
    "info": "TTN/TTI",
    "version": "000"
  },
  "payload": {
    "data": {
      "digitalInputs": [
        {
          "cot": {
            "cyclic": false,
            "event": false,
            "interrogation": true
          },
          "info": {
            "id": 1,
            "type": "singlePointInfo"
          },
          "status": {
            "blocked": false,
            "state": 0
          },
          "timestamp": {
            "string": "Fri, 01 Jan 2021 00:00:01 GMT",
            "unix": 1609459201
          }
        },
        {
          "cot": {
            "cyclic": false,
            "event": false,
            "interrogation": true
          },
          "info": {
            "id": 2,
            "type": "singlePointInfo"
          },
          "status": {
            "blocked": false,
            "state": 0
          },
          "timestamp": {
            "string": "Fri, 01 Jan 2021 00:00:01 GMT",
            "unix": 1609459201
          }
        }
      ]
    },
    "device": {
      "batteryLevel": "77%",
      "deviceStatus": {
        "batteryPowered": true,
        "bufferOverflow": false,
        "configurationError": false,
        "confirmationTimeout": false,
        "deviceRestarted": false,
        "lowSupplyVoltage": false,
        "timeSynced": true,
        "txCreditsConsumed": false
      },
      "info": {
        "deviceDesignation": "LPN-KM",
        "deviceId": 16,
        "deviceManufacturer": "comtac AG",
        "deviceVersion": 0
      }
    }
  }
}
FieldValue
payloadLength16
port20
portFunctionDI_DATA
decoder.infoTTN/TTI
decoder.version000
payload.data.digitalInputs[{"cot":{"cyclic":false,"event":false,"interrogation":true},"info":{"id":1,"type":"singlePointInfo"},"status":{"blocked":false,"state":0},"timestamp":{"string":"Fri, 01 Jan 2021 00:00:01 GMT","unix":1609459201}},{"cot":{"cyclic":false,"event":false,"interrogation":true},"info":{"id":2,"type":"singlePointInfo"},"status":{"blocked":false,"state":0},"timestamp":{"string":"Fri, 01 Jan 2021 00:00:01 GMT","unix":1609459201}}]
payload.device.batteryLevel77%
payload.device.deviceStatus.batteryPoweredtrue
payload.device.deviceStatus.bufferOverflowfalse
payload.device.deviceStatus.configurationErrorfalse
payload.device.deviceStatus.confirmationTimeoutfalse
payload.device.deviceStatus.deviceRestartedfalse
payload.device.deviceStatus.lowSupplyVoltagefalse
payload.device.deviceStatus.timeSyncedtrue
payload.device.deviceStatus.txCreditsConsumedfalse
payload.device.info.deviceDesignationLPN-KM
payload.device.info.deviceId16
payload.device.info.deviceManufacturercomtac AG
payload.device.info.deviceVersion0

Example 2 · fPort 3

Payload (hex)

10 00 00 00 07 5F EE 6A F0 00 FF FF

Decoded (JSON)

{
  "payloadLength": 12,
  "port": 3,
  "portFunction": "FIXED_DATA",
  "decoder": {
    "info": "TTN/TTI",
    "version": "000"
  },
  "payload": {
    "data": {
      "config": {
        "counterValues": true,
        "digitalInputs": true,
        "timestamp": true
      },
      "counterValues": [],
      "digitalInputs": "ffff",
      "timestamp": {
        "string": "Fri, 01 Jan 2021 00:21:04 GMT",
        "unix": 1609460464
      }
    },
    "device": {
      "batteryLevel": "external",
      "deviceStatus": {
        "batteryPowered": false,
        "bufferOverflow": false,
        "configurationError": false,
        "confirmationTimeout": false,
        "deviceRestarted": false,
        "lowSupplyVoltage": false,
        "timeSynced": false,
        "txCreditsConsumed": false
      },
      "info": {
        "deviceDesignation": "LPN-KM",
        "deviceId": 16,
        "deviceManufacturer": "comtac AG",
        "deviceVersion": 0
      }
    }
  }
}
FieldValue
payloadLength12
port3
portFunctionFIXED_DATA
decoder.infoTTN/TTI
decoder.version000
payload.data.config.counterValuestrue
payload.data.config.digitalInputstrue
payload.data.config.timestamptrue
payload.data.counterValues[]
payload.data.digitalInputsffff
payload.data.timestamp.stringFri, 01 Jan 2021 00:21:04 GMT
payload.data.timestamp.unix1609460464
payload.device.batteryLevelexternal
payload.device.deviceStatus.batteryPoweredfalse
payload.device.deviceStatus.bufferOverflowfalse
payload.device.deviceStatus.configurationErrorfalse
payload.device.deviceStatus.confirmationTimeoutfalse
payload.device.deviceStatus.deviceRestartedfalse
payload.device.deviceStatus.lowSupplyVoltagefalse
payload.device.deviceStatus.timeSyncedfalse
payload.device.deviceStatus.txCreditsConsumedfalse
payload.device.info.deviceDesignationLPN-KM
payload.device.info.deviceId16
payload.device.info.deviceManufacturercomtac AG
payload.device.info.deviceVersion0

Specifications

Manufacturer
comtac
Model
LPN KM
Type
I/O and Modbus controller
Measures
digital inputs, temperature, button presses
Protection
IP65
Battery
LiMn02 5Ah Backup battery (replaceable)
Operating temperature
-25 … 60 °C
LoRaWAN regions
EU863-870

Connect it to Cloud Studio IoT

  1. 1

    Register the device in your network server

    Add it to The Things Stack, ChirpStack, Actility ThingPark or LORIOT with its DevEUI, JoinEUI and AppKey and the frequency plan of your region.

  2. 2

    Apply the decoder

    In The Things Stack, pick the model from the device repository and its decoder is applied for you. In ChirpStack v4, paste the official decoder as the device profile's JavaScript codec.

  3. 3

    Connect the network server to Cloud Studio IoT

    Set up the integration once per network server; every device registered there then reaches Cloud Studio IoT with its decoded values.

  4. 4

    Build dashboards and alarms

    The decoded fields become device variables for dashboards, alarms by email or SMS, and scheduled reports.

See your comtac LPN KM on a dashboard

Start a free trial, add the device with its DevEUI and get dashboards and alarms from its next uplink.

Talk to us

Frequently asked questions

Device facts and decoder examples: The Things Network Device Repository (Apache-2.0) · commit 7693223, imported 2026-10-05.