OK.
Start by making sure you can build and install the firmware without
modifications.
Once this works, I believe there are two places you need to touch.

First one is here:
https://github.com/ytai/ioio/blob/master/firmware/libusb/usb_config.c#L89
You want to cause the IOIO to *not* enumerate the ADB device, thus fallback
to OA mode. The easiest way to do that would be to change one of the
class/subclass/protocol numbers to something else, for example, change
protocol to 0x02.

Second one is here:
https://github.com/ytai/ioio/blob/master/firmware/app_layer_v1/main.c#L68
You want to prevent the IOIO from establishing an ADB connection. Comment
out the first 'if'.

I *think* that's all, but not 100% sure I'm not missing anything. If it
doesn't work I can try to take a look.


On Tue, Apr 1, 2014 at 10:06 PM, Chris Nelson <[email protected]> wrote:

> So it looks like we are going to end up needing this. The Android device
> is going to be physically attached to a robot and we'd have to chase it
> around with a laptop running IOIO-bridge to debug it. And the bluetooth is
> going to be occupied; in our application the phone needs to be scanning for
> Bluetooth LE devices constantly (so it can't also be paired).
>
> If you wouldn't mind walking me through how to do this, that'd be great.
>
>
> On Thursday, March 6, 2014 5:10:19 PM UTC-8, Ytai wrote:
>
>> Before going down the firmware route:
>>
>>    1. While BT is not a good option for the app, it may sometimes still
>>    be used for development time. This is what I normally do. If I have some
>>    bandwidth intensive / latency sensitive piece of code, I would scale it
>>    down for development, then eventually back up when the code works.
>>    2. You can use 
>> IOIOBridge<https://github.com/ytai/ioio/wiki/IOIO-Bridge>over USB (with a 
>> IOIO-OTG). The IOIO as well as the Android would be
>>    connected over USB to the development PC, which would bridge the IOIO
>>    traffic to the Android over ADB. This would also work when using ADB over
>>    WiFi.
>>
>> If these aren't good solutions for you, I can try to help you setup the
>> firmware with ADB disabled, but be warned that this will take you some
>> time, especially if you're not super-fluent with PIC development.
>>
>>
>> On Thu, Mar 6, 2014 at 12:23 PM, Chris Nelson <[email protected]> wrote:
>>
>>> So I saw some posts earlier like this one which mentioned that in order
>>> to use ADB over WiFi and IOIO over USB you need to change something in the
>>> IOIO firmware.
>>> https://groups.google.com/forum/#!searchin/ioio-users/
>>> ADB$20wifi/ioio-users/rk_QLe3q3Hg/ztqbpJHF1NMJ
>>>
>>> Apparently ADB takes over when you have USB debugging turned on (and it
>>> looks like you have to have USB debugging on in order to do ADB over WiFi).
>>>
>>> How exactly would you make this change in the firmware to be able to use
>>> ADB over WiFi? Or could someone who has already done this upload their
>>> firmware?
>>>
>>> Bluetooth is completely out of the question for our application, the
>>> IOIO has to be connected over USB.
>>>
>>>
>>>  --
>>> 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 http://groups.google.com/group/ioio-users.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
> 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 http://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 http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to