B4A Library IOIO board library

kolbe

Active Member
Licensed User
Longtime User
If the IOIOmint uses the same firmware/IOIOlib that Ytai releases it should be OK but I can't give you a definitive answer because I don't know what all is different on the IOIOmint. You would have to ask the IOIOmint people to see if they use an unaltered version of Ytai's library and firmware.

Koble,

What I mean is if you think the B4A library can run this IOIO mint.

Cheers,
 

leongcc

Member
Licensed User
Longtime User
I got an error 'Service discovery is canceled' at the attempt connect,
B4X:
Dim ioio1 as IOIO
ioio1.Connect("ioio1", True, 1, 0)

My situation:

My existing application uses bluetooth for my other bluetooth devices, that is, the libraries Serial and BluetoothAdmin are already in-use. So when I added codes for IOIO I am using the same Serial and BluetoothAdmin.

Is it possible for My Kolbe to share the codes in IOIO's Connect function ?
So that I can troubleshoot and maybe modify to suit my situation
Thanks
 

kolbe

Active Member
Licensed User
Longtime User
Markon is in the process of setting up a GIT for this library, so shortly the code will be available. In the meantime, can you connect via bluetooth with the workbench app? Is the IOIO paired etc? Also once paired turn off bluetooth discovery.

 

engvidal

Member
Licensed User
Longtime User
open event not fou d

Hi

I am trying to use:

dim S1 as digitalInput
...
IOIO.OpenDigitalInput("S1event",19,S1.IP_FLOATING)
...

and I write the sub:
Sub S1event_open(noerror As Boolean,result As Object)....

It compiles OK, initialize, connect via BT, analoginput and digitalOutput initialize ok, but I receive an exception (error) that says:
event S1event_open not found.

I tried everything, but could not find why just this sub XX_open is compiled but not found.

Thank You.

Vidal
 

kolbe

Active Member
Licensed User
Longtime User
Try s1event and not S1event. The event names must be in lowercase.

 

engvidal

Member
Licensed User
Longtime User
Try s1event and not S1event. The event names must be in lowercase.
Thank You veru muck Kolbe

Your mark: "Knoes the basic" is incorrect. Yoy are great.

Is there any more detailed documentation about IOIO and its functions ?

Tahnk You again

Vidal
 

kolbe

Active Member
Licensed User
Longtime User
IOIO library v1.9 posted

See here for latest release.

This time I'll get the the library wiki page updated too.

For those who may not know, you can rename the IOIO.jar and IOIO.xml to IOIO19.jar and IOIO19.xml if you want easy access to several versions at the same time. You obviously can't have several versions checked at the same time in the B4A IDE library tab.
 

kolbe

Active Member
Licensed User
Longtime User
See the links in the above post. The IOIO GitHub has the most detailed info.

Thank You veru muck Kolbe

Your mark: "Knoes the basic" is incorrect. Yoy are great.

Is there any more detailed documentation about IOIO and its functions ?

Tahnk You again

Vidal
 

Stulish

Active Member
Licensed User
Longtime User
I have been trying to get IOIO Workbench to see my IOIO board over USB and Bluetooth and so far have managed to get nowhere.

So i downloaded IOIO Hardware Tester from google play and you can see the screenshot below, it connects fine by Bluetooth (there is no USE test), and i am able to toggle the boards LED on and off.

But when i use IOIO Workbench it just will not connect (see other screen shot)

I have tried it on a NEXUS 7, Galaxy S3 and ASUS Transformer TF101 to no avail.

Any ideas????

Thanks
 

Attachments

  • Screenshot_2013-04-15-23-24-10.jpg
    64.2 KB · Views: 208
  • Screenshot_2013-04-15-23-34-45.jpg
    70.7 KB · Views: 227

Stulish

Active Member
Licensed User
Longtime User
Have managed to sort the problem by updating the firmware to version 4 so it now works with Bluetooth, but i am having no luck with USB connection, It just says 'Attempting USB connection to IOIO1' and the state button says it is at INIT, so any advice is appreciated.
 
Last edited:

kolbe

Active Member
Licensed User
Longtime User
Glad to hear you figured it out. v1.9 requires the app firmware 4.0. This give you capsense! I should probably add a version check in IOIO workbench.

As mentioned as well in the release post, Google added a secure ADB with Android 4.1. The IOIO firmware doesn't support this. It does support OpenAcc but I haven't managed to get it to work. Markon above is taking a look at it too. So for a USB connection at the moment you need to be below Android 4.1.

 

Stulish

Active Member
Licensed User
Longtime User
thanks Kolbe I missed the secure ADB part
 

Stulish

Active Member
Licensed User
Longtime User
I just tried the IOIO with my ASUS eeePad Transformer TF101 this is android v4.0.3 and it works fine over BT but i get the same problem with USB connection.



I need some way of connecting my devices to receive serial data via a cable, for a company who want to use android devices that are fixed into position and they dont want wifi/BT connectivity.

I am also trying the USB/Serial connections but have had little luck with this too (i have an FTDI and a pacific chipset device)

I will just have to keep trying

Regards
 

kolbe

Active Member
Licensed User
Longtime User
Could you send me a log of what is going on? Is there an exception being thrown. I'll double check here. I can send you a log of what should happen.

Stating the obvious, USB debugging has to be on.

  • Did you have USB working with other versions of the library?
  • USB ADB works on the same device with "IOIO Hardware tester"? What does the log look like?
  • Is this the IOIO-OTG of the original IOIO?

 

Stulish

Active Member
Licensed User
Longtime User
Hi Kolbe,

I should have said it is an IOIO-OTG, i only got it this week so have not had a play with one before.

There are no exceptions thrown up while running the app.

I have attached the filtered IOIO log that i saved in the Workbench app, the unfiltered was 274k and was too large to upload onto the forum, the log is also quoted below:


i have also attached a screen shot of the TF101 screen, basically it just seems to sit there waiting for a reply if i click the 'state?' button it says INIT.

I have USB Debugging on and i haven't tried it with any previous versions of the library.

The IOIO Hardware tester app only seems to use BT, it doesn't show anything if plugged into USB.

I hope that info is useful, let me know if you need anything else

Regards (and thanks for all your collective work on the library)

Stu
 

Attachments

  • Screenshot tf101.JPG
    44.2 KB · Views: 203
  • filtered_ioio_log[1].txt
    3.2 KB · Views: 231
Last edited:

kolbe

Active Member
Licensed User
Longtime User
Just tried it on Android 3.2 and it worked fine. Below is the log. Other than that I only have a 4.2.2 device. Maybe something else changed in Android 4.0. At this point I need a log of what is happening to get an idea of the problem.

 
Last edited:

kolbe

Active Member
Licensed User
Longtime User
So it looks like it can't establish a TCP connection... odd. Because it is the OTG it is a different bootloader than I have and that may make a difference. I hope to have an OTG by the end of the week.

In the meantime try forcing the HOST mode on the IOIO-OTG.

If that doesn't work then try this library. Turn off BT on the device because it will connect to the first available connection it finds.

Also could you see in the logs if you see the SocketIOIOI bootstrap being loaded. I didn't see it in your log but that is probably because it was done earlier. It only happens once.

D/IOIOConnectionRegistry( 6493): Successfully added bootstrap class: ioio.lib.impl.SocketIOIOConnectionBootstrap
 

Attachments

  • ioio test.zip
    206.8 KB · Views: 276
Last edited:

Stulish

Active Member
Licensed User
Longtime User
Great work,

I just used the library in the last post and USB is now connecting and i can turn the LED on/off



Thanks

Do you still need any logs or anything?

Stu
 

kolbe

Active Member
Licensed User
Longtime User
Yes, could you get a log with it working. If you could get it from when ioio workbench is first created and catch the bootstraps being loaded that would be great.

Just remember with that library when you select through USB, it may still connect via BT if it is available. Once I get an IOIO-OTG I'll figure the details out.

Great work,

I just used the library in the last post and USB is now connecting and i can turn the LED on/off



Thanks

Do you still need any logs or anything?

Stu
 

Stulish

Active Member
Licensed User
Longtime User
Kolbe,

Below is the filtered log from just opening the app and then pressing connect, not bluetooth was on and it connected correctly:


I also cut the quote below from the unfiltered logs (Hopefully it has what you need), i used the same time frame as shown in the filtered log:


Regards

Stu
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…