Design and Implement of Keyboard Driver for Android Based Smart Phone
- Author
- LiLin
- Advisor
- CuiJiangTao
- School
- Xi'an University of Electronic Science and Technology
- Major
- Computer System Architecture
- Classification
- TN929.53 Cellular mobile communications systems (mobile phones, mobile phone handsets )
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 87
- Citations
- 0
Abstract
So far, Android has been the most popular smart phone operating system andAndroid smart phone has taken the largest part of the smart phone market share today.This has driven the development of Android smart phone, and, in the process ofdeveloping Android smart phone, keyboard driver development is quite important amodule.This thesis devises and implements the driver for Android smart phone keyboardby participating in the whole development process of this Android smart phone. First,the thesis introduces the principles of Android smart phone and the methods ondeveloping drivers in Android operating system. Then, we introduce Linux inputsub-system, as our keyboard driver uses this sub-system reporting data to higher levelprograms. Then we introduce the principles and configuration methods of Pxa920keyboard controller. Finally, we devise and implement the driver for Android smartphone, which includes harware design, key value mapping and keyboard scanning. Andwe confirm the feasibility and effectivity of the design through testing in our hardwareand software environment.
Table of contents
Summary 3-4
Abstract 4-7
first chapter 7-15
1.1 subject background 7 <br / > 1.2 sources and topics I mainly work 7-8
1.3 Android system and its advantages and disadvantages 8-12
1.3.1 Android system 8-10
advantages and disadvantages 1.3.2 Android system 10-12
1.3.3 Android system summarizes the strengths and weaknesses of 12
1.4 dissertation chapters arrangements 12-15
Chapter II Android system principle 15-29
2.1 Android system architecture 15-19
2.1.1 software architecture 15-18
2.1.2 Android tools 18-19
2.2 Android source code development environment 19-21
2.2.1 Android source code obtain and submit 19-20
2.2.2 Android source code structure 20-21
2.3 Android Linux kernel and driver 21-27 <br / > 2.3.1 Linux kernel and driver 21
2.3.2 Android -specific driver device Driver 21-22
2.3.3 Android use 22-27
2.4 Chapter Summary 27-29
Chapter linux input subsystem 29-37
3.1 linux input subsystem analysis 29-30 <br / > 3.1.1 input subsystem architecture 29
3.1.2 the main data structure 29-30
creation process 3.2 input link 30-34
Register nbsp 3.2.1 hardware devices ; 30-32
3.2.2 Event Handler layer 32-34
3.3 device to open and read 34 -35
3.3.1 Open function 34
3.3.2 Read function 34
3.3.3 write function 34-35
3.4 Summary 35-37
Chapter PXA920 -based configuration method keyboard controller 37-47
4.1 Pxa920 keyboard controller Overview 37-42
characteristics 4.1.1 Pxa920 keyboard controller functional structure 37-38
4.1.2 Pxa920 keyboard controller 38-39
4.1.3 Pxa920 keyboard control 's interface signals 39
4.1.4 Pxa920 function keyboard controller configuration 39-42
4.2 Pxa920 support for matrix keyboard controller keyboard 42 - 45
4.2.1 matrix keyboard scan mode selection 42-44
4.2.2 matrix keyboard interface 44
4.2.3 matrix keyboard scanning 44-45
4.3 Summary design and implementation of Chapter 45-47
keyboard driver 47-57
5.1 hardware connection design 47-49
5.1.1 GPIO usage and configuration 47-49
5.1.2 hardware connection matrix keyboard design 49
5.2 key mapping and key reported 49-51
5.2.1 key mapping 49-50
5.2.2 reported the use of Linux input subsystem key 50-51 <br / > 5.3 keyboard driver main structure and interrupt handling 51-54
5.3.1 keyboard driver main structure 51-53
5.3.2 keyboard interrupt handling 53-54
5.4 test results 54-55
5.5 summary 55-57
Chapter VI summary and Outlook 57-59 <br / > Thanks 59-61
References 61-63