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

Battery Service Configuration, BLE PTS requirements

Have configured battery service as the example ble_app_hrs.

This works well, but the BLE PTS fails.

The battery service has been configured for multiple instances. It is mandatory to support presentation format descriptor if supporting Multiple Instances.

How to disable battery service multiple instances configuration? Or how to provide the presentation format descriptor? and What should this presentation format descriptor be set too?

developer.bluetooth.org/.../DescriptorViewer.aspx

  • Hi Tim, my understanding is that as long as you have a single instance of the battery service you don't need the presentation format characteristic. This means that ble_bas_init() should only be called once, so that only a single battery service is added to the GATT database. If you use for example Master Control Panel (play.google.com/.../details to do a service discovery, can you confirm that you only see a single Battery Service?

  • The Master Control app shows Only one Battery Level 0x2A19 under Battery Service 0x180F

  • Hi Tim,

    according to the Battery Service Specification v.1.0, section 3.1.2.1, when a device has more than one instance of the Battery service, each Battery Level characteristic shall include a Characteristic Presentation Format descriptor. This is an optional feature.

    The Battery Service module supplied with the nRF51 SDK v.7.1.0 does not include a Characteristic Presentation Format descriptor. Therefore, it does not support multiple instances.

    The PICS (Profile/Protocol Implementation Conformance Statements) selection in PTS should reflect the capabilities of the implementation.

    Please see the attached screenshot for PICS that apply to the Battery Service module supplied with the nRF51 SDK v.7.1.0.

    image description

    For further details please refer to the Battery Service Test Specification v.1.0.1.

Related