Research on Network Clock Synchronization System Based on RT-Thread
- Author
- YangZhiXin
- Advisor
- WangYong
- School
- Nanjing University of Posts and Telecommunications
- Major
- Instrumentation Engineering
- Classification
- TN915.04 Communication protocols, communication protocols
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 73
- Citations
- 0
Abstract
With the rapid developments of network technology, the distributed system technology iswidely applied in automatic control field including network communications, power systems,navigations and distributed objects etc.Time synchronization is the core content for the distributedmeasurement and control area network synchronization, but the existing network timesynchronization protocol has some defects which can not meet the demands for the accuracy. Thepure hardware time synchronization system can not be widely used for its’ expensive price. TheIEEE1588V2.0protocol which we study in this paper can meet the high precision requirement ofdistributed network synchronization.Firstly, Compared to several other clock synchronization,the IEEE1588V2.0clock protocol isbetter for performance in practical application. Then the theory of IEEE1588V2.0clock protocolwhich includes basic synchronization works and the new function is studied and analyzed. In orderto achieve the network clock synchronization error within sub-microsecond, a scheme for networkclock synchronization based on RT-Thread systems is put forward. The hardware circuit of thesystem is designed based on the platform of Cortex-M3and DP83640. The writing and debuggingwork of software including GPS, PTP and the information processing of DP83640on each moduleis done in RT-Thread operating system.Finally, a simple master-slave clock system with two debugging boards is put up. Themeasurement and analysis of accuracy on clock synchronization is done between two debug boards.The error of clock synchronization is approximately25ns which meets the demands forhigh-precision in distributed network clock synchronization.It also validates the feasibility of theprogram.
Table of contents
Summary 4-5
Abstract 5-8
first chapter 8-14
1.1 Background 8 <br / > 1.2 development status and abroad 8-11
1.2.1 foreign research status 8-10
1.2.2 domestic research status 10-11 <br / > purpose and meaning 1.3 thesis 11-12
1.4 of this thesis work arrangements analysis 12-14
Chapter II IEEE 1588 time Protocol and compare 14-26
2.1 IEEE 1588 protocol Profile 14-15
2.2 IEEE 1588 advantage 15-16
2.3 IEEE 1588V2 protocol synchronization principle 16-18
2.4 IEEE 1588 clock type synchronization 18-21
2.5 IEEE 1588 protocol 21-24
2.5.1 to establish a master-slave hierarchy 21-24
2.5.2 clock synchronization 24
2.6 PTP message types and associated effects 24-25
2.7 Summary 25-26
Chapter clock synchronization hardware design 26-36
3.1 clock synchronization module hardware design structure 26-27
3.2 LPC1768 chip features 27-28
3.3 DP83640 functional structure 28-30
3.3.1 DP83640 IEEE 1588 protocol on hardware support 29
3.3.2 DP83640 clock treatment 29-30
3.3.3 DP83640 timestamp 30
3.4 related circuit analysis 30-33
3.4.1 power circuit 30-31
3.4.2 LPC1768 main chip module 31
3.4.3 LPC1768 serial module 31-32
3.4.4 LPC1768 JTAG interface module 32-33
3.4.5 DP83640 circuit 33
3.5 LPC1768 and DP83640 communication interface between 33-35
3.5.1 MII Interface Standard 33-34
3.5.2 MII interface standards related to introduction 34
3.5.3 RMII interfaces introduced 34-35
3.6 of this chapter Summary 35-36
Chapter embedded operating system RT-Thread 36-42
4.1 real-time systems 36-37
4.1.1 embedded systems 36
4.1.2 real-time systems 36-37
4.2 RT-Thread Profile 37-40
4.2.1 real-time kernel 37-38
4.2.2 network Components LwIP 38
4.2.3 file system components 38-39
4.2.4 Shell system 39
4.2.5 graphical user interface 39
4.2.6 supported platforms 39-40
4.3 select RT-Thread systems reason 40-41
4.4 Summary 41-42
Chapter IEEE1588 clock synchronization software design 42-57
5.1 system development environment 42-44
5.2 software algorithms architecture critical modules 44-45
5.3 software design analysis 45-56
5.3.1 GPS information receiver module 46-47
5.3.2 the system conversion module each time 47-50
5.3.3 DP83640 PTP seconds value in the module 50-54 <br / > 5.3.4 IEEE 1588 packet communication module 54-56
5.4 Summary 1588 time synchronization 56-57
Chapter VI IEEE performance Testing 57 - 64
test 6.1 pairs DP83640 features 57-58
6.2对PTP network packets to test 58-59
6.3 network clock synchronization accuracy test 59-62
6.4 network clock synchronization error analysis 62-63
6.5 summary 63-64
nbsp Chapter VII summary and Outlook ; 64-65
References 65-68
Appendix 1 to pursue a master's degree theses written 68-69
Thanks 69
Related dissertations
- The Study of Distributed PMU System Based on IEEE1588Precision Time Protocol and Its Networking Synchronization Scheme
- Implementation of Time Synchronization Based on IEEE1588
- Research and Implement of Networked Timing System Based on Ethernet
- Research on Optimization and Implementation of POWERLINK Time Synchronization Technology
- Software Design and Implementation of the Precision Time Protocol
- Research and Implementation of LXI Key Technologies-IEEE1588Protocol
- Research of Implimentation of Time Synchronization in10G EPON
- IEEE1588Protocol Time Server Precision Research
- Research and Realization of Time Synchronization Protocol in Distributed Control Systems
- A Solution on Precision Master Clock Server
- Research on WLAN wireless network measurement node based on the time synchronization
- FPGA-based Research and Implementation of Precision Clock Synchronization Protocol for LXI Devices
- The Development of IEEE1588IP Core Based on FPGA
- Research of Intelligent Merging Unit Based on IEEE1588Standard
- The Design of Digital Substation Synchronization System Based On FPGA
- The Design and Implementation of IEEE1588Time Synchronization Protocol on Fault Location
- The embedded networked distributed measurement and control instrument clock synchronization technology research and application
- Feasibility Study upon the Application of IEEE 1588 Precision Time Synchronization Protocol (PTP) in Electric Power System
- Precision Time Synchronous System Based on IEC61850 in Digital Substation
- Analysis and Implementation of Time Synchronization Based on IEEE1588 Protocol