B4A Library IOIO board library

kolbe

Active Member
Licensed User
Longtime User
Hi guys,

Am I right in assuming that a b4j app can communicate and control an ioio board through Bluetooth!?

If so, what are the steps/libs needed to make it work?

I tried this some time back but BT in b4j is not the same as the one in b4a so never got it to work. I could try revisiting this now that b4j has evolved further.
 

kolbe

Active Member
Licensed User
Longtime User

I can look into this, I do some version checks maybe some are wrong. Several things have to come together for Accesory to work. Nexus devices seem to work best.
 

kolbe

Active Member
Licensed User
Longtime User
After upgrading the IOIO board to firmware 506 it seems to connect to all my android devices (4.0 , 4.4.2 , 5.1 and 6 ) without troubles ...
506 is a CANDIDATE release ... hope not to find other surprises now.

Didn't follow the thread to the end. Good to hear it worked. Sounds like it was firmware related.
 

kolbe

Active Member
Licensed User
Longtime User
Looks like its about time to update the library. Ytai's library has had some changes but nothing major and no functionality changes just minor things. Kinda busy with other things but it's on the list for this month. All my projects continue to work fine all the way up to Android 6.0.1. After the update I'll see about looking into b4j.
 

kolbe

Active Member
Licensed User
Longtime User
I just uploaded version 2.07 of the IOIO library. It includes the latest commits from Ytai plus a few bug fixes and doc corrections.

For this version your IOIO should be running version 5.06 of the application firmware.

The IOIO has become a solid platform. It offers a unique functionality still today and does what it was designed to do well. Although there isn't a lot of activity it is still being supported by Ytai and I intend to here at B4A as well.
 
Last edited:

Cableguy

Expert
Licensed User
Longtime User
with the newcomer B4R, inter-action between IO-IO and Arduino ( hardware based ) should make them a very powerful combo!!!
 

ecastelli201

Member
Licensed User
Longtime User
 

dnaci

Member
Licensed User
Longtime User
Hello. The error I get is below. What could be the solution. Ican use IOIOB4ADemo.zip files.

B4A version: 6.50
Parsing code. (0.00s)
Compiling code. (0.04s)
Compiling layouts code. (0.02s)
Organizing libraries. (0.01s)
Generating R file. (0.11s)
Compiling debugger engine code. (1.59s)
Compiling generated Java code. (1.79s)
Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/agraham/ioio/B4AIOIO$B4AAnalogueInputWrapper;
at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
at com.android.dx.dex.file.DexFile.add(DexFile.java:161)
at com.android.dx.command.dexer.Main.processClass(Main.java:615)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:570)
at com.android.dx.command.dexer.Main.access$2(Main.java:546)
at com.android.dx.command.dexer.Main$2.processFileBytes(Main.java:514)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:537)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:449)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:236)
at com.android.dx.command.dexer.Main.run(Main.java:206)
at com.android.dx.command.dexer.Main.main(Main.java:179)
at com.android.dx.command.Main.main(Main.java:103)
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lioio/lib/api/TwiMaster$Rate;
at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
at com.android.dx.dex.file.DexFile.add(DexFile.java:161)
at com.android.dx.command.dexer.Main.processClass(Main.java:615)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:570)
at com.android.dx.command.dexer.Main.access$2(Main.java:546)
at com.android.dx.command.dexer.Main$2.processFileBytes(Main.java:514)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:537)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:449)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:236)
at com.android.dx.command.dexer.Main.run(Main.java:206)
at com.android.dx.command.dexer.Main.main(Main.java:179)
at com.android.dx.command.Main.main(Main.java:103)
2 errors; aborting
 

Cableguy

Expert
Licensed User
Longtime User
you seem to have 2 ioio lib versions added to your project(?)
the errors are "simply" complaining of already added entries by the lib... so either you still have an older version referenced or existing in the project folder, of there seems to be an inner error on the lib
 

dnaci

Member
Licensed User
Longtime User
Thanks Cableguy. When ioio bt (v1.50) and ioiolibbt(v.3.20) library files are removed from the project, normal compilation is done. I need use bluetooth connection. But what version of bluetootht should I try?
 

sorex

Expert
Licensed User
Longtime User
Did anyone ever succeed to read out a S18D20 temp. sensor via ioio on android?

Or which temp. sensor will work for sure?
 

kolbe

Active Member
Licensed User
Longtime User
Sorry for the delay in replying but don't do much with the IOIO anymore and didn't see the post.

That sensor uses OneWire and as far as I know IOIO can't do Onewire. You should find a sensor that uses i2c or SPI or serial or analog.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…