How to get data from the F8926-GW Indoor Gateway by using Node Red?

I am connecting the F8926-GW to a IPC, I would like to ask is here anyone know how to use Node Red to get data from F8926-GW?

It would be helpful if you included links to where we can see what F8926-GW and IPC devices are.

1 Like

A little 00go reveals that the F8926-GW is a home lorawan gateway.

Apparently it can connect to your home network either by ethernet or wifi, and it supports communication over MQTT.

@Champion, if you are unfamiliar with MQTT, it is very often used to pass messages between Node-red and other devices, so it looks like a good option for the F8926-GW..

There is a series of very good articles about it at https://www.hivemq.com/mqtt/.

Essentially you need a device to act as a "broker". You could use a cloud based broker service but I think you would be better to run your own broker on a device that is turned on 24/7.
A Raspberry Pi Zero 2 for instance has plenty of power to run both Node-red and the Mosquitto broker.
https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/

The F8926-GW will "publish" messages to the broker and Node-red devices on the same network can "subscribe" to receive them.

2 Likes

Here is the link of F8926-GW: https://www.fourfaith.com/f8926-gw-lorawan-gateway.html

I do not have the brand or model of the IPC devices but the IPC is running on Ubuntu.

Thanks for the article!


What do I select for Output? The choices are:

  1. auto detect (parsed JSON object, string or buffer
  2. auto detect (string or buffer)
  3. a Buffer
  4. a String
  5. a parsed JSON object
  6. a base64 encoded string

LoRaWan Gateway output base64 data. Do we use function node to decode from base64 to alpha numeric? If yes, what do we need to have in the function node?

I would use a node created for base64 encoding

Try it and see. Start with option 1, which is the default I think.

Since you are asking about processing the data within Node-red, I assume that you can successfully see the data coming in to Node-red, perhaps like this?

Try not to jump straight to using a function node for everything in Node-red, someone else may well have already done what you want. The node-red-node-base64 node was written by the core developers and almost certainly outperforms a javascript function that you could write (there are overheads in processing a function).

Yes it is. But I want to be sure that I am connecting to the right IP Address.

I would like to know should I enter the LoRaWan gateway IP Address or the IPC itself?

MQTT is a two stage process.

The lorawan gateway publishes to the MQTT broker. It needs to know the IP address of the broker.

Node-red tells the MQTT broker which message topics it wants to subscribe to. It too needs to know the IP address of the broker.

Have you got a broker? What application is it - Mosquitto? An online broker service? Node-red's own basic broker Aedes?

If the mqtt-in node status is "connected" as in my picture above, the subscribe part of the process is set up correctly.