The Implementation of the USB Communication Protocol Based on the STM32 Processor and PC Host

Author
FangXu
Advisor
JiaZhiPing
School
Shandong University
Major
Software Engineering
Classification
TP273.5 Computer control, computer control system
Degree
Master's thesis
Year
2009
Downloads
511
Citations
9

Request the full text

Abstract

With the launch of the USB protocol as well as a wide range of applications on the host PC , and slowly the data communication interface various electronic products are beginning to use the USB communication protocol to communicate with each other , like we use U disk , mobile hard disk data port , digital data port of the camera , mobile phone and data port mostly use the US8 interface follow US8 communication protocol for data communications. Its wide range of applications due to its various advantages , particularly its standard equipment support , it also means that its specification is quite full and complex . In this paper , by parsing the USB communication protocol and its CDC ( Communications Device Class ) USB standard device classes , STMicroelectronics Introduces STM32 processors based on ARM's Cortex-M architecture design design set based on the CDC standard device class USB communication agreement, and then on the host PC using Microsoft the provided usbser.sys driver , own has written a stmcdc.inf file , the the STM32 processor and the host PC based on the CDC standard equipment communication . Followed on the STM32 processor with two communication nodes ( Endpoint ) design based on their communication characteristics bulk of the half-duplex communication , in the host PC using VC6.0 and Microsoft -based the WDM ( WindowsDriver Model ) driver development kit own development a Windows driver dwusb.sys , and write a dwusb.inf , the ultimate realization of the implementation of the USB communication protocol based on their communication features .

Table of contents

Directory 4-6 CONTENTS 6-8 Summary 8-9 ABSTRACT 9-10 1 Chapter Introduction 10-13 1.1 system design background and significance 10-11 1.2 designed primarily to achieve content 11 1.3 organizational structure of the paper 11-13 Chapter 2 system Design 13-21 2.1 STM32 processor USB protocol design 13-18 2.1.1 STM32 processor Overview 13-15 2.1.2 USB communication protocol hardware structure 15-16 2.1.3 USB communication protocol software structure 16 - 18 2.2 PC host USB protocol design 18-21 2.2.1 USB devices on the host hardware connection 18-19 2.2.2 on PC USB software on the host structure 19-21 Chapter 3 STM32 processor USB protocol implementation 21-38 3.1 source files defined in the system described in detail 21-33 3.1.1 core module 21-29 3.1.2 application program interface module 29-33 3.2 system's internal program flow chart 33-38 Chapter 4 on a host PC USB protocol implementation 38-42 4.1 host PC 's USB drive detailed design process 38 - 40 4.1.1 system module file description 38-39 4.1.2 USB driver software process design 39-40 4.2 user layer on a host PC detailed design process 40-42 Chapter 5 USB communication functions are implemented and tested 42-50 5.1 standard device classes based on CDC 's testing process 42 -44 5.2 custom device class testing process 44-50 5.2.1 driver testing process 44-49 5.2.2 user program testing process 49-50 Chapter 6 design Summary 50-52 Appendix 52-61 References 61 -63 Thanks 63-64 thesis reviewers and the respondent Fact Sheet 64

Related dissertations

  1. Investigation and Design of Information Display System Applied in Cars
  2. Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
    ZhengZuo ·Hebei University of Technology ·2013 ·Master's thesis
  3. Usb Without Invasive Data Collection Technology Research
  4. Hardware Design for Circuit Fault Diagnosis System Based on JTAG Interface
  5. Study on FPGA Research and Implementation of Multi-Channel Image Acquistion System
  6. Grating Data Acquisition and Error Correction Technology
    DongShanShan ·Hefei University of Technology ·2014 ·Master's thesis
  7. CCD Data Acquisition System Implementation Based on FPGA
    LiuYu ·Anhui University ·2014 ·Master's thesis
  8. Research of Data Acquistion System Based on FPGA
    XuLongFei ·University of North ·2014 ·Master's thesis
  9. Research and design of intelligent 3D pulse peak field strength tester
  10. Multi functional comprehensive test instrument based on Virtual Instrument Technology
  11. Embedded Fingerprint Identification System and Storage Technology
  12. Research on the Digital Broadband Electromagnetic Tomography System
    ChenGuang ·Tianjin University ·2010 ·Doctoral dissertation
  13. VxWorks Migration on VME Bus Embedded Controler
    GuanFei ·Harbin Institute of Technology ·2012 ·Master's thesis
  14. Embedded Linux-based USB Encryption Driver Design
  15. Research and Implementation of Usbtmc Specification about Universal Test Instrument
  16. Research Communication Device and Communication Protocols Based on USB Interface
    YuXiaoLei ·Harbin Institute of Technology ·2012 ·Master's thesis
  17. Research and Implementation of Infrared Touch Screen Based on HID Class
    WangYun ·Anhui University ·2014 ·Master's thesis
  18. The Designand Realization of Embedded USB Mass Storage System
    WangMeng ·Hebei University of Technology ·2013 ·Master's thesis
  19. Design and development of laser gyro and USB interface frequency test system
  20. Analysis and Application of USB3.0High-Speed Signal Integrity