Gateway TLG8411V1 User Manual V1.0.0
49
July 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) {
}
Содержание TLG8411V1
Страница 1: ...Gateway TLG8411V1 User Manual V1 0 0 July 2020 ...
Страница 36: ...Gateway TLG8411V1 User Manual V1 0 0 35 July 2020 Figure 4 2 Execution of Parsing LoRaWAN Packet in LoRaScript ...
Страница 52: ...Gateway TLG8411V1 User Manual V1 0 0 51 July 2020 8 Revisions 8 1 V1 0 0 First Release Version ...