V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ttgo
V2EX  ›  问与答

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

  •  
  •   ttgo · 2022-02-15 10:36:00 +08:00 · 1437 次点击
    这是一个创建于 773 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    如何整呢?

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

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

    @Mithril @gamexg @BBrother
    iphone 在哪里设置 ntp server ?我就是没找到设置的地方,以为 iphone 不能用 ntp 。。
    Mithril
        6
    Mithril  
       2022-02-15 12:13:33 +08:00
    @ttgo 不能,所以说让你弄个 DNS 服务器拦截一下 iPhone 的请求。
    v2tudnew
        7
    v2tudnew  
       2022-02-15 13:00:12 +08:00
    你得把 Win 设置成 NTP 服务器,因为 Win 本身和其他 NTP 同步如果在几百 ms 误差以内它不会修改时间的。
    ttgo
        8
    ttgo  
    OP
       2022-02-16 23:33:02 +08:00
    @Mithril @gamexg @v2tudnew
    请问 win 或 mac 如何设置成 ntp server 啊?没有搜到方法。。
    v2tudnew
        9
    v2tudnew  
       2022-02-17 00:44:04 +08:00   ❤️ 1
    ttgo
        10
    ttgo  
    OP
       2022-02-17 19:31:03 +08:00
    @v2tudnew 多谢!按这个改注册表的方法可以完美实现 ntp server !
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4839 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:44 · PVG 17:44 · LAX 02:44 · JFK 05:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.