Just an update, I ordered few more dongles and they too exhibited the same problem. On further inspection I am opening an uart in the same program. After commenting out that code, the analogRead() works flawlessly with loop delay set to 100ms. However if I reduce the delay to 10 ms the issue comes back immediately. So it is indeed a bandwidth issue with BT dongles.
I am trying to connect a cable and it is connecting at all, well that is another issue to diagnose. Thanks ytai & Tyler On Mon, Nov 27, 2017 at 7:36 AM, kumarasamy parvathakannan < [email protected]> wrote: > Hi Ytai, > > Correct, I am using the dongle to connect to the phone. > > I'll first connect with usb cable and confirm it. > > Thanks > > > On Mon, Nov 27, 2017 at 5:01 AM, Ytai Ben-Tsvi <[email protected]> wrote: > >> Is this over Bluetooth? If so, try a different dongle. Some dongles seem >> to not be able to keep up with the bandwidth required for analog inputs and >> corrupt the data, causing the connection to drop. >> >> On Nov 26, 2017 12:27 PM, "Tyler" <[email protected]> wrote: >> >>> Kannan, >>> >>> I don't see anything that is incorrect in your code. You've opened the >>> AnalogInput correctly and I don't see anything conflicting that would cause >>> an error such as attempting to use the same pin twice. I would have to see >>> more to find a problem - would you mind posting a logcat showing the reset >>> and startup of the ioio? >>> >>> Tyler >>> >>> -- >>> 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 https://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 https://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 https://groups.google.com/group/ioio-users. For more options, visit https://groups.google.com/d/optout.
