gnss-gps-integration
Skill36 starsChanged 5 months agoMITView on GitHub
Use when integrating a UART GNSS/GPS module (u-blox M8/M9/M10, Quectel Lxx), parsing NMEA GGA/RMC/GSA/GSV or UBX-NAV-PVT, or debugging no-fix, TTFF, checksum, or PPS issues
In this repository75 other files it gives its agents.
- 8051-mcu-debugSkill
- avem-integrationSkill
- battery-charger-fuel-gauge-integrationSkill
- ble-gatt-integrationSkill
- bootloader-debugSkill
- canbus-integrationSkill
- canopen-integrationSkill
- cellular-at-modem-integrationSkill
- cmbacktrace-integrationSkill
- cmsis-dsp-integrationSkill
- cortex-m-debugSkill
- cortex-r5-debugSkill
- crc-checksum-integrationSkill
- easylogger-integrationSkill
- embedded-app-example-libsSkill
- embedded-buffer-queue-libsSkill
- embedded-data-parsing-libsSkill
- embedded-debug-entrySkill
- embedded-fault-debugSkill
- embedded-framework-libsSkill
- embedded-input-libsSkill
- embedded-library-entrySkill
- embedded-linux-login-debugSkill
- embedded-peripheral-bringupSkill
- embedded-serial-log-debugSkill
- embedded-state-machine-libsSkill
- embedded-timing-libsSkill
- epd-integrationSkill
- esp-idf-integrationSkill
- fatfs-integrationSkill
- flashdb-integrationSkill
- freemodbus-integrationSkill
- freertos-kernel-debugSkill
- freertos-plus-tcp-integrationSkill
- hardware-interface-debugSkill
- heatshrink-integrationSkill
- letter-shell-integrationSkill
- littlefs-integrationSkill
- low-power-debugSkill
- lvgl-integrationSkill
- lwip-integrationSkill
- mbedtls-integrationSkill
- mcuboot-integrationSkill
- mcu-flashing-debugSkill
- micro-ecc-integrationSkill
- miniz-integrationSkill
- mqtt-embedded-integrationSkill
- nanopb-integrationSkill
- nrf-connect-sdk-integrationSkill
- nr-micro-shell-integrationSkill
- openocd-jlink-stlink-debugSkill
- openthread-integrationSkill
- ota-update-integrationSkill
- plooc-integrationSkill
- power-management-integrationSkill
- qspi-xip-flash-debugSkill
- readme-writingSkill
- riscv-mcu-debugSkill
- rtos-debugSkill
- rt-thread-integrationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill when:
- Distinctive: line 21
Do not use this skill when the UART link itself is unproven.
- Very specific: line 52
If timing matters, latch the PPS edge in an ISR and pair it with the time from RMC/UBX-NAV-PVT.
- Distinctive: line 56
No satellites: passive antenna with no bias voltage, antenna indoors/blocked, or open/short on the active-antenna feed (no current = open, …
- Very specific: line 59
Every fix is a cold start (long TTFF): V_BCKP/RTC unpowered, so ephemeris/almanac are lost on each power cycle.
- Distinctive: line 65
Before claiming the GNSS link works:
- Distinctive: line 71
If used, confirm PPS toggles at 1 Hz and aligns with the reported time.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GNSS GPS Integration
Overview
Use this skill to connect a GNSS/GPS module to an MCU over UART and turn raw output into a trusted fix. The hard parts are proving the byte stream is intact (NMEA XOR checksum, UBX sync), rejecting invalid fixes, and getting acceptable TTFF given antenna, sky view, and backup-power constraints.
When To Use
Use this skill when:
- The user integrates u-blox
NEO-M8N,NEO-M9N,MAX-M10, or QuectelL76/L80/LC76over UART. - The work involves parsing
$GxGGA,$GxRMC,$GxGSA,$GxGSV, the*hhXOR checksum, or the UBX binary protocol (0xB5 0x62,UBX-NAV-PVT). - Symptoms include no satellites, TTFF too long,
RMCstatusV, lat/lon of 0, truncated NMEA frames, or PPS not toggling. - Configuration uses the legacy
UBX-CFG-PRT/UBX-CFG-MSGmessages (M8-era), the config-key interfaceUBX-CFG-VALSET/UBX-CFG-VALGET(M9/M10), or PMTK sentences (PMTK251,PMTK220,PMTK314).
Do not use this skill when the UART link itself is unproven; confirm bytes arrive at the correct baud first.
First Questions
Ask for:
- Exact module and vendor (u-blox M8/M9/M10 vs Quectel Lxx), since protocol and config differ.
- UART baud (u-blox default
9600, Quectel L76 default9600), wiring (TX/RX crossed, CMOS 3V3 levels). - Active vs passive antenna, its supply/bias-T, and current sky visibility (indoors vs open sky).
- Backup power: is
V_BCKP/RTC battery or supercap fitted, or does the module lose power fully each cycle? - Whether the design needs continuous or low-power periodic fixes, and if PPS time sync is required.
- Current raw output (paste a few NMEA lines) and the observed failure.
Integration Checklist
- Prove the raw stream.
Log UART bytes at the module's default baud before parsing; confirm
$G...ASCII lines or UBX0xB5 0x62frames, not garbage from a baud mismatch. - Validate every sentence.
Compute the XOR of all chars between
$and*, compare to the two hex digits after*, and drop the line on mismatch or missing CR/LF instead of parsing junk. - Gate on the fix flag.
Trust position only when
RMCstatus isA(notV) andGGAfix quality is nonzero; treat lat/lon0,0as no-fix, and read satellite count/HDOP fromGGA, sats-in-view fromGSV. - Configure output intentionally.
On u-blox M8 use the legacy
UBX-CFG-PRT(baud/protocols) andUBX-CFG-MSG(per-message rate); on M9/M10 use the config-key interfaceUBX-CFG-VALSET/UBX-CFG-VALGET, since the legacyCFG-*messages are deprecated there. Poll or enableUBX-NAV-PVTfor a binary fix. On Quectel/MTK usePMTK314(sentence selection),PMTK220(update rate),PMTK251(baud). Save config if the module supports it. - Handle startup and backup power.
Expect cold start (~30 s to minutes) when ephemeris is lost; keep
V_BCKP/RTC powered so warm/hot starts (seconds) work. Issuing a cold start (PMTK103) or a full cold start (PMTK104, which also clears config) clears aiding data and forces a long TTFF. - Wire PPS and low-power correctly.
If timing matters, latch the PPS edge in an ISR and pair it with the time from
RMC/UBX-NAV-PVT; for periodic duty cycling, allow re-acquisition time and avoid killing backup power between wakeups.
Common Failures
- No satellites: passive antenna with no bias voltage, antenna indoors/blocked, or open/short on the active-antenna feed (no current = open, excess = short).
- Baud mismatch: reading a
115200module at9600yields framing errors and random bytes. - Checksum failures or truncated lines: undersized RX buffer, UART overrun, or parsing before a full
\r\nline arrives. - Every fix is a cold start (long TTFF):
V_BCKP/RTC unpowered, so ephemeris/almanac are lost on each power cycle. - Position stuck at
0,0or statusV: parser ignores the validity flag and publishes an unfixed solution. - UBX ignored: wrong sync bytes, class/ID, or a mis-computed 8-bit Fletcher checksum (
CK_A/CK_B) on theCFGmessage.
Verification
Before claiming the GNSS link works:
- State module, baud, antenna type/power, and protocol (NMEA and/or UBX).
- Show a captured sentence with a checksum you recomputed and confirmed.
- Confirm a real fix:
RMCstatusA, nonzeroGGAquality, plausible lat/lon, sat count and HDOP. - Report measured TTFF from cold and from warm/hot start, and confirm backup power behavior.
- If used, confirm PPS toggles at 1 Hz and aligns with the reported time.
Example
User:
NEO-M8N 接上了,UART 有数据,但一直定位不了,$GNRMC 的状态一直是 V。Agent:
- Confirms baud (
9600default) and captures a few raw lines to verify checksums pass and sentences are complete. - Reads
GGAfix quality andGSVsats-in-view; asks about antenna type/power and whether the module is under open sky. - Explains
Vmeans no valid fix yet, checks for a cold start with noV_BCKPbackup, and moves the antenna to clear sky to let ephemeris download before expecting statusA.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

