I solved a similar problem in two parts. Normally, GPS data on my system is sourced from GPSD, which makes it available on a local network port. So I wrote a simple Python program to produce the simulated GPS data; in my case on a different local port, and modified the 'receiver' configuration to look at the alternative port. Had I not required GPSD for other things, I could have simply stopped GPSD, and made my simulator output on the same port.
I'm reasonably certain there's a way to do something similar with a serial port, but no idea how.
Can you configure your robot to look for GPS data on a network port?
Do you have a spare serial port that you could cross-connect to the GPS serial port on your robot?
GPSD can also accept GPS data from a UDP network stream (https://gpsd.io/gpsd.html) so maybe your robot could connect to that?
I'm reasonably certain there's a way to do something similar with a serial port, but no idea how.
Can you configure your robot to look for GPS data on a network port?
Do you have a spare serial port that you could cross-connect to the GPS serial port on your robot?
GPSD can also accept GPS data from a UDP network stream (https://gpsd.io/gpsd.html) so maybe your robot could connect to that?
Statistics: Posted by stevend — Sun Mar 16, 2025 10:17 pm