Changes for page Filter unwanted LoRaWAN packets
Last modified by Kilight Cao on 2024/05/17 10:07
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -15,8 +15,6 @@ 15 15 16 16 * Confirmed Data Up 17 17 18 - 19 - 20 20 = 2. FWD Filter Mechanism = 21 21 22 22 ... ... @@ -27,8 +27,6 @@ 27 27 28 28 * LG308, DLOS8, LPS8, LIG16, LG308N, DLOS8N, LPS8N 29 29 30 - 31 - 32 32 **Filtering rules:** 33 33 34 34 (% border="1" style="background-color:#f2f2f2; width:728px" %) ... ... @@ -37,7 +37,6 @@ 37 37 |(% style="width:66px" %)**Level 1**|(% style="width:284px" %)Filter only the Fport in the list|(% style="width:68px" %)**Level 1**|(% style="width:306px" %)Filter only the DevAddr in the list 38 38 |(% style="width:66px" %)**Level 2**|(% style="width:284px" %)Filter Fport that are not in the database|(% style="width:68px" %)**Level 2**|(% style="width:306px" %)Filter DevAddr that are not in the database 39 39 40 - 41 41 ((( 42 42 [[image:image-20220726171434-6.png||height="628" width="692"]] 43 43 ... ... @@ -99,6 +99,37 @@ 99 99 100 100 **If user need to set the Secondary LoRaWAN Server Packet Filter, the configuration is similar to that above.** 101 101 97 + 98 +== 2.3 Add Filter ruler via Linux Command. == 99 + 100 + 101 +(% class="box infomessage" %) 102 +((( 103 +$ sqlite3 /etc/lora/devskey "INSERT INTO filter (name, type, value ) VALUES ('$filter_name', '$filter_type', '$filter_value');" 104 + 105 + 106 + 107 +name: server name. eg: server1/server2 108 + 109 +type: filter type. eg: fport/devaddr 110 + 111 +value: 0,1,2,3/000000 112 +))) 113 + 114 +(% class="box" %) 115 +((( 116 +eg: 117 + 118 +sqlite3 /etc/lora/devskey "INSERT INTO filter (name, type, value ) VALUES ('server1', 'fport', '1');" 119 + 120 +sqlite3 /etc/lora/devskey "INSERT INTO filter (name, type, value ) VALUES ('server1', 'devaddr', '00000000');" 121 + 122 +sqlite3 /etc/lora/devskey "SELECT *from filter" 123 +))) 124 + 125 +[[image:image-20230519104800-2.png]] 126 + 127 + 102 102 103 103 ))) 104 104 ... ... @@ -114,7 +114,6 @@ 114 114 115 115 * LPS8 116 116 117 - 118 118 **Fport & DevAddr Filter** 119 119 120 120 [[image:image-20220527150138-1.png]]