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.

Adding Profiles to CC2564 SPPLEDemo Sample Code

Hi There,

I am working on a wearable project and am using CC2564BQFN Bluetooth module and STM32F4 as Host controller.

I am able to successfully test the SPPLEDemo project provided in the stack and my project requires to add a few profiles like Battery, Immediate Alert, Proximity and ANP to the SPPLEDemo Project. I couldn't find any documentation about adding custom profiles to the existing demo apps. 

I have gone through the API documentation available in the stack but it lacks the information about how to Add these profiles to the existing project.

Please guide me how to do this or suggest me any documentation available for the same 

Thanks in Advance,

Best,

Krish

  • Hi Krish,

    The ANPDemo is already available as part of the sample apps. You can take a look at it.
    As for Battery Service, you can take a look at the HOGPDemo sample app. For the others, please see the PXPDemo app.

    Regards,
    Gigi Joseph.
  • Hi Joseph,

    Thanks for the reply.

    I tried adding Battery profiles and others with reference to the above said sample apps. But somehow it is not reflecting on the App.

    The added profile is not showing up. After registering the service, i am getting the registered successfully message but the profile is not showing up.

    My Profile Implementation for the battery service is as follows

    1)  Added  the following line to the AdvertiseLE

    BAS_ASSIGN_BAS_SERVICE_UUID_16(&(Advertisement_Data_Buffer.AdvertisingData.Advertising_Data[16])); 

     2) Initialised BASservice function

    BAS_Initialize_Service(BluetoothStackID, BAS_Event_Callback, 0, &ServiceID);

    3) Added BAS_Event_Callback function

    But the battery profile is not showing up with the other profiles. Am i missing something, Please suggest the steps to properly add the services/profiles or any documentation.

    Thanks in Advance,

    Krish