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.

CC2340R5: Central to peripheral data sending status getting as blePending

Part Number: CC2340R5


Tool/software:

Hi,

                           Currently I am working on basic_ble Peripheral profile project and  basic_ble Central profile project.

After successful connection and notification enable am trying to send an 20 bytes of data from central to peripheral and the data receiving in peripheral.

While sending 20 bytes of data in a interval of 100ms continuously from central to peripheral we are getting an status as blePending in central. But with the  interval of 400ms data receiving in peripheral.

I have tried increasing  Max Number of PDUs to 255 and Max Size of PDU as 255 still facing an blePending issue.

bool Central_sendGattWrite(uint8_t *pData, uint8_t len)
{
    attPrepareWriteReq_t req;
    status_t status = FAILURE;
    req.pValue = GATT_bm_alloc(scConnHandle, ATT_PREPARE_WRITE_REQ, len, NULL);

    if (req.pValue != NULL)
    {
        req.handle = 19;
        req.len = len;
        memcpy(req.pValue, pData, len);
        status = GATT_WriteLongCharValue(scConnHandle, &req, getSelfEntity);
        if (status != SUCCESS)
        {
            UART2_write(uart, &status,1,0);
            GATT_bm_free((gattMsg_t*) &req, ATT_PREPARE_WRITE_REQ);
        }
    }
    return status;
}

Kindly help us with this issue.

SDK Version : simplelink_lowpower_f3_sdk_8_10_01_02

CCS version: CCS 12.7.1

regards,

Vignesh.

 

  • Hi Vignesh, 

    Thanks for reaching out. Usually blePending means that a response has not yet been received from the client. Are you able to post sniffer logs of this happening?

    Can you try the following? 

    • Reduce connection supervision timeout
      • How long the device will wait before disconnecting if no packet is received
    • Reduce peripheral latency
      • How many packets the device can skip before a disconnection occurs

    Can I also just confirm that you are using both LaunchPad for the central and peripheral? 

    Regards