Sensecap + scd41 + S2100 Datalogger - how read payloads

Hello,

I followed this how-to (https://wiki.seeedstudio.com/Build-LoRaWAN-Sensors-SenseCAP-XIAO-Controller-Data-Logger/) to connect my scd41 sensor, my sensecap S2110 and my S2100 datalogger.

I connected that on my Lora service. I received lora data messages.

First issue : all my measurements are at 0 in the SenseCAP APP. I don’t know why. I followed very precisely the how-to et checked a lot of times.

Second issue : I receive 2 data messages


Why? Which message receives the correct sensor values? the first or second one ?

Third issue : What decoder do I have to use in the wiki? Github. Here the two lora data messages.

{
  "id": "648c62e38cc6a86fd8770f3d",
  "streamId": "urn:lora:2CF7F1**********!uplink",
  "timestamp": "2023-06-16T13:25:54.122Z",
  "location": {
    "lat": 48.928932,
    "lon": 2.209517,
    "alt": 0,
    "accuracy": 5000,
    "provider": "lora"
  },
  "model": "lora_v0",
  "value": {
    "payload": "30120200000000000000003330020000000080000000"
  },
  "tags": [],
  "extra": {},
  "metadata": {
    "source": "urn:lo:nsid:lora:2CF7F1*********",
    "group": {
      "id": "NinBrr",
      "path": "/CIC"
    },
    "connector": "lora",
    "network": {
      "lora": {
        "devEUI": "2CF7F1*************",
        "port": 3,
        "fcnt": 2,
        "missingFcnt": 0,
        "rssi": -104,
        "snr": 0,
        "esp": -107.01,
        "sf": 12,
        "frequency": 865.5,
        "signalLevel": 5,
        "ack": false,
        "messageType": "UNCONFIRMED_DATA_UP",
        "location": {
          "lat": 48.928932,
          "lon": 2.209517,
          "alt": 0,
          "accuracy": 5000,
          "provider": "lora"
        },
        "gatewayCnt": 10
      }
    }
  },
  "created": "2023-06-16T13:25:55.422Z"
}
{
  "id": "648c62da190e324dad3f80ef",
  "streamId": "urn:lora:2CF7F1**********!uplink",
  "timestamp": "2023-06-16T13:25:46.620Z",
  "model": "lora_v0",
  "value": {
    "payload": "395a01010208003c00003402000000"
  },
  "tags": [],
  "extra": {},
  "metadata": {
    "source": "urn:lo:nsid:lora:2CF7F1***********",
    "group": {
      "id": "NinBrr",
      "path": "/CIC"
    },
    "connector": "lora",
    "network": {
      "lora": {
        "devEUI": "2CF7F1*************",
        "port": 3,
        "fcnt": 1,
        "missingFcnt": 0,
        "rssi": -106,
        "snr": 0,
        "esp": -109.01,
        "sf": 12,
        "frequency": 867.7,
        "signalLevel": 5,
        "ack": false,
        "messageType": "UNCONFIRMED_DATA_UP",
        "gatewayCnt": 10
      }
    }
  },
  "created": "2023-06-16T13:25:46.372Z"
}

I fixed my first issue. On the sensor setting I configured 60 (6s) in the “startup time” field instead 20. Below this value, I don’t get a complete mesurement.

Now I have to find how to decode the lora payload.

Hi,

For your second issue: the first value is correct.
For your third issue: you can choose the S2100 folder, which includes Helium and TTN. Choose according to your needs. https://github.com/Seeed-Solution/SenseCAP-Decoder/tree/main/S2100

Thank you @Seeed_Yvonne. That works in my LoRa platform.

Hello,
I am trying to find the correct codec for my S2100 sending data to an RAK7244 running chirpstack v.3. Using the codec from the wiki does not seem to be decoding the payload.
To test, I have connected a 3.3 volt battery to v1 using analog on the S2100.
Maybe I am doing something wrong?
Any help would be appreciated. Thanks.
BG

Welcome… i do not know much about this… but i think another guy on here is also having a problem with S2100