
The false alarm seen with following GpsData, where lock_state is 0 and satellite_count and signal are positive value : GpsData(gpsd_running=1, lock_state=0, satellite_count=22, signal_quality_db=SignalQualityDb(min=28.0, max=36.0, avg=32.954)) SKY report of Gpsd data gives satellite count and signal_quality_db. TPV report of Gpsd data gives lock_state. The code was written with the assumption: SKY report always received only after TPV report. In long running system, it is observed the order is not guaranteed (5 out-of- order receipt in 2 days). This commit fixes the issue by handling out-of-order TPV and SKY report. Unit tests has been added to check out-of-order handling. TEST PLAN: PASS: Unit test with out-of-order TPV and SKY reports PASS: Deploy gnss-monitor instance and test functionality PASS: Run in loop to verify GpsData output sudo python /usr/rootdirs/opt/collectd/extensions/python/ptp_gnss_monitor_cli.py --devices /dev/ttyACM0 Closes-bug: 2127121 Change-Id: I80594f5a3a1210213c6f688822711b9c2e4e84a1 Signed-off-by: Tara Nath Subedi <tara.subedi@windriver.com>
Description
StarlingX system monitoring and repoting tools
Languages
Python
85.1%
Perl
14.1%
Makefile
0.6%
Shell
0.2%