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; }
Thanks.
BR
Trevor