I don't think Tim's original problem had anything to do with v3.26. The
conclusion was that he was using an incompatible (too new) version of the
client libraries and the wording "intermittent" was slightly misleading
(Tim, correct me if I'm wrong). You should be just fine as far as
connection reliability goes, but I do, in general, recommend upgrading to
v5.x as there have been a few bugs that got fixed (see the release notes or
the actual commit log and decide for yourself).

I find it surprising that waiting in the beginning of setup matters:
setup() is called after the connection is already established. Can you try
to further pin-point what's actually going on there by digging a little
into the IOIOLibAccessory implementation? Overall, what's going on there is
not very complicated and you should be able to get the hang of it.

On Mon, Jan 19, 2015 at 10:21 AM, Paul McMahon <[email protected]>
wrote:

> That is very interesting.  I've recently reverted my app back to version
> 3.26 of the libraries, because I have some users that have IOIO V1 boards,
> and those can't be upgraded to the latest firmware.  I hope I don't start
> to see the connection drop as you mention.  Which library version did you
> see that issue with?
>
> Also--I found a workaround to the issue I highlighted below, regarding
> rapid power cycling or rapid cable disconnect/connect.  I found that
> inserting a two second wait at the beginning of the setup() routine seems
> to make the system impervious to rapid cycling.  I'd much rather have a
> self-timed approach rather than a fixed delay, but this is working for me
> right now.
>
> Ytai, does that give you a clue--can you point me to an API call that I
> might use instead of a fixed delay?
>
> thanks
>
> On Mon, Jan 19, 2015 at 1:17 PM, Tim Frisch <[email protected]> wrote:
>
>> My issue had been using old libraries. Yes the board has a hard time
>> connecting initially sometimes. But when it does stay connected using the
>> latest libraries seems to have fixed it dropping.
>>
>> On Thursday, January 15, 2015 at 9:17:57 PM UTC-6, Ytai wrote:
>>>
>>> If you're asking about the likelihood of *me* implementing it, it is
>>> probably fairly low. I'm open to patches, though.
>>> On Jan 15, 2015 6:30 PM, "Paul McMahon" <[email protected]> wrote:
>>>
>>>> What's the likelihood of implementing the RSA authentication to get
>>>> secure ADB working?
>>>>
>>>>
>>>> On Thu, Jan 15, 2015 at 9:28 PM, Ytai Ben-Tsvi <[email protected]>
>>>> wrote:
>>>>
>>>>> I do see this. I don't know if this is fixable. To the best of my
>>>>> knowledge this is a bug with Android, where the disconnect event doesn't
>>>>> get generated in this case. There may or may not be a workaround. Maybe
>>>>> just polling periodically instead of relying on the event system.
>>>>>
>>>>>  --
> 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