USB interface driver design and development

Author
ZhangQuanShi
Advisor
XieYongLe
School
University of Electronic Science and Technology
Major
Measuring Technology and Instruments
Classification
TP311.11 Programming method
Degree
Master's thesis
Year
2009
Downloads
709
Citations
17

Request the full text

Abstract

The Universal Serial Bus is a new interface for connecting peripheral devices to computer. Compared with the traditional PC interfaces such as serial and parallel port, the USB has many advantages such as higher data transfer throughput, plug-and-play, hot swapping, expandability and low-cost etc.With the popularization of the USB interface, a lot of embedded applications start to think integrating USB port into systems. One part of the applications is designed as PC peripherals, the other is designed as USB host in order to use the peripherals. The USB host takes up the core position in the USB system architecture. Each USB data transfer is initiated and controlled by the host. Every USB device can only connect to the host and can not communicate with each other directly.The communication protocol of the USB 2.0 is one of the content that this dissertation researches mainly. This dissertation expounds the protocol from USB communication model, USB packets, USB transmission types and so on. And, this dissertation expounds the design and implementation USB firmware of the USB system which is designed base on ISP1581.The other one emphasis content of the dissertation is the WDM driver under Windows 2000 Operation System kernel mode. The dissertation introduces WDM from the characteristics, main concepts and development methods detailed. The architecture of USB driver that is part of the WDM driver is expounded sequentially. One feature of this dissertation is to develop USB device driver by Numega DriverStudio. Some pivotal technique and implement process in the dissertation can be considered as the reference of other driver development in future.The application program plays an important role in the development of USB interface. The dissertation designs a sampling test application progress to validate the communication ability of our USB hardware board with the PC host.In the end, this dissertation concludes the shortage in our research work to develop USB interface. Apart from this, the dissertation also brings forward some aspects that need improve in future work. Simultaneity, it supposes the fine prospect about USB development.

Table of contents

Abstract 4-5 ABSTRACT 5-10 Chapter Introduction 10-14 1.1 of the problem 10 1.2 USB Introduction and development status 10-12 1.3 USB and other interfaces comparison 12-13 1.4 my main job 13-14 < br /> Chapter USB2.0 protocol specification 14-27 2.1 USB basic characteristics 14-16 2.1.1 USB system structure 14 -15 2.1.2 USB mechanical, electrical characteristics, and power 15-16 2.1.3 USB encoding 16 2.2 USB communication model 16-17 2.3 USB communication protocol 17-26 2.3.1 USB packet 17-19 2.3.2 USB data transfer types 19-24 2.3.3 USB descriptors 24-25 2.3.4 USB device requests 25 2.3.5 USB device enumeration ( Enumeration) 25-26 2.4 Summary 26-27 Chapter III USB firmware design and implementation 27-49 3.1 USB interface chip select 27-28 3.2 ISP1581 chip and circuit design introduced 28-32 3.2.1 ISP1581 chip introduced 28-29 3.2.2 hardware Design 29-32 3.3 firmware design and implementation 32-48 3.3.1 firmware development tools About 33-34 <br / > 3.3.2 firmware implementation 34-48 3.3.2.1 firmware programming ideas 34-35 3.3.2.2 firmware main constituent documents 35-37 3.3.2.3 firmware program programming 37-48 3.4 Summary 48-49 Chapter USB device driver design and Implementation 49-74 4.1 WINDOW52000/XP operating system overview 49-51 4.2 WDM driver Model Overview 51-52 4.2 .1 WDM Overview 51 4.2.2 WDM -based USB driver architecture 51-52 4.3 USB device driver framework for the design and implementation of 52 - 69 4.3.1 Numega DriverStudio Introduction and driver Framework generates 53-57 4.3.1.1 build Numega DriverStudio driver development environment 53-55 4.3.1.2 use Numega DriverStudio tool to generate driver framework 55-57 4.3.2 device driver routine part of the code key technologies and realization 57-69 4.3. 2.1 device driver programming the classes and functions of key 58 4.3.2.2 driver entry routines (DriverEntry) 58-59 4.3.2.3 create device routines ( AddDevice) 59-61 4.3.2.4 Plug and Play (PnP) routine design and implementation 61-63 4.3.2.5 distribution ( dispatch ) routine design and implementation 63-65 4.3.2.6 I / O control routines to achieve 65-69 4.4 driver debugging and installation 69-73 4.4.1 compile and debug drivers 69-72 4.4.2 driver installation 72-73 4.5 chapter Summary 73 - Chapter 74 USB application design and implementation 74-84 5.1 devices to read and write interface program implementation 74-75 5.2 block transfer test program design and implementation of 75-79 5.3 block transfer test program operation results 79-83 5.4 Summary 83-84 sixth Chapter Summary and Outlook 84-86 6.1 Full Summary 84-85 6.2 Prospects 85-86 Thanks 86-87 References 87-89 biographical 89-90

Related dissertations

  1. Research and development of the USB communication protocol and interface drivers
  2. Research of Embedded Video Surveillance Terminal Based on ARM
    HuJie ·Wuhan University of Technology ·2008 ·Master's thesis
  3. Digital home security image acquisition system based on embedded Linux
    JiangWenBo ·Shanghai Maritime University ·2007 ·Master's thesis
  4. OMAP5912 -based video stream compression algorithm research and implementation
    QuanLiDi ·Wuhan University of Technology ·2007 ·Master's thesis
  5. Research of Application of Data Acquisition and Transmission System Based on USB2.0 Technology
    ZhouLiang ·Chongqing University ·2007 ·Master's thesis
  6. Research and application of the USB 2.0 bus interface
  7. Multi-channel Data Acquisition System Based on USB Interface
    WangHuHe ·Harbin Engineering University ·2007 ·Master's thesis
  8. Design and Implementation of the high-speed data transmission system of digital TV set - top boxes
  9. Wireless Local Area Network’s Application in Embedded System
    HuangXueLei ·Jiangsu University ·2006 ·Master's thesis
  10. Research of Data Acquisition Method and Design Based on USB2.0 Interface
    KuangShengYuan ·Chongqing University ·2006 ·Master's thesis
  11. A Design of Data-acquisition-system Based on USB Interface
  12. Inkjet printer based on USB2.0 interface design
    LiHuiMing ·Liaoning Normal University ·2006 ·Master's thesis
  13. The Study and Realization of MPEG-2 TS Receiving and Playing System under Windows CE
  14. USB-based infrared video capture and display system design
  15. USB/RS232 interface converter design
    LiXueHong ·Chang'an University ·2004 ·Master's thesis
  16. Research of USB & Ethernet Technology Based on Embedded Platform
    HuDa ·Harbin Engineering University ·2009 ·Master's thesis
  17. Research and Design of Multifunctional USB Device Driver Based on Embedded System
  18. USB device driver based on the Windows CE operating system research and development
  19. Embedded Fingerprint Identification System
  20. USB-based flight control data logger research
    BinLing ·Xi'an Technological University ·2010 ·Master's thesis