USB Interface Development and Function Implement

Author
WanZuoZuo
Advisor
ZhangXiangDong
School
Xi'an University of Electronic Science and Technology
Major
Traffic Information Engineering \u0026 Control
Classification
TP334.7 Interface devices,plug-in
Degree
Master's thesis
Year
2011
Downloads
149
Citations
2

Request the full text

Abstract

USB is universal serial bus, which has some advantages. It can automatically identify equipments, automatically install drivers, and support the synchronous and asynchronous transmission modes with different rates, support hot-plug and plug-and-play. Therefore, USB has become the mainstream interface which connects with PC and external communication device. Since these advantages of USB, the application of the USB technology in embedded systems will bring great convenience.This paper introducts the USB basic knowledge and the USB interface structure. The platform is embedded PNX6718 and the operating system is RTK real-time operating system. The C programming is used to design and exploit the USB wireless network card interface. Because each USB device can map out multiple interfaces, the various interface functions are also studied.Not only the software development of the USB wireless network card interface is implemented, but also the automatical installation and loading scheme of the host-side driver is designed. So that the USB interface can be automatically configured and the normal communication also can be realized.Since each interface in USB device is represented by one function, this paper achieves a variety of applications in USB interface.This paper, through abstract control model (ACM) and Ethernet Control Model (ECM) in Communication Device Class (CDC), respectively achieves the virtual modem interface and the virtual Ethernet interface. Then, the scheme which let the device and the host can know each other is designed based on the requirements and notifications. Like the serial port or Ethernet interface, the host can communicate normally.Secondly, the standard data bulk transmission is achieved by the USB interface. The file system module, storage device interface module and storage protocol module are studied in the paper. These modules conbined with USB interface module realize data transmission.

Table of contents

Abstract 3-4 Abstract 4-7 The first chapter 7-13 1.1 project background 7-8 1.2 USB interface and its Application Research 8-10 1.2.1 USB interface development status 8 1.2.2 USB virtual interface communication status 8-9 1.2.3 USB storage device interface application status 9-10 1.3 This major work 10-13 Chapter II USB basic structure and characteristics of 13-19 2.1 USB bus structure 13-14 2.1.1 USB bus topology 13 2.1.2 USB system consists 13-14 2.2 USB system hierarchy 14-15 2.3 USB interface characteristics and structural 15-18 2.3.1 USB connection 16 2.3.2 USB interface electrical characteristics 16-17 2.3.3 USB power supply 17 2.3.4 USB interface architecture 17-18 2.4 Summary 18-19 Chapter III USB interface design and development 19-33 3.1 Development Environment 19 3.2 functional requirements analysis 19 3.3 USB interface software design and development 19-24 3.3.1 interface initialization module development 20-22 3.3.2 interface information reporting module designed 22-23 3.3.3 to read and write data module development 23-24 3.4 host driver and the interface with the program design 24-27 3.4.1 Play About 24-25 3.4.2 Plug and Play driver installation program design 25-26 3.4.3 driver loading design 26-27 3.5 Data Analysis 27-31 3.5.1 Data protocol 27 3.5.2 USB device requests and descriptors 27-30 3.5.3 Bus Data Analysis 30-31 3.6 Summary 31-33 Chapter USB interface to connect the network communication to achieve 33-45 4.1 functional requirements analysis 33 4.2 Communication Device Class (CDC) Introduction 33-34 4.3 ACM model based on the virtual serial port design 34-38 4.3.1 Abstract Control Model (ACM) Introduction 34-36 4.3.2 USB virtual serial network connection design 36-37 4.3.3 Virtual Serial Bus Data Analysis 37-38 4.4 ECM model based on the virtual Ethernet interface design 38-43 4.4.1 Ethernet Control Model (ECM) Introduction 38-40 4.4.2 USB virtual Ethernet network connectivity solutions designed 40-41 4.4.3 Virtual Ethernet Interface Bus Data Analysis 41-43 4.5 Chapter Summary 43-45 Chapter bulk transfer USB interface to achieve 45-61 5.1 functional requirements analysis 45-46 5.2 Basics of each module Introduction 46-53 5.2.1 Flash memory structure Introduction 46-48 5.2.2 File System Introduction 48-49 5.2.3 Mass Storage protocol 49-50 5.2.4 Bulk-Only Transport Protocol 50-52 5.2.5 SCSI command set 52-53 5.3 bulk transfer of data implementation process 53-57 5.3.1 file system module design 53-55 5.3.2 Mass Storage protocol module design 55-57 5.3.3 storage device interface module design 57 5.4 data transfer interface bus Data Analysis 57-59 5.5 Chapter Summary 59-61 Chapter Summary 61-63 Thanks 63-65 References 65-66

Related dissertations

  1. A Security Storage Solution Based on FAT32File System
    XiaZuo ·Shanghai Jiaotong University ·2013 ·Master's thesis
  2. USB protocol multi-application smart card
  3. Research on Soybean Oil and Palm Oil Program Arbitrage Trading Model
    XieJiaXin ·Central South University ·2013 ·Master's thesis
  4. The Effeciency Research of Chinese Stock Index Futures Market Based on the HS300Stock Index Futures Contracts
    YuZuo ·Anhui University of Finance ·2014 ·Master's thesis
  5. "Chinese factors influence" on the international copper prices fluctuation and empirical test
    LiQiongHe ·Central South University ·2012 ·Master's thesis
  6. Research on the Unbalance of Economic Development of the United States
    ChenYanHong ·Xiangtan University ·2013 ·Master's thesis
  7. An Empirical Research on the Relationship between Income and Consumption of Hunan Residents
    LiuXiaoCai ·Hunan Normal University ·2014 ·Master's thesis
  8. The Research of the Effect of the Adjustment of Interest Rates Policy on Real Estae Price in China
    WangZuo ·Hebei University of Economics ·2014 ·Master's thesis
  9. The Relationship between Money Supply and Inflation: a Restatement
  10. Algeria Aggregate Import Demand (1970-2010): Engel-granger Test to Cointegration Approach
  11. Terminal design of fault diagnosis system of intelligent equipment under a cloud service environment
  12. Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
    ZhengZuo ·Hebei University of Technology ·2013 ·Master's thesis
  13. Usb Without Invasive Data Collection Technology Research
  14. Hardware Design for Circuit Fault Diagnosis System Based on JTAG Interface
  15. Study on FPGA Research and Implementation of Multi-Channel Image Acquistion System
  16. Grating Data Acquisition and Error Correction Technology
    DongShanShan ·Hefei University of Technology ·2014 ·Master's thesis
  17. CCD Data Acquisition System Implementation Based on FPGA
    LiuYu ·Anhui University ·2014 ·Master's thesis
  18. Research of Data Acquistion System Based on FPGA
    XuLongFei ·University of North ·2014 ·Master's thesis
  19. Research and design of intelligent 3D pulse peak field strength tester
  20. Multi functional comprehensive test instrument based on Virtual Instrument Technology