我需要重播gpsd收集的gps数据进行测试。我知道我可以通过tcp给gpsd提供数据,例如:gpsd -N tcp://127.0.0.1:6000,但是我找不到合适的格式。我应该使用什么格式?
发布于 2021-08-08 20:58:10
如果您想重放GPS数据进行测试,可以使用gpsd套件中的gpsfake工具:https://gpsd.gitlab.io/gpsd/gpsfake.html。
关于它可以使用的日志格式
Logfiles for the use with gpsfake can be retrieved using gpspipe, gpscat, or cgps from the gpsd distribution, or any other application which is able to create a compatible output.所以我会用一个真正的GNSS接收器记录日志
gpspipe -R > gps.log
之后,在没有GNSS接收机的测试中,使用gpsfake重放。
编辑:如果接收方输出NMEA消息,gpspipe -R命令将保存NMEA日志。它以后可以用于使用gpsfake或其他工具进行测试。当然,您可以杀死gpsd,直接听串行端口记录NMEA。
https://stackoverflow.com/questions/67089123
复制相似问题