When opening an analog input, the IOIO starts streaming samples to the
Android at 1kHz. If the Bluetooth stack is flaky, this might load it enough
to break it. I've definitely seen some Android devices with poor Bluetooth
implementations. You might have encountered one. I would also try a
different dongle in case this is a compatibility issue.

On Oct 1, 2016 17:26, "Martin Jensen" <xin...@gmail.com> wrote:

> I've got a lot of new info on this issue.
>
> It has to do with using "openAnalogInput".
> It works fine with both the service and the activity until I add
> "AnalogInput" to the setup function.
>
> I do something like this:
>
> protected void setup() throws ConnectionLostException,
>> InterruptedException {
>> AnalogInput analogInput1 = ioio_.openAnalogInput(31);
>> }
>
>
> I'm also using this constructor instead to get the mac address:
>
>
> public IOIOLooper createIOIOLooper(final String connectionType, final Object 
> extra)
>
>
> but that doesn't cause any problems.
>
>
> However, this has not been a problem with my Samsung. I've used up to 10 
> Analog connections on each at the same time.
>
>
> What do you think might be going on? I was thinking it's a timing issue in 
> the setup function with AnalogInput, which makes trouble with the Odys and 
> Lenovo tablet causing an early disconnect.
>
> It only settles, when I'm just using the LED in setup().
>
>
> Den søndag den 11. september 2016 kl. 04.51.33 UTC+2 skrev Ytai:
>>
>> Does this happen with the precompiled apps too?
>>
>> On Mon, Sep 5, 2016 at 10:56 AM, Martin Jensen <xin...@gmail.com> wrote:
>>
>>> I've got two IOIO's on bluetooth which works on my two Samsung tablets,
>>> Tab 2 7.0 (5.1.1) and Note 10.1 (6.0.1) but not on my Lenovo Tab 2 A7-10
>>> (5.0)
>>>
>>> It gives me this:
>>> 38.174 7938-8162/D/IOIOImpl: Waiting for IOIO connection
>>> 38.174 7938-8162/V/IOIOImpl: Waiting for underlying connection
>>> 38.174 7938-8162/D/BluetoothDevice: mAddress: XXXX
>>> 38.174 7938-8162/V/BluetoothIOIOConnection: Attempting to connect to
>>> Bluetooth device: IOIO (71:14)
>>> 38.174 7938-8162/W/BluetoothAdapter: getBluetoothService() called with
>>> no BluetoothManagerCallback
>>> 38.348 7938-8162/V/BluetoothIOIOConnection: Established connection to
>>> device IOIO (71:14) address: XXXX
>>> 38.349 7938-8162/V/IOIOImpl: Waiting for handshake
>>> 38.382 7938-8261/I/IncomingState: IOIO Connection established. Hardware
>>> ID: SPRK0020 Bootloader ID: IOIO0400 Firmware ID: IOIO0506
>>> 38.382 7938-8162/V/IOIOImpl: Querying for required interface ID
>>> 38.407 7938-8162/V/IOIOImpl: Required interface ID is supported
>>> 38.407 7938-8162/I/IOIOImpl: IOIO connection established
>>> 38.609 7938-8261/I/IOIOProtocol: IOIO disconnected
>>> 38.609 7938-8261/D/IOIOImpl: Physical disconnect.
>>> 38.609 7938-8261/V/BluetoothIOIOConnection: Client initiated disconnect
>>>
>>> So it's basically disconnecting / connecting all the time.
>>>
>>> I've noticed this line:
>>> getBluetoothService() called with no BluetoothManagerCallback
>>>
>>> this only shows on my Lenovo tablet, but it's only a warning and Stack
>>> Overflow says you can ignore this.
>>>
>>> Will this not work on my Lenovo tablet? or could I try something to make
>>> it work universally? Tell me if you need some more information or I can
>>> turn on debugging etc.
>>>
>>> --
>>> 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 ioio-users+...@googlegroups.com.
>>> To post to this group, send email to ioio-...@googlegroups.com.
>>> 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 ioio-users+unsubscr...@googlegroups.com.
> To post to this group, send email to ioio-users@googlegroups.com.
> 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 ioio-users+unsubscr...@googlegroups.com.
To post to this group, send email to ioio-users@googlegroups.com.
Visit this group at https://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to