×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Info about GPS NMEA

  • Posts: 334
  • Thank you received: 23
Hi all,
I would ask if someone know how the GPS NMEA driver make a network request for gps data.

Does it contact the specified server to the port configured and make an http request or other type of request. I could have a webserver that if contacted to the url http://192.168.10.1/gpsdata it respond with a standard nmea string with all the info.

Could this be usable???
Thanks
9 months 2 weeks ago #93908

Please Log in or Create an account to join the conversation.

  • Posts: 96
  • Thank you received: 25
9 months 2 weeks ago #93919

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 23
it send any sort of request or it stay in listening mothe waiting for an incoming string like this one????$GPGGA,114932.13,5119.890,N,00256.177,E,2,08,1.0,6553.40,M,4.70,M,0.10,0*48
9 months 2 weeks ago #93981

Please Log in or Create an account to join the conversation.

  • Posts: 96
  • Thank you received: 25

Replied by Chris Kuethe on topic Info about GPS NMEA

As far as I can tell, it doesn't send any requests nor does it listen for inbound connections. The driver reads from a file descriptor which looks pretty much the same whether it's a network socket, a uart, or a file on disk.

After having done a bunch of work on some of the drivers in GPSD, I'd recommend you use the gpsd driver instead of trying to access the device directly. GPSD does a lot of work to wrap the horrible vendor interpretations of NMEA and proprietary protocols into a nice JSON protocol. Additionally, if you're using GPSD you can also use it as a time source via chrony or ntpd. I've got both my stellarmates set up that way.
9 months 1 week ago #94080

Please Log in or Create an account to join the conversation.

Time to create page: 0.575 seconds