Skip to content

A Node-Red flow to analyze the LoRaWAN packets your gateway(s) receive.

Notifications You must be signed in to change notification settings

tiefpunkt/lorawan-gateway-traffic-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LoRaWAN Gateway Traffic Analysis

A Node-Red flow to analyze the LoRaWAN packets your gateway(s) receive.

A screenshot of the Node-Red flow

This flow acts like a LoRaWAN network for your gateway, takes in packages via the Semtech UDP protocol, calculates the airtime, figures out which network the package belongs to, and then stores all that information in an InfluxDB. You can then use Grafana to visualize that information

A screenshot of the Grafana dashboard

Setup

  • Install Node-Red with the InfluxDB nodes
  • Use the "Import" function in the Node-Red menu to import the flows.json file.
  • Enter the InfluxDB credentials in the last node.
  • Enter your gateway EUIs in the "Gateway Names if available" node.
  • Setup Grafana, configure the InfluxDB datasource, and import the dashboard.json file.
  • Configure your Node-Red installation as an additional server in the mp_pkt_fwd, by adding something like this section in the gateway_conf -> servers section:
{
    "server_address": "nodered.example.com",
    "serv_enabled": true,
    "serv_down_enabled": false,
    "serv_port_up": 1688,
    "serv_port_down": 1688
}

Or if you're using the balena.io image for your gateway(s), add the following Service Variables:

SERVER_1_ADDRESS=nodered.example.com
SERVER_1_ENABLED=true
SERVER_1_PORTDOWN=1688
SERVER_1_PORTUP=1688

References

About

A Node-Red flow to analyze the LoRaWAN packets your gateway(s) receive.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published