Font Size: a A A

Design And Implementation Of Android Sensor Driver Based On I2C

Posted on:2018-03-03Degree:MasterType:Thesis
Country:ChinaCandidate:Y H DongFull Text:PDF
GTID:2428330569975196Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the development of mobile Internet,intelligent equipment has become a trend.Intelligent devices are the primary means of communicating and getting information.It not only people's lives have a huge impact,but also for people to bring fun.In order to achieve better intelligence and user experience,a variety of sensors are added to the smart device.Most of these sensors can use I2 C for data transmission,Most operating systems running in these smart devices are Android system or the operating system based on Linux.The reseach are based on the research and development of iDR420 project and design the module of gravity sensor module.Firstly,it briefly introduces Android system architecture and gravity sensor,then it describes the overall structure of the underlying software based on gravity sensor module.Furthermore,it briefly introdues the roles of each module driver and the relationships between them.Secondly,the design and implementation of the sensor-driven modules and the HAL layer are introduced.In order to improve the real-time performance of the data transmission,the buffer queue is added to the HAL.What's more,this thesis makes an intensive study of the communication mechanism of Binder,and analyses how to communicate between the Server and Client terminals by the Binder driver.On the basis of this,the paper analyzes how to start the sensor device and how to communicate with the HAL layer,and analyzes the data flow of the sensor from the application layer,including connections created by client and server and pipelines of Android bytes.Finally,through the debugging tools for Android and App,the Linux input subsystem registered by the Android sensor module as well as the generation of a character device node for the control interface of Android sensor module control has been verified.The performance and reliability of the driver and the hardware abstraction layer are verified,and the feasibility and effectiveness of the software design of the Android sensor are verified.
Keywords/Search Tags:Android system, Drivers, Input/Output subsystem, Acceleration sensor
PDF Full Text Request
Related items