Hi, Ytai,
does the v4.x for IOIV1 solves this problem
or is there a way to change to 1000 sec to lower sample rate
or could we use multiple analoginputs by closing them and with delay of
20ms
For example
read 1
close 1
delay
read 2
close 2
delay
My version is 3.23, I hope v4.x solves the problem because I saw some
AnalogInput updates in v4.x
On Tuesday, September 25, 2012 11:00:36 AM UTC+3, Ytai wrote:
>
> You can't deal with this at the Java level. You can deal with it on the
> work-over-USB-level, the get-a-better-dongle-level or the
> wait-for-Ytai-to-do-it-level :)
>
>
> On Mon, Sep 24, 2012 at 11:30 PM, Corey Wallis
> <[email protected]<javascript:>
> > wrote:
>
>> Hi Ytai,
>>
>> I'm a bit reluctant to modify the firmware mainly because it adds
>> another toolchain and bunch of source code into my already crowded
>> schedule.
>>
>> I'd much rather deal with this at the Java level, therefore where
>> would you suggest I start looking into that?
>>
>> This is the only minor issue we've had in our project to date which is
>> very positive.
>>
>> Many thanks for all your hard work.
>>
>> -Corey
>>
>> On Sat, Sep 22, 2012 at 3:53 PM, Ytai Ben-Tsvi
>> <[email protected]<javascript:>>
>> wrote:
>> > I have found that some dongles do it more than others, so you can try
>> with
>> > another dongle. You may also try what Jeff suggested, which is
>> modifying the
>> > firmware (a single number to change).
>> >
>> > I have two related action items, which I just haven't gotten to yet:
>> >
>> > API for setting the sampling rate.
>> > Handling such a corruption cleanly as a protocol error, which will
>> cause the
>> > connection to drop, rather than throw that ugly exception.
>> >
>> >
>> > On Fri, Sep 21, 2012 at 7:13 AM, Jeff Eberl
>> > <[email protected]<javascript:>>
>> wrote:
>> >>
>> >> Maybe you could modify the firmware to have a lower sampling rate?
>> Seems
>> >> like temp and humidity don't change 1000 times a second.
>> >>
>> >> On Sep 21, 2012 1:17 AM, "Corey Wallis"
>> >> <[email protected]<javascript:>>
>> wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> I'm working on an IOIO based module with two analog sensors attached,
>> >>> a temperature and a humidity sensor.
>> >>>
>> >>> You can read more about the module here:
>> >>>
>> >>> http://wiki.magdaaproject.org/hardware:statictemphum
>> >>>
>> >>> I'm connecting to the IOIO using bluetooth and everything works well
>> >>> for a while. I can read the voltage values from both pins for a while,
>> >>> once every 30 seconds, but after a seemingly random amount of time
>> >>> this exception is thrown which ends up crashing my app:
>> >>>
>> >>> <snip>
>> >>> 09-21 14:19:58.433: E/AndroidRuntime(1752): FATAL EXCEPTION:
>> Thread-192
>> >>> 09-21 14:19:58.433: E/AndroidRuntime(1752):
>> >>> java.lang.NullPointerException
>> >>> 09-21 14:19:58.433: E/AndroidRuntime(1752): at
>> >>>
>> ioio.lib.impl.IncomingState$InputPinState.setValue(IncomingState.java:84)
>> >>> 09-21 14:19:58.433: E/AndroidRuntime(1752): at
>> >>>
>> >>>
>> ioio.lib.impl.IncomingState.handleReportDigitalInStatus(IncomingState.java:388)
>> >>> 09-21 14:19:58.433: E/AndroidRuntime(1752): at
>> >>> ioio.lib.impl.IOIOProtocol$IncomingThread.run(IOIOProtocol.java:653)
>> >>> </snip>
>> >>>
>> >>> I suspect, from reading through some past posts, that the issue is
>> >>> possibly caused by the fact that sampling both analog pins is using up
>> >>> the available bluetooth bandwidth due to the relatively high sampling
>> >>> rate for analog input.
>> >>>
>> >>> I'm using version 3.24 of the IOIO Lib software with a SPRK0016 board
>> >>> running the IOIO0303 bootloader and the IOIO0324 firmware.
>> >>>
>> >>> Unfortunately due to the nature of the application I can't use the USB
>> >>> cable to interface with the IOIO and must use bluetooth.
>> >>>
>> >>> Does anyone have any thoughts on how I could resolve this issue? Or
>> >>> any other debug information that could be helpful?
>> >>>
>> >>> With thanks.
>> >>>
>> >>> -Corey
>> >>>
>> >>> --
>> >>> You received this message because you are subscribed to the Google
>> Groups
>> >>> "ioio-users" group.
>> >>> To post to this group, send email to
>> >>> [email protected]<javascript:>
>> .
>> >>> To unsubscribe from this group, send email to
>> >>> [email protected] <javascript:>.
>> >>> For more options, visit this group at
>> >>> http://groups.google.com/group/ioio-users?hl=en.
>> >>>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> Groups
>> >> "ioio-users" group.
>> >> To post to this group, send email to
>> >> [email protected]<javascript:>
>> .
>> >> To unsubscribe from this group, send email to
>> >> [email protected] <javascript:>.
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/ioio-users?hl=en.
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "ioio-users" group.
>> > To post to this group, send email to [email protected]<javascript:>
>> .
>> > To unsubscribe from this group, send email to
>> > [email protected] <javascript:>.
>> > For more options, visit this group at
>> > http://groups.google.com/group/ioio-users?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "ioio-users" group.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>.
>> For more options, visit this group at
>> http://groups.google.com/group/ioio-users?hl=en.
>>
>>
>
--
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.