Hello Ytai, on another phone it works. For my phone I have two logs
attached. One when the phone cannot connect to the IOIO and one when it
succeeds. It seems that the AccessoryConnectionBootstrap is not called at
all. Any idea? Thanks.
On Saturday, April 4, 2015 at 8:33:07 PM UTC+2, Ytai wrote:
>
> That is strange. Haven't seen it happen on the device I used for testing
> (moto X mostly). Do you have another phone to test with? Otherwise, can you
> dig into what's actually happening, e.g. whether the app ever gets notified
> by the Android OS that anything had happened?
>
> On Fri, Apr 3, 2015 at 12:23 AM, charlieh <[email protected]
> <javascript:>> wrote:
>
>> That did help a lot. I do not need to start the phone with USB debugging
>> enable. But it is not 100%. I have to unplug and replug the IOIO several
>> times before communication is established (each time the accessory dialog
>> appears). Once connection is made, it will always connect, after switching
>> the phone on or off or reconnecting the IOIO. But as soon as the IOIO is
>> unpowered then I have do again several tries. It looks like that the IOIO
>> firmware has difficulties in getting into OpenAccessory mode. IOIO
>> Hardware: SPRK0020, IOIO Bootloader: IOIO0400, IOIO Firmware:IOIO0500.
>>
>> On Thursday, April 2, 2015 at 10:48:13 AM UTC+2, Ytai wrote:
>>>
>>> I've recently made some changes to IOIOLib which have made OpenAccesory
>>> more reliably. In fact, all the people who have reported problems before
>>> and have tried it have reported that it seems to have solved the issue.
>>> I haven't gotten around to making a software release including this fix.
>>> I'll try to do that soon. In the meantime, it would be great if you can
>>> just grab the latest version from the master branch on GitHub and see if
>>> things get better.
>>>
>>> On Wed, Apr 1, 2015 at 11:38 PM, charlieh <[email protected]> wrote:
>>>
>>>> Dear Ytai, thanks for the response.
>>>> When my phone has USB debugging *disabled*, I connect the IOIO and
>>>> switch it on then the accessory dialog appears, I select HelloIOIO,
>>>> HelloIOIO appears but doesn't connect, yellow led cannot be switched
>>>> on/off.
>>>> When my phobe has USB debugging *enabled*, I connect the IOIO and
>>>> switch it on then the accessory dialog doesn't appear. I switch USB
>>>> debugging off, accessory dialog appears, I select HelloIOIO, HelloIOIO
>>>> appears and connects, yellow led can be switched on/off. As long as the
>>>> IOIO is not switched off, disconnecting the cable and reconnecting the
>>>> cable shows the accessory dialog again and HelloIOIO can connect to the
>>>> IOIO. Hope this helps.
>>>>
>>>> On Wednesday, April 1, 2015 at 11:27:57 PM UTC+2, Ytai wrote:
>>>>>
>>>>> Doesn't work how? Are you getting the accessory dialog or not even
>>>>> that?
>>>>> On Apr 1, 2015 2:26 PM, "charlieh" <[email protected]> wrote:
>>>>>
>>>>>> I have the latest firmware, latest HelloIOIO application and Android
>>>>>> 4.4.2. To get HelloIOIO starting communication I have to connect the
>>>>>> IOIO
>>>>>> OTG with the USB cable, switch it on, enable USB debugging and disable
>>>>>> USB
>>>>>> debugging while the OTG is kept connected and switched on. Just
>>>>>> connecting
>>>>>> the IOIO OTG and switch it on while USB debugging is switched off
>>>>>> doesn't
>>>>>> work. Any idea? Thanks.
>>>>>>
>>>>>> --
>>>>>> 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.
>>>>
>>>
>>> --
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> 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.
DEBUG IOIOConnectionRegistry: Successfully added bootstrap class:
ioio.lib.impl.SocketIOIOConnectionBootstrap
DEBUG IOIOConnectionRegistry: Successfully added bootstrap class:
ioio.lib.android.accessory.AccessoryConnectionBootstrap
DEBUG IOIOConnectionRegistry: Successfully added bootstrap class:
ioio.lib.android.bluetooth.BluetoothIOIOConnectionBootstrap
DEBUG IOIOConnectionRegistry: Successfully added bootstrap class:
ioio.lib.android.device.DeviceConnectionBootstrap
VERBOSE MainActivity: Started on: Thu Apr 09 21:00:12 CEST 2015
DEBUG IOIOImpl: Waiting for IOIO connection
DEBUG IOIOImpl: Waiting for IOIO connection
VERBOSE IOIOImpl: Waiting for underlying connection
VERBOSE IOIOImpl: Waiting for underlying connection
VERBOSE SocketIOIOConnection: Creating server socket
DEBUG IOIOImpl: Waiting for IOIO connection
VERBOSE SocketIOIOConnection: Waiting for TCP connection
ERROR VERBOSE VERBOSE IOIOImplIOIOProtocol: IOIOImplWaiting for handshake:
: Waiting for underlying connectionProtocol error:
ioio.lib.impl.IOIOProtocol$ProtocolError: java.lang.NullPointerException
at ioio.lib.impl.IOIOProtocol$IncomingThread.run(IOIOProtocol.java:941)
Caused by: java.lang.NullPointerException
at ioio.lib.impl.IncomingState.handleSoftReset(IncomingState.java:241)
at ioio.lib.impl.IOIOProtocol$IncomingThread.run(IOIOProtocol.java:730)
DEBUG IOIOImpl: Physical disconnect.
DEBUG IOIOImpl: Connection lost / aborted
DEBUG IOIOImpl: Waiting for IOIO connection
VERBOSE IOIOImpl: Waiting for underlying connection
VERBOSE ERROR IOIOImplIOIOProtocol: : Waiting for handshakeProtocol error:
ioio.lib.impl.IOIOProtocol$ProtocolError: java.lang.NullPointerException
at ioio.lib.impl.IOIOProtocol$IncomingThread.run(IOIOProtocol.java:941)
Caused by: java.lang.NullPointerException
at ioio.lib.impl.IncomingState.handleSoftReset(IncomingState.java:241)
at ioio.lib.impl.IOIOProtocol$IncomingThread.run(IOIOProtocol.java:730)
DEBUG IOIOImpl: Physical disconnect.
DEBUG IOIOImpl: Connection lost / aborted
DEBUG IOIOImpl: Waiting for IOIO connection
VERBOSE IOIOImpl: Waiting for underlying connection
VERBOSE IOIOImpl: Waiting for handshake
DEBUG IOIOImpl: Client requested disconnect.
VERBOSE SocketIOIOConnection: Client initiated disconnect
DEBUG DEBUG IOIOImplIOIOImpl: Connection lost / aborted
: Client requested disconnect.
DEBUG IOIOBaseApplicationHelper: IOIOThread is exiting
DEBUG ERROR IOIOProtocolIOIOImpl: : Protocol error:
Client requested disconnect.ioio.lib.impl.IOIOProtocol$ProtocolError:
java.lang.NullPointerException
at ioio.lib.impl.IOIOProtocol$IncomingThread.run(IOIOProtocol.java:941)
Caused by: java.lang.NullPointerException
at ioio.lib.impl.IncomingState.handleSoftReset(IncomingState.java:241)
at ioio.lib.impl.IOIOProtocol$IncomingThread.run(IOIOProtocol.java:730)
DEBUG IOIOImplDEBUG : Connection lost / abortedIOIOImpl
: Connection lost / aborted
DEBUG IOIOBaseApplicationHelper: IOIOThread is exitingDEBUG
IOIOBaseApplicationHelper: IOIOThread is exiting
DEBUG IOIOConnectionRegistry: Successfully added bootstrap class:
ioio.lib.impl.SocketIOIOConnectionBootstrap
DEBUG IOIOConnectionRegistry: Successfully added bootstrap class:
ioio.lib.android.accessory.AccessoryConnectionBootstrap
DEBUG IOIOConnectionRegistry: Successfully added bootstrap class:
ioio.lib.android.bluetooth.BluetoothIOIOConnectionBootstrap
DEBUG IOIOConnectionRegistry: Successfully added bootstrap class:
ioio.lib.android.device.DeviceConnectionBootstrap
VERBOSE MainActivity: Started on: Thu Apr 09 21:07:18 CEST 2015
DEBUG IOIOImpl: Waiting for IOIO connectionDEBUG
IOIOImpl: Waiting for IOIO connection
VERBOSE IOIOImpl: Waiting for underlying connection
VERBOSE IOIOImpl: Waiting for underlying connection
VERBOSE SocketIOIOConnection: Creating server socket
DEBUG IOIOImpl: Waiting for IOIO connection
VERBOSE IOIOImpl: Waiting for handshake
VERBOSE IOIOImpl: Waiting for underlying connection
INFO IncomingState: IOIO Connection established. Hardware ID: SPRK0020
Bootloader ID: IOIO0400 Firmware ID: IOIO0500
VERBOSE SocketIOIOConnection: Waiting for TCP connection
VERBOSE IOIOImpl: Querying for required interface ID
VERBOSE IOIOImpl: Required interface ID is supported
INFO IOIOImpl: IOIO connection established
DEBUG IOIOImpl: Client requested disconnect.
VERBOSE SocketIOIOConnection: Client initiated disconnect
DEBUG IOIOImpl: Client requested disconnect.
INFO IOIOProtocol: IOIO disconnected
DEBUG IOIOBaseApplicationHelper: IOIOThread is exiting
DEBUG IOIOImpl: Connection lost / aborted
DEBUG IOIOBaseApplicationHelper: IOIOThread is exiting
DEBUG IOIOImpl: Client requested disconnect.
DEBUG IOIOImpl: Connection lost / aborted
DEBUG IOIOBaseApplicationHelper: IOIOThread is exiting