<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Android Open Accessory Development Kit</title>
		<link>http://forums.leaflabs.com/topic.php?id=764</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:20:28 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=764" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "Android Open Accessory Development Kit"</title>
			<link>http://forums.leaflabs.com/topic.php?id=764#post-4585</link>
			<pubDate>Fri, 13 May 2011 01:56:34 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">4585@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Dean Camera (creator of LUFA) posted:&#60;br /&#62;
&#60;a href=&#34;http://groups.google.com/group/lufa-support/browse_thread/thread/6276262ccfa59c6a?hl=en&#34; rel=&#34;nofollow&#34;&#62;http://groups.google.com/group/lufa-support/browse_thread/thread/6276262ccfa59c6a?hl=en&#60;/a&#62;&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;It's very rough, but if anyone with an Android phone could try this&#60;br /&#62;
out:&#60;br /&#62;
&#60;a href=&#34;https://code.google.com/p/lufa-lib/source/browse/trunk#trunk%2FDemos%..&#34; rel=&#34;nofollow&#34;&#62;https://code.google.com/p/lufa-lib/source/browse/trunk#trunk%2FDemos%..&#60;/a&#62;.&#60;br /&#62;
It should connect to the device, correctly switch it into accessory&#60;br /&#62;
mode, then stream out bytes sent to the LEDs on the board. If this&#60;br /&#62;
works at all, I'll make a proper class driver for it, and add in all&#60;br /&#62;
the missing features. &#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Maybe it is time to talk to Dean and figure out how to port LUFA to Maple, and get all those useful USB devices?&#60;br /&#62;
He did write a while ago (to me) about making changes to LUFA which would make it easier to port to other MCU's (than ATmega), but I don't know if he has done that.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Android Open Accessory Development Kit"</title>
			<link>http://forums.leaflabs.com/topic.php?id=764#post-4581</link>
			<pubDate>Thu, 12 May 2011 17:13:49 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">4581@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;poslathian - There are two ways to communicate with an Android device, and both Android as USB host, and Android as USB device exist:&#60;br /&#62;
&#60;a href=&#34;http://developer.android.com/guide/topics/usb/index.html&#34; rel=&#34;nofollow&#34;&#62;http://developer.android.com/guide/topics/usb/index.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;If using an Android 3.1 devices with USB host controller is okay, then&#60;br /&#62;
&#60;a href=&#34;http://developer.android.com/guide/topics/usb/host.html&#34; rel=&#34;nofollow&#34;&#62;http://developer.android.com/guide/topics/usb/host.html&#60;/a&#62;&#60;br /&#62;
looks pretty straightforward.&#60;br /&#62;
It looks possible to just 'chat' to an endpoint on a USB device. In theory, an Android 3.1 device with USB host controller would 'just work' (TM) with Maple.&#60;/p&#62;
&#60;p&#62;If you want some gizmo which will support more Android devices (i.e. earlier than Android 3.1, or devices without USB host controllers), then that gizmo must be a USB host.&#60;br /&#62;
In this case, the Android device looks like a USB device and the gizmo is a &#34;USB Accessory&#34;:&#60;br /&#62;
&#60;a href=&#34;http://developer.android.com/guide/topics/usb/accessory.html&#34; rel=&#34;nofollow&#34;&#62;http://developer.android.com/guide/topics/usb/accessory.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;As x893 says, this can't be too hard because the the device that google has demo'd appears to be a merge of an Arduino and a Circuits@Home USB host shield:&#60;br /&#62;
&#60;a href=&#34;http://developer.android.com/guide/topics/usb/adk.html&#34; rel=&#34;nofollow&#34;&#62;http://developer.android.com/guide/topics/usb/adk.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;All of the code and CAD are available in the &#34;ADK package download&#34;&#60;/p&#62;
&#60;p&#62;The quickest way to get something working as a USB host might be to get a Circuits@Home USB host shield and port the code.&#60;/p&#62;
&#60;p&#62;I googled around, and there are several existing Android devices which have had the USB controller hardware for more than a year (HTC Hero and Motorola Droid):&#60;br /&#62;
&#60;a href=&#34;http://adq.livejournal.com/95689.html&#34; rel=&#34;nofollow&#34;&#62;http://adq.livejournal.com/95689.html&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.tombom.co.uk/blog/?p=124&#34; rel=&#34;nofollow&#34;&#62;http://www.tombom.co.uk/blog/?p=124&#60;/a&#62;&#60;br /&#62;
Some of the chipsets that are used by the smartphone makers have USB host controllers built in. So the restriction to Android devices which run Android 3.1 and have USB host controllers might not be as big a constraint as one might imagine.&#60;/p&#62;
&#60;p&#62;I think I'd prefer to start at Android 3.1, and try talking directly to a Maple first as that should be software only, but I have very little time for the next few weeks :-(&#60;br /&#62;
Oh, and I haven't got an Android 3.1 device (yet :-)&#60;/p&#62;
&#60;p&#62;This is very close to my core interest, so I will try to do something. This would solve a bunch of issues for my interests.&#60;/p&#62;
&#60;p&#62;Edit: Here is an article about the changes in Android 3.1 which should show up on a Motorola Xoom:&#60;br /&#62;
&#60;a href=&#34;http://www.fonehome.co.uk/2011/05/12/android-3-1-update-detailed/&#34; rel=&#34;nofollow&#34;&#62;http://www.fonehome.co.uk/2011/05/12/android-3-1-update-detailed/&#60;/a&#62;&#60;br /&#62;
It specifically says that it will act as a USB host, and devices will show up in the same way as they do on a PC. The demo is a &#34;wired Xbox 360 pad&#34;.&#60;/p&#62;
&#60;p&#62;I'll give it a couple of weeks for folks to get their hands on this stuff, and if it seems okay, maybe I'll need a Xoom?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "Android Open Accessory Development Kit"</title>
			<link>http://forums.leaflabs.com/topic.php?id=764#post-4580</link>
			<pubDate>Thu, 12 May 2011 16:34:53 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">4580@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Does anyone here know what it would take to build an ADB interface on Maple to android. I gather this requires USB host as x893 mentioned, but if you know more about it please describe.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>x893 on "Android Open Accessory Development Kit"</title>
			<link>http://forums.leaflabs.com/topic.php?id=764#post-4568</link>
			<pubDate>Wed, 11 May 2011 18:15:51 +0000</pubDate>
			<dc:creator>x893</dc:creator>
			<guid isPermaLink="false">4568@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;You can see and download files from here (also support STM32F2XX)&#60;br /&#62;
&#60;a href=&#34;http://akb77.com/g/stm32/stm32-arduino/&#34; rel=&#34;nofollow&#34;&#62;http://akb77.com/g/stm32/stm32-arduino/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Android Open Accessory Development Kit"</title>
			<link>http://forums.leaflabs.com/topic.php?id=764#post-4557</link>
			<pubDate>Wed, 11 May 2011 14:34:35 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">4557@http://forums.leaflabs.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;I modify maple board for STM32F105 and use it in device and host mode.&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Are you sharing the schematic and code? If you are, would you please post a link?&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Also you can use Android 3.1 device with builtin USB support and standard Maple.&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Would you point me at the place that explains this? I had assumed that to be the case, but I've failed to find it.&#60;br /&#62;
Edit: found it:&#60;br /&#62;
&#60;a href=&#34;http://developer.android.com/guide/topics/usb/host.html&#34; rel=&#34;nofollow&#34;&#62;http://developer.android.com/guide/topics/usb/host.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The link &#60;a href=&#34;http://developer.android.com/guide/topics/usb/adk.html&#34; rel=&#34;nofollow&#34;&#62;http://developer.android.com/guide/topics/usb/adk.html&#60;/a&#62; seems very clear that the &#34;Android powered-device&#34; becomes the USB device, and the &#34;Android USB accessory&#34; is the USB host.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>x893 on "Android Open Accessory Development Kit"</title>
			<link>http://forums.leaflabs.com/topic.php?id=764#post-4556</link>
			<pubDate>Wed, 11 May 2011 14:28:37 +0000</pubDate>
			<dc:creator>x893</dc:creator>
			<guid isPermaLink="false">4556@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Also you can use Android 3.1 device with builtin USB support and standard Maple.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>x893 on "Android Open Accessory Development Kit"</title>
			<link>http://forums.leaflabs.com/topic.php?id=764#post-4555</link>
			<pubDate>Wed, 11 May 2011 12:37:50 +0000</pubDate>
			<dc:creator>x893</dc:creator>
			<guid isPermaLink="false">4555@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I modify maple board for STM32F105 and use it in device and host mode. Now i use it with flash, wi-fi and bluetooth adapters. But i havn't android device so can't check communication. Also you can add USB shild (based on MAX3421 chip) to standard Maple and port arduino code to it (not a hard).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Android Open Accessory Development Kit"</title>
			<link>http://forums.leaflabs.com/topic.php?id=764#post-4554</link>
			<pubDate>Wed, 11 May 2011 12:08:01 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">4554@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Folks may have seen the new support in Android for USB-attached gizmo's &#60;a href=&#34;http://developer.android.com/guide/topics/usb/adk.html&#34; rel=&#34;nofollow&#34;&#62;http://developer.android.com/guide/topics/usb/adk.html&#60;/a&#62;&#60;br /&#62;
and the Arduino-based hardware &#60;a href=&#34;http://arduino.cc/blog/2011/05/10/google-launches-android-open-accessory-development-kit-based-on-arduino/&#34; rel=&#34;nofollow&#34;&#62;http://arduino.cc/blog/2011/05/10/google-launches-android-open-accessory-development-kit-based-on-arduino/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This appears in Android 3.1, but they say it is back-ported to Android 2.3.4&#60;/p&#62;
&#60;p&#62;The key is&#60;br /&#62;
&#60;em&#62; ... When an Android-powered powered device is in accessory mode, the connected accessory acts as the USB host ...&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;It looks like an STM32F105-based board would be great for this.&#60;br /&#62;
Has anyone tried to develop a USB host using an STM32F105?&#60;br /&#62;
Is there a design folks would start from?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
