Part Number: BOOSTXL-CC2650MA
Other Parts Discussed in Thread: CC2650MODA, CC2560, CC2650
Hello,
I want to connect the CC2650MODA with a Microchip RN4677. For this reason I use the CC2560MODA Boosterpack .
To test the connections I modified the Simple Central project:
static void SimpleBLECentral_processRoleEvent(gapCentralRoleEvent_t *pEvent)
{
switch (pEvent->gap.opcode)
{
case GAP_DEVICE_INIT_DONE_EVENT:
{
maxPduSize = pEvent->initDone.dataPktLen;
Display_print0(dispHandle, ROW_ZERO, 0, "BLE Central");
Display_print0(dispHandle, ROW_ONE, 0, Util_convertBdAddr2Str(pEvent->initDone.devAddr));
Display_print0(dispHandle, ROW_TWO, 0, "Initialized");
Display_print0(dispHandle, ROW_SEVEN, 0, ">RIGHT to scan");
bStatus_t test = GAPCentralRole_EstablishLink(DEFAULT_LINK_HIGH_DUTY_CYCLE,
DEFAULT_LINK_WHITE_LIST,
ADDRTYPE_PUBLIC, powerWheelAddrThree_ui);
..................
attWriteReq_t req;
bStatus_t testStatus;
//allocate GATT write request
req.pValue = GATT_bm_alloc(connHandle, ATT_WRITE_REQ, 1, NULL);
// if sucesfully allocated
if ( req.pValue != NULL )
{
//fill up request
req.handle = 58;
req.len = 1;
req.pValue[0] = 0x41;
req.sig = 0;
req.cmd = 0;
//send GATT write to controller
testStatus = GATT_WriteCharValue(connHandle, &req, selfEntity);
//if not sucessfully sent
if (testStatus != 0)
{
//free write request as the controller will not
GATT_bm_free((gattMsg_t *)&req, ATT_WRITE_REQ);
}
}
I Connect to the Microchip RN4677 after the Stack was initialized. Every 2 Seconds I send a 0x41.
In a active debug session I have no connection issues.
When I run the program not in debug mode the CC2560MODA can hold the connection only a few seconds. Without debug the connection gets always terminated.
In a active debug session I have no connection problems, the CC2560MODA can hold the connection without any problems.
To investigate the data transfer I Used the TI Software “Packet Sniffer”.
In a NON debug Session I see a lot of RETRIES from the Master (CC2560MODA). After a few seconds the slave does not response to that retries.
In a debug Session there are only a few retries. To connection seems stable.
I think it could be a timing problem with the CC2560. I have attached Packet Sniffer data (one from a debug session and one in a NONE debug session).
Can someone please look at these files?





