Skip to content

AN-26112401 · Connecting KC21 and KC22 meters to TTN or ChirpStack ​

How do I send readings from a KC21 or KC22 to TTN or ChirpStack? ​

Commission the collector, meter and EdgeBus (EB) program on ThinkLink first. The running EB program and its configuration determine the uplink layout. Obtain the matching protocol, codec examples and captured frames, then replay the samples on The Things Network (TTN) or your own ChirpStack instance. Once the decoded values match, activate the collector on that network and compare a fresh uplink with the meter reading taken at the same time.

The meter protocol tells the collector how to read a measurement. The EB program chooses which measurements to transmit, their order and their scale. Two KC21 units reading different meters can therefore require different decoders.

  1. Describe the installation. Supply the collector and meter models, meter protocol or point list, wiring, communication settings, required measurements, polling and reporting intervals, and target network. List any remote settings or control commands you need.
  2. Commission on ThinkLink. Configure or reuse the EB program and confirm the version running on the device. For the same reading, compare the meter display, transmitted bytes and decoded value. For downlinks, record the command, device response and observed effect. Existing captures can be reused when the program version and configuration match.
  3. Replay the samples on the target platform. Use a Payload Formatter in The Things Stack, or the Codec tab of the device profile in ChirpStack v4. For each frame, supply its FPort and payload, then compare the output field names, values and units with the expected result. The Things Stack uplink formatters · ChirpStack device profiles
  4. Register and activate the device. Compare a new uplink with the meter reading. If replay yields a different value, check the FPort, byte order and scaling. If replay passes but no new uplink arrives, check registration, activation and gateway coverage. For each required downlink, verify the response and the change at the device.

We have the meter point list. What else will we receive? ​

The point list identifies what the collector can read. The target application also needs the layout emitted by this EB version and a captured payload with its expected result. The handoff covers six items.

DeliverableContents
Device and acquisition configurationCollector and meter models, firmware and EB versions, APP slot, wiring, communications settings, addresses, point mapping, polling interval and reporting conditions. For multiple meters or channels, explain how to identify the source.
Network registration parametersDevEUI, region and channel plan, LoRaWAN version, device class, activation method and required fields. Use placeholders in examples and deliver actual keys through the agreed secure channel.
Uplink protocol and point mappingFor each frame type, give the FPort, discriminator and length. For each field, give the offset, width, type, signedness, byte order, scale, unit and invalid values. Explain how to associate multipart frames when applicable.
Downlink protocol and responses, if requiredInputs, units, ranges, port, encoding, expected response, error meanings and a way to verify the effect of each query, setting or control command.
Codec examples and test framesSupply an uplink decoder for the target platform and a downlink encoder when required. Include at least one FPort, raw payload (label HEX or Base64) and expected result per applicable frame type. Identify captured and constructed samples.
Migration steps and verification recordRegistration, codec setup, sample replay and first live uplink checks. Record versions and results separately for replay, ThinkLink device tests and target-network tests. Identify any field checks still pending.