Design and Implementation of Smartphone Driver Based on Windows Mobile Platform
- Author
- QinXueZuo
- Advisor
- ChenZhen
- School
- Jilin University
- Major
- Computer Software and Theory
- Classification
- TP319 Specific applications
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 585
- Citations
- 2
Abstract
Today we are witnessing an explosion in the use of mobility in both ourpersonal and work lives. As a result of market demand and technicalprogress,mobile devices present an obvious development trend towardmicromation, versatility and networking. The fast popularity of Smartphoneproves this trend,and also confirms to the combination of 3C (Computer,Communication, Consumer Electronics) in electronic information industry.Firstly, the paper briefly introduces the basic principle of Smarphonearchitecture and foundation knowledge of Windows Mobile, a flexible andpowerful development platform for Smartphone devices. That can helpdeveloper to understand principle, technique and development environmentof Smartphone betterly. Then as its main topic, the paper discuss design andimplementation of Smartphone drivers based on Windows Mobile platformin detail. It not only provides principles and methods about driverdevelopment, but also implements a radio interface driver, which can beapplied to actual development project.Double CPU architecture is the most popular building solution ofSmartphone. From the hardware and software perspective, this architecture isdivided into two subsystem: multimedia and application subsystem andwireless communication subsystem. The application processor, which adoptsembedded microprocessor architecture such as ARM and XScale etc.,together with some storage and I/O equipments constitute the hardwarecomputing environment of the multimedia and application subsystem. Andthe software environment of this subsystem is based on embedded operatingsystem, such as Windows Mobile and Symbian etc. The OS provides UI andmany integrated applications, and also provides standard APIs to support userapplication development. The communication processor together with voiceprocessing DSP, power management unit, radio frequency transmitter andreceiver constitute the hardware computing environment of wirelesscommunication subsystem. And its software environment includes a real-timeembedded OS kernel and a special protocol stack software, which performsoperations for specific wireless communication air interface protocol, such asGSM, WCDMA, etc.Windows Mobile OS is one of popular Smartphone developmentplatforms. Its OS architecture design combines layered structure model andmicrokernel structure model, so it can meet embedded system requirementfor customization, portability, reliability and real-time performance. Thelayered model exposes standard application development interface and driverdevelopment interface to software developers,and enhances compatibility ofthis development platform. The microkernel model effectively reducesmemory consumption and enhances reliability. The other system servicesexcept kernel are implemented as user privilege level components, and can becustomized to adapt for actual environment. Based on the architecture modeland component model, and combined with basic features of embedded OS,the paper introduces the system features and development environment ofWindows Mobile OS, that are helpful to software developers of Smartphone.Smartphone driver development, based on Windows Mobile platform, isthe most important part in Smartphone software development. From internalstructure perspective, drivers can be categorized into layered drivers andmonolithic drivers. From outer interface perspective, drivers can becategorized into stream interface drivers and non-stream interface drivers.A layered driver is composed of two definite layers: the top layer iscalled Model Device Driver (MDD), which abstracts the operations ofhardware device;the bottom layer is called Platform Dependent Driver(PDD), which performs the actual operations depending on specifiedhardware device. By adoption of the MDD layer, drivers effectivelytransparentize the hardware details, and applications can be built on standardinterface functions exposed by MDD layer.A stream interface driver runs as user privilege level DLL(Dynamic-Link Library) program, and exposes a set of definit entries, calledstream interface functions. This DLL is loaded and managed by the devicemanager, a component built-in Windows Mobile OS. Stream interface driversare mapped into special files identified by device file names given by thespecified register keys of these drivers. Then applications can access thesedevice drivers through file system APIs. The paper introduces workingprinciples, managment and load methods, definitions of entry functions anddevelopment practises of stream interface driver. These knowlege can guidedevelopers to implement controllable and portable drivers.Windows Mobile OS integrates a wireless communication servicecompenont, called CellCore, which provides basic wireless communicationservices to application layer of Windows Mobile, such as telephony, shortmessage service, WAP service, and so on. CellCore is built on RIL (RadioInterface Layer) driver, so RIL driver is very important and has specialfunction and performance requirements. The paper sets up the function modelof RIL driver, by analyzing the wireless communication mechanism ofdouble CPU Smartphone and the architecture of integrated componentCellCore. RIL driver must support concurrent function calls from multipleapplications. RIL driver translates these function calls to specific ATcommands. The driver must maintain a priority queue to store these ATcommands and continually sends these commands to wireless communicationsubsystem in priority order. Wireless communication subsystem parses theseAT commands and performs specific operations with radio hardware, thenreturns result information. RIL driver must implement an asynchronouscommunication mechanism based on message queue to deliver these resultsto the right applications.With the function model above, the paper implements a general RILdriver framework based on layered driver model and steam interface drivermodel. This framework is independent from wireless hardware and can beapplied to actual projects based on Windows Mobile platform through simplecode modification. In the analyzing and designing process of RIL driver, weuse object-oriented analysis method and UML tool. And in the coding process,we use concurrent programming method based on threads and asynchronouscommunication mechanism based on queues. These knowlege providesvaluable guide to driver development and time constraint programming.
Table of contents
The first chapter 7-15
1.1 mobile computing products, trends 7-9
1.2 smartphone composition principle 9-14
1.2.1 smartphone hardware architecture 9-11 1.2.2 smartphone software
the 11-14
1.3 In this paper, the content and meaning 14 -15
Chapter II smartphone operating system Windows Mobile 15-23
2.1 Windows Mobile operating system Introduction 15-19
2.1.1 user-oriented Features 15-17
2.1.2 system characteristics for developers 17-19
2.2 Windows Mobile operating system structure model 19-23 < br /> 2.2.1 layered model the 19-20 2.2.2 component model
20-23
Windows Mobile driver development 23 -38
3.1 Windows Mobile device drivers 23
3.2 Windows Mobile driven model drive 23-28
3.2.1 layered, monolithic drive 24-25
the 3.2.2 stream interface driver 25-28
3.3 device file name 28-29
3.4 Device Manager and the stream interface the drivers load 29-31
3.5 Writing Stream Interface Driver 31-38
3.5.1 interface functions defined 31-34
3.5 .2 single access and multi-access 34-35
3.5.3 driver interrupt handling 35-38
Chapter wireless interface driver design and implementation 38-60
4.1 implementation mechanism of the wireless communication function the 38-42
4.1.1 Dual CPU smartphone wireless communication mechanism 38-39
4.1 .2 AT command Introduction 39-40
4.1.3 Windows Mobile wireless communications features hierarchical model the 40-42
4.2 wireless communication service component CellCore the component models 42-46
4.2.1 CellCore 42-43
4.2.2 RIL Proxy 43-46
4.2.3 RIL Driver 46
4.3 General RIL Driver Modeling and the 46-60
4.3.1 RIL Driver stream interface functions illustrate 47-49
4.3.2 Analysis RIL module dynamic model 49-51
4.3.3 to establish the the RIL Driver's static model 51-53
4.3.4 RIL Driver initialization code analysis 53 - 56
4.3.5 RIL Proxy initialization code analysis nbsp 56-59
4.3.6 drivers for hardware-related issues; 59-60
Chapter summarized and further work 60-62
5.1 summarizes 60-61
5.2 further work 61-62
Reference 62 - 63
Chinese Abstract 63-65
ABSTRACT 65-68
Acknowledgements 68-69
tutors and Author 69
Related dissertations
- Research on wireless grating displacement measurement technology based on ARM9
- No money "card" products design
- Feasibility Study on the Expansion Project of Polymer Li-ion Battery
- Strategy Research on Cooperation R&D of Smart Phone Manufacturers
- Design of Industrial Equipment State Wireless Monitoring System Based on STM32
- Development of Wet Gas Flow Measurement System
- Design and Realization of Farm Machinery Working State Real Time Wireless Monitoring System
- The Research and Design of Infrared Sensor Monitoring System Based on STM32
- The Design of the Thermo-humidity Monitoring System
- Design and Realization of Eco-hydrological Data Acquisition System Based on SDI-12Interface
- The Design for Wireless Multiple Measuring System of Small Area Crop Growth Environment
- Design of Civil Defense Alarm Control System Terminal
- Design of a Control System for Mobile Detection Robot and the Study on Obstacle Avoidance
- Bionic Design of19DOF Humanoid Robot and Development of Its Vision System
- Research on the Control Module of Human Digestive Tract Inspection Micro-Robot
- Study of Hardware in the Loop Simulation Platform Based on Cannon Launch and Guidance System
- Research of Augmented Reality Application Based on Smart Phone Interaction Design
- Research of the Application Based on RFID Technology and Mobile Android Device
- Research and Development of Food Security Supervision and Intelligent Management System
- Design and Implementation of Real-time Taxi Reservation System