Payload data problem

I am using a Multitech device which acts as LoraWAN server. sensors are connected fine and are delivering data.

Now I have the problem in node-red the payload data does not look like useful data. E. g. the CO2 sensor's payload is sometimes: payload": [ 5, 1 ]

I read about decryptors online, but those I found (also on website) did not work. Please note I am new to Node-Red and LoraWAN, so please be kind and be a bit more elaborate, thank you.

This is the current flow for it (so far only two switches are included which sort the data and add the topics for each of the own sensors to the data, so I can act on it):

[{"id":"b8db5fed.e5464","type":"tab","label":"Flow 1"},{"id":"94c89fef.efe0c","type":"lora in","z":"b8db5fed.e5464","name":"","datatype":"bytes","x":122.10000228881836,"y":278.00000381469727,"wires":[["ddc64b37.9c74c8","d1dbdf76.5667f"]]},{"id":"d1dbdf76.5667f","type":"switch","z":"b8db5fed.e5464","name":"devEUI CO2-Sensor","property":"deveui","propertyType":"msg","rules":[{"t":"eq","v":"a8-17-58-ff-fe-04-ab-cb","vt":"str"}],"checkall":"true","outputs":1,"x":383.1000061035156,"y":271.40000343322754,"wires":[["bca3a773.396388"]]},{"id":"ddc64b37.9c74c8","type":"switch","z":"b8db5fed.e5464","name":"devEUI Tuer-Sensor","property":"deveui","propertyType":"msg","rules":[{"t":"eq","v":"a8-17-58-ff-fe-04-88-87","vt":"str"}],"checkall":"true","outputs":1,"x":405.1000061035156,"y":332.60010528564453,"wires":[["f9f6b9cc.cd6268"]]},{"id":"bca3a773.396388","type":"change","z":"b8db5fed.e5464","name":"Set Topic Co2","rules":[{"t":"set","p":"topic","pt":"msg","to":"CO2","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":595.1000061035156,"y":272.600004196167,"wires":[["8563653e.4b85b8"]]},{"id":"f9f6b9cc.cd6268","type":"change","z":"b8db5fed.e5464","name":"Set Topic Tuer","rules":[{"t":"set","p":"topic","pt":"msg","to":"Tuer","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":619.1000061035156,"y":329.600004196167,"wires":[["8563653e.4b85b8"]]},{"id":"8563653e.4b85b8","type":"debug","z":"b8db5fed.e5464","name":"","active":true,"console":"false","complete":"true","x":954.1000595092773,"y":264.00000381469727,"wires":[]}]

Hi blaz & welcome to the forum.

So what value are you expecting?

Can you show a screenshot of this debug message (need to know if this payload is an array or buffer)

I want useful data for our sensors. Here is a screenshot:

That looks like JSON (AKA JavaScript Object Notation - AKA a JS object in string format) - so - push your msg through a JSON node (to turn that string into a JS Object) then to a debug.

There’s a great page in the docs that will explain how to use the debug panel to find the right path to any data item.

EDIT What version of node-red is this? The format of the debug message seems strange. Is says "Object" but shows a string?

Normally, an object looks like this...


It is showing v0.15.3. I tried the json way and I only get "Ignored non-object payload".

Node-red 0.15 is four years old! Support for that version will be virtually impossible.
Hopefully you can update to a recent version, or this will be very difficult

After installing latest firmware from 29th October Node-Red is completely gone and in help section they state it is discontinued. So I rolled back to previous version to have it again.
So sadly it seems that Node-Red version is the latest I can have on that Multitech device :frowning:

What is the exact model of this device?

Do you have SSH access, perhaps you have ROOT access where you could manually upgrade nodejs+node-red?

Lastly - must you use this device? You could replace it with a £35 Raspberry PI and be bang up to date!

Thank you for your fast replies, much appreciated.

The model is a MTCAP-L4E1-868-041A and I can SSH to the device, but the root password is unknown and the default passwords I found on the website are not working.

Very likely we have to replace that very outdated software with something else, likely Raspi in our company for our iOT project unless you have any other idea for this outdated software.

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