The Design and Implement of USB Bus Signal Analysis System
- Author
- ZhaoXiaoLi
- Advisor
- ZhaoQiuXia
- School
- PLA Information Engineering University
- Major
- Computer technology
- Classification
- TN911.6 Signal analysis
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 77
- Citations
- 0
Abstract
With the popularity of personal computers, USB has become a standard computer interface. USB is due to the complexity of the protocol itself, the development of USB interface device for developers is a great challenge. In order to find the root of the problem, developers must have a certain amount of test and measurement tools for the development of every aspect of qualitative and quantitative analysis. In general, in addition to conventional tools, USB protocol analysis tool is needed to develop USB interface to help to analyse the errors and problems about the protocol encountered during the development of USB interfaceIn order to solve a wide range of issues encountered in the development of the USB interface fundamentally, this thesis gives a whole new USB protocol analysis: To monitor the status and signal of the USB bus, to analyse the packets of each USB interface, and to display the result in the form of visualization, so that the users quickly target and solve problems.The main points of research are as follows:1. CPLD logic design: how to make use of hardware programming language to deal with USB data streams, including the conversion of the state of USB bus, the bus speed of identification, DPLL(Digit Phase Lock Loop), reliable reading data (interference), the remove of bits, and the conversion from the parallel to the serial, the generation of writing signal, and timers.2. Hardware circuit analysis and realization of the demand. As USB 1.1 specification supports low speed (1.5Mbps) and full speed (12Mbps), the hardware circuit must be able to support both speeds and can automatically identify.3. The demand analysis and algorithm realization of the analysis software. Due to the complexity of the USB protocol, the USB packet analysis is a very complex work. In addition to the standard USB requests, USB Implementers Forum has also developed more than 30 categories of class specifications, in particular, these types of class specifications will be continued to update and new class specifications will be added. These class specifications can be added into the analysis software step by step as needed, but the complexity must be taken full account when analyzing the demand.4. Simulation and debug. Debugging the various components respectively, and then testing the function and the performance of the whole system. Due to the complexity of the USB protocol, the debugging process will be very complicated, the choice and generation of test data will be the difficult part.The subject of this innovation lies in the point:1. According to the USB1.1 specification, combining our needs, given the practical USB framing algorithm.2. In the high speed robust environment, with the dual-port memory, the cheap slow speed micro-controllers can be chosen. 3. Based on modular design technology, the analyzing software will support the new class specifications launched constantly.
Table of contents
List of Tables 7-8
LIST 8-10
Summary 10-11
ABSTRACT 11-13
the first chapter 13-17
1.1 background and significance 13-15
1.2 contents and structure of the paper 15-17
second Introduction Chapter USB communication 17-29
2.1 USB basic concepts 17-18
logical structure 2.2 USB system 18
2.3 USB device Architecture 18-19
2.4 USB physical interface 19-20
2.5 USB bus speed and recognition 20
2.6 USB bus state 20 -21
2.7 USB bus incident and identify 21-23
2.7.1 device into 21-22
2.7.2 equipment pull 22
2.7.3 device reset 22
2.7.4 equipment hang 22
2.7.5 equipment recovery 22-23
2.7.6 packet start (SOP) 23
2.7.7 packet end (EOP) 23
2.8 USB data encoding 23-24 <br / > 2.9 USB packet classification and coding 24-28
2.9.1 Overview 24-26
2.9.2 token packet 26-27 <br / > 2.9.3 packet 27
2.9.4 handshake 27-28
2.10 USB communication instance 28-29
Chapter III USB bus signal analysis system consisting of 29-35
3.1 system architecture model and hardware components 29-30
3.2 users get the USB bus signal 30-34 < br /> 3.2.1 USB bus signals Profile connect with users 30-32
3.2.2 USB bus 32-33
3.2.3 USB transceiver 33
3.2.4 USB bus signals with DP, DM and RCV correspondence 33-34
3.3 Summary 34-35
Chapter IV CPLD coding 35-43
4.1 development tools About 36-37
4.1.1 integrated Development Environment (ISE) 36
4.1.2 model Simulation software ModelSim XE 36
4.1.3 programming tools 36-37
4.2 CPLD device selection 37
4.3 CPLD features 37 - 38
4.4 phase tracking circuit (DPLL) 38-39
4.5 finite state machine (FSM) 39-40
4.5.1 user USB bus state 39
4.5.2 user USB bus event 39-40
4.5.3 user identification rate of the USB bus 40
4.6 MCU data package with 40-41
format 4.6.1 MCU packet 40
4.6.2 output STX 40-41
4.6.3 output ETX 41
4.6.4 byte insertion 41
4.7 data output 41
4.8 simulation 41-42
4.9 Summary 42-43
Chapter V MCU firmware 43-52
5.1 development tools 43-45
5.1.1 MPLAB About 43 - 44
5.1.2 compiler PICC-18 PRO 44
5.1.3 MCU development tools ICD2 44-45
5.2 MCU function 45 - 51
5.2.1 interrupt service routine ISR 45-47
5.2.2 USB standard device requests and respond 47-49
5.2.3 USB buffer memory 49-50
5.2.4 MCU to read data from the FIFO 50-51
5.3 MCU firmware debugging 51
5.4 VID and PID problem 51
5.5 Summary achieve 51-52
Chapter VI analysis software 52-59
6.1 development environment 52 <br / > 6.2 driver 52-53
6.3 application access to UPA11 hardware 53-54
6.4 applications quickly read UPA11 data 54 - 55
6.5 USB packets separated 55
6.6 USB packet error detection 55-56
6.7 filter 56-57
6.8 USB packet analysis 57-58
6.9 Summary 58-59
Conclusion 59-61
Thanks 61-62 <br / > References 62-64
authors during the school academic achievements 64
Related dissertations
- The Update and Experiment for FMT System Based on the WINDOWS
- Design of Electrical Resistance Tomography Based on Parallel Data Acquisition
- Research on the Measurement System of LED
- Design and Experimental Study of a Bridge DC-chopper Experimental System for High Temperature SMES
- The Design of DC Intelligent High Voltage Generator and Solutions of Key Problems
- Research of Intelligent Protection Module of Variable Current Devices for Large Current DC and Power Electronics
- Design of Digital MCA Based on FPGA Technology
- Design of Data-Acquisition System for Micro Fiber Optic Spectrometer Based on Stm32
- Research on the Pressure and Temperature Dual-channel Oil Down-hole Test System
- Research on the Optical Fabry-pérot Cavity Demodulation System Based on Interference of Polarized Lights
- Research & Implementation Data Acquisition and Hard Disk Storage System Based on DSP
- USB interface technology based smart gun shooting logger research
- Research on soft starter digital trigger
- Optimizing of Data-acquisition System for Laser Electronic Whiteboard and Realization of USB Interface
- Control Technology Based on DDS Signal Generator under the Design and Implementation
- The ship yaw alarm and heading logger Design and Implementation
- Design and Implementation Based on S7-200 PLC experimental system
- Research on Fingerprint Acquisition System Based on ARM
- The Research of Real-Time Detection System Based on Linear Image Sensor
- Research on USB Protocol and USB Interface Drivers