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.

CC2640: issue of the GATT_WriteCharValue

Part Number: CC2640

SDK:  ble_sdk_2_02_01_18

Project: simple_central

When the central power on and connected to peripheral, and calls  GATT_WriteCharValue to write data to the peripheral.

When call the GATT_WriteCharValue ,task would received the GATT_MSG_EVENT.in the first two times,task receives GATT_MSG_EVENT immediately,after two times,task receives GATT_MSG_EVENT latency,latency time accurate in 1600ms.

What's issue in this case?

thanks all. 

  • Hi,

    I can't determine from the information you provided as to what is causing such a delay. There could be several factors at play here. Delay by the peripheral acknowledging the GATT write, the connection parameters between the central and slave (how many do you have connected?), over the air interference perhaps, higher priority contexts needing to run first (e.g. drivers, swis, BLE stack task needing to run). Several factor are at play here.

    Perhaps, you can start with an over-the-air sniffer capture and see if the peripheral is taking a bit time to get a ATT write response sent out.