OK. I will try to use your bundle and see if I can figure it out. Might be
a few days.

On Mon, Oct 10, 2016 at 11:52 AM, Martin Jensen <[email protected]> wrote:

> It's still responsive. With same program I can write the standard firmware
> right after.
> Versions output:
>
> IOIO Bootloader detected.
>
> Hardware version: SPRK0020
> Bootloader version: IOIO0400
> Platform version: IOIO0030
>
>
> Den mandag den 10. oktober 2016 kl. 20.47.14 UTC+2 skrev Ytai:
>>
>> After this failure, is the IOIO bootloader still responsive, i.e. if you
>> run ioiodude versions, what do you get?
>>
>> On Mon, Oct 10, 2016 at 11:42 AM, Martin Jensen <[email protected]> wrote:
>>
>>> There you go:
>>>
>>> Writing image...
>>> java.io.IOException                      ]
>>>         at purejavacomm.PureJavaSerialPort$1.write(PureJavaSerialPort.
>>> java:642)
>>>         at ioio.dude.IOIODudeMain.writeImage(IOIODudeMain.java:213)
>>>         at ioio.dude.IOIODudeMain.writeCommand(IOIODudeMain.java:179)
>>>         at ioio.dude.IOIODudeMain.main(IOIODudeMain.java:124)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>> Source)
>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>         at com.simontuffs.onejar.Boot.run(Boot.java:313)
>>>         at com.simontuffs.onejar.Boot.main(Boot.java:161)
>>> Caught IOException. Exiting.null
>>>
>>> Den mandag den 10. oktober 2016 kl. 20.30.48 UTC+2 skrev Ytai:
>>>>
>>>> Yeah, you should be able to build ioiodude yourself from source. It's
>>>> on GitHub as part of the IOIO repository.
>>>>
>>>> On Mon, Oct 10, 2016 at 11:21 AM, Martin Jensen <[email protected]>
>>>> wrote:
>>>>
>>>>> I managed to put the standard firmware on it just fine with
>>>>> ioiodude103. I'm gonna see if I can get the dump from the ioexception on
>>>>> ioiodude
>>>>>
>>>>> Den søndag den 9. oktober 2016 kl. 23.27.53 UTC+2 skrev Ytai:
>>>>>>
>>>>>> You shouldn't need to change the bootloader. Not sure what the issue
>>>>>> is. Does flashing the stock bundles such as the application firmware or
>>>>>> blink work OK for you?
>>>>>>
>>>>>> On Oct 9, 2016 12:20 PM, "Martin Jensen" <[email protected]> wrote:
>>>>>>
>>>>>>> I think I'm gonna go with 65535 which will give about 30Hz instead.
>>>>>>> Should be much easier to handle.
>>>>>>>
>>>>>>> I have a file of 50 kb with a 50 kb file inside called ioio0030
>>>>>>> after using tools/make-ioio-bundle firmware/app_layer_v1/dist
>>>>>>> MyOutputBundle.ioioapp IOIO0030
>>>>>>> Maybe that's not what I need?
>>>>>>> Do I need a new bootloader too? Sorry for my ignorance, I don't play
>>>>>>> with the lower levels that often.
>>>>>>>
>>>>>>> Den onsdag den 5. oktober 2016 kl. 18.41.12 UTC+2 skrev Ytai:
>>>>>>>>
>>>>>>>> 1. The errors you're seeing are a symptom of data corruption
>>>>>>>> between the IOIO and the phone. I works suspect the dongle or the 
>>>>>>>> phone.
>>>>>>>> 2. The timer value you're setting is limited to 16 bit, so 65535 is
>>>>>>>> your max. You can slow down the timer or use a different one, but this 
>>>>>>>> will
>>>>>>>> have other implications, since those timers are used for other things 
>>>>>>>> too.
>>>>>>>> 3. Are you seeing the ioiodude errors with the official ioioapp
>>>>>>>> files or only with yours? If the latter, try to assess their validity 
>>>>>>>> by
>>>>>>>> unzipping them (they're really just zip archives) and examining their
>>>>>>>> contents for reasonable size etc.
>>>>>>>>
>>>>>>>> On Oct 5, 2016 8:41 AM, "Martin Jensen" <[email protected]> wrote:
>>>>>>>>
>>>>>>>>> I've got a new tablet Huawei Mediatab T1 with Android 4.4.1
>>>>>>>>>
>>>>>>>>> It runs, somewhat.
>>>>>>>>>
>>>>>>>>> Every now and then I get this:
>>>>>>>>>
>>>>>>>>> E/IOIOProtocol: Protocol error:
>>>>>>>>>                 ioio.lib.impl.IOIOProtocol$ProtocolError: Received
>>>>>>>>> unexpected command: 0x9
>>>>>>>>>                     at ioio.lib.impl.IOIOProtocol$IncomingThread.
>>>>>>>>> run(IOIOProtocol.java:928)
>>>>>>>>> D/IOIOImpl: Physical disconnect.
>>>>>>>>> V/BluetoothIOIOConnection: Client initiated disconnect
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Den mandag den 5. september 2016 kl. 23.09.36 UTC+2 skrev Martin
>>>>>>>>> Jensen:
>>>>>>>>>>
>>>>>>>>>> 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
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> Then I get this:
>>>>>>>>> E/IOIOProtocol: Protocol error:
>>>>>>>>>                 ioio.lib.impl.IOIOProtocol$ProtocolError:
>>>>>>>>> java.lang.ArrayIndexOutOfBoundsException: length=47; index=110
>>>>>>>>>                     at ioio.lib.impl.IOIOProtocol$Inc
>>>>>>>>> omingThread.run(IOIOProtocol.java:941)
>>>>>>>>>                  Caused by: java.lang.ArrayIndexOutOfBoundsException:
>>>>>>>>> length=47; index=110
>>>>>>>>>                     at ioio.lib.impl.IncomingState.ha
>>>>>>>>> ndleAnalogPinStatus(IncomingState.java:288)
>>>>>>>>>                     at ioio.lib.impl.IOIOProtocol$Inc
>>>>>>>>> omingThread.run(IOIOProtocol.java:762)
>>>>>>>>>
>>>>>>>>> Furthermore:
>>>>>>>>>
>>>>>>>>> E/IOIOProtocol: Protocol error:
>>>>>>>>>                 ioio.lib.impl.IOIOProtocol$ProtocolError:
>>>>>>>>> java.lang.NullPointerException
>>>>>>>>>                     at ioio.lib.impl.IOIOProtocol$Inc
>>>>>>>>> omingThread.run(IOIOProtocol.java:941)
>>>>>>>>>                  Caused by: java.lang.NullPointerException
>>>>>>>>>                     at ioio.lib.impl.IncomingState$Da
>>>>>>>>> taModuleState.dataReceived(IncomingState.java:120)
>>>>>>>>>                     at ioio.lib.impl.IncomingState.ha
>>>>>>>>> ndleUartData(IncomingState.java:297)
>>>>>>>>>                     at ioio.lib.impl.IOIOProtocol$Inc
>>>>>>>>> omingThread.run(IOIOProtocol.java:790)
>>>>>>>>> D/IOIOImpl: Physical disconnect.
>>>>>>>>> V/BluetoothIOIOConnection: Client initiated disconnect
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  I'm not sure I figured out how to turn the speed down on ADC, but
>>>>>>>>> I found Timer3 or something and set it from 1999 to 1999999 for 1 
>>>>>>>>> second
>>>>>>>>> instead, I might be wrong.
>>>>>>>>> Also I get:
>>>>>>>>> ioiodude --port=COM6 --reset --force write myioioApp.ioioapp
>>>>>>>>> Writing image...
>>>>>>>>> Caught IOException. Exiting.
>>>>>>>>>
>>>>>>>>> When trying to write it with IOIOdude. Maybe I'm not building
>>>>>>>>> right?
>>>>>>>>> I use make-all all with j8 for speed and then I use:
>>>>>>>>> tools/make-ioio-bundle firmware/app_layer_v1/dist
>>>>>>>>> MyOutputBundle.ioioapp IOIO0030
>>>>>>>>>
>>>>>>>>> to build it with.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> 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 [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.
>>>>>
>>>>
>>>> --
>>> 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.

Reply via email to