Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

Help, How I can enable USB Accessory Mode


  • Please log in to reply
3 replies to this topic

#1 SocceR-5

SocceR-5
  • Members
  • 79 posts
  • LocationGlobal
  • Country:us
  • Device Model:Many
  • MOD Version:Many
  • Recovery Image:ClockworkMod

Posted 08 March 2012 - 09:49 PM

Hey, did you ever find a solution for this problem?

Because I'm having the exact same trouble, I pushed the usb library and the permission file, but the demokit cant find the lib.

#2 tolik777

tolik777
  • Members
  • 1 posts
  • Country:ru
  • Device Model:Ainol Aurora
  • MOD Version:9
  • Recovery Image:Cyanogen

Posted 27 June 2012 - 12:40 PM

Seeeduino ADK Main Board is not connecting with my Android device! Ainol Aurora Android 4.0.4 with CyanogenMod 9 (files com_android_future_usb_accessory_jar and android_hardware_usb_accessory_xml is present) In logcat I see: mAccessory is null
When I connect my Arduino board with Android Tablet in Port Monitor (Arduino IDE) i see:

Quote

Device addressed... Requesting device descriptor. found possible device. swithcing to serial mode device supports protocol 1 or higher

But in Android Tablet DemoKit application I see text:

Quote

Please connect a DemoKit board
But nothing happens when I plug it in.

I try use Google API 12 and 15 version, but this take no effect. Error: mAccessory is null

Edited by tolik777, 27 June 2012 - 12:42 PM.


#3 jelomer

jelomer
  • Members
  • 5 posts
  • Country:ie
  • Device Model:Samsung Galaxy S i9000
  • MOD Version:CM-7.2
  • Recovery Image:ClockworkMod

Posted 30 June 2012 - 07:08 PM

mAccessory is null has to do with the Java code of the DemoKit app. I'm sure you've done a mistake modifying the original code to run in Android 3.1 or newer. Won have you written this

UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);
instead of this:

mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE);
?