Indeed, ADB appear to be more reliable. I don't think it has to do with the IOIOLib code, but rather with some Android internals, but I might be wrong. You can look at the Accessory-related code inside IOIOLibAccessory, possibly instrument it with some Log writes. If the accessory events arrive but no connection is established, there might be something that can be done. If events don't arrive, it might be impossible to fix. I do know for fact that a quick detach-attach sequence (up to about 1s apart) would sometimes fail to generate an event to the app, so it will never know that the connection has dropped. There's also an outstanding pull request that I have yet to review that claims to fix some issue related to OpenAccessory. You might as well give it a shot.
On Thu, Oct 16, 2014 at 1:06 AM, dakman05 <[email protected]> wrote: > So after using IOIO Dude to flash to the latest firmware I finally got it > to work with Open Accessory and ADB off however it appears to be working > less reliably than ADB or BT... I have to stop start the app, power cycle > the IOIO like 2 times and it finally works.. > > How can I improve this.. It seems like it has something to do with the > launcher and the USB connection prompt but I have no idea... Its weird I > have a phone with 2.3.4 on it with ADB only and it seems way more reliable > than this Open Accessory mode.. > > I'm using the IOIO in an embedded application and I need it to be a stable > and "always on" connection . I really hope I can get this to work so I > don't need to switch to raspi w/ gpio etc :( > > Any insight guys? > > Thanks -Dave > > -- > 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.
