问题标签 [android-things]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1349 浏览

raspberry-pi3 - 任何人都有关于如何使用 Android Things 访问 Raspberry Pi 上的触摸屏的指示?

这个问题分为两部分:

  • 是否有关于哪些触摸屏“开箱即用”与 Raspberry Pi3 + Android Things 的指南?它很容易将HDMI屏幕粘贴在输出上,但触摸屏不是那么清晰。我正在阅读有关用户驱动程序和外围 IO 的冲突内容。但有一点很清楚,我们可以推出自己的内核级 HAL 驱动程序。

  • 其次,这可能取决于上面的答案,说我们可以使用标准的 android UI 类来捕获运动和输入是否正确?

0 投票
1 回答
657 浏览

android - 构建没有显示的Android?

是否可以为没有触摸屏的设备构建 Android?我想到了一个根本没有显示器的设备。这类似于尚未准备好的 Android Things SDK。

0 投票
3 回答
1595 浏览

raspberry-pi - 未收到 Android Things GpioCallback

我正在尝试从simplepio实现按钮示例。我已经按照原理图所示进行了连接。按下按钮后,我没有收到 GPIO 回调。

我使用的代码与示例代码相同。没有例外,只有“开始活动”在日志中打印

到目前为止我已经尝试过:

  1. 通过使用以下代码运行python按钮程序来验证电路和按钮是否正常工作 raspbian jessie

    上面的代码在按下按钮时打印“Button Clicked”。所以我确信我的 PI 上的按钮和 GPIO 引脚不是问题。

  2. 为了确保日志记录没有问题,我还尝试修改原始程序以包含 aTextView和一个计数器,以便当单击按钮时计数器值增加并显示在TextView但再次未收到回调 TextView且未更新.
  3. 尝试了不同的边沿触发类型,但从未调用 onGpioEdge。

以下是我的设置图片

在此处输入图像描述

0 投票
4 回答
2500 浏览

android - Android Things Raspberry Pi GPIO 最大频率是多少?

哪里可以查到Android Things like that下树莓派3的GPIO口切换速度的特点?

0 投票
2 回答
2520 浏览

android-things - How to set wifi to Android Things without an ethernet cable or adb

I'm interested in knowing how to set the first wifi on android things (not android phone) without access to a network cable, for a fresh install.

There certainly must be a way to put the information in the SD card right after copying the OS image. If that can't be done directly, worst case scenario I would expect it should be possible to write a script and copy it somewhere into some of the partitions and have it automatically run at boot (which can be handy for other things). Unless the image is signed?

I would also be ok by writing an app that could be copied to SD card before first boot that would be auto-installed and do that thing for me. I would know how to write the app, but so far I don't know how to do the copy/autoinstall/autorun thing.

I would also be ok having one device connect to network and configure wifi, then clone its SD card into another one.

What really gets in my way is having to get a network cable every time I prepare a new SD card.

0 投票
1 回答
553 浏览

android-ndk - Android Things:是否支持 NDK?

由于开发者预览版仅支持 Android Things 上的 Java 应用程序,我很想知道本机应用程序是否也可以在此平台上运行。

主要是因为2个原因。

  1. 嵌入式设备对传感器有很大的支持,其中许多传感器是用 C/C++ 编写的。例如:https ://github.com/intel-iot-devkit/upm 。使用 NDK,与在 Java 中重写相同的传感器驱动程序相比,这不是更容易集成到 Android Things 中吗?

  2. 将运行本机应用程序的速度特性与使用用于 GPIO/I2C/SPI 等的外设管理器 API 的 Java 应用程序进行比较也是非常有趣的。

0 投票
2 回答
1936 浏览

android-things - 如何判断外围设备是否连接到 GPIO?

我希望能够检测到外围传感器何时未连接到我的 Raspberry Pi 3。

例如,如果我有一个 GPIO 无源红外传感器。

我可以像这样获得所有 GPIO 端口:

然后我可以连接到这样的端口:

但是,即使引脚为空,我仍然可以连接到它(这在技术上是有道理的,因为 gpio 只是二进制打开或关闭)。似乎没有任何 api,我无法从逻辑上合理地思考如何区分连接了外围传感器的引脚和“空”的引脚。

因此,目前,我无法以编程方式断言我的传感器和电路设置正确。

有人有想法么?从电子学的角度来看,它甚至可能吗?

参考文档:

https://developer.android.com/things/sdk/pio/gpio.html

0 投票
2 回答
180 浏览

linux - adb 和 ifconfig 命令在英特尔爱迪生与 android things SO 中不起作用

我用 Arduino 分线板将 Android Things SO 放在我的英特尔 Edison 中。我运行此示例,在此处输入链接描述 ,一切正常。但是当我尝试使用 IO13 运行其他代码时,我遇到了这个问题:

在此处输入链接描述

我需要使用 adb 命令来卸载软件包

有人可以帮我吗?

0 投票
3 回答
674 浏览

bluetooth - 在 android-things 设备上检测 iBeacons (Raspberry Pi 3)

是否可以在 android-things 设备(Raspberry Pi 3)上检测 iBeacons?

我尝试使用Nearby Messages API 订阅蓝牙低功耗 (BLE) 信标消息。我的应用在前台订阅了 iBeacon 消息,但不会检测到已注册的 iBeacon。

Everythings 工作正常,但在开始时我收到此消息:

E/BluetoothAdapter: Bluetooth binder is null

有人对 Android 设备(Raspberry Pi 3)上的 iBeacon 检测有经验吗?

0 投票
1 回答
333 浏览

android - Brillo (Android things) with weave

我是 Android 事物(Brillo)和编织协议领域的新手

我为我的 Rasp3 安装了 Android Things OS 映像,并成功启动并使用 adb 登录到 shell,一切正常,LED 的简单示例已成功运行。

所以我的问题是

如何在树莓派 3 中将 weave 集成到 android things 图像?