Skip to content
Back to skills

Ntrip Rtklib Knowledge Patch

ASecurity

NTRIP / RTKLIB

  • 25 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added May 27, 2026
developmentpythongitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill ntrip-rtklib-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ntrip Rtklib Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ntrip Rtklib Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-ntrip-rtklib-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-ntrip-rtklib-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ntrip-rtklib-knowledge-patch
description: NTRIP / RTKLIB
version: null
license: MIT
metadata:
  author: Nevaberry
---


# NTRIP / RTKLIB

Load this skill for RTKLIB and Demo5 streaming, positioning, conversion,
and troubleshooting; BNC correction services; NTRIP casters and VRS;
or RINEX and RTCM format handling.
Use the topic references for complete option syntax, examples, and
product-specific behavior.

## Reference index

| Reference | Topics |
| --- | --- |
| [Applications and streaming](references/applications-and-streaming.md) | GUI configuration, receiver commands, raw logs, STR2STR, STRSVR, RTKRCV, RTKPOST, RNX2RTKP, RTKGET |
| [BNC client](references/bnc-client.md) | Builds, headless jobs, TLS, recording, RINEX QC, PPP, SSR combination and uploads, SP3 and clock products |
| [Diagnostics and platforms](references/diagnostics-and-platforms.md) | Toolchains, build flags, trace diagnostics, plots, covariance, status layouts |
| [NTRIP casters and VRS](references/ntrip-casters-and-vrs.md) | Revisions, sourcetables, GGA, Professional NtripCaster, hosted services, VRTK2 |
| [Positioning and ambiguity](references/positioning-and-ambiguity.md) | Dynamics, combined filtering, AR, hold, GLONASS biases, masks, weighting, coordinates, antenna and PPP corrections |
| [RINEX and conversion](references/rinex-and-conversion.md) | CONVBIN, receiver options, signal mapping, observation and navigation records, phase alignment, time systems |
| [Core and support](references/rtklib-core-and-support.md) | C and Python APIs, format limits, RTCM registries, decoder repairs, patch-specific fixes |

## Compatibility changes and failure traps

### Configuration and command migration

The Windows GUI INI location moves from `C:\Windows` to
`rtklib_2.4.2\bin` in RTKLIB 2.4.2; copy existing INI files when upgrading.
In `str2str`, 2.4.1 documents two `-p` values, latitude and longitude;
2.4.2 takes latitude, longitude, and height, so add the third value.
The 2.4.2 p10 parser can misread paths containing `#format`; use p11 or later
for format conversion on that release line.

Stock 2.4.2 uses `pos1-snrmask_r` and `pos1-snrmask_b`; the configuration
guide uses `pos1-snrmask-r` and `pos1-snrmask-b`.
The scalar `pos1-snrmask` belongs to 2.4.1.
Demo5 b26b defaulted `pos2-varholdamb` to `0.001`; the August 2024 Demo5
manual gives `0.1`. Larger values weaken hold feedback.

### Conversion and decoder failures

In the benchmark-era build, RTCM 3 conversion drops `1230` because the
converter cannot generate it. Turn off **Conversion From**, or omit format
suffixes in `str2str`, to relay existing messages byte for byte.
For MSM output, valid satellite count times distinct signal count must be
at most 64 per `gen_rtcm3()` call, even when some pairs are empty.
STRSVR and STR2STR gained automatic splitting in 2.4.3 b31.

For F9P Galileo navigation loss in 2.4.3 b34, change the E5b I/NAV guard
in `src/rcv/ublox.c` from `raw->len < 44 + off` to `raw->len < 40 + off`
and rebuild the affected applications.
If startup observation records are empty, b34 conversion can leave only
the last OBS epoch. NAV can still be complete; check OBS epoch coverage independently.
For SP3-d files with more than 99 satellites in b34, use the three-column
count `ns = (int)str2num(buff, 3, 3);` in `src/preceph.c` and rebuild.

### Runtime and output compatibility

Leave `pos2-syncsol=off` in 2.4.2: matched-epoch mode is unimplemented.
Use 2.4.2 p12 or later for UTC and GLONASS handling from 2017-01-01 onward.
BNC overwrites same-named output files at startup by default;
`rnxAppend=2` enables append mode for all file types.
RTKCONV 2.4.1 multi-session conversion overwrites without prompting; use time
keywords that give each session a distinct output path.

## Stream setup and VRS feedback

Use a Rev1 listener for upstream RTKLIB clients. A Rev2 rover client should
also accept `ICY 200 OK`, with RTCM possibly beginning immediately after
the status line's CRLF. Rev1 uploads use `SOURCE` with `Source-Agent`;
Rev2 uploads use `POST`.

For Rev1 VRS, send a WGS 84 GGA on the same socket after `ICY 200 OK`
before waiting for RTCM. Follow the provider's refresh interval, typically
5–60 seconds. Stricter services validate timestamp, satellite count, and
fix status as well as coordinates.
Compare RTCM `1005` or `1006` coordinates with the GGA position in the same
coordinate system when checking the reference position.

In Demo5 RTKRCV, `inpstr2-nmeareq=single` sends the standalone rover position
as GGA, and `ant2-postype=rtcm` uses received RTCM base coordinates.
Set `out-outsingle=on` to continue emitting available standalone positions
when corrections are unavailable.
Use `inpstr3` for an additional correction feed and `logstr3` for its raw log.

For `str2str` conversion, qualify input and converted outputs with `#format`;
`-msg` takes comma-separated IDs and optional intervals in seconds.

```sh
str2str -in 'serial://ttyUSB0:115200#ubx' -out 'tcpsvr://:22101#rtcm3' \
  -msg '1005(10),1077(1)' -p 48.5 2.2 120 -sta 42 -opt '-EPHALL'
```

Demo5's local caster output uses `ntripc://[user:pass@][:port]/mount[:srctbl]`.
The 2022 Demo5 example instead uses `ntripc_s://`.
An upload uses `ntrips://:password@caster:2101/MOUNT`.
Use `help path` in RTKRCV for its stream path forms.
Changes made with `set` or `load` take effect after `restart`.

## Fix qualification and validation

`pos2-arlockcnt` counts epochs: `150` is about 30 seconds at 5 Hz.
`pos2-arelmask` separately sets minimum fixing elevation in degrees.
In Demo5, `pos2-arfilter=on` delays a new or reacquired satellite when adding
it significantly degrades the AR ratio; it can accompany the epoch delay.
If the ratio drops as satellite count rises in RTKPLOT's **Nsat** view,
try a longer lock count; shorten it if slips or sparse coverage leave too
few satellites eligible for fixing.

Demo5 `pos2-arthres1` limits position variance before a fix attempt, while
`pos2-arminfix` counts consecutive fixed epochs before hold.
A zero Demo5 AR ratio means it was never computed for that epoch.
Repeated hold feedback can sustain a false fix and inflate the ratio and
fixed fraction. Reprocess in Continuous mode to check without hold feedback.

Demo5 **Combined** resets phase biases before the backward pass;
**Combined – no phase reset** carries them over.
In the older configuration-guide behavior, `pos1-soltype=combined` instead
uses `pos2-armode`: `continuous` carries states over and `fix-and-hold` resets.
The benchmarked consistency check compares fixes in both directions;
an epoch fixed in only one direction bypasses it.

For Demo5 GLONASS **Auto Cal**, set `pos2-arthres2` to the relative hardware
bias in metres per frequency slot, with `pos2-arthres3` as initial variance
and `pos2-arthres4` as process noise.
For a mixed receiver pair with unknown bias, GLONASS **Fix-and-Hold** can be used.
To retain GLONASS in the float filter but fix GPS only, use
`pos1-navsys=5` with `pos2-gloarmode=off`.

## Conversion and post-processing

Pass `-tr y/m/d h:m:s` to `convbin` with an approximate time from the RTCM recording.
Override filename-based format detection with `-r` when needed.
Use `-ts` and `-te` for the conversion window and `-ti` for sampling.
In the F9P RTKCONV workflow, select both **L1** and **L2/E5b** to retain both bands.

Pass rover observations first and base observations second in relative
`rnx2rtkp` processing. Include broadcast navigation even with precise products.
Export RTKPOST settings with **Options → Save** and load them with `-k`;
explicit command-line options override the file.

```sh
rnx2rtkp -k ppk.conf -p 3 -o station.pos station.obs base.obs broadcast.nav
```

For recorded SSR in RTKPOST, add `.rtcm3` or `.RTCM3` input alongside broadcast
navigation. Select `pos1-sateph=brdc+ssrapc` for antenna phase center products
or `pos1-sateph=brdc+ssrcom` for center of mass products.
For RTKLIB 2.4.2's experimental PPP-AR, use **Setting 2 → Integer Ambiguity Resolution
→ PPP-AR** in a PPP mode; it uses CNES wide-lane fractional cycle biases and
integer recovery clocks.

## BNC jobs and correction products

Use `--nw --conf job.bnc` for a background job and repeat `--key name value`
for overrides. Prefix PPP keys with `PPP/`; checkbox values are `2` and `0`.
For online headless reload, configure `onTheFlyInterval` to reread `mountPoints`,
`outWait`, `outSampl`, and `outFile` at the interval boundary.
BNC transports include `1` for Rev1, `2` for Rev2, and `2s` for Rev2 TLS.

BNC PPP accepts APC-referenced RTCM-SSR or IGS-SSR corrections.
Add an ephemeris stream if the receiver omits those messages or sends them
infrequently. An empty corrections selection gives single-point positioning.
An incoming IOD SSR change resets all PPP ambiguities.

To write SP3 or Clock RINEX without uploading, pull one correction stream plus
broadcast ephemeris, enter it in **Combine Corrections**, and set file paths
in **Upload Corrections**. Supply ANTEX for CoM SP3; without it positions are APC.
The **Center of Mass** checkbox affects only uploaded SSR corrections;
SP3 and Clock RINEX clock values are unchanged by its state.
BNC uses each SSR orbit or clock correction's declared update interval
to limit extrapolation.

## Diagnostics and format handling

Start GUI debug traces at level 2 for input and setup diagnostics, then use
3 for AR, 4 for streams, or 5 for solution matrices. A leading `1` is an error
and `2` is a warning; level 1 can miss an explanatory warning.
For persistent `Q=0`, check for non-overlapping observation times or navigation
that does not cover them. With persistent `Q=2` and very large outliers across
all satellites from the first epoch, check for base coordinates from another
station or recording.

RINEX 3.04 phase-shift records give `stored = input + shift`; subtract a numeric
shift to reconstruct converter input. Divide stored observations by
`SYS / SCALE FACTOR` before use.
In RINEX LLI, bit 1 flags possible half-cycle ambiguity or slip; skip the
affected phase if the solver cannot handle it.
Keep the `%` field indicator line in edited `.pos` files for format and
time-system detection. Use the references for stock and Demo5 status layouts.

Files in this skill

  • SKILL.md6.4 KB
  • references/ntrip-protocol.md1.8 KB
  • references/rtkrcv-config.md2.7 KB
  • references/str2str-usage.md1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.