This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/LAUNCHXL-CC26X2R1: BLE Sends Wrong Data

Part Number: LAUNCHXL-CC26X2R1

Tool/software: TI-RTOS

Hi all, 

I integrated the Simple Stream Server service(UUID: F000C0C0-0451-4000-B000-00000000-0000.) into ProjectZero and used the DataOut characteristic to transfer some data to remote peer. 

First, I created the clock module(Period : 1S) and send a message to the application task. In the application task it counts and fill the data into the buffer,  and then sends data to peer. there is no any errors during  the transfer. However, during the count of 33 ~ 113(0x21 ~0x71), the peer received the wrong data. please see the following snapshot. I have tried the many times the "wrong data" only occurs in the number of 33 ~ 113. Could you help provide some suggestions?  

      case SSSS_OUTGOING_DATA: //Outgoing data event
      {
          if(txCount < 255)
          {
              txCount++;
              int i;
              for(i=0;i<TX_MAX_SIZE;i++)
              {
                  txBuffer[i]= txCount;
              }

              bStatus_t status = SimpleStreamServer_sendData(connHandle, &txBuffer[0], *(uint8_t*)(pMsg->pData));


              if (status != SUCCESS) {
                  Log_error0("BLE Send Fail");
              }
          }
          break;
      }

Log 2019-05-27 09_31_40.txt


 

Thanks.

BR

Trevor