[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gpsfake - update log file while running?
From: |
Andreas B |
Subject: |
Re: gpsfake - update log file while running? |
Date: |
Mon, 24 Jul 2023 21:05:08 +0200 |
Gary,
This is great, thank you!
I ended up using socat, which seems to work nice.
I first tried connecting gpsd to 'localhost', without any luck
("connection refused", see log entries below).
When I tried '127.0.0.1', it connected successfully.
Any thoughts why connecting to 'localhost' does not work?
Log:
[...]
gpsd:WARN: PACKET: packet_get(7) errno: Connection refused(111)
gpsd:INFO: CORE: tcp://localhost:4444 returned error -1 ( 0.000042990
sec since data)
gpsd:WARN: CORE: device read of tcp://localhost:4444 returned error or
packet sniffer failed sync (flags {ERROR})
gpsd:INFO: CORE: closing tcp://localhost:4444, fd 7
[...]
Best,
Andreas
On Fri, Jul 14, 2023 at 10:24 PM Gary E. Miller <gem@rellim.com> wrote:
>
> Yo Andreas!
>
> On Fri, 14 Jul 2023 21:50:43 +0200
> Andreas B <panden@gmail.com> wrote:
>
> > Running gpsd directly would be great.
> > Could you please give a pointer on how to run gpsd with nmea from a
> > file?
>
> netcat. Use netcat to serve the file on a tcp port. Then connect
> gpsd to that port.
>
> Something like this:
>
> nc localhost 3000 < nmea.file
> gpsd -nN :3000
>
> The first line has netcat read from a file, and send to tpc port 3000.
> The second line has gpsd read from port 3000.
>
> RGDS
> GARY
> ---------------------------------------------------------------------------
> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
> gem@rellim.com Tel:+1 541 382 8588
>
> Veritas liberabit vos. -- Quid est veritas?
> "If you can't measure it, you can't improve it." - Lord Kelvin
- gpsfake - update log file while running?, Andreas B, 2023/07/14
- Re: gpsfake - update log file while running?, Владимир Калачихин, 2023/07/14
- Re: gpsfake - update log file while running?, Gary E. Miller, 2023/07/14
- Re: gpsfake - update log file while running?, Andreas B, 2023/07/14
- Re: gpsfake - update log file while running?, Gary E. Miller, 2023/07/14
- Re: gpsfake - update log file while running?,
Andreas B <=
- Re: gpsfake - update log file while running?, Gary E. Miller, 2023/07/24
- Re: gpsfake - update log file while running?, Andreas B, 2023/07/24
- Re: gpsfake - update log file while running?, Martin Burnicki, 2023/07/25
- Re: gpsfake - update log file while running?, Gary E. Miller, 2023/07/25
- Re: gpsfake - update log file while running?, Andreas B, 2023/07/25
- Re: gpsfake - update log file while running?, Andreas B, 2023/07/25
- Re: gpsfake - update log file while running?, Gary E. Miller, 2023/07/25
- Re: gpsfake - update log file while running?, Andreas B, 2023/07/25
- Re: gpsfake - update log file while running?, Martin Burnicki, 2023/07/26
- Re: gpsfake - update log file while running?, Gary E. Miller, 2023/07/14