I have a LORA Sensing Labs Radio Transmitter 4-20ma connected to a water pressure.
I am using TTN and Cayenne tool to show the pressure graph in bar…
The customer Uplink Data received by TTN Tool is as follow:
00 F9 8E 01 9C 10 05 D1
2nd byte: Battery level = (FE) 249/254 = 98%
Last two bytes are Current = 05D1 => (suppressed in 1/200ma)
I have decoded and converted 05D1 using TTN Payload Format function to a pressure value xxx bar.
My question, how can I get the pressure values in a Cayenne widget?
Do I need to convert the last 4x byte to Cayenne LPP Format like 05 73 “pressure value in Hex”
In my actual situation I can see only SNR, RSSI, Battery and current in milliampere widgets in cayenne tool
Can you share the DevEui of your device?
I can take a look from our side & see if it’s decoding the payload properly.
If not, that could explain why the pressure widget is not working.
The best approach would be to modify the device’s payload, to send in our Cayenne LPP format, so you can get the data to show up in hPa. Then add your device on Cayenne as a LPP device.
You can read more about the available LPP Data Types here: Cayenne Docs
I wascontacting Sensing Labs Support team, unfortunately it´s not possible to modify the Senlab payload format. This is a standard format;-)
Is it possible to add either one more widget which will automatically do the required convertion (like we did in TTN decoder → Decoder/Converter Function)?
Or if you can add possibility to modify incomming data before they are shown in widget and stored into Database?
Unfortunately, there’s no option on the Cayenne side to modify the payload or data coming in. Best option would be to do conversion before it is sent to Cayenne. Just follow the Cayenne LPP format & it should show up on Cayenne based on that. Unfortunately, we currently do not support reading the TTN data that comes from the Payload decoder.