In ancs sample project in sdk 12.3.0, the number is 10, I do not know why it is 10?
In ancs sample project in sdk 12.3.0, the number is 10, I do not know why it is 10?
I'm create project based on ancs example project and add one custom uuid(use 16 bit UUID) that has two charactristic(16bit UUID) and also added a hid service, and I found I should change the VENDOR_SPECIFIC_UUID_COUNT value. But I do not know how to calculate this value? Does nordic has some guide on how to calculate the vs_uuid_count? Does this value include the 16 bits UUID?
I'm create project based on ancs example project and add one custom uuid(use 16 bit UUID) that has two charactristic(16bit UUID) and also added a hid service, and I found I should change the VENDOR_SPECIFIC_UUID_COUNT value. But I do not know how to calculate this value? Does nordic has some guide on how to calculate the vs_uuid_count? Does this value include the 16 bits UUID?
Hello,
Actually, you don't "calculate" the vs_uuid_count. It is just the number of services used by the softdevice. It is used in ble_stack_init. I don't know the ancs services and characteristics by heart, but I guess it is 10 of them.
If you look in services_init(), you will see that it initializes 10 services, so that is the reason vs_uuid_count is set to 10. If you set it to 9, you will see that services_init() will fail, because the 10th service you try to init will return err_code = NRF_ERROR_NO_MEM.
Best regards,
Edvin
In ancs project, I think it should be set to 4 rather than 10, since it totally add four 128 bit Base UUID.You said it is set for ble stack and I should not change this? So If I add my custom 128 bits uuid, still no need to change this value?
Try to set it to 4. Does it return an error in services_init()?
BR,
Edvin