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.

Bluetopia BLE server Notify vs Indicate

Other Parts Discussed in Thread: CC2564

Hi TI gurus,

I have been playing with Bluetopia stack running on MSP430 + CC2564, using demo apps such as SPPLE.

I then tried to integrate this stack into our product, but I encountered a major issue:

My BLE GATT Server can notify a characteristic, but it cannot indicate a characteristic, eventhough the server characteristic is configured to do so, and the remote GATT client has registered for indications on that characteristic...

I get the following error:

Alloc Failed: 38
!!! Unable to indicate TX1 data (-1005)

Although I have doubled the size of Bluetopia own buffer ( 2900 -> 4000 bytes )

Is there any demo app that uses indications as opposed to notifications to report to GATT client ? Any similar issue already encountered by other users ?

Thanks a lot for your help

Franck

  • Hi,

    Can you try increasing the heap little more and see as you are getting the alloc failed.
    and the error -1005 you are getting is because of the insufficient resources, Hope the parameters you are passing are correct and also initialized correctly.

    Do you mean indicate value? are you using GATT_Handle_Value_Indication(), you can have a look at the IndicateTemperature() function in HTPDemo.c file.
  • Hi Sundeep,

    Thanks for your quick reply !

    I do want to use "GATT_Handle_Value_Indication()", and I hae tried to double the heap with no great result.

    I had a look at HTPDemo as you mentionned, but the indication method used is "HTS_Indicate_Temperature_Measurement" from the HTS profile, whereas I would like to use the basic GATT indication. I only embed GATT and GAP BLE servers in my device...

    I will keep looking, in case you have a magic idea during the night please let me know

    Cheers

    Franck

  • Hi,

    Yes, but "HTS_Indicate_Temperature_Measurement" is internally calling "GATT_Handle_Value_Indication", see HTS.c (c:\ti\connectivity\cc256x bt\cc256x msp430 bluetopia sdk\v1.5 r2\msp430_experimentor\bluetopia\profiles\hts\source)