Lorawan tx / rx empty

tx / rx empty

Dear all!

I am new to the lorawan world, and in chirpstack. I have a Wifx L1 what I’m trying to configure. I selected chirpstack gateway bridge (Version 3.14.3 ) on the wifix l1, and configured to connect to my chirpstack 4.6.0 with the following parameters:

[integration]
  marshaler="protobuf"
  [integration.mqtt]
  event_topic_template="eu868/gateway/{{ .GatewayID }}/event/{{ .EventType }}"
  state_topic_template="eu868/gateway/{{ .GatewayID }}/state/{{ .StateType }}"
  command_topic_template="eu868/gateway/{{ .GatewayID }}/command/#"
  
    [integration.mqtt.auth]
      type="generic"

      [integration.mqtt.auth.generic]
        server="tcp://10.1.10.74:1883"

        username="username"
        password="password"

It seems to work, I see the gateway online on the chirpstack web interface.

Next step was to add a dragino lht52 to chirpstack. I have configured a device profile and an application, added a codec to the device profile (https://github.com/dragino/dragino-end-node-decoder/blob/main/LHT52/LHT52%20Decoder%20Chirpstack%20V4%20.txt).

And have tried to connect the temperature sensor. The lht52 tries to connect, if I try

sudo journalctl -f -n 100 -u chirpstack

I can see it in the logs, but I get an error:

Dec 30 07:26:10 chirpstack chirpstack[5683]: 2023-12-30T07:26:10.861028Z  INFO chirpstack::gateway::backend::mqtt: Message received from gateway region_id="eu868" topic="eu868/gateway/0016c001ff10dc17/event/up" qos=0 json=false
Dec 30 07:26:11 chirpstack chirpstack[5683]: 2023-12-30T07:26:11.064095Z  WARN chirpstack::uplink: tx_info of uplink event is empty, skipping
Dec 30 07:26:11 chirpstack chirpstack[5683]: 2023-12-30T07:26:11.064240Z ERROR chirpstack::uplink: Deduplication error error=Unable to get first item from rx_info

If I switch marshaler on the gateway to json, and try:
mosquitto_sub -v -t "+/gateway/#" -u user -P password

I can see:

eu868/gateway/0016c001ff10dc17/event/up {"phyPayload":"AAABAAAAQUCo6A2HMQNBQKiv9lxn5wM=","txInfo":{"frequency":868300000,"modulation":"LORA","loRaModulationInfo":{"bandwidth":125,"spreadingFactor":7,"codeRate":"4/5","polarizationInversion":false}},"rxInfo":{"gatewayID":"ABbAAf8Q3Bc=","time":null,"timeSinceGPSEpoch":null,"rssi":-69,"loRaSNR":13.75,"channel":1,"rfChain":1,"board":0,"antenna":0,"location":null,"fineTimestampType":"NONE","context":"ES65oQ==","uplinkID":"dhQXPNEwTWm6In5IUxkT3g==","crcStatus":"CRC_OK"}}
eu868/gateway/0016c001ff10dc17/event/up {"phyPayload":"AAABAAAAQUCo6A2HMQNBQKjc7xq5xh4=","txInfo":{"frequency":868500000,"modulation":"LORA","loRaModulationInfo":{"bandwidth":125,"spreadingFactor":7,"codeRate":"4/5","polarizationInversion":false}},"rxInfo":{"gatewayID":"ABbAAf8Q3Bc=","time":null,"timeSinceGPSEpoch":null,"rssi":-71,"loRaSNR":11,"channel":2,"rfChain":1,"board":0,"antenna":0,"location":null,"fineTimestampType":"NONE","context":"EZm8wQ==","uplinkID":"AZXqyQiMQj6rERNSzxEDwg==","crcStatus":"CRC_OK"}}
eu868/gateway/0016c001ff10dc17/event/stats {"gatewayID":"ABbAAf8Q3Bc=","ip":"","time":"2023-12-29T19:25:13.037765899Z","location":null,"configVersion":"","rxPacketsReceived":4,"rxPacketsReceivedOK":4,"txPacketsReceived":0,"txPacketsEmitted":0,"metaData":{"concentrator_temp":"25.125","concentratord_version":"3.3.1","config_version":"","hal_version":"Version: 2.0.2;","model":"wifx_l1_863_870"},"statsID":"fUAviOXuQjaMRyIjV8oBBQ==","txPacketsPerFrequency":{},"rxPacketsPerFrequency":{"868100000":1,"868300000":1,"868500000":2},"txPacketsPerModulation":[],"rxPacketsPerModulation":[{"modulation":{"loRa":{"bandwidth":125,"spreadingFactor":7,"codeRate":"4/5","polarizationInversion":false}},"count":3},{"modulation":{"loRa":{"bandwidth":125,"spreadingFactor":8,"codeRate":"4/5","polarizationInversion":false}},"count":1}],"txPacketsPerStatus":{}}
eu868/gateway/0016c001ff10dc17/event/up {"phyPayload":"AAABAAAAQUCo6A2HMQNBQKi6z3EF5Gs=","txInfo":{"frequency":868300000,"modulation":"LORA","loRaModulationInfo":{"bandwidth":125,"spreadingFactor":7,"codeRate":"4/5","polarizationInversion":false}},"rxInfo":{"gatewayID":"ABbAAf8Q3Bc=","time":null,"timeSinceGPSEpoch":null,"rssi":-72,"loRaSNR":13.75,"channel":1,"rfChain":1,"board":0,"antenna":0,"location":null,"fineTimestampType":"NONE","context":"EgTbcw==","uplinkID":"90mum8JAQzWw68uPTBGKoQ==","crcStatus":"CRC_OK"}}

So it seems that txInfo is set, and the data is passed to mosquitto.
I google-d a lot but can’t find any clue where should I search for the error. The LoRaWAN Frames tab is also empty under the gateway.
Thank you in advance!

4.6.0 has a breaking change made, causing it to be incompatible with the v3 gateway bridge, unless you set v4_migrate to true: Changelog - ChirpStack open-source LoRaWAN® Network Server documentation

If you don’t need to use the v3 gateway bridge, do consider using the latest v4 version (which was 4.0.10, when I last checked last week or so).

1 Like

Hello sp193!

You are the hero of the day! Thank you! v4_migrate does the trick!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.