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

Multiple identical services in GATT table

Hello,

I have a question about including multiple identical services in GATT table. For example, my device has 2 batteries so I need 2 battery services (with same UUIDs).

How do I realize it according to the BT specification? I suppose I have to use Report Reference Descriptor in both Battery Services. Is it true?

Artem

Parents
  • Hello Petter,

    My device has 2 batteries. So I need two instances of Battery Service on my device. These services are identical. To distinguish them on client side I decided to use Report Reference Desriptor. Moreover, Nordic implementation of Battery Service has Report Reference for Battery Level characteristic.

    In HID over GATT profile Report Reference Descriptors are also used to distinguish HID Reports.

    However, in Battery Service Specification I found demand to use Characteristic Presentation Format for my purpose. Characteristic Presentation Format has useful fields Namespace and Description.

    Coudl you help me please to choose what to use to distinguish 2 identical services: Characteristic Presentation Format (as in service specification) or Report Reference Desriptor (as in Nordic implementation)?

    Tnak you!

    Best regards, Artem

Reply
  • Hello Petter,

    My device has 2 batteries. So I need two instances of Battery Service on my device. These services are identical. To distinguish them on client side I decided to use Report Reference Desriptor. Moreover, Nordic implementation of Battery Service has Report Reference for Battery Level characteristic.

    In HID over GATT profile Report Reference Descriptors are also used to distinguish HID Reports.

    However, in Battery Service Specification I found demand to use Characteristic Presentation Format for my purpose. Characteristic Presentation Format has useful fields Namespace and Description.

    Coudl you help me please to choose what to use to distinguish 2 identical services: Characteristic Presentation Format (as in service specification) or Report Reference Desriptor (as in Nordic implementation)?

    Tnak you!

    Best regards, Artem

Children
No Data
Related