System Design of Data Acquisition Based on USB

Author
WuGang
Advisor
LuGang
School
Northwestern Polytechnical University
Major
Mechanical and Electronic Engineering
Classification
TP274.2 Data collection and processing systems
Degree
Master's thesis
Year
2007
Downloads
1,128
Citations
8

Request the full text

Abstract

Data acquisition technology based on the sensor signal measurement and processing, microcomputer technology to form an integrated application of technology, research information data collection, storage, treatment, and control, involving analog signal conditioning, analog signal is digitized, digital signal processing, has a strong practical. Data acquisition technology is widely used in industrial control systems. Data acquisition devices to capture, monitor and record the various parameters of the production site to provide information and tools to improve product quality, reduce costs. In addition, in scientific research, the device also has an important value in use, a lot of dynamic and static information can be obtained, it is a powerful tool for scientific research, is also one of the important means of exploring scientific mysteries. With the rapid development of technologies such as computers, microelectronics and data acquisition theory, the application range of the data acquisition system is also growing, and has gradually become an important means of promoting the development of each of the relevant areas of science and technology. USB bus from birth onwards gave many fields has brought a great change. It is flexible, convenient, a wide range of applications, communication stability, and low cost advantages, the USB interface to the PC, the common interface, especially in the USB bus transmission speed of 480Mb / s, the broader range of applications, some of the original can not be application of USB occasions can also be used, such as large-capacity data acquisition, high-fidelity image video transmission. In this paper, based on the analysis of the USB protocol around the design goal, from the overall program, control of chip design choices and transmission type, and major design work-based the USB-real-time data acquisition software design elaborated. The article describes the general idea of ??the project, gave a brief overview of the function of the acquisition system, and on this basis, focusing on the hardware circuit, firmware, USB device driver and the PC Windows application design to achieve in-depth exposition. Microchip's USB controller chip PIC18f2550 microcontroller hardware board after pilot testing a working, stable performance. The development of device drivers using the Windows DDK and Visual C PC applications using Visual C development.

Table of contents

Abstract 4-5 ABSTRACT 5-6 directory 6-9 first chapter 9-12 <br / > 1.1 Background and significance of the topic 9-10 1.2 domestic and foreign research and application 10-12 Chapter USB technology 12-38 < br /> 2.1 system bus select 12-15 2.2 USB systematic description 15-16 2.2.1 USB connectivity 15-16 2.2.2 USB Host 16 2.2.3 USB devices 16 2.3 mains 16-17 2.3.1 Power Distribution 16 2.3.2 Power Management 16-17 2.4 bus protocol 17-38 2.4.1 Packet field format 17-21 2.4.1.1 Packet Identifier field 17-19 2.4.1.2 address field 19-20 2.4.1.2.1 address field 19-20 2.4.1.2.2 Port field 20 2.4.1.3 Frame Number field 20 2.4.1.4 Data Field 20 2.4 .1.5 cyclic redundancy check 20-21 2.4.1.5.1 mark CRC 21 2.4.1.5.2 Data CRC 21 2.4.2 Packet Format 21-26 2.4.2.1 mark package 21-22 2.4.2.2 frame start (SOF, Start-of-Frame) packet 22 2.4.2.3 Packet 22-23 2.4.2.4 handshake packet 23-24 2.4.2.5 handshake answer (Handshake Response) 24-26 2.4.2.5.1 functional components of the input affairs answer 24-25 2.4.2.5.2 host input affairs answer 25 2.4 .2.5.3 feature on the output affairs answer 25-26 2.4.2.5.4 feature for establishing affairs answer 26 2.4.3 affairs format 26-32 2.4.3.1 batch transaction 26-27 2.4.3.2 Control transmission 27-31 2.4.3.2.1 reporting status results 29-30 2.4.3.2.2 variable-length data phase 30 2.4.3.2.3 last data transaction error handling (Error Handling) 30 < br /> 2.4.3.2.4 control pipe returns STALL handshake 30-31 2.4.3.3 Interrupt Service 31 2.4.3.4 synchronous transaction 31 - 32 2.4.4 Data Toggle Synchronization and retry 32-35 2.4.4.1 initialized through the establishment marking 32-33 2.4.4.2 Continuous data transactions 33-34 2.4.4.3 damaged, or not accepted data 34 2.4.4.4 corrupted ACK handshake 34-35 2.4. 5 error detection and recovery 35-38 2.4.5.1 Packet Error Type 35-36 2.4.5.2 bus turnaround (Turn-around) time 36 < br /> 2.4.5.3 errors EOP 36-37 2.4.5.4 timeout interference (Babble) and activity loss (Loss of Activity) recovery 37-38 Chapter III hardware circuits and firmware design 38-54 3.1 hardware circuit design 38-47 3.1.1 USB controller chip select 38 - 41 3.1.2 PIC18F2550 microcontroller advantages 41-43 3.1.3 PIC18F2550 kernel 43-44 3.1.4 Endpoint 44 3.1.5 PIC18F2550 microcontroller crystal oscillator circuit 44 3.1.6 PIC18F2550 microcontroller reset circuit 44-45 3.1.7 External memory circuit 45 < br /> 3.1.8 A / D converter module 45-46 3.1.9 The A / D converter module interface hardware circuit design 46-47 3.1.10 hardware PCB map and physical map 47 3.2 firmware programming 47-54 3.2.1 firmware design data collection 48-51 <br / > 3.2.2 firmware and PC communication program planning 51-54 Chapter IV Device Driver Design 54-62 4.1 WDM driver 54 -56 4.1.1 device driver execution mode 55-56 4.2 device driver component 56-60 4.2.1 driver entry and the calling routine 57-58 4.2.2 Creating device 58-59 4.2.3 IRP distribution and processing routines 59-60 <br / > 4.3 driver development tool selection and installation 60 4.4 INF file 60-62 Chapter PC application design 62-67 <br / > 5.1 to open the device 63-64 5.2 USB device reads data 64-65 5.3 off USB devices 65 5.4 application interface design 65-67 Chapter Summary and Outlook 67-69 6.1 The main work papers and summary 67-68 6.2 Prospects 68-69 References 69-72 master's thesis published during the case 72 participate in scientific research situation 72-73 <br / > Thanks 73-74

Related dissertations

  1. Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
    ZhengZuo ·Hebei University of Technology ·2013 ·Master's thesis
  2. CCD Data Acquisition System Implementation Based on FPGA
    LiuYu ·Anhui University ·2014 ·Master's thesis
  3. Research of Data Acquistion System Based on FPGA
    XuLongFei ·University of North ·2014 ·Master's thesis
  4. Research on the Digital Broadband Electromagnetic Tomography System
    ChenGuang ·Tianjin University ·2010 ·Doctoral dissertation
  5. Embedded Linux-based USB Encryption Driver Design
  6. Design and Implementation of Multi-channel Analog and Digital Data Hybrid Acquisition Device
    CuiZuo ·University of North ·2014 ·Master's thesis
  7. Design and Implementation of TEM High-speed Acquisition System Based on FPGA
    HuZiJun ·Central South University ·2013 ·Master's thesis
  8. The Reseach of Isolation Technology in the Multi-channel Data Acquisition System
    LiZhu ·University of North ·2012 ·Master's thesis
  9. The Research and Design of Data Acquisition System Based on USB
  10. High Definition Multichannel Analog Signal Input/Output System
  11. Design of Data Collecting System Based on ARM
    JinChunGuang ·Yangtze University ·2013 ·Master's thesis
  12. Design and Implementation of High-speed Data Acquisition System Based on FPGA
  13. CANopen gate winding hoist machine experiment platform based on design and research
  14. Development of Human-Computer Interaction for Control System of Grating Homochromatic Instrument
    XingYan ·Jilin University ·2012 ·Master's thesis
  15. Software Design of Digital TV Receiver Based on USB2.0Technology
    WangJingHui ·Zhejiang University of Technology ·2012 ·Master's thesis
  16. Study and Design of Data Communication and the Host of Telemetry and Command System Basing on GSM Network
    LiMingLi ·Hebei University of Technology ·2007 ·Master's thesis
  17. The Design of USB Host/Slave Interface in Embedded Systems Based on ARM
  18. Microassembly Robot Vision System Research Base on Image Transmission and Recognition
    ChenRen ·Shanghai Jiaotong University ·2008 ·Master's thesis
  19. Analysis and Improvement of Driving Program of Embedded Linux
  20. High-performance data acquisition system based on USB and FPGA design and implementation of technology