Yo Hans!

On Mon, 12 Jan 2026 21:21:52 +0100
Hans Mayer <[email protected]> wrote:

> >> Why the single quotes??  
> You are right. It makes no sense.

I mught, depending on your password chars.  Can you confirm no special
chars in the username and password?

> > gpsd is trying to apply the -s to the ntripL//.  Try without the -s.
> > You never need ti, just a convenience.  
> 
> I tried without speed argument but there is no difference.
> But I always get "failed, errno No such file or directory"

Odd, worked for me when I tried it.  Of course I used your fake u/p

I also use ntrip on several of my u-blox, no issues.

> I tried also tcp://localhost:5000 as argument to pass ntrip streams
> from str2str but also this results in an error:
> 
> gpsd:INFO: stashing device /dev/serial0 at slot 0
> gpsd:INFO: stashing device tcp://localhost:5000 at slot 1
> gpsd:INFO: stashing device /dev/pps0 at slot 2
> gpsd:ERROR: CORE: stat(tcp://localhost:5000) failed, errno No such
> file or directory(2)

I know you think you are helping, but the problem is almost always where
you are not looking, so I need to see here you are not looking, which is
the entire logs.

> It seems that gpsd is rejecting the URL format

It certainly will not work to use tcp:// instead of ntrip://

> Is there maybe a compile switch which I forget to set so that the URL 
> format is accepted ?

Not yet.  But looks fine to me, after the -s removal.  Since you did not
specify what you did instead I cant know what you did this time.

> I looked a little bit into the source code. It seems to be
> "gpsd/gpsd.c" line 2705
> 
>              if (0 != stat(argv[i], &stb)) {
>                  GPSD_LOG(LOG_ERROR, &context.errout,
>                           "CORE: stat(%s) failed, errno %s(%d)\n",
>                           argv[i], strerror(errno), errno);

Yes, but the erroris a long ways before that.  Somehow the ntrip:// URL
is being mistaken for a file name.  The trying to open that file.

A full log output, at a higher level (-D6?) will show how the URL is
parsed.

> If I remember correctly the stat() interacts only with files and not 
> with network protocols.

Yup.

> So this rises a general question for me, is it possible to pass ntrip 
> streams via gpsd to the u-blox receiver as I tried to do ?

I do it all day, every day.  When I tried yours, it also worked fine,
when I removed the -s.  Except that it failed later due to u/p being
invalid.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        [email protected]  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpubEHVg6cbP.pgp
Description: OpenPGP digital signature

Reply via email to