Changes for page LPS8N -- LoRaWAN Gateway User Manual
Last modified by Kilight Cao on 2024/05/18 14:36
Change comment:
Uploaded new attachment "image-20240518143050-8.png", version {1}
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 9 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -630,7 +630,7 @@ 630 630 [[image:1657095412271-942.png]] 631 631 632 632 633 -== 5.3 LoRaWAN Settings == 633 +== (% data-sider-select-id="9385f434-0cee-4e27-b68d-01cc94864f95" %)5.3 LoRaWAN Settings(%%) == 634 634 635 635 === 5.3.1 LoRaWAN ~-~-> LoRaWAN === 636 636 ... ... @@ -638,7 +638,7 @@ 638 638 This page is for the connection set up to a general LoRaWAN Network server such as: [[TTN>>url:http://www.thethingsnetwork.org/]], [[ChirpStack>>url:https://www.chirpstack.io/]] etc. 639 639 640 640 641 -[[image:1 652423628833-467.png||height="357" width="755"]]641 +[[image:image-20240419150452-9.png||height="761" width="1098"]] 642 642 643 643 644 644 (% style="color:red" %)**Note:** ... ... @@ -653,7 +653,7 @@ 653 653 === 5.3.2 LoRaWAN ~-~-> LoRaWAN ~-~- Basic Station === 654 654 655 655 656 -[[image:image-20230406172421-1.png]] 656 +[[image:image-20230406172421-1.png||height="563" width="1089"]] 657 657 658 658 659 659 ((( ... ... @@ -967,10 +967,35 @@ 967 967 968 968 = 6. More features = 969 969 970 -== 6.1 Packet Filtering == 971 971 971 +== (% data-sider-select-id="2ef025e3-4214-4b1c-bb01-ee03e1db2bc2" %)6.1 NTP Service/Time Synchronization(%%) == 972 972 973 +The gateway time sync service is provided by ntpd 974 + 975 +=== 1). Modify the NTP server address: === 976 + 977 +(% class="box" %) 973 973 ((( 979 +~#~##Linux command 980 + 981 +uci set system.ntp.server='0.openwrt.pool.ntp.org' #Required 982 + 983 +uci add_list system.ntp.server='1.openwrt.pool.ntp.org' #Optional 984 + 985 +uci add_list system.ntp.server='2.openwrt.pool.ntp.org' #Optional 986 + 987 +uci add_list system.ntp.server='3.openwrt.pool.ntp.org' #Optional 988 + 989 +uci commit system #Required 990 +))) 991 + 992 +**Note: If the NTP server is a Windows host, it may cause the time synchronization to fail, ** 993 + 994 + 995 +== (% data-sider-select-id="9ae226bc-051a-4d47-8a2f-13187e54c382" %)6.2 Packet Filtering(%%) == 996 + 997 + 998 +((( 974 974 Drop unwanted packets. 975 975 ))) 976 976 ... ... @@ -979,7 +979,7 @@ 979 979 ))) 980 980 981 981 982 -== 6. 2Remote Access ==1007 +== (% data-sider-select-id="b5a1b47f-bee3-4d68-961d-5c81b48ab3e4" %)6.3 Remote Access(%%) == 983 983 984 984 985 985 ((( ... ... @@ -991,7 +991,7 @@ 991 991 ))) 992 992 993 993 994 -== 6 .3 How to decode ABP LoRaWAN node ==1019 +== (% data-sider-select-id="42a860ac-f871-40fc-8711-dd435b46239b" %)6.4 How to decode ABP LoRaWAN node(%%) == 995 995 996 996 997 997 ((( ... ... @@ -1003,7 +1003,7 @@ 1003 1003 ))) 1004 1004 1005 1005 1006 -== 6 .4 How to set data to MQTT broker ==1031 +== (% data-sider-select-id="1e2d672a-9400-44cc-82db-3946bd1cc49e" %)6.5 How to set data to MQTT broker(%%) == 1007 1007 1008 1008 1009 1009 ((( ... ... @@ -1014,7 +1014,7 @@ 1014 1014 Instruction: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/MQTT%20Forward%20Instruction/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/MQTT%20Forward%20Instruction/]] 1015 1015 1016 1016 1017 -== 6. 5How the gateway connects to Chirpstack v3/v4 via gateway-bridge ==1042 +== (% data-sider-select-id="e5ea7147-f618-4c9a-b8f9-e108ee76b9da" %)6.6 How the gateway connects to Chirpstack v3/v4 via gateway-bridge(%%) == 1018 1018 1019 1019 1020 1020 If the Chirpstack v3 Gateway-bridge is used, the corresponding gateway firmware must be used : ... ... @@ -1038,9 +1038,138 @@ 1038 1038 After updating the Chirpstack gateway-bridge firmware, there is no need to re-download and install the Chirpstack gateway-bridge package 1039 1039 1040 1040 1041 -== 6.6 How to extend the gateway size of memory with USB device (SD/TF card, USB flash drive). == 1066 +(% data-sider-select-id="eb4b3bf2-9e33-4650-b4d6-1bc049896baa" %) 1067 +== (% data-sider-select-id="e5ea7147-f618-4c9a-b8f9-e108ee76b9da" %)6.7 (%%)How does the gateway connect to (% data-sider-select-id="e5ea7147-f618-4c9a-b8f9-e108ee76b9da" %)Chirpstack(%%) via MQTT Forwarder == 1042 1042 1043 1043 1070 +(% data-sider-select-id="33f2a7a8-cb1a-4c53-bd5b-716d3cc3d74f" %) 1071 +ChirpStack MQTT Forwarder is a MQTT packet forwarder for LoRa gateways. By default it forwards packets in Protobuf binary format, optionally it can be configured to use JSON encoding for debugging. In contrast to the ChirpStack Gateway Bridge, this component must always be installed on the gateway. 1072 + 1073 + 1074 +(% data-sider-select-id="73a14e4a-5128-4f13-8207-7837c412ff54" %) 1075 +=== 6.7.1 Configure Packet Forwarder === 1076 + 1077 + 1078 +In the Dragino web-interface, you must configure the Packet Forwarder such that it forwards to localhost on port 1700. 1079 + 1080 +(% data-sider-select-id="2972d256-3078-403f-9e33-3740a5869405" %) 1081 +By default, the web-interface can be accessed by entering the following URL in your browser: (% data-sider-select-id="a9e64ab2-7a80-4174-b834-dba4904e3c85" %)**https:~/~/GATEWAY-IP-ADDRESS:8000**(%%) (replace GATEWAY-IP-ADDRESS by the actual IP address of your gateway). The default credentials are (% data-sider-select-id="16f9bbed-ffd7-4881-9cd1-33332f063857" %)**root / dragino**(%%). 1082 + 1083 +* In the **LoRaWAN** menu, click **LoRaWAN ~-~- Semtech UDP** 1084 +* Configure the following settings: 1085 +** **Service Provider:** //Custom / Private LoRaWAN// 1086 +** **Server Address:** //localhost// 1087 +** **Uplink Port:** //1700// 1088 +** **Downlink Port:** //1700// 1089 +* Click **Save&Apply** 1090 + 1091 +[[image:image-20240518114149-2.png||height="683" width="876"]] 1092 + 1093 + 1094 +(% data-sider-select-id="7ada6cd9-b472-473e-b709-31db23947a9c" %) 1095 +=== 6.7.2 Install ChirpStack MQTT Forwarder === 1096 + 1097 +==== ==== 1098 + 1099 +(% data-sider-select-id="cd761ad9-41f8-4cc3-8dc8-cf25ebe79e69" %) 1100 +(% data-sider-select-id="74577a45-a26e-4ab8-b56c-2ba79220e6c6" %)**SSH login** 1101 + 1102 +(% data-sider-select-id="f4b22a8a-3b87-4cc7-b4ed-451fdd8aa9a7" %) 1103 +First user must login into the gateway using SSH,user can refer to the link to access the Linux console via SSH to the gateway:**[[SSH Access for Linux console>>http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/#H7.A0LinuxSystem||data-sider-select-id="27b6862a-68e4-4f69-a5b2-b33d8a06a09c"]]** 1104 + 1105 + 1106 +(% data-sider-select-id="e9c9429f-f7c4-4eb3-b3f4-99553fe741b0" %) 1107 +(% data-sider-select-id="83ee7071-3524-45ba-99b2-9f3472815cd8" %)**Download IPK** 1108 + 1109 +Use the following commands to download the latest version of the chirpstack-mqtt-forwarder package: 1110 + 1111 +(% class="box infomessage" data-sider-select-id="b970d0e5-64ca-47c8-8c9c-6261200a719f" %) 1112 +((( 1113 +cd /tmp 1114 +wget https:~/~/artifacts.chirpstack.io/downloads/chirpstack-mqtt-forwarder/vendor/dragino/mips_24kc/chirpstack-mqtt-forwarder_4.3.0-r1_mips_24kc.ipk 1115 +))) 1116 + 1117 +(% data-sider-select-id="27190188-ef2a-4d53-8b94-c4653b69b266" %) 1118 +(% data-sider-select-id="3fe3ef50-33b9-4c6b-b228-7364e01382f3" %)**Install IPK** 1119 + 1120 +Use the opkg package-manager to install the downloaded package. Example: 1121 + 1122 +(% class="box infomessage" data-sider-select-id="86f1197c-5aaf-4a1b-a21f-09266a2805e7" %) 1123 +((( 1124 +opkg install chirpstack-mqtt-forwarder_4.3.0-r1_mips_24kc.ipk 1125 +))) 1126 + 1127 +[[image:image-20240518134824-5.png]] 1128 + 1129 + 1130 +(% data-sider-select-id="e8065348-1a8e-45a9-bb73-171b9322d2b2" %) 1131 +(% data-sider-select-id="e9401e38-e30d-4c39-94fa-927c9a40e151" %)**Configuration** 1132 + 1133 +(% data-sider-select-id="2a70737e-070b-4a83-a474-2fef1076a006" %) 1134 +To connect the ChirpStack MQTT Forwarder to your MQTT broker, you must update the ChirpStack MQTT Forwarder configuration file. 1135 + 1136 +(% data-sider-select-id="be45c14f-1537-457e-9c9b-3fec22c024ac" %) 1137 +This file is located at: (% data-sider-select-id="b010c8b8-6367-49bf-9c2e-3ee0b8a6ef0e" %)**/etc/chirpstack-mqtt-forwarder/chirpstack-mqtt-forwarder.toml** 1138 + 1139 + 1140 +(% data-sider-select-id="be45c14f-1537-457e-9c9b-3fec22c024ac" %) 1141 +(% data-sider-select-id="fab61fd5-2c9f-4b72-9b65-457dca26cbd0" %)**ChirpStack MQTT Forwarder Setting:** 1142 + 1143 +(% class="box" data-sider-select-id="be45c14f-1537-457e-9c9b-3fec22c024ac" %) 1144 +((( 1145 +topic_prefix ~-~-> This corresponds to the frequency of the ChirpStack server 1146 + 1147 +server ~-~-> Fill in the ChirpStack server address, Example: tcp:~/~/10.130.2.15:1883 1148 +))) 1149 + 1150 +(% data-sider-select-id="be45c14f-1537-457e-9c9b-3fec22c024ac" %) 1151 +username,password,ca_cert,tls_cert,tls_key parameters should be set as required. 1152 + 1153 + 1154 +Use commands to modify configuration files: 1155 + 1156 +(% class="box infomessage" data-sider-select-id="b84cf72d-69e4-441c-a8fb-bd21a500d223" %) 1157 +((( 1158 +vim /etc/chirpstack-mqtt-forwarder/chirpstack-mqtt-forwarder.toml 1159 +))) 1160 + 1161 +[[image:image-20240518141059-6.png]] 1162 + 1163 + 1164 +(% data-sider-select-id="3312b6d5-334c-43ae-8cd9-2f73989940e2" %) 1165 +(% data-sider-select-id="2b334f7c-35d3-4771-8b17-5760685430ac" %)**(Re)start and stop commands** 1166 + 1167 +(% data-sider-select-id="b8175b05-70b1-4251-97a1-8c0b2644e4d4" %) 1168 +Use the following commands to (re)start and stop the ChirpStack MQTT Forwarder service: 1169 + 1170 +(% class="box infomessage" data-sider-select-id="fc0e9684-3620-4f52-8045-9f6b7dd083e3" %) 1171 +((( 1172 +# start 1173 + 1174 +(% data-sider-select-id="5a644c5c-1ca5-4680-877e-c6aecd21f9de" %) 1175 +/etc/init.d/chirpstack-mqtt-forwarder start 1176 + 1177 +# stop 1178 + 1179 +/etc/init.d/chirpstack-mqtt-forwarder stop 1180 + 1181 +# restart 1182 + 1183 +/etc/init.d/chirpstack-mqtt-forwarder restart 1184 +))) 1185 + 1186 +(% data-sider-select-id="bd72b54d-7316-46eb-8f1e-008a17aa6e9e" %) 1187 +(% data-sider-select-id="fcef88f4-ef44-4459-9154-6cd154c5b298" %)**Check result** 1188 + 1189 +(% data-sider-select-id="bd72b54d-7316-46eb-8f1e-008a17aa6e9e" %) 1190 +Use "(% data-sider-select-id="494c67e8-3e62-45ee-8464-e2bb33057003" %)** **(%%)(% data-sider-select-id="494c67e8-3e62-45ee-8464-e2bb33057003" style="background-color:yellow" %)**logread -f **(%%)" to check the operation of ChirpStack MQTT Forwarder. 1191 + 1192 +[[image:image-20240518142300-7.png]] 1193 + 1194 + 1195 +== (% data-sider-select-id="7800ac49-e340-4225-b076-fa02aeef43b6" %)6.8 How to extend the gateway size of memory with USB device (SD/TF card, USB flash drive).(%%) == 1196 + 1197 + 1044 1044 USB card reader plugged into the USB port of the gateway 1045 1045 1046 1046 ... ... @@ -1075,13 +1075,13 @@ 1075 1075 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/DLOS8N/WebHome/image-20230425173831-3.png?width=833&height=105&rev=1.1||alt="image-20230425173831-3.png"]] 1076 1076 1077 1077 1078 -== 6. 7More instructions ==1232 +== (% data-sider-select-id="549c1118-9953-4d63-b060-f29990a0efff" %)6.9 More instructions(%%) == 1079 1079 1080 1080 1081 1081 [[LoRaWAN Gateway Instruction>>doc:Main.WebHome]](LoRaWAN Gateway) 1082 1082 1083 1083 1084 -== 6 .8 Auto-Provision ==1238 +== (% data-sider-select-id="259fae0e-46c2-4483-8d6a-2025695cbb8e" %)6.10 Auto-Provision(%%) == 1085 1085 1086 1086 1087 1087 Auto Provision is the feature for batch configure and remote management. It can be used in below two cases: ... ... @@ -1106,7 +1106,7 @@ 1106 1106 1107 1107 (% style="display:none" %) (%%) 1108 1108 1109 -== 7.1 SSH Access for Linux console == 1263 +== (% data-sider-select-id="ea0a026a-c7f9-42a6-8a0c-4c805370b1dc" %)7.1 SSH Access for Linux console(%%) == 1110 1110 1111 1111 1112 1112 User can access the Linux console via the SSH protocol. Make sure your PC and the LPS8N are connected to the same network, then use a SSH tool (such as [[putty>>url:http://www.chiark.greenend.org.uk/~~sgtatham/putty/download.html]] in Windows) to access it. ... ... @@ -1125,6 +1125,7 @@ 1125 1125 [[image:1657158198733-338.png]] 1126 1126 1127 1127 1282 +(% data-sider-select-id="d80817f0-5014-49db-a781-63e9c9f0527f" %) 1128 1128 The “** (% style="background-color:yellow" %)logread -f(%%)**(% style="background-color:yellow" %)” (%%)command can be used to debug how system runs. 1129 1129 1130 1130
- image-20240419150452-9.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +81.9 KB - Content
- image-20240518114103-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +66.7 KB - Content
- image-20240518114149-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +65.5 KB - Content
- image-20240518115955-3.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +37.4 KB - Content
- image-20240518134543-4.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +10.6 KB - Content
- image-20240518134824-5.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +47.6 KB - Content
- image-20240518141059-6.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +19.0 KB - Content
- image-20240518142300-7.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +122.9 KB - Content
- image-20240518143050-8.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +81.8 KB - Content