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

About UUID_Services and UUID_CHARACTERISTICS

Hi,I use 51822 to make a fitness device. one of the function is advertising current value(Steps,Heart rate,Distance,Calorie) to the phone over BLE. What the default service and characteristics I must add? Or I can add a customer service and characteristics by myself.

Anyway, how do I start?

The ble_app_hrs example can work well on my EVK board. Can I use BLE_UUID_HEART_RATE_SERVICE and BLE_UUID_HEART_RATE_MEASUREMENT_CHAR to do these things or I must create new one?

Thank you.

Parents
  • Hi there,

    Is that right? Can I sign a name for my service or characteristic?

    That is right, since it's a custom profile and the generic app you are using on the phone does not know about it.

    You can add a name to the service in 2 ways:

    1. If you write your own Smartphone app, then you can detect your UUID and simply display the service name
    2. If you want standard apps to see a displayable name, you can use the "Characteristic User Description Descriptor", which contains a human readable UTF-8 string. This won't be of much use for the standard app though, since it won't know what to do with the data you notify (it's a custom profile after all) but at least you'll be able to read a string.

    Carles

Reply
  • Hi there,

    Is that right? Can I sign a name for my service or characteristic?

    That is right, since it's a custom profile and the generic app you are using on the phone does not know about it.

    You can add a name to the service in 2 ways:

    1. If you write your own Smartphone app, then you can detect your UUID and simply display the service name
    2. If you want standard apps to see a displayable name, you can use the "Characteristic User Description Descriptor", which contains a human readable UTF-8 string. This won't be of much use for the standard app though, since it won't know what to do with the data you notify (it's a custom profile after all) but at least you'll be able to read a string.

    Carles

Children
No Data
Related