There are two separate issues here I believe:
- (this is the more fundamental one): Bluetooth is not keeping up with
having 12 analog inputs open at the same time. Your options are either:
- Try a different dongle.
- Use USB.
- Modify the firmware to reduce the analog input reporting rating
(currently hard-coded at 1KHz).
- (this is a side-effect): As result of BT not keeping up, the Android
receives corrupt data and not handling it gracefully. I believe this issue
has been fixed in the recent IOIOLib versions.
On Fri, Jul 11, 2014 at 7:52 PM, Mark Thrasher <[email protected]>
wrote:
> I should point out one other thing...it works great on my Nexus Tablet,
> but it crashes on my Samsung Note 3 Phone just like I listed from the
> LogCat.
>
>
> On Friday, July 11, 2014 11:33:36 AM UTC-5, Mark Thrasher wrote:
>>
>> I am having a random crash and need some assistance in identifying the
>> problem. I'm sampling the data on the first 12 analog pins every 0.1
>> seconds. After a random amount of time (few seconds to 3 or 4 minutes), I
>> get either one of the two messages listed below from LogCat. I am using
>> BlueTooth between the IOIO and Android. Any ideas as to what might be
>> causing this problem? Thanks.
>>
>>
>> 07-11 10:29:11.202: E/AndroidRuntime(23285):
>> java.lang.NullPointerException
>> 07-11 10:29:11.202: E/AndroidRuntime(23285): at
>> ioio.lib.impl.IncomingState$DataModuleState.reportAdditionalBuffer(
>> IncomingState.java:120)
>> 07-11 10:29:11.202: E/AndroidRuntime(23285): at
>> ioio.lib.impl.IncomingState.handleIcspReportRxStatus(
>> IncomingState.java:397)
>> 07-11 10:29:11.202: E/AndroidRuntime(23285): at
>> ioio.lib.impl.IOIOProtocol$IncomingThread.run(IOIOProtocol.java:792)
>>
>>
>> 07-11 10:38:18.942: E/AndroidRuntime(25108):
>> java.lang.NullPointerException
>> 07-11 10:38:18.942: E/AndroidRuntime(25108): at
>> ioio.lib.impl.IncomingState$InputPinState.setValue(IncomingState.java:87)
>> 07-11 10:38:18.942: E/AndroidRuntime(25108): at
>> ioio.lib.impl.IncomingState.handleReportDigitalInStatus(
>> IncomingState.java:403)
>> 07-11 10:38:18.942: E/AndroidRuntime(25108): at
>> ioio.lib.impl.IOIOProtocol$IncomingThread.run(IOIOProtocol.java:658)
>>
>>
>> --
> 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.