Hello,
I just set-up a RAK7243.
Procedure:
- firmware from https://downloads.rakwireless.com/en/LoRa/Pilot-Gateway-Pro-RAK7243/Firmware/
- gateway-config, all defaults and
- use local Lora app server (not ttn)
- disable LTE
- wifi as a client
- installed extra: git, webmin
- configured dhcpcd.conf to use the local dhcp server (connecting via Ethernet cable, not static ip)
- configured sshd_config
nothing else
all defaults on Lora Gateway, packet forwarder, Lora Server and Lora App Server, no nodes connected
Problem:
tailing syslog I found multitudes of the message
Aug 27 15:53:07 rak-gateway ttn-gateway[580]: WARNING: [gps] could not get a valid message from GPS (no time)
and it keeps spamming the syslog at a warning rate, something that is not good for the sdcard and neither for parsing log files.
some times it logs (gps values obfuscated not actual xx
)
Aug 27 15:52:27 rak-gateway ttn-gateway[580]: # GPS coordinates: latitude xx.xxxxx, longitude xx.xxxxx, altitude 82 m
Aug 27 15:52:57 rak-gateway ttn-gateway[580]: JSON up: {"stat":{"time":"2019-08-27 12:52:57 GMT","lati":xx.xxxxx,"long":xx.xxxxx,"alti":94,"rxnb":0,"rxok":0,"rxfw":0,"ackr":100.0,"dwnb":0,"txnb":0}}
continue with testing:
/opt/ttn-gateway/lora_gateway/libloragw/test_loragw/gps
outputs the same message
Beginning of test for loragw_gps.c
*** Library version information ***
Version: 5.0.1;
***
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
...
the same with:
/opt/ttn-gateway/packet_forwarder/lora_pkt_fwd/start.sh
Gateway_ID set to XXXXXXXXXXXXXXXX in file ./local_conf.json
*** Beacon Packet Forwarder for Lora Gateway ***
Version: 4.0.1
*** Lora concentrator HAL library version info ***
Version: 5.0.1;
***
INFO: Little endian host
INFO: found global configuration file global_conf.json, parsing it
INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
INFO: lorawan_public 1, clksrc 1
INFO: no configuration for LBT
INFO: antenna_gain 0 dBi
INFO: Configuring TX LUT with 16 indexes
INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1, tx_notch_freq 0
INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0, tx_notch_freq 0
INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to 0000000000000000
INFO: server hostname or IP address is configured to "127.0.0.1"
INFO: upstream port is configured to "1700"
INFO: downstream port is configured to "1700"
INFO: downstream keep-alive interval is configured to 10 seconds
INFO: statistics display interval is configured to 30 seconds
INFO: upstream PUSH_DATA time-out is configured to 100 ms
INFO: packets received with a valid CRC will be forwarded
INFO: packets received with a CRC error will NOT be forwarded
INFO: packets received with no CRC will NOT be forwarded
INFO: GPS serial port path is configured to "/dev/i2c-1"
INFO: Reference latitude is configured to 10.000000 deg
INFO: Reference longitude is configured to 20.000000 deg
INFO: Reference altitude is configured to -1 meters
INFO: fake GPS is disabled
INFO: Auto-quit after 6 non-acknowledged PULL_DATA
INFO: found local configuration file local_conf.json, parsing it
INFO: redefined parameters will overwrite global parameters
INFO: local_conf.json does not contain a JSON object named SX1301_conf
INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to XXXXXXXXXXXXXXXX
INFO: packets received with a valid CRC will be forwarded
INFO: packets received with a CRC error will NOT be forwarded
INFO: packets received with no CRC will NOT be forwarded
INFO: [main] TTY port /dev/i2c-1 open for GPS synchronization
INFO: [main] concentrator started, packet can now be received
INFO: [down] PULL_ACK received in 0 ms
INFO: Disabling GPS mode for concentrator's counter...
INFO: host/sx1301 time offset=(1566912200s:651487µs) - drift=756888287µs
INFO: Enabling GPS mode for concentrator's counter.
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
WARNING: [gps] could not get a valid message from GPS (no time)
^C
On the LoraAppServer > Gateways > predefined gateway
the gateway has a valid location from the GPS module (?)
Solution:
1. tried
The only solution I found so far is to disable the GPS module connection in
/opt/ttn-gateway/packet_forwarder/lora_pkt_fwd/global_conf.json
by commenting out gps_tty_path
(it only stops spamming the syslog by commenting out the gps tty path and not just gps: false
)
...
"gateway_conf": {
"gateway_ID": "0000000000000000",
/* change with default server address/ports, or overwrite in local_conf.json */
"server_address": "127.0.0.1",
"serv_port_up": 1700,
"serv_port_down": 1700,
/* adjust the following parameters for your network */
"keepalive_interval": 10,
"stat_interval": 30,
"push_timeout_ms": 100,
/* forward only valid packets */
"forward_crc_valid": true,
"forward_crc_error": false,
"forward_crc_disabled": false,
/* gps enable */
"gps": false,
// "gps_tty_path": "/dev/i2c-1",
"fake_gps": false,
"ref_latitude": 10,
"ref_longitude": 20,
"ref_altitude": -1,
"autoquit_threshold": 6
}
}
2. looking for
Is the warning messages in syslog
something normal?
And if it is,
is there another way not disabling the gps and keeping the logs clean? (maybe, some configuration value for logging level)
thank you