#987412 gpsd ntrip mountpoint (aka stream) parsing and use error

Package:
gpsd
Source:
gpsd
Description:
Global Positioning System - daemon
Submitter:
Aiden Morrison
Date:
2021-10-28 17:30:05 UTC
Severity:
normal
Tags:
#987412#5
Date:
2021-04-23 13:30:48 UTC
From:
To:
Reproduction: provide an ntrip stream address per the documentation of gpsd at (https://gpsd.gitlab.io/gpsd/gpsd.html) in the form "ntrip://username:password@address.of.caster:port/mountpoint" and note that gpsd will throw the above error.

If the configuration string is intentionally malformed to include a "/" after the mountpoint name, this error is not thrown, however the corrections are not sent to the attached GNSS receiver:

cgps reports string {"class":"DEVICE","path":"ntrip://user:pass@address.of.caster:port/mountpoint/","activated":0} showing the malformed mountpoint identifier

I can connect to the same ntrip server using https://github.com/nunojpg/ntripclient as well as two commercial software packages, so the error appears to be in how gpsd is interpreting the connection string.

If credentials would be helpful in reproducing this bug I can be contacted at aiden.morrison@sintef.no<mailto:aiden.morrison@sintef.no>

#987412#10
Date:
2021-04-25 09:52:22 UTC
From:
To:
Hi,

do you have a example url for me? Maybe a public ntrip caster with auth, that
shows the bug?

Thanks,

Bernd

#987412#15
Date:
2021-04-25 10:57:26 UTC
From:
To:
Hi Bernd,

I can get this to manifest with ntrip://SNTu0:pass0@caster.dyndns.org:2101/NOT

The same caster/mountpoint are working with each of the Ublox u-center software, the BKG Ntrip Client (https://igs.bkg.bund.de/ntrip/bnc) and the previously mentioned ntripclient code on github.
BKG Ntrip Client - BNC<https://igs.bkg.bund.de/ntrip/bnc>
BKG Ntrip Client (BNC) The BKG Ntrip Client (BNC) is an Open Source multi-stream client program designed for a variety of real-time GNSS applications.
igs.bkg.bund.de
Please let me know if further information is helpful.

#987412#20
Date:
2021-04-25 12:15:07 UTC
From:
To:
Hi Aiden,

forwarded to upstream: https://gitlab.com/gpsd/gpsd/-/issues/136

Shouldn't take too long to fix, maybe I'll have a look into it


Bernd