Filter unwanted LoRaWAN packets

Version 1.2 by Xiaoling on 2022/05/12 17:16

     Contents:

1. Introduction

This feature is to filter the unwanted LoRaWAN packets. Purpose is to save the upstream traffic especially for a 4G cellular connection. If configured, gateway will process filter for below two types of message:

  • Unconfirmed Data Up
  • Confirmed Data Up

1.1 Support Devices

  • Firmware Version > lgw--build-v5.4.1602379434-20201011-0926 Firmware Download
  • LG308, DLOS8
  • LPS8

2. Filter Mechanism

https://wiki.dragino.com/images/thumb/6/65/FPort_Filter_1.png/600px-FPort_Filter_1.png

Fport & DevAddr filtering

https://wiki.dragino.com/images/thumb/c/cb/FPort_Filter_01.png/600px-FPort_Filter_01.png

check if the filter is running

2.1 Filter By Fport

The Gateway FPort filter will check all the below LoRaWAN message: Unconfirmed Data Up & Confirmed Data Up. If the packet's FPort doesn't match the FPort setting, it will be dropped.

By default , this value is 0 means can upstream all packets with any FPort. We can set to other FPort so specify only one FPort works.

https://wiki.dragino.com/images/thumb/7/7c/FPort_Filter_2.png/600px-FPort_Filter_2.png

Fport filtering

In case we set the FPort filter to 45, and the End Node send a packet with Fport other than 45, it will be dropped.

2.2 Filter By DevAddr

Gateway will use a DevAddr mask to check if the Unconfirmed Data Up & Confirmed Data Up packets match the mask . If not, gateway will drop it.

https://wiki.dragino.com/images/thumb/0/09/DevAddr_Filter_3.png/600px-DevAddr_Filter_3.png

DevAddr filtering

This screenshot shows packets is dropped if DevAddr mask doesn't match.