Repository navigation
feat(gm_onstar_lg): read the generation 9 binary var/sysinfo/gps.dat - #455
Merged
abrignoni merged 5 commits intoNov 19, 2026
Merged
Conversation
Add GM OnStar LG Gen9 - GPS Fixes. Generation 9 units keep a binary gps.dat of ten 80-byte GPS fix slots (newest first) that no artifact read: the GPS Reports artifact reads only generation 10 text documents and the GPS Track artifact reads obn/storage/gps. Live and $Deleted copies are read; a fix in several copies is listed once with Times Found. Timestamp comes from the GPS week and time of week less the leap seconds in force; the stored date and time is shown beside it, because on the tested unit it ran 3 seconds late on 151 of 412 rows. Tested on one generation 9 unit: 412 rows from the chip-off flash image as raw input (2 live and 98 deleted copies), equal to an independent byte scan of the whole image, and 10 rows from the extracted file set. Also corrects the GPS Reports notes, which said generation 9 units have no gps.dat. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Name the artifact's author @burgers-n-bytes, Claude and replace the placeholder sample_data key with burgers_n_bytes_item001, in sample_data and in the notes that cite it. Rewrap one notes line over 100 columns. No change to parsing; the raw image run still gives 412 rows. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The tested generation 9 unit came from a 2015 Chevrolet Traverse, as confirmed by the examiner. Name it in sample_data and the notes, as the module's other artifacts do for their units. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Test data is now included for every changed artifact module. Thank you! |
caseGmOnStarGen9GpsDatSanitized holds four real var/sysinfo/gps.dat copies from one generation 9 unit (the live file, its backup-partition copy, the version before it and an older $NoFolder copy), sanitized in place: every position moved by one fixed offset to open water near 30N 40W and every date moved back by a whole number of weeks, stored date fields and GPS week together. Times of day, the gaps between fixes, the 15 and 18 second stored-versus-GPS differences and all other bytes are as the module wrote them. Gen9 GPS Fixes gives 13 rows with Times Found from 1 to 4. GPS Reports and Stored Values match the same files and give 0 rows, a checked absence for a binary gps.dat. Baselines were recorded on Windows and their paths written with forward slashes, which the runner compares equal there and as recorded elsewhere. run_test_cases.py passes all 14 cases. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Added a fixture in 8229bc1: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Adds GM OnStar LG Gen9 - GPS Fixes (
gm_onstar_lg_gen9_gps_fixes), which reads the generation 9 binaryvar/sysinfo/gps.dat: ten 80-byte GPS fix slots, newest first, rewritten in place. No artifact read this file. GPS Reports reads only generation 10 text documents, and GPS Track readsobn/storage/gps, which was zero bytes on the tested unit. This also corrects the GPS Reports notes, which said generation 9 units have no gps.dat.For a new or changed artifact
-t rawinput (2 live and 98$Deletedcopies), and 10 rows from the qnxprobe-extracted file set, the 10 among the 412. An independent byte scan of the whole image found the same 412 distinct fixes, with none missing on either side, and every row matched that parse on time and position. A full run with all 215 artifacts finished on both inputs with no errors.check_artifact_output.pyon that report. The one finding was GPS Week constant (2442) on all 412 rows; the fixes span less than two days, and the notes now say so and why the column stays.varand a backupvarpartition, and fixes found in both are listed once with Times Found. The unit test covers that de-duplication with three files.notes,descriptionandsample_datasay only what the data shows, and every number was re-derived from the finished run. Three draft figures were corrected that way.Also run: the new
admin/test/scripts/test_gm_onstar_lg_gen9_gps_fixes.py(6 tests on synthetic files, no case data) and the existing OnStar fragment test, all passing;pylint --disable=C,R10.00/10 on both files;check_claim_language.py,check_artifact_descriptions.py,check_report_local_paths.py,check_source_path.py, and the metadata, imports, icons, category and corpus-privacy tests.Anything reviewers should know
gps/SiRFNavIIIStorage0.sns.blackbox.datandocc.daton this unit held no coordinates. The SiRF storage files are not surfaced here: they hold the receiver's last position at each power-down, and their timestamps carry time of week without a week number.🤖 Generated with Claude Code