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 GATT server sends large data



Hello,

I referenced HIGH THROUGHPUT  .

I didn't copy that code to my project, but followed its point to change PDU/PDU size and heap memory size, then Rebuild project.

#define MAX_NUM_PDU                   6
#define MAX_PDU_SIZE                  107

I use android app (BlueLoupe) to read charValue, but GATT server can only response MAX_NUM_PDU times, then it stop and never response any data.

Why it dosen't work?

  • Hi,

    I have no idea. Since you didn't provide your code or any description of your changes, it's difficult to provide guidance. As the example highlights, there's a lot more that goes into sending the GATT data than just changing the #defines.

    Best wishes
  • Hi JXS,

    Thanks for your reply.

    I didn't change ReadCB function, it's just sample code.

     case SIMPLEPROFILE_CHAR1_UUID:
              *pLen = GATT_CHAR1_LEN;
              VOID memcpy( pValue, pAttr->pValue, *pLen );
              break;
    

    When I change #define followed by that example, it will become weird that each ReadCharValue command doesn't work after MAX_NUM_PDU times.

    As I set to default value, it will be fine.

    What parameters should I change more than just MAX_NUM_PDU and MAX_PDU_SIZE? ATT_MTU_SIZE or L2CAP parameters?