Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running HelloIOIOService in Open Accessory mode #69

Open
peakon28 opened this issue Oct 20, 2013 · 1 comment
Open

Running HelloIOIOService in Open Accessory mode #69

peakon28 opened this issue Oct 20, 2013 · 1 comment

Comments

@peakon28
Copy link

I have a problem running HelloIOIOService in accessory mode. If I start HelloIOIOService i get a message about using as USB accessory device. I tick the box and apply yes and get connection working OK.

If I unplug the usb cable to IOIO and plug it back I get the message that no accessory devices found and no connection achieved. If I stop the service and restart it again the connection is working as if I have done it for the first time.

I use IOIO V1 Bootloader 3.04 Firmware 3.26. The phone Galaxy Nexus - Android 4.2.2. I have USB debugging switched off when connecting in accessory mode. Also connection via Bluetooth work OK when USB debugging is enabled.

If I use IOIOSimle App in accessory mode it works fine with connecting and disconnecting usb cable.

I guess the problem with HelloIOIOService may be related to the Manifest configuration?

@ytai
Copy link
Owner

ytai commented Oct 22, 2013

I'm suspecting that a service cannot actually register for attach events in the manifast. Might be possible to do at runtime. The following line is commented out, and I don't remember why:
https://github.com/ytai/ioio/blob/master/software/IOIOLibAccessory/src/ioio/lib/android/accessory/AccessoryConnectionBootstrap.java#L146
You can see if uncommenting it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants