Implementation of LXI logic analyzer software and IEEE1588v2 protocol
- Author
- XuZeJun
- Advisor
- HuangJianGuo
- School
- University of Electronic Science and Technology
- Major
- Measuring Technology and Instruments
- Classification
- TP274 Data processing, data processing system
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 29
- Citations
- 2
Abstract
With the development of testing techniques, in recent years the measured object has changed greatly. The test objects have a distributed characteristic and the amount of test data is getting lager now.Therefore, high-speed instrument bus is essential to data transferring.Based on computer network technology, LXI test bus technology gives full play to the advantage of high-speed network transfer rate and the convinence in building distributed system. And flexible, efficient and low-cost solutions are provided to the system that is more and more complicated.The LXI logic analyzer module in the project complies with the revision1.3of LXI Device Specification.It has C/S mode network control functions and supports the latest mDNS network discovery protocol. The analyzer provides three trigger mechanisms-direct LXI event messaging via the LAN, an IEEE1588-based time trigger, LXI wired trigger bus-based. And it also supports the IEEE1588v2version clock synchronization protocol. The LXI logic analyzer belongs to the Class A of LXI instrument.This paper conducts thorough research in the software structure of the LXI logic analyzer based on the revision1.3of LXI Device Specification.And it also does detailed analyses of the functions specified in the protocol and the instrument itself work mode. The software of the LXI logic analyzer uses the C/S (client/server) network architecture as the main instrument control structure. The client is the upper control platform of the instrument which is composed of network program-controlled software and control service layer.The network program-controlled software is the main route for users to control the instrument.And the software integrates with the various buttons of control functions and the graphic display window of the measurement results.The control service layer includes flexible instrument driver interface functions used to connect application software and instrument modules.The service side integrates driver interface functions response procedures used to receive the control commands sent from the upper instrument driver interface functions, and it calls the hardware control modules to operate the hardware. In addition, the network discovery process and the clock synchronization procedure run on the instrument module. And the network discovery process supports the latest mDNS network discovery protocol of the LXI1.3version, with providing faster and more efficient function of discovering instrument.Clock synchronization software realizes the IEEE1588v2version of the precision clock synchronization protocol. And it can build the Master-Slave structure to provide the function of the high-precision clock synchronization in the entire test system.The paper describes the overall design of the the LXI logic analyzer software program in the terms of the host computer and the instrument module.With emphasis on the instrument control software,driver interface functions,the LAN discovery and IEE1588v2version of the precision clock synchronization protocol, it ultimately gives test results and recommendations for improvement.
Table of contents
Summary 4-5
ABSTRACT 5-9
first chapter 9-14
1.1 LXI instrument bus Introduction 9 - 10
1.2 LXI instrument bus status and significance of domestic and foreign research content and design 10-12
1.3 research requirements 12-14
Chapter II instrument system structural analysis and design 14-22
2.1 overall structure analysis instrument 14-16
2.1.1 instrument internal structure 14-15
2.1 .2 LXI logic analyzer 15-16
2.2 instrument software design 16-22
2.2.1 software development environment 17-18
2.2.2 C / S communication mode 18
2.2.3 mDNS network discovery protocol 18-21
version 2.2.4 IEEE1588v2 clock synchronization protocol 21-22
Chapter III instrument C / S network control software and network design and implementation of discovery 22-37
3.1 trigger functional design 23-29
3.1.1 based on the command trigger 23-25 ??
3.1.2 LXI trigger event messages 25-26
3.1.3 IEEE1588 timed trigger 26-27
3.1.4 LXI trigger bus hardware 27-29
3.1.5 custom trigger 29
3.2 instrument parameter setting 29-34
3.2 .1 work setting 29-30
3.2.2 tracking settings 30-31
3.2.3 threshold level set 31-32 <br / > 3.2.4 data acquisition and display functions 32-34
3.3 MDNS network discovery software design 34-37
3.3.1 PC mDNS client 34
3.3.2 instrument internal mDNS server 34-37
Chapter IV instrument driver design and implementation 37-49
4.1 VXI-11 protocol standards function 37-41
4.2 initialization and off the instrument module 41-42
4.3 work setting module 42-45
4.4 trigger setting module 45-48
4.5 data acquisition module design and implementation 48-49
Chapter IEEE1588V2 version clock synchronization protocol 49-63
5.1 synchronization packet type 49-50
5.2 clock synchronization process 50-57
5.2.1 clock deviation measurement 50-52
5.2.2 line delay Measurement 52-57
5.3 best master clock algorithm 57-63
5.3.1 states decide algorithm 57-58
5.3.2 dataset comparison algorithm 58-63
Chapter VI instrument software functional testing 63-72
6.1 LXI trigger function test 63-66
6.1 .1 LAN message triggers 63-65
6.1.2 IEEE1588 timed trigger 65
6.1.3 LXI trigger bus hardware 65-66
6.2 MDNS network discovery function test 66-68
version 6.3 IEEE1588v2 clock synchronization function test 68-70
programmable function test 6.4 network software 70-72 <br / > Timing Analysis 6.4.1 maximum rate 70-71
6.4.2 maximum memory depth 71-72
Chapter VII Conclusion and Outlook 72-74
Thanks 74-75
References made ??during the 75-77
attack Shuo research 77