透過您的圖書館登入
IP:3.146.152.99
  • 學位論文

IEEE1588高精度時間同步於行動裝知實現與應用

IEEE1588 Based High Precision Time Synchronization Implementation and Application for Mobile Systems

指導教授 : 張帆人
共同指導教授 : 王立昇

摘要


隨著時代的進步,人們以往對於桌上型電腦的依賴漸漸 的轉移到 了 行 動 裝 置 上面,智慧型平板、智慧型手機成為人們隨身攜帶的必需品。而行動裝置的優 勢 在 於機器與人和機器與機器之間的高度互動性,與雲端技術的配合,造就了新的生活、 娛樂和工作模式。然而隨著互動性的提升,精確時間的需求也隨之提升。本論 文 在 基於 IEEE1588 標準之上,建立一套可以在行動裝置上運行的高精度時間同步機 制。 IEEE 1588 標準定義了精確時間協定(Precision Time Protocol, PTP)的相關準則, 其主要目標為達成區域網路系統各節點的時間同步。透過網路封包的交換,各節點 互相交換時間戳記的資訊,經由演算可以得到從時鐘(Slave Clock)相對於主時鐘 (Master Clock)的時間相位誤差。進一步藉由時鐘約束演算法(Clock Discipline Algorithm)將從時鐘同步於主時鐘。 本論文建立了一套虛擬時鐘的架構,藉此避免介入行動裝置的作業系統,並提 供了一個可以在行動裝置上運行的區域型時鐘同步方案。 虛擬時鐘的 同 步 演 算 法 主要有三大部分。第一部分採用了精確時間協定開放程式(Precision Time Protocol daemon, PTPd),量測從時鐘節點與主時鐘節點間的時間相位誤差量。第二部份透 過卡爾曼濾波器估測從時鐘相對於主時鐘的實際相位誤差 ,並且經由 系 統 時 鐘 與 虛擬時鐘的平行架構量測同步環境上的雜訊統計量值,藉 此調整系統 的 估 測 與 控 制參數,達到適應性的功能。第三部分透過鎖相迴路與比例-積分型控制器完成時 鐘的同步控制。經由行動裝置上實際測試證實本系統提供 了一個穩定 且 高 精 度 的 時鐘同步。

並列摘要


With the progress of the times, the dependency on desktop computers by people now is gradually shifted to mobile devices. Smart phones and tablet computers more and more popular. Mobiles devices bring a new type of life to people. People can use mobile devices to communicate to other people or other smart devices, also people can interact with smart mobile devices. Aglobal standard time for mobile devices to follow bacomes a basic issue. So a high precision time synchronization method is needed. In this paper, we design and implement a clock synchronization system for mobile devices. It is based on IEEE1588 precise time protocol. The IEEE1588 protocol defines the information and rules for precision time protocol (PTP). It can measure the clock offset between two devices by the exchange of time network packets. We build a virtual clock so that the operating system of mobile devices will not be invaded. IEEE1588 precision time protocol, clock state estimator and controller are used to implement clock synchronization system. First we use IEEE1588 precision time protocol to measure the clock offset between devices. Second we use the Kalman filter to estimate the clock state. Also, the parameters of the Kalman filter are adjusted by clock noise estimators. And third we adjust the clock frequency and control the clock phase by a proportion-integral controller. Experimental results show that our system provides good clock synchronization performances for mobile devices

參考文獻


2. D.W. Allan, Should the Classical Variance Be Used As a Basic Measure in Standards Metrology?, in IEEE Transaction on Instrumentation and Measurement. 1987.
3. D.B Sullivan, D.W.Allan., D.A. Howe, F.L. Walls, Characterization of Clocks and Oscillators. 1990, US Department of Commerce, National Institute of Standards and Technology.
4. D.L. Mills, Modelling and analysis of computer network clocks. 1992, Electrica l Engineering Department.
8. HomeKit. Available from: https://developer.apple.com/homekit/.
10. D.L. Mills, Network Time Protocol Version 4 Reference and Implementation

延伸閱讀