This is the official Google+ community for developers working with Google's IoT platform, including Android Things and Weave
See all
Members (2,467)
Wayne Piekarski's profile photo
Renato Mangini's profile photo
Google Developers's profile photo
Steven Riedl's profile photo
Chris Custine's profile photo
Emmanuel DENIS's profile photo
José López's profile photo
Talha Afzal's profile photo
sandip patel's profile photo
JaeHyouk Choi's profile photo
Mukesh Suthar's profile photo
Paulus Schoutsen's profile photo
Parvesh Mittal's profile photo
Ali Fitzgerald's profile photo
Maria Vera's profile photo
Tony Bush's profile photo
Teddy Seyed's profile photo
Luis Confraria's profile photo
suzy shop's profile photo
Morrison Chang's profile photo
Adam Stroud (adstro)'s profile photo
David Lewis's profile photo
Carlos Digibits's profile photo
Sambi Reddy Badduri's profile photo

Stream

Join this community to post or comment
 
Fun things you can do with Android Things: use Bitmaps, Xfermode, Threads and Shaders to display a colorful text on an RGB LED matrix (8x8).

Sample project here if you are curious to see how it was implemented. https://github.com/Nilhcem/ledmatrixfun-androidthings
6
Add a comment...
 
Android Things and Android Open Accessories (ADK)

There was a question in a comment of a post by +Kevin Kreger about ADK and Android Things. What are the use cases when you would use ADK on an Android Thing device?

Users of the AT device would need to carry it around and connect and disconnect it to your accessory from time to time. Any product ideas for that?

If the AT device is connected all the time to the accessory it would probably make more sense to integrate the accessory into the AT device.



1
Dave Smith's profile photo
 
I think it's helpful to make a distinction in terms:

- The ADK was a rebranded Arduino device + USB shield used to showcase the Open Accessory protocol. It's probably not relevant to the discussion.
- Open Accessory (UsbAccessory API) was a workaround protocol used to allow Android phones without OTG or Host support to connect custom devices over USB. The peripheral is the host and fakes acting like a device until a bulk stream channel is open.
- Usb Host (UsbDevice API) allows apps to connect to any USB peripheral device and interact with it.

All the current AT hardware platforms have at least one full USB host port, so the most relevant API would be the host mode. Open Accessory and the ADK probably wouldn't have much to offer AT.
Add a comment...

Fuad Balashov

Discussion  - 
 
I am currently working with the Android Things platform and have run into some limitations with the different hardware platforms that are being offered.

1) The Rasberrry Pi lack audio in and the current lack of support for usb peripherals on Andorid Things like a USB sound card make it hard to get around that. [1]
2) The NXP Pico doesn't have graphics support from what I can tell.
3) The Edison is fairly expensive compared to the other options and also seems to lack graphics and audio in support as well.

I would like to stay clear of writing my own code to process audio or video, and ideally like to see these as "plug and play' functionality with at least one of the Android Things compatible boards.

Questions:
1) Am I missing something? Is one of the above not true and how can we get around it if so? (a post or descriptive article would be helpful).

2) We realize that Android Things is currently released as a preview version. My team and I are in a bit of a jam because we want to pick whether to continue with the things platform or go for vanilla linux. Can we expect USB support on the PI with the next release so we could use a usb sound card?

3) Any information on when the next release of Android Things will be available?

[1] https://plus.google.com/103603533496106836343/posts/18GsiPr61V7?sfc=false
2
Lee Campbell's profile photoFrederik Riedel's profile photo
8 comments
 
Yes, a something like a roadmap would be pretty useful for us. Can we expect regular developer preview releases? When is the final version expected to be released?
+Ben Underwood 
Add a comment...

Steven Luijt

Discussion  - 
 
Does anyone know if it is possible to allow nearby on an Android Things device without connecting a mouse?
1
Steve Fung's profile photoSteven Luijt's profile photo
2 comments
 
+Steve Fung To be sure I tried it again after your response, but it doesn't help. I think it is because nearby (messages) is no normal permission which you ask for in the manifest. But it is some special user consent: https://developers.google.com/nearby/messages/android/user-consent
Add a comment...

Kevin Kreger

Discussion  - 
 
Looking to eventually use Android Things on a raspberry pi clone that we currently have running Android 4.4.2 headless (Allwinner H2 SoC). What's the deal with board support beyond the current IoT boards? I simply cannot imagine that Google would not allow developers to create custom Android Things devices and just limit to the current selection. Anyone have an inkling?

Thanks!
1
Wayne Piekarski's profile photoKevin Kreger's profile photo
2 comments
 
Thanks Wayne...great news!
Add a comment...

Xavi Rigau

Resources  - 
 
I've just published my first Android Things blog post where I explain how to write a device peripheral for Android Things, hope you like it and feedback appreciated!

https://www.novoda.com/blog/writing-your-first-android-things-driver-p1/ #AndroidDev #AndroidThings
This post explains how to create a user driver for Android Things to control any peripheral and how to unit test the driver to verify its correctness.
14
1
Friedger Müffke's profile photoXavi Rigau's profile photo
4 comments
 
I see what you mean, yeah I guess it makes sense to use it for more complex things, but that will also limit their potential target, I guess we'll have to wait and see (and hopefully google doesn't discontinue it in 1 year time :P)
Add a comment...

Ciorceri Sorin

Discussion  - 
 
Hi.

Right now I'm trying to write a driver for HX711 ADC for Weight Scales which is using SPI to communicate and I've found some issues.

I'm using Intel Edison + Arduino Breakout Kit (https://www.sparkfun.com/products/13097) connected to my HX711 and a load-cell.
When I do a spi.read(buffer, 1) it should pulse the clock 8 times (corresponding with those 8bits I want to read), but in reality it happens something different.
I hook my Logic Analyzer and I get the following SPI Clock signal (see the upper half of 1st image):
- where is that red arrow is the actual clock (under the arrow is a zoom of those clock pulses) triggered by my spi.read()
- and before that clock I have some LONG clock pulses that are not part of my code.

Those 3 long pulses will break the SPI connection with HX711, which will be fooled and will enter sleep mode

I've tried the same code but this time using Raspberry PI 3 (see the 2nd image) and this issue doesn't reproduce anymore.

But using RPI3 I can see another possible issue at the clock signal. I'm trying to read 3 bytes (24 bits) and look at the clock, there is an break between every byte. In some cases this could affect the communication if the break is long enough.
2
1
Add a comment...

Holger Schmidt

Discussion  - 
 
I am trying to use the face detection from the Mobile Vision API (com.google.android.gms.vision) with Android Things on a Raspberry Pi3. (Play-Services 10.0.1)

I removed all the preview code from the sample project so that I won't have problems with multiple targets as mentioned in the AT release notes.

The CameraManager tells me that I have a camera with ID "0", but when I try to start the CameraSource with the face detector for the back facing camera (=0) it will always end up with a "Could not find requested camera" RuntimeException. (Same for front facing camera)

Has anybody tried the same yet? 
1
Lee Campbell's profile photo
 
We are going to fix this up in a future GMS release. The issue is that the Mobile Vision APIs only support 'Front' or 'Back' facing cameras (as they were designed for phones) but the Pi's camera is labelled an 'Externa'l camera as far as the platform is concerned.

We need to fix the vision API to allow you to access all the cams that could be on an IoT device.

We will track this one internally and update the release notes when it's fixed.

Thanks!
Add a comment...

David McKelvie

Discussion  - 
 
Hey Android Thing, what colour is this?

http://android.geek.nz/what-colour-is-that-android-thing/

In this experiment I will connect a colour sensor to Android Things. The Colour sensor is a TCS34725, a red, green, blue and clear light sensing light-to-digital converter. I'll connect the sensor to a Raspberry Pi 3 running Android Things preview image 1 and display the sensor readings on a Character ...
7
Add a comment...

Ben De La Haye

Discussion  - 
 
Hey folks,

Do any of the Google IoT devs here know why Wifi Direct (P2P) isn't working in Android Things on the RPI3?

I believe I get a P2P_UNSUPPORTED error when trying to discover peers (value of 1). If so is P2P intended to be supported in the future?
1
Kevin Kreger's profile photoBen De La Haye's profile photo
4 comments
 
+Kevin Kreger​ With the P2P? Nope, fails every time for me. The bug report is up though, so hopefully we'll get a fix in the next release
Add a comment...

Ben Underwood

Discussion  - 
 
Does anyone know if there are more drivers under development for https://github.com/androidthings/contrib-drivers ?
Thought it would be wise to ask before I wrote my own (I have TCS3472 and LSM303D sensors on a raspberry pi).
1
Friedger Müffke's profile photoDavid McKelvie's profile photo
3 comments
 
The LSM303D looks cool, I have one coming from aliexpress :)
Add a comment...

About this community

Learn more about working with Google's IoT platform, including Android Things and Weave. This community is monitored and supported by various teams at Google working on these platforms. Use this community to ask development questions, discuss tools and new techniques, share source code, and features and fixes you would like. We also maintain an tags on stackoverflow.com for specific coding questions, and look for bug reports with the samples on github.com. Please do not advertise your apps or services to this community unless you make the source code available under an open source license.

Amlan Dwivedy

Discussion  - 
 
Beijing-based group Baidu said the smart chopsticks were first created as a joke, but the company has now gone on to create several prototypes to commercialise in the future.
1
Add a comment...

Carl Whalley

Discussion  - 
 
I'm right to assume the two new Pi3 models announced today runs Android Things - right?

http://www.theregister.co.uk/2017/01/17/two_new_raspberry_pi_models_emerge_steaming_from_the_oven/
RPi 3 shrunk into normal and 'lite' Compute Modules for embedded applications
1
Dave Smith's profile photo
 
We will be evaluating these form factors for compatibility. Nothing to announce at this time.
Add a comment...

David McKelvie

Discussion  - 
 
 
Android Things is the new kid on the block. It is Google’s embedded platform designed specifically for use with low-powered, IoT (Internet of Things) devices. The Android Things dev preview is available for a few different IoT boards, such as the…
Android Things is the Internet of Things platform by Google. This post will cover basic electronics for use with Android Things.
1
Add a comment...

Aman Dalmia

Discussion  - 
 
Hi,
Which communication protocol and IoT platform would be better for mining areas?
3
Dave Smith's profile photoKevin Kreger's profile photo
4 comments
 
I've seen RS422 as well, but usually CAN.
Add a comment...

Amlan Dwivedy

Discussion  - 
 

I am facing some issues while building Apps in Android Things

1. I want to deploy builds to something like play store. And from each AndroidThings device(Raspberry Pi) client can install those apps.
2. I want to deploy custom builds to different IOT devices. How can I achieve that?
3. For installing every time I have to connect to that IP and install by ADB install '/home/amlan/Desktop/HelloWorld.apk'.
4. Entire filesystem is read-only. So while creating a file platform is throwing following exception. So there is no way I can download the apk locally and install.

W/System.err: java.io.IOException: Read-only file system
W/System.err: at java.io.UnixFileSystem.createFileExclusively0(Native Method)
W/System.err: at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:280)
W/System.err: at java.io.File.createNewFile(File.java:948)
W/System.err: at com.yml.androidthingsplaystore.utils.DownloadManager.doInBackground(DownloadManager.java:104)
W/System.err: at com.yml.androidthingsplaystore.utils.DownloadManager.doInBackground(DownloadManager.java:31)
W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:304)
W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
W/System.err: at java.lang.Thread.run(Thread.java:761)



1
Lee Campbell's profile photoHaris sulaiman's profile photo
4 comments
 
+Lee Campbell Thanks
Add a comment...

Joshua Benjamin

Discussion  - 
 
Any timeline on Intel Joule support?
1
Lee Campbell's profile photoJoshua Benjamin's profile photo
5 comments
 
Can't wait:) I love the Joule and have a few plans for it.
Add a comment...
 
Having difficulties flashing intel edison on windows 7 (+sparkfun base block).
Connection lost after 10 seconds. Any idea?
Many people with the same issue (https://communities.intel.com/message/440835#441582)
Is this a Windows "Platform Flash Tool Lite" bug??

01/14/17 22:12:22.639 INFO : [Port 1/1/2] Device lost on 1/1/2
01/14/17 22:12:33.160 INFO : [Port 1/1/2] New device detected on 1/1/2 (id=0100010000000002)
01/14/17 22:12:42.694 INFO : [Port 1/1/2] Device lost on 1/1/2
01/14/17 22:13:02.269 INFO : [Port 1/1/2] New device detected on 1/1/2 (id=0100010000000002)
01/14/17 22:13:11.623 INFO : [Port 1/1/2] Device lost on 1/1/2
1
Andrei Craciun's profile photoDave Smith's profile photo
8 comments
 
+Mariano Rodriguez Hard to say, but it seems to correlate more to the base board. The Arduino kit has an FW button that helps force the Edison into the right mode, which the Sparkfun doesn't have.
Add a comment...

Jeff Thompson

Discussion  - 
 
Will Android Things SDK always have BSPs owned by Google? I have a client right now that needs Things SDK to run on hardware we putting together that doesn't look at like the devkits currently supported.
1
Colton Donnelly's profile photoFriedger Müffke's profile photo
4 comments
 
Android Thing is not production ready.
Add a comment...

Steven Luijt

Discussion  - 
 
Does anyone know if it is possible to use the Nearby API on Android Things without connecting a mouse to the raspberry pi and clicking the allow button?
1
Add a comment...