There's nothing physical that I can think of that should prevent this from
working. However, the current library assumes at most a single IOIO device.
To change that, you'd need to rewrite
https://github.com/ytai/ioio/blob/master/software/IOIOLibAndroidDevice/src/main/java/ioio/lib/android/device/DeviceConnectionBootstrap.java
so
that its getFactories() method returns multiple factories, each one
corresponding to a single possible IOIO connection. Then you'd probably
want to refactor the other methods to get the device as argument rather
than assume a single device. One shortcoming of the current design is that
the total number of possible IOIOs needs to be known when the app starts,
as a thread is created up-front for each one, which sits and waits for its
IOIO to connect. But you can get away with just choosing an arbitrary
number (e.g. 2) and return the respective number of factories.

On Mon, May 30, 2016 at 1:22 AM, Stephen Rogers <[email protected]>
wrote:

> Hi,
>
> Apologies if this has been asked before, I've looked through a lot of
> threads but can't see anything that answers exactly what I'm doing.
>
> I'm trying to connect 2 IOIO boards to a single android tablet via USB
> only - here's what I think I know, is this right?
>
> - If I connect the IOIOs to a PC I can connect to them using the
> CreateIOIOLooper overload with the extra parameter corresponding to the
> serial port on the PC
> - I can also probably connect using 2 different bluetooth dongles, but I
> can't do this in this instance and am trying to use USB
> - If I connect a IOIO to a tablet over OpenAccessory the IOIO becomes the
> USB host and there's no way I can have 2 of them, so I leave USB debugging
> on so it works over ADB
> - My android tablet needs to be able to be a USB host (I'm pretty sure it
> is I've tried some of the USB host apps to check)
> - I need to use a USB B cable in the IOIO (rather than the red OTG cable
> that it came with) and a micro B to female A OTG cable (I have this
> https://www.amazon.co.uk/gp/product/B00B4GGW5Q/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1)
> in the tablet to make the tablet the host
>
> Suffice to say I've not managed to get this to work yet, and here's what I
> can't work out
>
> - Will the libraries work with this set-up?
> - Do I need to change anything to have the tablet communicate with both
> IOIOs, say in IOIOLibAndroidDevice?
> - Is this something that's going to work?
>
> Stephen
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/ioio-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to