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.

  1. What is the difference between using MQTT In node and Aedes MQTT broker node?

  2. Which action should I choose and how I can be sure which one is the one that I should choose? Is this can find at the LoRaWan configuration page?

  3. Which QoS should I choose?

  4. What's the protocol should I choose?

  5. What is Client ID means?
    image

Below is the LoRaWan Gateway F8926-GW configuration page, is this configure correctly to establish the connection with the Node Red?

Beside the MQTT, I am establishing another project is using Modbus, the connection is TCP ethernet cable, I would like to know which type of node to get the data from the data source, is using Modbus Getter node or TCP In node?

If using Modbus Getter node:

  1. Is the Address here meaning that starting address? What should I put in the address bar here?
  2. What is the Quantity means here? Is there any formula could I use?
  3. The below sreenshot is showing the configuration of the server, am I configure correctly?

If using TCP In node:

  1. Which Type I should choose?
  2. Whats the output should I choose?

  3. What should I put in the Topic bar?
    image