项目作者: Allegra42

项目描述 :
Connecting a proximity sensor to Android
高级语言: C
项目地址: git://github.com/Allegra42/android-srf02.git
创建时间: 2015-11-27T20:42:26Z
项目社区:https://github.com/Allegra42/android-srf02

开源协议:

下载


Adding the SRF02 proximity sensor to Android

In this project, I add a proximity sensor to Android 4.4.4 running on a Pandaboard ES. To do so I had to write a kernel module and write parts of a HAL library.
This project was developed during an internship at inovex GmbH. It should be considered work in progress with several ugly details that I know have to be fixed. And they will be in the future — probably.
Only those files I really had to change have been uploaded here.

The project is based on Linaro Android 14.10. U-boot has been replaced by a newer version to get it running on both Pandaboard ES Rev. B2 and B3.
The sensor I used was a SRF02 connected via the I2C interface.

What I’ve done, I described at

Download the Linaro 14.10 Android sources

  1. export MANIFEST_REPO=git://android.git.linaro.org/platform/manifest.git
  2. export MANIFEST_BRANCH=linaro-android-14.10-release
  3. export MANIFEST_FILENAME=panda-linaro.xml
  4. repo init -u ${MANIFEST_REPO} -b ${MANIFEST_BRANCH} -m ${MANIFEST_FILENAME} --repo-url=git://android.git.linaro.org/tools/repo -g common,pandaboard
  5. // Change broken linaro manifest
  6. rm .repo/manifest.xml
  7. cp fixed_manifest.xml .repo/manifest.xml
  8. repo sync

Build

  1. source build/envsetup.sh
  2. lunch pandaboard-eng
  3. export WITH_HOST_DALVIK=false
  4. make -j4 boottarball systemtarball userdatatarball