-
Notifications
You must be signed in to change notification settings - Fork 355
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
IOIO should work with Nexus 5 over OpenAccessory but doesn't #76
Comments
Have you tried v5? I've made some changes that might help. |
Yes, I've tried the new v5 release with no luck - seems to exhibit the same problem as with v4 |
Let me know if you'd like to see a log of HelloIOIO running with v5 firmware |
Yes please. We're talking about HelloIOIO from the v5 software bundle, On Thu, Jan 16, 2014 at 9:31 AM, MassHabit Games
|
Correct, i'll do this today and get back to you |
Here's the log showing what happens when I connect the phone to the IOIO (with usb debugging disabled):
|
Not enough data here unfortunately. Do you feel competent to add some On Fri, Jan 17, 2014 at 3:09 PM, ericroy notifications@github.com wrote:
|
You bet, i'll do that and post another log |
Here's another log with more verbose logging. If you need to see exactly where i've put the logging statements, you can look at my fork: https://github.com/ericroy/ioio As far as I can tell, the
|
Thanks, great work! On Sat, Jan 18, 2014 at 1:34 PM, ericroy notifications@github.com wrote:
|
Good point, I've included another log with timing info, and also with a log statement showing when the app is stopped (as a result of me hitting the back button to kill it). It would seem that a byte is written to the IOIO and then we just block, waiting for a byte in return. About 17 seconds later, I hit the back button to exit the app, which causes the exception to be thrown.
|
Last time I tried Nexus5 as host, I wasn't doing it right, so i'll get a cable for that and see if that will work for me. |
Can't figure out from the logs what's wrong. Seems like the data being sent On Sun, Jan 19, 2014 at 10:05 PM, ericroy notifications@github.com wrote:
|
Just got my hands on a Nexus 5 and eventually got to this: It's a known bug apparently. Couldn't yet figure out if there's a On Mon, Jan 20, 2014 at 12:38 PM, Ytai Ben-Tsvi ytaibt@gmail.com wrote:
|
Fixed in v5.03 |
Ytai, I have been trying very hard to get it to work on the Nexus 5 on any of my IOIO-OTG. I have installed App-IOIO0500.ioioapp. And I am using 5.04 firmware. Nexus 5 doesn't work in anyway with it. Tried it with my own app and on HelloIOIO. Accessory mode, Usb debugging off, OA mode doesn't give me anything, doesn't even open the app or show that an accessory is connected. Host mode, nothing happens at all. My Nexus 7 (new) is doing fine on OA mode, not on host mode. |
Just for the record, after ytai's fix, I was able to get it to work just fine with my Nexus5 |
How so exactly? On H or A mode? USB debugging on or off? Which version of libraries? Update: I have just debugged.
And never saw that log coming. Tried it in A and H modes, USB debugging mode on and off. Tried it on multiple IOIO-OTGs. It charges however. |
You should general always work in "A" mode. USB debugging needs to be off. On Fri, Sep 19, 2014 at 4:05 PM, zaiddabaeen notifications@github.com
|
All of that is done. Tried HelloIOIO, still didn't work. Tried 5.03 and 5.04, same result. It is an IOIO firmware issue as the Nexus 5 cannot detect that this USB device is attached, right? I am powering through the 5V input. |
Given that you're bypassing the on-board regulator: are you sure that you On Fri, Sep 19, 2014 at 4:56 PM, zaiddabaeen notifications@github.com
|
Hi ytai I'm having the same problem with AOA/USB on Nexus 7 (2013, Android 5.1). The IOIO-OTG is flashed with the latest 0504 firmware and the HelloIOIO is installed on the Nexus 7. Debug is off, but there is no dialog shown when I connect the USB. On my HTC One M7 (Android 5.0.2) both AOA/USB and bluetooth works fine. Any wise words about my problem? Kind regards, Ole |
Someone just reported that switching to MTP mode on the USB settings menu On Tue, May 12, 2015 at 6:50 AM, tetzschner notifications@github.com
|
Hey tetzschner, in my experience, Nexus 5 and Nexus 7 devices (which I both own and have tested on) cannot operate under Accessory mode, they must be the host. You can do this by setting the switch to A, and connecting the Micro-A side of the USB cable to your phone, leaving the Micro-B side to the IOIO-OTG board. However, Micro-A cannot be plugged into a Nexus device, so you will have to use a USB-OTG adapter with a Micro-B side to make it the host. The downside is that you will be using power from your phone. The magic is all in the USB. I always operate it under MTP and USB Developer mode on. Have not tested otherwise. |
Thanks for the input, but I must point out that I've seen the IOIO working in OpenAccessory mode, the IOIO being the host on both the Nexus 5 and 7. You have to disable USB debugging for that to work (as is the case in general for Android >= 4.2.2). |
That was me :) Thanks
|
On my Nexus 9 - with USB debug off and MTP on - I get the messages:
and then get the error:
Never reaching the "Waiting for handshake" that I get on other successful devices |
Are you sure you have your USB-OTG cable connector sides right? Try flipping them. Read this: #76 (comment) |
@zaiddabaeen as you noted, the connector cable cannot be flipped, since the Nexus does not accept micro-A (host) connector end of the cable. |
It will not work otherwise. You need a USB-OTG cable and the host side connected to your Nexus 5. |
I have a Nexus 5 and I'm available to help out with diagnostics/troubleshooting
The text was updated successfully, but these errors were encountered: