ttgo
V2EX  ›  问与答

如何把一台 iPhone 与一台 win 电脑,时间尽量高精度的同步呢?

  •  
  •   ttgo · Feb 15, 2022 · 2465 views
    This topic created in 1726 days ago, the information mentioned may be changed or developed.

    肉眼设精度太低了, 想要几十毫秒级的时间同步。

    如何整呢?

    10 replies  •  2022-02-17 19:31:03 +08:00
    wangdashuai
    wangdashuai
    Feb 15, 2022
    1
    为啥有这个需求?
    BBrother
    BBrother
    Feb 15, 2022
    2
    都由服务器校准的情况下,为什么会不一样呢?
    Mithril
    Mithril
    Feb 15, 2022
    3
    内网跑个 NTP 服务器就行了
    iPhone 可能需要拦截一下 DNS
    gamexg
    gamexg
    Feb 15, 2022❤️1
    4
    @Mithril #3 赞同。

    资料显示 ntp 局域网内可以达到 1ms 精度。
    ttgo
    ttgo
    OP
    Feb 15, 2022
    5
    @wangdashuai
    有一个连 iphone 用的便携仪器,测试结果的时间戳要与另一台电脑的数据的时间戳对上,然后后期处理。

    @Mithril @gamexg @BBrother
    iphone 在哪里设置 ntp server ?我就是没找到设置的地方,以为 iphone 不能用 ntp 。。
    Mithril
    Mithril
    Feb 15, 2022
    6
    @ttgo 不能,所以说让你弄个 DNS 服务器拦截一下 iPhone 的请求。
    Overfill3641
    Overfill3641
    Feb 15, 2022
    7
    你得把 Win 设置成 NTP 服务器,因为 Win 本身和其他 NTP 同步如果在几百 ms 误差以内它不会修改时间的。
    ttgo
    ttgo
    OP
    Feb 16, 2022
    8
    @Mithril @gamexg @v2tudnew
    请问 win 或 mac 如何设置成 ntp server 啊?没有搜到方法。。
    ttgo
    ttgo
    OP
    Feb 17, 2022
    10
    @v2tudnew 多谢!按这个改注册表的方法可以完美实现 ntp server !
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1475 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 01:15 · PVG 09:15 · LAX 17:15 · JFK 20:15
    ♥ Do have faith in what you're doing.