Gateway TLG3901B/BLV2 Series User Manual
V2.0.4
52
December 2020
7.
Troubleshooting
7.1.
LoRaWAN Packet Forwarder Cannot Send Pack-
ets
If the network connection is not set properly, especially the DNS servers, gateway would fail
to connection to Internet. Then, the LoRaWAN packet forwarder cannot connect to Lo-
RaWAN server.
To check the status of network connection, please use following script at LoRaScript for
checking network connection to determine whether the gateway can connect to specific
server. Figure 7-1 illustrates the result of executing script.
List 7-1 LoRaScript for Checking Network Connection
function onInit() {
var dns = require("dns");
dns.lookup("www.google.com", 4, function(err, address, family) {
debug_print("DNS Server: " + dns.getServers());
if (err) {
debug_print("Cannot Get Address");
return;
}
debug_print("Lookup address is " + address);
});
}
function onLoRaRx (data) {
}