USB Gadget Driver Research and Implementation Based on Embedded System

Author
HuangShaoBin
Advisor
LiuQiong
School
South China University of Technology
Major
Applied Computer Technology
Classification
TP368.1 Microprocessor
Degree
Master's thesis
Year
2012
Downloads
122
Citations
0

Request the full text

Abstract

Linux is increasingly being used in embedded system because of its open source policy,portability and cuttability. Linux kernel support two main types of USB driver: host side andequipment side driver. The host side USB driver control the connected USB equipment, so asto use the function of the equipment. Equipment side USB drivers (USB Gadget Driver)control how the device communicates with the host to show specific to the host of features, inwhich case the device should be understood as running Linux embedded system. So far forLinux system USB device driver development research is very rich, but mainly is the hostside Driver research and implementation, and to USB Gadget Driver research andimplementation rarely. This thesis is based on TQ2440embedded development platform, tostudy the USB Gadget Driver under Linux systems, and gives specific implementations.In this thesis, the main research works include:(1)Through to the embedded platform development environment and Linux kernel areintroduced, this thesis provides for the specific target platform configuration methods,methods of compiling Linux kernel and methods of portability to the target platform.(2)The details of porting USB protocol is described in this part. Many aspects are involvedin this process, such USB specification, USB host driver and USB Gadget driver.(3)The thesis describes some development and technique details of USB host driver andGadget driver, such as data transplant process, implementation process and system test andresources analysis method.The thesis is very useful to USB Gadget driver developers and Linux kernel portingdevelopers; it can help them rapidly grasp the main features and important place in USBdriver developing and kernel porting.

Table of contents

Summary 5-6 Abstract 6-10 first chapter 10-13 background and significance of 1.1 10 1.2 research status 10-12 development status 1.2.1 embedded operating system 11-12 1.3 the main work of this topic 12-13 1.3.1 the purpose of this study main content of 12 1.3.2 Research 12-13 the second chapter of the Linux kernel and device driver 13-29 architecture 2.1 embedded Linux system 13-15 2.1.1 embedded processors 13-14 2.1 .2 embedded peripherals 14 2.1.3 embedded operating systems 14-15 2.1.4 embedded device driver 15 2.1 .5 embedded application software 15 2.2 Linux operating system kernel 15-22 2.2.1 Linux kernel composition 15-17 2.2 .2 Linux various parts of the working mechanism 17-21 2.2.3 compile the kernel 21-22 2.3 Linux device driver model 22-24 2.3.1 Linux device Driver Overview 22 2.3.2 Linux device model 22-23 2.3.3 kobject data structure 23-24 2.4 Linux device driver framework analysis Category 24-25 2.4.1 Linux device driver 24-25 2.4.2 device file and device number module mechanism 25 2.4.3 loadable 25 2.5 device driver critical data structures 25-27 2.5.1 file and inode structure 25-26 2.5.2 file_operations structure 26-27 2.6 kernel concurrency control 27-28 2.7 memory and I / O port Access 28 2.8 Summary 28-29 Chapter III USB protocol with Linux USB subsystem 29-43 3.1 USB protocol 29-33 3.1.1 USB host 30 3.1.2 USB hub 30-31 3.1.3 USB devices 31 3.1.4 USB communication protocol 31 3.1.5 USB packet type 31 3.1.6 domain 31-32 3.1.7 transaction 32 3.1.8 USB bus transfer 32-33 3.2 USB device 33-37 3.2.1 endpoint 33-35 3.2.2 Interface 35-36 3.2.3 configuration 36-37 3.2.4 equipment 37 3.3 Linux USB driver hierarchy 37-39 3.4 USB request Block (URB) 39-42 3.4.1 urb structure 39 - 40 3.4.2 urb processing 40-42 3.5 Summary 42-43 Chapter IV USB Gadget driver 43-87 4.1 Gadget introduce 43-44 4.2 UDC and gadget -driven key data structure 44-48 4.3 Zero module analyzes 48-74 <br / > 4.3.1 zero module structure 48-50 4.3.2 bind function analysis 50-56 4.3.4 zero_setup function analysis 56-74 4.4 USB Ethernet Gadget program to achieve 74-78 4.4.1 g_ether works 74 4.4.2 g_ether working methods 74-76 <br / > 4.4.3 g_ether performance analysis 76-78 4.4.4 g_ether transplant 78 4.5 user interface provides file gadget solutions to achieve 78-86 4.5.1 design principles 78-81 4.5.2 for g_zero module rewrite 81-82 4.5.3 working methods 82-84 4.5.4 performance Analysis 84-86 4.6 Summary 86-87 Chapter V Conclusion and Outlook 87-88 <br / > 5.1 Conclusion Outlook 87 5.2 follow-up research work 87-88 References 88-90 Thanks 90

Related dissertations

  1. Design and Implementation of Unidirectional Data Transmission Device Based on Removable Storage Media
  2. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  3. Research and Design of Embedded Building Security System
    YangChen ·Liaoning Normal University ·2012 ·Master's thesis
  4. The Softeware Design and Implement on Integrated Intelligent Camera Platform Based on Davinci DM6446
  5. The Research of Household Remote Monitoring Based on Embedded Web Server
  6. Research and Design of Intelligent Video Surveillance System Based on ARM
  7. Design of Video Monitoring System Based on the Embedded
  8. The Design of Embedded Network Video Surveillance System Based on ARM9
  9. Design and Application of the Distributed Monitoring System Based on Embedded Web
  10. Study on Embedded Data Acquisition System Application
    ZhangDong ·Dalian Polytechnic University ·2009 ·Master's thesis
  11. Embedded Software Design of AC Field Detection Instrument Based on ARM
  12. Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
    SunZuoLi ·Hunan University ·2013 ·Master's thesis
  13. Based on the Samsung2440Embedded Home Furnishing Design and Implementation of Intelligent Control System
  14. Design of Industrial Ethernet Motion Controller Based on ARM
  15. Research on Pulsating Vacuum Pressure Steam Sterilization Control System Based on ARM
    FuAiJun ·Nanchang University of Aeronautics and ·2013 ·Master's thesis
  16. The software design of intelligent control Home Furnishing gateway based on ARM11
    ZuoPengZuo ·Northwestern University ·2013 ·Master's thesis
  17. The System Design and Implementation of Smart Home Control Terminal Based on Linux
  18. Movement Gait Control Research of Six Feet Bionic Robot
    XuShuai ·Ningxia University ·2013 ·Master's thesis
  19. Research on Embedded Control System for Palletizing Robot
    YangYang ·Nanjing Forestry University ·2013 ·Master's thesis
  20. Control system design of robot based on ARM
    OuYangJianFei ·Jiangxi University of Technology ·2013 ·Master's thesis