Skip to content

Not receiving GPS position over tcp and pty on socktap  #216

@daniel0720

Description

@daniel0720

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

socktap also reported an error
Image

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

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
Image

Use gpsmon to view gps information and get gps data.
Image

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions