kersing / packet_forwarder

Multi protocol packet forwarder supporting the TTN gateway-connector protocol.
Other
85 stars 56 forks source link

GPS is working to give coordinates, but I have invalid time reference #12

Closed kalon33 closed 4 years ago

kalon33 commented 6 years ago

Using the packet_forwarder, I got these kind of errors, preventing me to activate beacons and I think to have better packet timestamping accuracy:


10.01.18 21:03:57 (+0100) ##### 2018-01-10 20:03:57 GMT #####
10.01.18 21:03:57 (+0100) ### [UPSTREAM] ###
10.01.18 21:03:57 (+0100) # RF packets received by concentrator: 0
10.01.18 21:03:57 (+0100) # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
10.01.18 21:03:57 (+0100) # RF packets forwarded: 0 (0 bytes)
10.01.18 21:03:57 (+0100) # PUSH_DATA datagrams sent: 0 (0 bytes)
10.01.18 21:03:57 (+0100) # PUSH_DATA acknowledged: 0.00%
10.01.18 21:03:57 (+0100) ### [DOWNSTREAM] ###
10.01.18 21:03:57 (+0100) # PULL_DATA sent: 0 (0.00% acknowledged)
10.01.18 21:03:57 (+0100) # PULL_RESP(onse) datagrams received: 0 (0 bytes)
10.01.18 21:03:57 (+0100) # RF packets sent to concentrator: 0 (0 bytes)
10.01.18 21:03:57 (+0100) # TX errors: 0
10.01.18 21:03:57 (+0100) ### BEACON IS DISABLED! 
10.01.18 21:03:57 (+0100) ### [JIT] ###
10.01.18 21:03:57 (+0100) # INFO: JIT queue contains 0 packets.
10.01.18 21:03:57 (+0100) # INFO: JIT queue contains 0 beacons.
10.01.18 21:03:57 (+0100) ### [GPS] ###
10.01.18 21:03:57 (+0100) # Invalid gps time reference (age: 1515614637 sec)
10.01.18 21:03:57 (+0100) # System GPS coordinates: latitude 48.69465, longitude 2.29798, altitude 30 m
10.01.18 21:03:57 (+0100) ### [PERFORMANCE] ###
10.01.18 21:03:57 (+0100) # Upstream radio packet quality: 0.00%.
10.01.18 21:03:57 (+0100) # Semtech status report send. 
10.01.18 21:03:57 (+0100) ##### END #####
10.01.18 21:03:57 (+0100) 20:03:57  INFO: [TTN] bridge.eu.thethings.network RTT 22
10.01.18 21:03:57 (+0100) 20:03:57  INFO: [TTN] send status success for bridge.eu.thethings.network
10.01.18 21:04:27 (+0100) 
10.01.18 21:04:27 (+0100) ##### 2018-01-10 20:04:27 GMT #####
10.01.18 21:04:27 (+0100) ### [UPSTREAM] ###
10.01.18 21:04:27 (+0100) # RF packets received by concentrator: 1
10.01.18 21:04:27 (+0100) # CRC_OK: 0.00%, CRC_FAIL: 100.00%, NO_CRC: 0.00%
10.01.18 21:04:27 (+0100) # RF packets forwarded: 0 (0 bytes)
10.01.18 21:04:27 (+0100) # PUSH_DATA datagrams sent: 0 (0 bytes)
10.01.18 21:04:27 (+0100) # PUSH_DATA acknowledged: 0.00%
10.01.18 21:04:27 (+0100) ### [DOWNSTREAM] ###
10.01.18 21:04:27 (+0100) # PULL_DATA sent: 0 (0.00% acknowledged)
10.01.18 21:04:27 (+0100) # PULL_RESP(onse) datagrams received: 0 (0 bytes)
10.01.18 21:04:27 (+0100) # RF packets sent to concentrator: 0 (0 bytes)
10.01.18 21:04:27 (+0100) # TX errors: 0
10.01.18 21:04:27 (+0100) ### BEACON IS DISABLED! 
10.01.18 21:04:27 (+0100) ### [JIT] ###
10.01.18 21:04:27 (+0100) # INFO: JIT queue contains 0 packets.
10.01.18 21:04:27 (+0100) # INFO: JIT queue contains 0 beacons.
10.01.18 21:04:27 (+0100) ### [GPS] ###
10.01.18 21:04:27 (+0100) # Invalid gps time reference (age: 1515614667 sec)
10.01.18 21:04:27 (+0100) # System GPS coordinates: latitude 48.69467, longitude 2.29796, altitude 25 m
10.01.18 21:04:27 (+0100) ### [PERFORMANCE] ###
10.01.18 21:04:27 (+0100) # Upstream radio packet quality: 0.00%.
10.01.18 21:04:27 (+0100) # Semtech status report send. 
10.01.18 21:04:27 (+0100) ##### END #####
10.01.18 21:04:27 (+0100) 20:04:27  INFO: [TTN] bridge.eu.thethings.network RTT 22
10.01.18 21:04:27 (+0100) 20:04:27  INFO: [TTN] send status success for bridge.eu.thethings.network
10.01.18 21:04:44 (+0100) 20:04:44  INFO: Disabling GPS mode for concentrator's counter...
10.01.18 21:04:44 (+0100) 20:04:44  INFO: host/sx1301 time offset=(1515613990s:761196µs) - drift=-9µs
10.01.18 21:04:44 (+0100) 20:04:44  INFO: Enabling GPS mode for concentrator's counter.

As you can see, GPS position is updated, but still, I have an invalid GPS time reference. Output from "date -R" on my system returns the correct time and date.

Asghar-Usman commented 6 years ago

Hi, did you manage to solve the problem ?

kersing commented 5 years ago

There have been extensive discussions regarding GPS on the TTN forum resolving some issues. Are you still having issues or are your issues resolved?

kersing commented 5 years ago

I will close this issue as resolved in 10 days if no feedback is provided.

Asghar-Usman commented 5 years ago

I could not resolve the issue, but as i am no more using the TTN network you can close the thread.