Closed techboycr closed 3 years ago
For the preparation of the issue with a running example I can only write: well done !
Unfortunately my board is broken, so I at least can't jump into this issue right now
Maybe @topherbuckley can help you and make a short smoketest.
Anyway, if you find the reason, please share your solution
@techboycr I downloaded your app.zip and ran it on one of my Pixel 3as without issue. I can connect to the IOIO board and turn the LED on/off with the GUI button.
The most common cause for not connecting is forgetting to turn off USD-Debugging after compiling+pushing to the phone. Can you verify you have turned it off?
Other than that, there are a bunch of reasons I could think of, but can you send a photo or diagram of how you wire everything up? I.e. are you powering the IOIO board externally, or expecting it to draw power from the phone (Host/Slave). Also please be specific about what kind of cables you are using between the IOIO board and phone. Are you making use of the orange usb adapter that comes with them (at least through Sparkfun) or using some other kind of micro-usb to micro-usb cable? Please clarify which micro-usb plug is on each end, etc. (Reference Here) .
For reference, in the test I ran, I had the orange usb-micro A plug attached to the IOIO board, and a standard USB-Type A to USB-C cable attached between the orange cable and my phone's USB C jack. The IOIO board was externally powered through the JST jack and the IOIO board was in A (Automatic) rather than H (Host) mode.
See the LED ON and my wiring below:
Took another photo to show the IOIO firmware/hardware versions in the TOAST popup in case that also may be a cause.
Guys I am so embarrassed. The first device I was programming over "ADB TCP" but at some point change the device and totally forgot about the usb debugging.
I am so sorry that I wasted your time.
Good thing is, I can report that works with: Samsung A10 -->Android 10 Xiaomi Red Mi --> Android 9
Thanks you so much for your help!
Thanks for keeping this project alive!
I am trying without success to connect to IOIO-OTG board, the app compiles and installs correctly but there is no connection to the board. Is the same either in Host or A mode. The borad does charge the phone.
My setup is as follows:
This Samsung A10 seems to have support for Open Accessory:
abrahampinedazelaya$ adb shell ls /system/etc/permissions | grep "usb" com.android.future.usb.accessory.xml
And I know as a fact that has OTG support because I used that with arduino.
Thank you in advance for any help!
This is my build.graddle (Project):
This is the build.gradlle (Module):
And the manifest:
Here the complete app file if further inspection is needed: app.zip