gpsd 客户端如何在不使用互联网连接的情况下识别服务器?

gpsd 客户端如何在不使用互联网连接的情况下识别服务器?

我有 2 台笔记本电脑,每个笔记本电脑都有一个 IP 地址,例如:

**Receiver:    192.168.21.168**
**Transmitter: 192.168.11.186**

通常,在接收方计算机上,我使用注释sudo ntpdate -d 192.168.21.168两台计算机都连接了互联网,我收到以下消息:

23 Mar 21:49:05 ntpdate[10078]: ntpdate [email protected] Wed Oct  5 12:34:47 UTC 2016 (1)
Looking for host 192.168.1.231 and service ntp
192.168.1.231 reversed to Lab-X230.fios-router.home
host found : Lab-X230.fios-router.home
transmit(192.168.1.231)
receive(192.168.1.231)
transmit(192.168.1.231)
receive(192.168.1.231)
transmit(192.168.1.231)
receive(192.168.1.231)
transmit(192.168.1.231)
receive(192.168.1.231)
server 192.168.1.231, port 123
stratum 3, precision -23, leap 00, trust 000
refid [192.168.1.231], delay 0.02567, dispersion 0.00000
transmitted 4, in filter 4
reference time:    dc7ef94a.6dba5ca9  Thu, Mar 23 2017 21:47:54.428
originate timestamp: dc7ef997.3f55cd9c  Thu, Mar 23 2017 21:49:11.247
transmit timestamp:  dc7ef997.3f4c834d  Thu, Mar 23 2017 21:49:11.247
filter delay:  0.02574  0.02567  0.02574  0.02571 
         0.00000  0.00000  0.00000  0.00000 
filter offset: -0.00000 -0.00000 -0.00002 -0.00000
         0.000000 0.000000 0.000000 0.000000
delay 0.02567, dispersion 0.00000
offset -0.000003

23 Mar 21:49:11 ntpdate[10078]: adjust time server 192.168.1.231 offset -0.000003 sec

突然,网络断开了,我尝试再次使用相同的评论,它显示了以下消息:

 7 Apr 14:16:26 ntpdate[24022]: ntpdate [email protected] Wed Oct  5 12:34:47 UTC 2016 (1)
Looking for host 192.168.21.168 and service ntp
host found : 192.168.21.168
transmit(192.168.21.168)
transmit(192.168.21.168)
transmit(192.168.21.168)
transmit(192.168.21.168)
transmit(192.168.21.168)
192.168.21.168: Server dropped: no data
server 192.168.21.168, port 123
stratum 0, precision 0, leap 00, trust 000
refid [192.168.21.168], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time:    00000000.00000000  Thu, Feb  7 2036  1:28:16.000
originate timestamp: 00000000.00000000  Thu, Feb  7 2036  1:28:16.000
transmit timestamp:  dc925600.fef4c72c  Fri, Apr  7 2017 14:16:32.995
filter delay:  0.00000  0.00000  0.00000  0.00000 
         0.00000  0.00000  0.00000  0.00000 
filter offset: 0.000000 0.000000 0.000000 0.000000
         0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000

 7 Apr 14:16:34 ntpdate[24022]: no server suitable for synchronization found

我的问题是:如何获得“调整时间服务器 192.168.1.231 偏移量 -0.000003 秒”没有网络连接的情况下如何发送消息?

请帮忙。

谢谢。

相关内容