USBOTG IP -based embedded Linux kernel driven design and implementation
- Author
- FanWenPin
- Advisor
- LinShuiSheng
- School
- University of Electronic Science and Technology
- Major
- Communication and Information System
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 32
- Citations
- 0
Abstract
OTG(On-The-Go) which is a key supplement to USB2.0, solve the problem that only USB host can start a transfer, while the devices without host function can not. USB OTG can be widely used in digital communications, such as PDA, Mobile phones and consumer electronics, etc. OTG devices support OTG supplement can be either host or device,and can freely swith to each other without pulling out the cable. So, any devices with OTG interface can exchange data without the aid of PC. Moreover, OTG technology support SRP which reduces the power consumption, and enable direct communications between portable devices.Firstly, this paper introduce a self-design USB OTG IP core based on ARM microprocessor, then discuss the details of USB OTG device driver design based on Embeded Linux OS, and put forward some method optimize the driver. As the IP core consists of host controller, device controller and OTG controller, its driver also include three part, host controller driver, device controller driver and OTG controller driver. The driver’s architecture, relative data structures and functions will be discussed. As the IP core’s special design, the scheduling principle between IP core and its driver makes some changes. Additionally, the paper add DMA function and pipeline-HTD transfer design into the host controller driver to develop the system’s performance.Finally, it briefly introduce the testing system. After debugging of USB OTG system, including hardware and software, the testing result indicate that the driver achieve the expecting goals for USB host, USB device, OTG function, and the improved driver do improve the system’s performance. These provide some guide to the future development of OTG products.
Table of contents
Abstract 4-5
ABSTRACT 5-14
Chapter Introduction 14-16
1.1 USB technology development status 14-15
1.2 research objectives 15
1.3 In this thesis, the main work 15-16
Chapter II USB protocol suite and the Linux driver architecture 16-34
2.1 USB2.0 transfer protocol 16-23
2.1.1 USB system topology 16-17
2.1.2 USB Bus Properties 17-18
2.1.3 USB bus channel 18
2.1.4 Communication Model 18-23
2.2 OTG specification 23-25
2.2.1 OTG feature highlights 23
2.2.2 SRP 23-24
2.2.3 HNP 24-25
2.3 EHCI / OHCI specification 25-26
2.4 Mass Storage specification 26-28
2.5 embedded linux USB driver 28-33
2.5.1 Embedded linux device driver framework 29-30
2.5.2 Embedded Linux USB driver architecture analysis 30-33
2.6 Chapter Summary 33-34
Chapter OTG system design 34-44
3.1 USB OTG system architecture 34-35
3.2 USB OTG IP core structure 35-43
3.2.1 Bus Interface Unit module 37-38
3.2.2 OTG controller module 38-40
3.2.3 DC module 40-41
3.2.4 HC module 41-43
3.3 Chapter Summary 43-44
Chapter OTG IP -driven design and optimization 44-75
4.1 USB2.0 OTG system drive design 44-48
4.1.1 system processes the whole idea 44-45
4.1.2 System -driven design ideas 45-48
4.2 host side drive design 48-61
4.2.1 USB host driver module 48-56
4.2.2 USB host -driven process 56-61
4.3 device-side drive design 61-64
4.3.1 USB device driver modules 62-63
4.3.2 USB device driver process 63-64
4.4 OTG driven design 64-66
4.5 host side driver optimization 66-74
4.5.1 DMA driver 66-71
4.5.2 Pipeline htd 71-74
4.6 Chapter Summary 74-75
Chapter OTG IP driver debugging and results 75-89
5.1 Test Systems 75-78
5.1.1 hardware platforms 76-77
5.1.2 software environment 77-78
5.2 driver problems encountered during testing analysis and solution 78-82
5.2.1 disruptions 79
5.2.2 linux resource registration 79-80
5.2.3 cross clock domain problem 80-81
5.2.4 U disk formatting problems 81
5.2.5 htd transmission problems 81-82
5.3 Test results 82-88
5.3.1 OTG function test 82-83
5.3.2 device functional test 83-85
5.3.3 Host function test 85-87
5.3.4 Speed ??Test 87-88
5.4 Summary 88-89
Chapter Summary and Outlook 89-90
6.1 Summary 89
6.2 Prospects 89-90
Thanks 90-91
References 91-93
resume, during the study period of research 93-94
Related dissertations
- Study and Implementation on Detection System of Generator Insulation Overheating Device
- The Research of Embeded Intelligent Household Based on ARM
- Research on Intelligent Home Furnishing system based on Android
- Multi functional comprehensive test instrument based on Virtual Instrument Technology
- Design and Implementaiton of a Human-computer Interaction System Train Monitoirng Device
- Human-Computer Interaction Technology Research of Gene Amplification Based on Arm
- Embedded Fingerprint Identification System and Storage Technology
- Embedded Linux-based USB Encryption Driver Design
- The Designand Realization of Embedded USB Mass Storage System
- Design and implementation of the embedded terminal based on Qt multimedia player
- The Design and Implementation of Data Terminal and Sensor Network Gateway of Mesh Emergency Network in Mine
- Theoretical Research on Image Transmission System Basedon ARM and Bluetooth Technology
- The Design of Reconfiguration of FPGA Based on ARM in a Long Distance
- Design and Realization of Remote Video Monitoring System Based on the Embedded System
- The Research on Embedded Flight Control System Based on Quadrotor X450
- Design and Implementation of the Embedded Video Surveillance Server Based on ARM and Linux
- The Design of Portable Video Surveillance Terminal Based on ARM
- Research of Embedded Home Video Surveillance System Based on S3C2440
- The Unattended Telecommunication Room of Data Acquisition System
- Research and Design of Embedded Intelligent Concentrator Based on M-Bus