Design and Implementation of Bottom-layer Software for Several I2C-based Sensors in Android Operating System

Author
WuMaoAn
Advisor
CaoBoYan
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
216
Citations
1

Request the full text

Abstract

Since the release of its first version in2008by Google Cor., Android has nowbecome the most popular smart phone operating system, and has taken the biggest partof the smart phone market share. Applying several kinds of sensors in Android smartphone not only saves the power consumption of an Android smart phone, but alsoenriches its functionality. So, only with a thorough grasp of sensor related bottom-layersoftware development technology in Android system, can we develop an Android smartphone with greater performance.By participating in the whole development process of TD920Android smart phone,this paper devises and implements the driver and hardware abstract layer software forlight sensor, proximity sensor and acceleration sensor in Android system. First of all, wemake a research on the principle of Android operating system and several differentkinds of Android developing jobs, and make it clear which layer this paper’s research isat and what our devising and implementing tasks are. Then, we carry on the preliminarydesign for sensor driver and hardware abstract layer software, and divide ourbottom-layer software into several modules according to their difference in functionality,they are: I2C driver module, the configuration of AL3003and BMA220module,character device driver module, management of sensors through Linux Sysfs systemmodule, data report through Linux input sub-system module. Also, the work flow, dataobtain and data transformation at hardware abstract layer is designed. Followed, wecarry on the design and implement of these modules in detail.By developing and testing under the software and hardware platform provided byTD920Android smart phone, we confirm the feasibility and effectiveness of the design.

Table of contents

Summary 3-4 Abstract 4-7 first chapter Situation Background and study abroad 7-9 1.1 topics 7-8 1.2 sources and topics I mainly work 8 1.3 The main contents and chapters arrangements 8-9 Chapter II sensor underlying software design 9-19 2.1 Android system Overview hierarchical division 9-12 2.1.1 Android system 9-10 2.1.2 Android development work type 10-12 2.2 Android sensor system Overview 12-14 2.3 sensor underlying software design 14-18 2.3.1 sensor driver overall design 14-16 2.3.2 sensor Hardware abstraction Layer overall design 16-18 2.4 Summary 18-19 principles and configuration Chapter three sensors 19-41 3.1 AL3003 distance and light combo sensor principle and setting 19-30 3.1.1 AL3003 's functional modules 19 3.1.2 AL3003 sensor characteristics 19-20 3.1.3 AL3003 sensing object approaching the principle 20-22 3.1.4 AL3003 ambient light sensing principle 22-23 3.1.5 proximity sensor function parameter configuration 23-26 3.1.6 AL3003 configuration ambient light sensor function nbsp 26-28 switching between different modes of inter- 3.1.7 AL3003 ; 28-30 3.2 BMA220 acceleration sensor principle and setting 30-39 3.2 principle and function modules .1 BMA220 acceleration sensor consisting characteristics 30-31 3.2.2 BMA220 acceleration sensor conversion 31-32 3.2.3 BMA220 power mode and control 32-33 several different ways to detect and identify its configuration 3.2.4 BMA220 of principle 33-38 3.2.4.1 with arbitrary motion detection configuration principle 33-35 3.2.4.2 click detection and configuration principle 35-36 3.2.4.3 direction detection and configuration 36 - 38 3.2.4.4 level detection principle and configuration Get 38 setting 3.2.5 some other important parameters and acceleration data 38-39 3.2 .5.1 acceleration value range setting 38-39 3.2.5.2 Bandwidth setting 39 3.2.5.3 acceleration data acquisition 39 3.3 Summary 39-41 Chapter three sensor I2C driver design and implementation 41-51 4.1 I2C bus protocol 41-44 4.1 .1 I2C serial bus overview 41-42 4.1.2 I2C bus data transfer 42-44 4.2 Linux I2C driver system architecture 44-45 achieve 4.3 three kinds of sensors I2C driver 45-49 4.4 Summary 49-51 Chapter sensor underlying software detailed design and implementation detailed design 51-67 5.1 drivers and implementation 51-58 5.1.1 sensor configuration to achieve the core functionality 51-52 5.1 .2 realized character device driver 52-54 5.1.3 file system management achieved using Sysfs sensor devices 54-56 5.1.4 use Linux input subsystem HAL layer data reporting mechanism to achieve 56-58 achieve 5.2 hardware abstraction layer 58-62 5.2.1 sensor system hardware abstraction layer interface definition 58-60 5.2.2 hardware abstraction layer data read and data conversion 60-62 5.3 sensor system -level software test work results 62-65 5.3 .1 viewed through Android sensor sensor system monitoring software working conditions 63-64 5.3.2 View functionality of the sensor system through the Android framework 64-65 5.4 Summary 65-67 Chapter VI summary and Outlook 67-69 6.1 This paper work done 67 6.2 still need to improve and work carried out 67-69 Thanks 69-71 References 71-73

Related dissertations

  1. Design and Implementation of Sensor Module in Android System
  2. Android Platform Based Research on Large Scale Face Recognition System
    JiangZhuoXuan ·Hunan University ·2013 ·Master's thesis
  3. Study of Rapeseed Field Environmental Information Collection Key Technology Based on WSN
    ZhaoXing ·Hunan Agricultural University ·2013 ·Master's thesis
  4. Wireless Sensor Application-Layer Developed Based on the Android Platform
  5. The Design and Implement of GPS Module Based on Android
    LiZuoZe ·Zhengzhou University ·2013 ·Master's thesis
  6. The Design of Iron Core of Stators Automatic Production Line
  7. Design and Implementation of a Android-based Home Security Remote Monitoring Terminal System
  8. Research and Implementation of Vedio Surveillance System Based on Android Architecture and Smoke Detection
    ChenZhiMing ·Huaqiao University ·2013 ·Master's thesis
  9. Design and Implementation of Crane Monitoring System Based on Android
  10. Research and Implementation of Intelligent Video Surveillance System Based on Android
  11. Design and Research of Mobile Video Surveillance System Based on MJPG-Streamer
  12. Research and implementation of remote monitor system of ship based on the technology of the Internet of things
  13. Based on Single Chip Microcomputer Technology Railway Crossing Alarm System Design
    WangJinGe ·Jilin University ·2013 ·Master's thesis
  14. The Design of the Platform for Environmental Monitoring Based on ARM9
    WangChuanMiao ·Hunan University ·2012 ·Master's thesis
  15. Security Detection System Based on the Android Paltform
    ChenZuo ·Wuhan University of Technology ·2013 ·Master's thesis
  16. Research on Meteorological Data Acquisition and Processing System
    ZhaoSheng ·Wuhan University of Technology ·2013 ·Master's thesis
  17. The Research and Design of Data Acquisition Module for Wind-Solar Hybrid Power Generation System
    GeZongCheng ·Wuhan University of Technology ·2013 ·Master's thesis
  18. The Research of Fall Detection Based on Mobile Terminal
    ZhouMin ·Xiangtan University ·2013 ·Master's thesis
  19. The Wireless Temperature and Humidity Monitoring System Design
    ZuoRui ·Jilin University ·2013 ·Master's thesis
  20. Design and Implementation of a Human Activity Monitoring System Based on Smart Mobile Terminal
    WuZhongZe ·South China University of Technology ·2013 ·Master's thesis