Skip to content

Chirpstack v4 integration #19

@aschliemann

Description

@aschliemann

Hi,
chirpstack has updated to v4. https://www.chirpstack.io/docs/
I tried the integration as suggested with your documentation.
As far as I know Orne Brocaar tried to make chirpstack more ttn syntax like (at least the device decoders are). The data object is also different from before.

See https://www.chirpstack.io/docs/chirpstack/integrations/events.html for updated event data-structure:
e.g. see up-event - mind the object-object:
{ "deduplicationId": "3ac7e3c4-4401-4b8d-9386-a5c902f9202d", "time": "2022-07-18T09:34:15.775023242+00:00", "deviceInfo": { "tenantId": "52f14cd4-c6f1-4fbd-8f87-4025e1d49242", "tenantName": "ChirpStack", "applicationId": "17c82e96-be03-4f38-aef3-f83d48582d97", "applicationName": "Test application", "deviceProfileId": "14855bf7-d10d-4aee-b618-ebfcb64dc7ad", "deviceProfileName": "Test device-profile", "deviceName": "Test device", "devEui": "0101010101010101", "tags": { "key": "value" } }, "devAddr": "00189440", "dr": 1, "fPort": 1, "data": "qg==", "object": { "latitude":0.00, "longitude":0.00, "altitude":0.00, "hdop":0, "satellites":0 }, "rxInfo": [{ "gatewayId": "0016c001f153a14c", "uplinkId": 4217106255, "rssi": -36, "snr": 10.5, "context": "E3OWOQ==", "metadata": { "region_name": "eu868", "region_common_name": "EU868" } }], "txInfo": { "frequency": 867100000, "modulation": { "lora": { "bandwidth": 125000, "spreadingFactor": 11, "codeRate": "CR_4_5" } } } }

BEFORE (version 3. https://www.chirpstack.io/application-server/integrations/events/ ) it has been like this - mind the objectJSON-string :
{ "applicationID": "123", "applicationName": "temperature-sensor", "deviceName": "garden-sensor", "devEUI": "AgICAgICAgI=", "rxInfo": [ { "gatewayID": "AwMDAwMDAwM=", "time": "2019-11-08T13:59:25.048445Z", "timeSinceGPSEpoch": null, "rssi": -48, "loRaSNR": 9, "channel": 5, "rfChain": 0, "board": 0, "antenna": 0, "location": { "latitude": 52.3740364, "longitude": 4.9144401, "altitude": 10.5 }, "fineTimestampType": "NONE", "context": "9u/uvA==", "uplinkID": "jhMh8Gq6RAOChSKbi83RHQ==" } ], "txInfo": { "frequency": 868100000, "modulation": "LORA", "loRaModulationInfo": { "bandwidth": 125, "spreadingFactor": 11, "codeRate": "4/5", "polarizationInversion": false } }, "adr": true, "dr": 1, "fCnt": 10, "fPort": 5, "data": "...", "objectJSON": "{\"latitude\":0.00, \"longitude\":0.00, \"altitude\":0.00, \"hdop\":0, \"satellites\":0}", "tags": { "key": "value" } }

already checked:

  • decoded payload objects work fine with direct ttn-->webhook-->ttnmapper integration. This is why I am assuming that the payload decoder is well formatted.
  • can ping the ttn integration server from the chirpstack host -> connection not blocked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions