D20S-LB Temp Reading

Hello All -

I have the v4 server up and running. I have my gateway (SenseCAP M2-US915) connected and sending packets (shows online in Chirpstack). I also have my Dragino D20S-LB connected and showing online.

I can see the JoinRequest and JoinAccept packets in LoRaWAN Frames. I can see join, status, and up packets in Events. However, I’m not seeing the temperature field in the events. For the status packet I can see the battery level, which is nice. But I can’t seem to find where the temperature reading is showing up.

I’m thinking I also need some help setting up the device profile so the measurements for temperature and battery status show up under the device metrics page. So far, nothing is showing up there.

Thanks everyone!
Greg

The lack of temperature data is likely linked to the codec script you installed (or the lack of one) in Chirpstack, to decode the data.

I’ve never used the dashboard functionality of Chirpstack, so I cannot comment on that part.

As @sp193 said you definitely are missing a codec, if you look at the “up” events for the device there is a field “data:”, if you have a codec uploaded this will get decoded into a JSON string labeled “object:” containing your device readings, temperature etc…

You can add a codec to your device in the device profile. Once you have that, Chirpstack will begin autodetecting the device readings, and you can select what to graph on the metrics page by configuring the “measurements” page of a device profile.


Here’s what I have loaded for my codec on the device profile. I followed this page from Dragino for adding the device to my Chirpstack system: Notes for ChirpStack - DRAGINO

Lol, everything in that codec is commented out. That is just an outline.

Try this one:

Thank you guys for the help. I’ll update the profile with the codec like @Liam_Philipp suggested. Man there is a serious learning curve with this stuff. :roll_eyes:

Definitely takes some learning, but that’s why there are businesses that can sell the whole package at high prices. If you want it free you need to understand it.

Let me know if you run into any issues with that codec, they can be finicky at times as their standardization is not mainstream yet, but Dragino typically does a good job conforming to each platform.