ioio and Android Studio...Jar files please

505 views
Skip to first unread message

michaela...@hotmail.com

unread,
Mar 3, 2015, 12:19:14 AM3/3/15
to ioio-...@googlegroups.com
Hi I've just got a new IOIO OTG and want to use Android Studio for development.
I watched this you tube video (http://www.youtube.com/watch?v=JMsDVzj9P3A) on how to get it working..
Foriegn language.. but I can follow it.
He basically creates dependencies to 3 .jar library files.
IOIOLib.jar
IOIOLibBT.jar
IOIOLibaccessory.jar
Can anybody get me a copy of these files please?
or is there another way to get Android Studio to work with the IOIO OTG?

I've only found IOIO.jar online and I think that's for Progress.
Thanks..

Ytai Ben-Tsvi

unread,
Mar 4, 2015, 12:36:53 AM3/4/15
to ioio-...@googlegroups.com
I definitely have plans for adding proper support for Android Studio, now that it is the recommended development environment.
Until I do, if you're not super confident in Java / Android development, you're asking for trouble by not using Eclipse. If you insist you can try generating the JARs yourself by exporting from Eclipse using the existing projects. 

--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+...@googlegroups.com.
To post to this group, send email to ioio-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

michaela...@hotmail.com

unread,
Mar 4, 2015, 1:51:52 AM3/4/15
to ioio-...@googlegroups.com
I've never touched Eclipse but have been playing around in AS for a few months... Didn't really want to set that all up esp. when AS is the future.
I'm sure a "proper" setup of AS for the IOIO will be great and look forward to it.
Just thought someone would have the .jar files already made that they could share for now.

2nd issue I'm having. The new IOIO I have plays "HelloIOIOswing" properly via the PC Laptop .... but HelloIOIO doesn't work via android app ....Infact any other basic or "hardware tester" IOIO app from Play Store won't work either. So I'm assuming the usb and bluetooth connection is failing or the IOIO is dodgy and won't work as Host? (bluetooth appears to pair ok, although it seems slow to pair). I've updated the firmware to v5 but this hasn't fixed it..... Any other hints?
I'm using a Motorola Moto X which I think can work with the IOIO (receiving in device mode?) ...So if I got a micro USB to microUSB cable.... I could still get this IOIO board to work???  or am I way off here?

Thanks in advance.


Ytai Ben-Tsvi

unread,
Mar 4, 2015, 2:01:10 AM3/4/15
to ioio-...@googlegroups.com
On Tue, Mar 3, 2015 at 10:51 PM, <michaela...@hotmail.com> wrote:
I've never touched Eclipse but have been playing around in AS for a few months... Didn't really want to set that all up esp. when AS is the future.
I'm sure a "proper" setup of AS for the IOIO will be great and look forward to it.
Just thought someone would have the .jar files already made that they could share for now.

Stay tuned. I'll update the list once this is done.
 

2nd issue I'm having. The new IOIO I have plays "HelloIOIOswing" properly via the PC Laptop .... but HelloIOIO doesn't work via android app ...

Are you using the precompiled version?
The most common mistake people initially make is leaving USB debugging on when using the IOIO as host. On Android >= 4.2.2 this doesn't work, and you'd have to turn it off.
Otherwise, please note whether:
  1. You're getting a charging indicator on the Android. If not, you probably have some kind of a power-related problem.
  2. You're getting the accessory dialog pop-up on the Android as soon as connecting.
 
.Infact any other basic or "hardware tester" IOIO app from Play Store won't work either.

This app is not mine and has apparently not been updated in a long time, and does not include support for all connection modes.
 
So I'm assuming the usb and bluetooth connection is failing or the IOIO is dodgy and won't work as Host? (bluetooth appears to pair ok, although it seems slow to pair). I've updated the firmware to v5 but this hasn't fixed it..... Any other hints?
I'm using a Motorola Moto X which I think can work with the IOIO (receiving in device mode?) ...So if I got a micro USB to microUSB cable.... I could still get this IOIO board to work???  or am I way off here?

Moto X is what I'm normally using. It works in both accessory mode (IOIO is host) and USB device mode (IOIO is device). The selection of mode depends on which way you plug the cable in. Although the cable may appear symmetrical, there's an "A" side (host) and a "B" side (device).

In practice, the main difference is whether you want the IOIO to charge the Android (accessory mode) or the Android to power the IOIO (device mode) or nobody powering nobody (device mode with the IOIO externally powered).
 

Thanks in advance.


Tyler Trombetta

unread,
Mar 4, 2015, 2:23:01 AM3/4/15
to ioio-...@googlegroups.com
Here you go. These are all compiled of off App-IOIO0504.zip from the IOIO wiki download page. https://github.com/ytai/ioio/wiki/Downloads

I use those for my Android Studio IOIO projects and they build just fine. Just put them in your <ProjectFolder>/app/libs and the default gradle build will put them in for you. I will admit that it's a pain in the but to go back and relearn a new IDE, but since Android seems to be going full Android Studio, I guess there's not much of a choice. It didn't take too long to figure (most of) it out though. 
ioiolibaccessory.jar
ioiolibandroid.jar
ioiolibandroiddevice.jar
ioiolibbt.jar

michaela...@hotmail.com

unread,
Mar 4, 2015, 2:31:45 AM3/4/15
to ioio-...@googlegroups.com
Thankyou so much!... I think your responses have given me everything I need....

michaela...@hotmail.com

unread,
Mar 4, 2015, 6:36:21 AM3/4/15
to ioio-...@googlegroups.com
Ytai results are:
Just turned off USB debugging.... but precompiled example apps are still not working. 
  • You're getting a charging indicator on the Android. = YES
  • You're getting the accessory dialog pop-up on the Android as soon as connecting. = YES.... says:"connected to a usb accessory" .... this good/bad?

 Bluetooth pairing takes about 2-3 min to complete and a couple of times it reported as failed due to the pin (4545) being incorrect! ... Normal or not?

After pairing I tried an app from Play Store "IOIO Bluetooth Control Device" it reports IOIO Status: " IOIO Bluetooth Not Connect"

Any other ideas? 

Is it worth trying the Oscillator Calibration?

Also I noticed if swap usb cable direction around it won't power the IOIO. Is that what you meant by  ""A" side (host) and a "B" side (device)"?
.... I'm just using the cable that came with the IOIO joined to my phones USB cable.

Thanks again.

Ytai Ben-Tsvi

unread,
Mar 4, 2015, 12:12:15 PM3/4/15
to ioio-...@googlegroups.com
Inline

On Wed, Mar 4, 2015 at 3:36 AM, <michaela...@hotmail.com> wrote:
Ytai results are:
Just turned off USB debugging.... but precompiled example apps are still not working. 
  • You're getting a charging indicator on the Android. = YES
  • You're getting the accessory dialog pop-up on the Android as soon as connecting. = YES.... says:"connected to a usb accessory" .... this good/bad?

 Bluetooth pairing takes about 2-3 min to complete and a couple of times it reported as failed due to the pin (4545) being incorrect! ... Normal or not?

Definitely not. Things to check:
  1. Adequate power supply to the IOIO.
  2. Charge current limiter (little screw on the IOIO) fully clockwise.
  3. Different dongle.
 

After pairing I tried an app from Play Store "IOIO Bluetooth Control Device" it reports IOIO Status: " IOIO Bluetooth Not Connect"

Forget those apps from the Play store. I don't know who wrote them and how. Use HelloIOIO.apk from the latest software bundle.
 

Any other ideas? 

Is it worth trying the Oscillator Calibration?

This can never do any harm, so you might as well.
 

Also I noticed if swap usb cable direction around it won't power the IOIO. Is that what you meant by  ""A" side (host) and a "B" side (device)"?
.... I'm just using the cable that came with the IOIO joined to my phones USB cable.

The red cable that comes with the IOIO has a micro-A plug, which AFAIK does not fit the Moto X (2013) plug. Can you send a picture of how you connected it?
 

Thanks again.

michaela...@hotmail.com

unread,
Mar 5, 2015, 5:37:13 PM3/5/15
to ioio-...@googlegroups.com
1. Ok further testing of BT dongle looks like it has issues....so ordered a new one.
2. The IOIO is from Geeetech (China) and the cable is black not red and it looks like (not 100% sure) it has the B-Type connection but the Geeetech lists it as being "USB Female-A to Micro-A Cable" , hopefully at least it is wired as A-Type. Any known issues with this companies board or cable?
3.The Moto X (mine is 2013)...... It looks like a B receptical socket, but I'm not 100% sure.......wouldn't it have to have the A/B receptical socket, so it could act as host or device? Anyway when the cable is plugged into the IOIO the standard way (IOIO Host ...android Device) it doesn't power the IOIO....it needs to be turned around to do that. 

Maybe I'll have to buy an IOIO with the red cable...to solve my issues.
Will wait till I get the new BT dongle...and report back.
Thanks Again.

Ytai Ben-Tsvi

unread,
Mar 5, 2015, 5:42:17 PM3/5/15
to ioio-...@googlegroups.com

Is there host mode switch on your IOIO in the A position?
In general, beware of cheap knockoffs. I've seen some that were manufactured with terrible quality. The SeeedStudio version is about the same cost with guaranteed excellent quality. They're also kind enough to share their revenue with the developer (me)...

Ytai Ben-Tsvi

unread,
Mar 5, 2015, 5:44:47 PM3/5/15
to ioio-...@googlegroups.com

Also, in theory micro AB is what dial role device should be using according to the standard. In practice, however, many devices use a micro B, electrically used as micro AB. Those would then require a non standard micro-B host plug to be configured as host.

michaela...@hotmail.com

unread,
Mar 7, 2015, 7:40:29 PM3/7/15
to ioio-...@googlegroups.com
OK...new Bluetooth dongle works plugged into the micro to Female USB that came with the IOIO... so connects and works fine.
 So USB cable no working...... I've tried 3 (plugged into the Black micro to Female USB that came with the IOIO ), they all charge the phone but none connect to allow the helloIOIO app to work .....BUT  then I tested this app "IOIO Server Explorer"(from Playstore). This app has 4 options to connect to my Android phone. When choosing to connect via Open Accessory ....It works!.
FYI : The app says my phone supports these connection types: ADB, OPEN_ACC, DEVICE, BT.
So maybe I need the RED micro to Female USB?.....BUT why would OPEN_ACC work on the black cable I have.?
Anyway I guess I'll read up on writing programs that connect via open accessory.

Thanks Again.


Ytai Ben-Tsvi

unread,
Mar 7, 2015, 11:02:16 PM3/7/15
to ioio-...@googlegroups.com
I don't know that app that you're talking about, but what it sounds like to me is that you either:
  1. Tried to build HelloIOIO yourself and have done so incorrectly. In that case, try the precompiled HelloIOIO.apk from the software release bundle.
    OR:
  2. Use the precompiled HelloIOIO.apk from the wrong software package. Try downloading the latest bundle (v5.04). When you run it, it might tell you that your firmware needs updating. If so, do it.
    OR:
  3. You forgot to disable ADB when testing with HelloIOIO.

michaela...@hotmail.com

unread,
Mar 10, 2015, 3:25:32 AM3/10/15
to ioio-...@googlegroups.com
Correct.... It wasn't the latest package.
Thanks for all your help. 
Reply all
Reply to author
Forward
0 new messages