ttgo
V2EX  ›  问与答

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

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

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

    如何整呢?

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

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

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