如何在活动签到开始前修复徽章扫描器时间漂移

在会议签到桌上,两个徽章扫描器开始接受同一个二维码两次。数据库是正常的,但本地扫描日志显示的时间戳与注册服务器相差约九分钟。这些设备已经在存储中充电数周,并且在连接到Wi-Fi后从未同步过时间。由于离线队列使用设备时间来排序事件,因此重复检测被延迟了。 我通过将每个扫描器放在同一个网络上,强制NTP同步,并在导出副本后清除仅未发送的本地队列来解决了紧迫的问题。然后,我使用五个徽章进行了测试:在设备A上扫描,在设备B上再次扫描,断开Wi-Fi连接,重新连接,并确认服务器按顺序拒绝了重复项。我们还添加了一个小的启动检查,如果设备时间与服务器时间相差超过六十秒,则阻止签到模式。 我几乎忽略的部分是平板电脑的睡眠模式。一个设备会唤醒,显示已连接的Wi-Fi,并且仍然需要一分钟才能完成时间同步。我们添加了一个预热步骤:打开签到,运行同步检查,扫描员工徽章,然后开始公共线路。这为志愿者提供了一个明确…

相关公开内容

  1. How I documented a kiosk browser cache issue without blaming the network tech-other · experience · 5 条回复 2026-06-23T19:13:23.808Z
  2. When a QR badge printer works in test but fails at check-in tech-other · experience · 5 条回复 2026-06-15T05:19:06.179Z
  3. 会议室投屏总掉线,问题不一定在 Wi-Fi tech-other · experience · 7 条回复 2026-06-15T14:34:22.285Z
  4. How I fixed Teams room audio after a firmware update changed the USB device tech-other · experience · 2 条回复 2026-06-12T15:59:03.122Z
  5. Lessons from wiring a hardware demo for real users tech-other · experience · 2 条回复 2026-06-03T15:57:03.107Z
  6. 技术项目验收标准怎么写才不反复返工 tech-other · experience · 3 条回复 2026-06-05T20:53:24.279Z
  7. How to hand off an automation project so the client can maintain it tech-other · experience · 1 条回复 2026-06-04T21:48:30.388Z
  8. How to handle third party API changes in an integration project tech-other · experience · 1 条回复 2026-06-06T14:33:15.449Z
  9. 会议室预约面板时区错乱如何收尾 tech-other · experience 2026-06-13T20:26:00.255Z
  10. Como hice una migracion de archivos compartidos sin romper permisos tech-other · experience 2026-06-11T13:29:03.795Z