Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest timestamp issues (2019) #21

Open
davidfokkema opened this issue Jul 8, 2015 · 8 comments
Open

Latest timestamp issues (2019) #21

davidfokkema opened this issue Jul 8, 2015 · 8 comments
Labels

Comments

@davidfokkema
Copy link
Member

When the GPS does not track satellites, the GPS time can be wildly wrong. We've seen 1999 and 2019 a lot. When the timestamp jumps to 2019, the _latest_timestamp variable will always be later than the correct timestamp. This means that once the GPS time is correct again, all subsequent events will still be rejected. We should probably track the GPS time status, but make sure there are no race conditions.

@153957
Copy link
Member

153957 commented Jul 8, 2015

The One Second Messages contain the satellite Signal Values, perhaps you can use those to determine if timestamps are reliable.

@davidfokkema
Copy link
Member Author

When the status byte is equal to 1, the Trimble doesn't have GPS time. So it should not be very hard to determine when the timestamps are not reliable. I worry about race conditions, though. The GPS first loses GPS time, then when the hardware triggers unreliable events are generated, and only then will the software receive the GPS status byte. Maybe require a GPS status message for every event? Something else to throw into the stew. If we can make that work, we will never have 1999 or 2019 events again. That's worth something.

@153957
Copy link
Member

153957 commented Jul 8, 2015

That is indeed worth something, especially in 4 years 3 years 1 year when it is actually 2019..

@davidfokkema
Copy link
Member Author

Haha, I thought about that, too! Not too distant, anymore. Really need to make sure the server does not drop events in 2019.

@davidfokkema
Copy link
Member Author

While it is an issue to upload events with incorrect timestamps, I believe events are never blocked or thrown away. There is a problem that the _latest_timestamp variable will be incorrect, and that will result in endlessly keeping track of old messages. That may result in the app running out of memory.

@davidfokkema
Copy link
Member Author

Damn. One year.

@davidfokkema
Copy link
Member Author

This just happened again on pysparc1. GPS time jumped to April 17, 2019. Must fix this.

@153957
Copy link
Member

153957 commented Apr 7, 2018

related: HiSPARC/firmware#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants