我正在Ubuntu 16.04上使用接收器Maestro A2200-A SirFstarIV - GPS Receiver运行gpsd 3.18.1,它报告的时间为负数 -2117800015.00 ,该时间转换为 1902年11月22日,星期六,10:13 :05 AM 。
硬件相同,但在Ubuntu 12.04.04上运行gpsd 3.4,我得到了正确的结果。
请在下面查看我的输出,让我知道我在想什么。
gpsd:PROG: SiRF: NTPD valid time MID 0x02, seen=0x00, time;-2117800015.00, leap:19
gpsd:ERROR: date is negative!
gpsd:PROG: Changed mask: {ONLINE|TIME|LATLON|ALTITUDE|SPEED|TRACK|CLIMB|STATUS|MODE|DOP|PACKET|ECEF|VECEF|USED|CLEAR|REPORT|NTPTIME} with reliable cycle detection
gpsd:PROG: time to report a fix
gpsd:CLIENT: => client(0): {"class":"TPV","device":"/dev/ttyS1","mode":3,"time":"1902-11-22T10:13:05.000Z","ept":0.005,"lat":26.xxxxxxxxx,"lon":-80.xxxxxxxxx,"alt":16.242,"epx":39.598,"epy":17.180,"epv":95.480,"track":0.0000,"speed":0.000,"climb":0.000,"eps":79.20,"epc":190.96,"ecefx":962194.00,"ecefy":-5647977.00,"ecefz":2793286.00,"ecefvx":0.00,"ecefvy":0.00,"ecefvz":0.00}\x0d\x0a
gpsd:PROG: SiRF: THR 0x09: SegStatMax=0.000, SegStatLat= 0, AveTrkTime=0.000, Last MS=0
gpsd:PROG: SiRF IV: unused TCXO Output 0x5d, SubID: 18
gpsd:PROG: SiRF: Unknown packet id 51 length 3
gpsd:PROG: SiRF: Unknown packet id 65 length 4
gpsd:PROG: SiRF: MND 0x02: Navtype = 0x4, Status = 1, mode = 3
gpsd:PROG: SiRF: NTPD valid time MID 0x02, seen=0x00, time;-2117800014.00, leap:19
gpsd:ERROR: date is negative!
gpsd:PROG: Changed mask: {ONLINE|TIME|LATLON|ALTITUDE|SPEED|TRACK|CLIMB|STATUS|MODE|DOP|PACKET|ECEF|VECEF|USED|CLEAR|REPORT|NTPTIME} with reliable cycle detection
gpsd:PROG: time to report a fix
gpsd:CLIENT: => client(0): {"class":"TPV","device":"/dev/ttyS1","mode":3,"time":"1902-11-22T10:13:06.000Z","ept":0.005,"lat":26.xxxxxxxxx,"lon":-80.xxxxxxxxx,"alt":16.242,"epx":39.598,"epy":17.180,"epv":95.480,"track":0.0000,"speed":0.000,"climb":0.000,"eps":79.20,"epc":190.96,"ecefx":962194.00,"ecefy":-5647977.00,"ecefz":2793286.00,"ecefvx":0.00,"ecefvy":0.00,"ecefvz":0.00}\x0d\x0a
gpsd:PROG: SiRF: THR 0x09: SegStatMax=0.000, SegStatLat= 0, AveTrkTime=0.000, Last MS=0
gpsd:PROG: SiRF IV: unused TCXO Output 0x5d, SubID: 18
gpsd:PROG: SiRF: Unknown packet id 51 length 3
gpsd:PROG: SiRF: Unknown packet id 65 length 4
gpsd:PROG: SiRF: MND 0x02: Navtype = 0x4, Status = 1, mode = 3
gpsd:PROG: SiRF: NTPD valid time MID 0x02, seen=0x00, time;-2117800013.00, leap:19
gpsd:ERROR: date is negative!
gpsd:PROG: Changed mask: {ONLINE|TIME|LATLON|ALTITUDE|SPEED|TRACK|CLIMB|STATUS|MODE|DOP|PACKET|ECEF|VECEF|USED|CLEAR|REPORT|NTPTIME} with reliable cycle detection
gpsd:PROG: time to report a fix
gpsd:CLIENT: => client(0): {"class":"TPV","device":"/dev/ttyS1","mode":3,"time":"1902-11-22T10:13:07.000Z","ept":0.005,"lat":26.xxxxxxxxx,"lon":-80.xxxxxxxxx,"alt":16.393,"epx":39.598,"epy":17.180,"epv":95.480,"track":0.0000,"speed":0.000,"climb":0.000,"eps":79.20,"epc":190.96,"ecefx":962195.00,"ecefy":-5647977.00,"ecefz":2793286.00,"ecefvx":0.00,"ecefvy":0.00,"ecefvz":0.00}\x0d\x0a
gpsd:PROG: SiRF: THR 0x09: SegStatMax=0.000, SegStatLat= 0, AveTrkTime=0.000, Last MS=0
gpsd:PROG: SiRF IV: unused TCXO Output 0x5d, SubID: 18
gpsd:PROG: SiRF: Unknown packet id 51 length 3
gpsd:PROG: SiRF: Unknown packet id 65 length 4
gpsd:PROG: SiRF: NTPD valid time MID 0x04, seen=0x00, time:-2117800012.00, leap:19
gpsd:INFO: PRN= 1 az=151 el=31 (0.415563, -0.749695, 0.515038)
gpsd:INFO: PRN= 7 az=340 el=67 (-0.133638, 0.367167, 0.920505)
gpsd:INFO: PRN= 8 az= 28 el=55 (0.269278, 0.506438, 0.819152)
gpsd:INFO: PRN= 11 az=153 el=60 (0.226995, -0.445503, 0.866025)
gpsd:INFO: PRN= 18 az=120 el=42 (0.643582, -0.371572, 0.669131)
gpsd:INFO: PRN= 27 az= 37 el=20 (0.565521, 0.750472, 0.342020)
gpsd:INFO: Sats used (6):
gpsd:PROG: Changed mask: {ONLINE|DOP|SATELLITE|PACKET} with reliable cycle detection
gpsd:CLIENT: => client(0): {"class":"SKY","device":"/dev/ttyS1","time":"1902-11-22T10:13:08.000Z","xdop":2.64,"ydop":1.15,"vdop":4.15,"tdop":2.96,"hdop":2.80,"gdop":6.33,"pdop":5.05,"satellites":[{"PRN":1,"el":31,"az":151,"ss":42,"used":true,"gnssid":0,"svid":1},{"PRN":7,"el":67,"az":340,"ss":38,"used":true,"gnssid":0,"svid":7},{"PRN":8,"el":55,"az":28,"ss":37,"used":true,"gnssid":0,"svid":8},{"PRN":11,"el":60,"az":153,"ss":46,"used":true,"gnssid":0,"svid":11},{"PRN":18,"el":42,"az":120,"ss":45,"used":true,"gnssid":0,"svid":18},{"PRN":27,"el":20,"az":37,"ss":19,"used":true,"gnssid":0,"svid":27},{"PRN":9,"el":73,"az":139,"ss":0,"used":false,"gnssid":0,"svid":9},{"PRN":22,"el":58,"az":16,"ss":0,"used":false,"gnssid":0,"svid":22},{"PRN":13,"el":57,"az":328,"ss":0,"used":false,"gnssid":0,"svid":13},{"PRN":20,"el":56,"az":352,"ss":0,"used":false,"gnssid":0,"svid":20},{"PRN":21,"el":53,"az":165,"ss":0,"used":false,"gnssid":0,"svid":21},{"PRN":138,"el":47,"az":228,"ss":0,"used":false,"gnssid":1,"svid":138}]}\x0d\x0a
gpsd:PROG: SiRF: MND 0x02: Navtype = 0x4, Status = 1, mode = 3
gpsd:PROG: SiRF: NTPD valid time MID 0x02, seen=0x00, time;-2117800012.00, leap:19
这是 gpspipe -n 10 -r 命令的输出
{"class":"VERSION","release":"3.18.1","rev":"3.18.1","proto_major":3,"proto_minor":13}
{"class":"DEVICES","devices":[{"class":"DEVICE","path":"/dev/ttyS1","driver":"SiRF","subtype":"6\u0006GSD4e_4.1.2-P1 R+ 11/15/2011 319-Nov 15 2011-23:04:55","activated":"2019-05-14T16:41:16.855Z","flags":1,"native":1,"bps":4800,"parity":"N","stopbits":1,"cycle":1.00}]}
{"class":"WATCH","enable":true,"json":false,"nmea":true,"raw":0,"scaled":false,"timing":false,"split24":false,"pps":false}
$GPZDA,101257.00,22,11,1902,00,00*6C
$GPGGA,101257,2608.5788,N,08019.9118,W,1,06,2.80,16.24,M,-27.121,M,,*48
$GPRMC,101257,A,2608.5788,N,08019.9118,W,0.0000,0.000,221102,,*32
$GPGSA,A,3,1,7,8,11,18,27,,,,,,,5.1,2.8,4.2*08
$GPGBS,101257,39.60,M,17.18,M,95.48,M*0D
$GPZDA,101258.00,22,11,1902,00,00*63
$GPGGA,101258,2608.5788,N,08019.9118,W,1,06,2.80,16.24,M,-27.121,M,,*47