基于 Android 模拟 P-Sensor 的设计与实现
Design and Implementation of Virtual P-Sensor Based on Android
-
摘要: 该文基于高通 MSM8939 平台, 在不增加距离传感器(Proximity Sensor, P-Sensor)的前提下, 提出了一种基于触摸屏的距离传感器模拟方法。该文首先介绍了电容触摸屏面板触点位置检测原理和数值计算方法, 并给出模拟 P-Sensor 距离检测原理;然后, 基于触摸屏模组和基带芯片的接口电路以及电源管理芯片, 设计并实现了模拟 P-Sensor 的硬件电路;最后, 采用 UML(统一建模语言)序列图的设计方式, 实现了基于服务端-客户端框架层中的模拟 P-Sensor 通道控制程序设计, 并根据距离检测结果实现了屏幕的亮灭自动控制以达到节省功耗的目的。Abstract: This paper proposed a solution to realize the virtual proximity sensor (P-Sensor) based on usual touch panel. The principle of the distance detection based on capacitance touch panel is introduced firstly. And the hardware system is developed according to the baseband and power management units. Using the UML (unified modeling language) sequence diagram, the control channel framework for the virtual P-Sensor is realized based on server-client system. With the distance detection results, the screen can be turn on or off automatically to save power consumption.