gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Broadcast nmea to the network


From: Chris Kuethe
Subject: Re: Broadcast nmea to the network
Date: Wed, 13 Mar 2024 11:53:40 -0700

On Wed, Mar 13, 2024 at 4:32 AM Andreas B <panden@gmail.com> wrote:
What's the best way of broadcasting nmea (or other data) to the network?
Can gpsd do this, or do you use netcat/socat?

What do you mean by broadcast: making your receiver accessible to any interested client on the network that chooses to connect, or actually sending datagrams to the network broadcast address?

The "-G" flag will cause gpsd to bind to INADDR_ANY instead of localhost, thus allowing other devices to connect (subject to packet filters); each client is responsible for connecting when it needs GPS data. There is no flag in GPSD that would cause it to fling udp datagrams, containing gpsd ndjson reports, to the broadcast address. You could do the latter with a screenful of python (connect to gpsd, turn on gpsd, read a line from gpsd, send a datagram to the network, repeat), and maybe with netcat too.

If you're broadcasting GPS data over UDP, would it be a problem for you if a rogue device started spraying bogus data?

--
GDB has a 'break' feature; why doesn't it have 'fix' too?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]