AIS位置信息完成UTC获取

AIS position messages complete UTC obtention

在使用 gpsdecode 解码 AIVM 句子后,我有一堆 json 结构,每个结构都有一个消息类型的所有数据,例如:

{"class":"AIS","device":"stdin","type":1,"repeat":0,"mmsi":224047690,"scaled":true,"status":15,"status_text":"Not defined","turn":"nan","speed":0.0,"accuracy":false,"lon":-8.7296,"lat":42.2401,"course":231.9,"heading":511,"second":36,"maneuver":0,"raim":true,"radio":114776}
{"class":"AIS","device":"stdin","type":4,"repeat":0,"mmsi":2240998,"scaled":true,"timestamp":"2018-05-19T16:34:35Z","accuracy":true,"lon":-8.7877,"lat":42.1717,"epfd":7,"epfd_text":"Surveyed","raim":false,"radio":165192}

我的问题是位置消息(类型 1、2、3)没有完整的 UTC,只有 0-60 秒之间的参考,这是获得完整的正确方法此邮件的 UTC 时间?

A​​IS 消息中不存在时间戳。

A​​IS 系统最初是作为防撞系统创建的,应该是实时使用的,因此不需要传输时间戳。

如果您收到实时 AIS 提要,则需要在收到消息时立即添加当前时间戳,并可能使用队列来推迟其余处理。

消息中的UTC_seconds字段为电子持仓系统生成报告时的秒数,并非真正的时间戳。您可以在 https://www.navcen.uscg.gov/?pageName=AISMessagesA.

处找到消息 1、2、3 中传输的所有字段