Are you aware of the fact that you're using the IOIO in a way that is very different from its intended usage? If this is unintentional, better read the wiki. Otherwise, in order to help you I need some context and specifically, what you're trying to do, how you were thinking about doing it and why you need custom firmware as opposed to using the standard one.
On Wed, Jan 28, 2015 at 9:04 AM, Vincent Nadon <[email protected]> wrote: > Using another Android App my colleagues and I created (based on IOIO > examples) makes also the I2C crash. It seems that the Android Apps are > trying to take the I2C connexion over and therefore shut downs everything > else. It even reboots the micro controller in order to obtain the bluetooth > connexion. > > Maybe I don't put the following code in the right place? ( it is placed in > my main function in main.c before my other function calls) > > > while(1){ > /************Bluetooth Communication***********/ > > > BOOL connected = ConnectionTasks(); > if (!connected > && state > STATE_OPEN_CHANNEL) { > // just got disconnected > log_printf("Disconnected"); > SoftReset(); > state = STATE_INIT; > } > switch (state) { > case STATE_INIT: > handle = INVALID_CHANNEL_HANDLE; > state = STATE_OPEN_CHANNEL; > //_LATD3 = 0; > break; > > case STATE_OPEN_CHANNEL: > if ((handle = OpenAvailableChannel()) != INVALID_CHANNEL_HANDLE) { > log_printf("Connected"); > state = STATE_WAIT_CHANNEL_OPEN; > } > //_LATD3 = 0; > break; > > case STATE_WAIT_CHANNEL_OPEN: > if (ConnectionCanSend(handle)) { > log_printf("Channel open"); > AppProtocolInit(handle); > state = STATE_CONNECTED; > } > //_LATD3 = 0; > break; > > case STATE_CONNECTED: > AppProtocolTasks(handle); > break; > > case STATE_ERROR: > ConnectionCloseChannel(handle); > SoftReset(); > state = STATE_INIT; > // _LATD3 = 0; > break; > } > /************ END Bluetooth Communication***********/ > > > Le dimanche 25 janvier 2015 21:13:06 UTC+1, Ytai a écrit : >> >> This app is not related to the official IOIO codebase. You better contact >> the author with this question. >> On Jan 22, 2015 1:02 PM, "Vincent Nadon" <[email protected]> wrote: >> >>> Hi, >>> >>> I have a problem with Bluetooth communication using Hardware tester app. >>> It crashes I2C communication with other devices attached to IOIO >>> microcontroler. Is this normal? >>> >>> Thanks for your help! >>> >>> Vincent >>> >>> -- >>> 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]. 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.
