The root cause is corruption in the data coming in. IIRC, you're using
Bluetooth, with a number of analog inputs, and it might be that the
connection is not keeping up until eventually dropping data.

I recently changed the behavior of this failure mode to not crash the app,
and IOIOLib seems to do the right thing from your logs, only that the
connection doesn't get re-established for some reason. Do you see an
attempt to reconnect in the rest of the logs?

Things that might fix that:

   - Try a different dongle. I've seen different bandwidths by different
   dongles.
   - Build a custom firmware image that reduces the analog sampling rate
   (code change is very easy, building the firmware is a little trickier).



On Wed, Jan 29, 2014 at 11:43 PM, Markus Kaczmarek <
[email protected]> wrote:

> Hey!
> Lately I've been experiencing random crashes. These crashes are quite
> strange, their only way of manifestation is by causing the application to
> stop. There is no error message and no prompt that the app crashed, it just
> stops working and needs an exit -> manual close and reboot.
> The only lead to what it might be was logged in CatLog yesterday. This
> behaviour is very random and the app can run flawlessly for up to an hour
> or more.
> The log gave me this:
> IOIOProtocol Protocol error:
> IOIOProtocol ioio.lib.impl.IOIOProtocol$ProtocolError: Recieved unexpected
> command: 0x22
> IOIOProtocol   at
> ioio.lib.impl.IOIOProtocol$IncomingThread.run[IOIOProtocol.java:941]
> IOIOImpl
> System.err ioio.lib.api.exception.ConnectionLostException: Connection lost
> System.err  at
> ioio.lib.impl.IOIOImpl$SyncListener.waitSync[IOIOImpl.java:75]
> System.err  at ioio.lib.impl.IOIOImpl.sync[IOIOImpl.java:682]
> System.err  at
> se.macke.AACS.ButtonScanner.scanKeyboard/ButtonScanner.java:284] <- This
> line is simply _ioio.sync();
> AACS Exited app
> IOIOImpl Waiting for IOIO connection
> IOIOImpl Waiting for underlying connection
>
> ... Some more outputs from the main thread are here, but eventually
> everything stops.
> Will you shed some light on this, please? :)
>
> --
> 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/groups/opt_out.

Reply via email to