Android ROM和Raspberry PI 3 plus NFC [英] Android ROM and Raspberry PI 3 plus NFC

查看:81
本文介绍了Android ROM和Raspberry PI 3 plus NFC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在Raspberry pi 3上使用Android Things,一切正常,最近我们得到了一个名为OM5578/PN7150的NXP板,基本上可以有效地使用NFC.

We are working with Android Things on Raspberry pi 3, everything works great, recently we got an NXP board called OM5578/PN7150, basically to use NFC efficiently.

通过NXP指南(AN11690 NXPNCI Android移植指南),我需要:

Through NXP guide (AN11690 NXPNCI Android Porting Guidelines) I need:

  • 在内核中添加驱动器
  • 自定义AOSP(Android开放源代码项目)

我想知道:

内核的哪个版本最适合通过添加具有 Raspberry pi 3 支持的驱动器进行重新编译

Which version of the kernel is best for recompiling by adding the drive with Raspberry pi 3 support

建议在自助服务机模式下为Raspberry pi 3 使用哪个版本的AOSP (类似于Android Things).

Which version of AOSP is recommended for Raspberry pi 3 in kiosk mode (similar to Android Things).

不能选择其他板子.

谢谢.

推荐答案

  • Android Things仅允许用户空间驱动程序,不允许加载其他内核模块.不幸的是,当前没有适合NFC的用户空间驱动程序类型: https ://developer.android.com/things/sdk/drivers/index.html
  • 由于您的NFC设备似乎基于I2C,因此可以通过Android Things PIO API进行访问: https://github.com/lineage-rpi .
  • 信息亭模式是一个次要问题,您应该能够使用最新的android版本解决.
    • Android Things only allows User-Space Drivers, loading additional kernel modules isn't permitted. Unfortunately there is currently no User-Space driver types that would be suitable for NFC: https://developer.android.com/things/sdk/drivers/index.html
    • Since your NFC device seems to be I2C based, it would be possible to access it via Android Things PIO API: https://developer.android.com/things/sdk/pio/i2c.html. You could basically port an Arduino example. This is only a valid approach if the app that you intend to run is your own (because if not, the app would try to access the NFC module via the normal Android API instead of your own one).
    • If you want to follow the NXP porting guidelines using the ASOP, start with a fork that was already adapted for the RPi, like this one: https://github.com/lineage-rpi.
    • The kiosk mode is a secondary problem which you should be able to solve with most more recent android versions.
    • 这篇关于Android ROM和Raspberry PI 3 plus NFC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆