Northeastern-Electric-Racing / Odysseus

Our MQTT-based telemetry system, enabled by HaLow WiFi and Buildroot
5 stars 2 forks source link

[Validation] - GPS data not making it to chrony without lock, PPS data not outputted without lock. #75

Closed jr1221 closed 4 months ago

jr1221 commented 5 months ago

Observed Behavior

Right now during lock both the pps and gps sockets (and shm) are correctly populated with time data when 2d or 3d fixed. Without fix the rtc on the gps still has good time, but it either never makes it to chrony or chrony rejects it.

Expected Behavior

Without fix pps should send and gps time should send such that chrony has no real idea that a fix has been lost. Not a big deal because indoors we may have internet access, however it would be nice.

This issue is most likely related to internal ublox info, yet how does gpsd get the time?? The pps is 100% ublox settings, yet could not change that, see comments in #57.

Steps to Reproduce

  1. Use gps without fix (on either debian 3.21 or gpsd 3.25)
  2. Observe blank chrony sources and wrong date (unix epoch + uptime)

Screenshots (as needed)

No response

jr1221 commented 4 months ago

To output PPS on TPU v1 rev 1.

ubxtool -P 18 -v 2 -p CFG-TP5,0,2,0,1000000,1000000,100000,100000,0,0x77 --device /dev/ttyAMA5
ubxtool -p SAVE -P 18 -v 2

Still not getting to /istening by chrony. Further testing shows SHM is working for GPS and SOCK is working for PPS. No other combination works which is very whacky.

jr1221 commented 4 months ago

Correction there is no flash lol.