摘要电子产品的更新换代周期越来越快,但是市场上占据主流的系统依然只有两个,一个是IOS系统,一个是Android系统,IOS系统只适用于苹果系列的产品。但是Android系统的产品确实多样化的,因为它具有很强的开放性,可以适配多种不同的机器。而所有的设备相互连接都要通过这个小小的USB来实现数据的传输功能。23905
论文首先介绍了Android系统的整体架构,分析了USB驱动程序的开发所用到的结构。并且通过前文的分析确定了开发驱动程序的环境。
论文其次了解了USB的整体概况,包括他的电气特性,数据形式,传输方式等等,对整个编译过程中所需要用到的类,数据包进行分析和提取。
论文编制了Android平台下的USB的驱动程序,对设计步骤,涉及到的功能做了详细的说明,最后对所完成的程序进行了模拟器的测试和硬件的测试,结果表明基本符合设计要求。
关键词 Android USB 驱动 测试
毕业设计说明书(毕业论文)外文摘要
Title USB Device Driver Development Based on Android
Abstract
The electronic products update cycle more and more quickly.But the market to occupy the mainstream of the system is still only two, one is the IOS system, the other is Android system.The IOS system is only applicable to products of the apple series.In contrast, the Android system is due to his opening to attract people's attention. All devices connected to the small USB to realize the data transmission function.
Firstly this paper is introduced that the overall architecture of Android system. It analyzes the USB driver development that should be at a level where the whole structure is. And on this basis I determine the need to develop environment.
Secondly,understand the overall situation of USB, including his electrical characteristics, data format, transmission mode and so on.Use the compilation process, data packets for analysis and extraction.
This paper is compiled that the driver under the platform of Android USB,design steps, design to the functions of detail。 Finally,carry on the completion of the program test box hardware simulator test.the results basically meet the design requirements.
Keywords Android USB driver test
目 次
1 绪论 1
1.1 Linux系统简介 1
1.2 Android简介 3
1.3 MiniUSB简介 4
2 Android系统的架构 6
2.1 Linux内核层 7
2.2 系统运行库层 7
2.3 应用框架层 8
2.4 应用层 8
3 MiniUSB的总体分析 9
3.1 MiniUSB的电气特性 9
3.2 MiniUSB的数据形式 9
3.3 MiniUSB的数据传输方式 9
4 USB的驱动程序设计 11
4.1 USB的工作模式 11
4.2 USB驱动程序执行流程 12
4.3 USB接口类的初始化 12
4.4 USB设备初始化 14
4.5 监听USB设备状态 17
4.6 USB的发送数据功能 18
4.7 USB的读入数据功能 23
5 Android系统USB驱动测试 27
5.1 模拟器环境的搭建 27
5.2 模拟器测试 29
5.3 硬件测试 30
6 总结与展望 33
结 论 35
致 谢 36 Android系统USB驱动程序设计:http://www.youerw.com/jisuanji/lunwen_17157.html