-
Notifications
You must be signed in to change notification settings - Fork 164
Description
Hello everyone,
Since I don’t have an actual gps receiving device, I use gpsfake to generate simulated gps data. The gps log file used is nmea format data. See attachment 1 for details.
nmea.log
The version of gpsd is 3.22, as shown in the figure below
The sequence of operations is to start gpsfake and then run socktap.
First run gpsfake in pty mode, the command is sudo gpsfake -D3 -S nmea.log. Then run the socktap command. At this time, the output of gpsfake is as shown below.

socktap also reported an error

I use the gpsmon command to view gps information, the output is as follows

Then I saw in the issue that it was said to use tcp mode to send GPS data, so I used tcp instead. When using the tcp protocol, the socktap program no longer reports an error and can send BTP-B data packets, but the latitude and longitude information in them are all 0. gpsfake output is as follows

Use gpsmon to view gps information and get gps data.

I don’t understand why socktap cannot obtain the gps data sent by gpsfake.
Can anyone help me?
Thanks a lot.
