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.
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
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.