Design & Implementation of Reusable Software for USB Host Driver in Embedded Systems
- Author
- LiuYin
- Advisor
- ZouHengMing
- School
- Shanghai Jiaotong University
- Major
- Software Engineering
- Classification
- TP336 Bus channel
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 310
- Citations
- 3
Abstract
USB is a technology of Universal Serial Bus which is‘master/slave’(host/peripheral) constructive, It has many advantages, such as simplicity, high bandwidth, high reliability, easily scalable, hot-plug and so on. The traditional USB hosts are mainly used for PCs. Currently, with the rapid development of consuming electronic products, USB host contoller has been applied in more and more embedded products. Under this situation, a USB host system should be realized in the embedded system.Traditional development of USB driver is for the USB peripheral. The host driver is mainly provided by the operating system. In the development of USB host, for the two operating systems based on desktop, Windows doesn’t open the source code while porting from Linux is not easy. However, in the embedded operating system, such asμCOS, VxWorks, QNX and so on, the USB host software stack is also not open either. Therefore, for the chip designer or the system solution producer, to realize a set of USB host driver which can be widely used and easily ported is more meaningful. Besides, in most embedded system software by self-development, there is usually an unclear borderline among low level driver, operation system and application. This increases the software coupling. Once there are some changes in hardware or operating system, the cost and the risk will increase and the reusability is greatly reduced.Under this background, according to the character of embedded system, and by reducing and porting from Linux source code, this paper designs a set of embedded USB host driver which has high reusability and can be used universally.First, this paper studies the structure of hardware and software in USB host system, then analyses the Linux USB host driver, and estimates the difficulty of porting it from Linux. Second, based on the reuse methodology, it designs embedded software architecture for USB host driver. Third, it port USB host dirver from Linux by reducing the core data structure and reforming corresponding cource code.Eventually, the paper realizes the support of USB mass storage device by applying the target USB host driver to a typical embedded system: Set-Top-Box, and gives the verification and testing for resuability, function and performance.
Table of contents
Abstract 2-4
ABSTRACT 4-10
Chapter 1 Introduction 10-14
1.1 application background 10-12
1.2 reusability significance of embedded USB host driver 12-14
1.2.1 Research 12
1.2.2 The research significance 12-13
1.2.3 of this thesis is 13-14
Chapter 2 USB Host systematic review 14-22
2.1 USB Architecture Overview 14-16
2.1.1 USB System Overview 14-15
2.1.2 USB bus protocol 15-16
2.1.3 USB Host - hardware and software 16
2.2 USB data flow model 16-22
2.2.1 USB bus topology 17-19
2.2.2 USB traffic 19-20
2.2.3 USB Transfer Manager 20-22
Chapter 3 reusable embedded USB host driver software framework designed 22-44
3.1 reusable embedded software Overview 22-25
3.1.1 reusable software features 22-23
3.1.2 reusable embedded software design methods 23-25
3.1.3 reusable software testing 25
3.2 reusable framework for embedded USB host driver design 25-30
3.2.1 software architecture design 25-27
3.2.2 software engineering to establish 27-28
3.2.3 system abstraction layer interface design 28-30
3.3 LINUX in USB host driver architecture 30-35
3.3.1 Linux for the USB host driver framework 30-31
3.3.2 Linux USB host driver in the core data structure 31-33
3.3.3 Linux USB host driver in a system -level 33-35
3.4 goals embedded USB host driver platform core architecture 35-44
3.4.1 kernel data structures reductions 35-43
3.4.2 URB call hierarchy 43-44
Chapter 4 USB host mass storage device driver implementation 44-51
4.1 USB host mass storage device driver architecture 44-46
4.1.1 USB Mass Storage Device Profile 44-45
4.1.2 target system USB host mass storage device architecture 45-46
4.2 USB host mass storage device driver implementation 46-51
4.2.1 core data structure design 46-48
4.2.2 USB host software framework to achieve 48-51
Chapter 5 reusable embedded USB host driver test 51-58
5.1 code reusability performance 51-52
5.2 Functional Test 52-55
5.2.1 enumeration function test 52-54
5.2.2 literacy tests 54
5.2.3 hot test 54-55
5.2.4 Power Management Test 55
5.3 performance test 55-58
5.3.1 read and write speeds 55-56
5.3.2 hot performance 56
5.3.3 CPU load testing 56-58
Chapter 6 summarizes 58-60
6.1 summarizes the work of this thesis 58-59
6.1.1 The main work of this thesis contents 58
6.1.2 key technology 58-59
6.1.3 features and innovations 59
6.2 further outlook 59-60
References 60-62
papers published during the study for a degree 62
Related dissertations
- The Study and Design of Vehicle Traveling Data Recorder Based on Embedded System
- Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
- Design of Video Monitoring System Based on the Embedded
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
- Design of Industrial Ethernet Motion Controller Based on ARM
- AGV car design and development of image recognition and motion control technology based on
- Transplant OpenCV to Embedded System and Face Recognition
- Linux System Transplantation and USB Driver Development Based on CK-CPU Embedded Platform
- Design and Implementation of Unidirectional Data Transmission Device Based on Removable Storage Media
- Design and Realizing of the Video Monitoring System Based on the Embedded Network
- Design and Implementation of Video Acquisition and Wireless Transmission System Based on Embedded System
- Software Design of Visual Conversational Embedded System
- Research and Implementation of IoT Gateway Based on Embedded Linux System
- Design and Implementation of Gateway Based on ARM9and Zigbee
- Design of Image Acquisition and Wireless Transmission System for Barley Field Based on ARM and WiFi
- Research and Realization of a Smart Home Gateway Based on Linux
- Research and Design of BD/GPS Dual-Mode Intelligent Vehicle System
- The GPS/CNSS Navigation System Reaearch Based on Linux
- Design of a Data Communication System for Theodolite Based on Embedded Technology