Change BASE UUID of Custom Service

Hi,

I have developed a firmware in which I have added the custom service. My custom service UUID is showing 00001400-0000-0000-0000-00000000fff0 but I want only 0xFFF0. I have tried to change it but it's not working. how can I do that? Thanks!

UUID showing.....

UUID Desire......


Parents
  • Hello Muqarrab,

    It Seems like you want to show only 0XFFF0. The 16 bit UUIDs are the Bluetooth SIG registered UUIDs. Then you need to register with Bluetooth SIG to get a 16-bit UUID. It costs a few thousand dollar. How do I choose a UUID for my custom services and characteristics? - Novel Bits here in this link, I can see 2500 dollar.

    However, you can set this 16 bit UUID in the code as well. You can see the code here (components\ble\ble_services\ble_dfu\ble_dfu.c)

    #define BLE_DFU_SERVICE_UUID            0xFE59                      /**< The 16-bit UUID of the Secure DFU Service. */

    BLE_UUID_BLE_ASSIGN(service_uuid, BLE_DFU_SERVICE_UUID);
       // Add the DFU service declaration.
        err_code = sd_ble_gatts_service_add(BLE_GATTS_SRVC_TYPE_PRIMARY,
                                            &service_uuid,
                                            &(m_dfu.service_handle));

        VERIFY_SUCCESS(err_code);

     You can try this and let us know how it works.

    Thanks.

    Best Regards,

    Kazi Afroza Sultana

Reply
  • Hello Muqarrab,

    It Seems like you want to show only 0XFFF0. The 16 bit UUIDs are the Bluetooth SIG registered UUIDs. Then you need to register with Bluetooth SIG to get a 16-bit UUID. It costs a few thousand dollar. How do I choose a UUID for my custom services and characteristics? - Novel Bits here in this link, I can see 2500 dollar.

    However, you can set this 16 bit UUID in the code as well. You can see the code here (components\ble\ble_services\ble_dfu\ble_dfu.c)

    #define BLE_DFU_SERVICE_UUID            0xFE59                      /**< The 16-bit UUID of the Secure DFU Service. */

    BLE_UUID_BLE_ASSIGN(service_uuid, BLE_DFU_SERVICE_UUID);
       // Add the DFU service declaration.
        err_code = sd_ble_gatts_service_add(BLE_GATTS_SRVC_TYPE_PRIMARY,
                                            &service_uuid,
                                            &(m_dfu.service_handle));

        VERIFY_SUCCESS(err_code);

     You can try this and let us know how it works.

    Thanks.

    Best Regards,

    Kazi Afroza Sultana

Children
No Data
Related