This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Integration of Bond Management Service in GATT Server Profile

Hi ,
I would want to establish a GATT Server application as well as integrate Bond Management Service from glucose example (ble_app_gls) in examples folder of SDK15.3.0_59ac345 into my GATT Server Application. How to integrate this service into GATT Server application. What are the dependencies which I need to take care of while integrating this service.

Parents
  • Hi,

    You can refer to Merging two BLE examples together for information on how to merge BLE examples/services. This does not handle BMS specifically, but that should be OK. I suggest you take the BMS Example and merge that into your application (I don't know why you mentionned ble_app_gls, as this does not include the BMS service).

  • Einar ,

    That was a typo from my side . There is device information service in ble_app_gls . I want to merge that into my application. Can you tell me which is the correct example for GATT Server Application ? I have been using ble_app_gatts_c . Is it right ?

  • Hi,

    Jaydev Borkar said:
    That was a typo from my side . There is device information service in ble_app_gls . I want to merge that into my application.

    I see. DIS is a simple service, so essentially you just need to copy dis related code from for instance the GLS example into your application and make sure you the copied code where it is needed. This is easily seen where you copy it form. You also need to set BLE_DIS_ENABLED to 1 in your projects sdk_config.h file. This is the same process as explained here, even though it is a different service.

    Jaydev Borkar said:
    Can you tell me which is the correct example for GATT Server Application ? I have been using ble_app_gatts_c . Is it right ?

    Most BLE peripheral examples in the SDK include a GATT server, so it makes most sense to pick an example that thas some or most of the services and other features you need as a starting point (for instance support for bonding or not, etc.).

Reply
  • Hi,

    Jaydev Borkar said:
    That was a typo from my side . There is device information service in ble_app_gls . I want to merge that into my application.

    I see. DIS is a simple service, so essentially you just need to copy dis related code from for instance the GLS example into your application and make sure you the copied code where it is needed. This is easily seen where you copy it form. You also need to set BLE_DIS_ENABLED to 1 in your projects sdk_config.h file. This is the same process as explained here, even though it is a different service.

    Jaydev Borkar said:
    Can you tell me which is the correct example for GATT Server Application ? I have been using ble_app_gatts_c . Is it right ?

    Most BLE peripheral examples in the SDK include a GATT server, so it makes most sense to pick an example that thas some or most of the services and other features you need as a starting point (for instance support for bonding or not, etc.).

Children
Related