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] 
> <javascript:>> 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] <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.

Reply via email to