Gateway GPS is not reported


#1

I built a loraserver on Rpi 3B with LoRaGo PORT from Sandbox. My problem is the gateway does not report the GPS coordinates even though the GPS is locked as can be seen with “cgps” command. So the LoRa Appserver reports gateway location using the registered location on LoRa Appserver instead. The packet forwarder log is shown below:

##### 2018-10-05 17:12:45 GMT #####
### [UPSTREAM] ###
# RF packets received by concentrator: 6
# CRC_OK: 100.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
# RF packets forwarded: 6 (144 bytes)
# PUSH_DATA datagrams sent: 7 (1644 bytes)
# PUSH_DATA acknowledged: 100.00%
### [DOWNSTREAM] ###
# PULL_DATA sent: 3 (100.00% acknowledged)
# PULL_RESP(onse) datagrams received: 1 (185 bytes)
# RF packets sent to concentrator: 1 (12 bytes)
# TX errors: 0
### [GPS] ###
# Invalid gps time reference (age: 1538759565 sec)
# no valid GPS coordinates available yet
##### END #####

The section related to GPS “Invalid gps time reference (age: 1538759565 sec)” is mysterious to me. Can anyone help to explain and help me to resolve the problem? Thanks.


#2

I had some issue with the GPS, that I fixed with this:


#3

use can use: cat /dev/ttyS0

to display data received from the GPS, if it’s defined behind ttyS0


#4

Hi Richard,

Thanks very much. The problem is resolved. I need to add the following to the gateway_conf

"gps_tty_path": "/dev/ttyAMA0"

-Ming