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

About ANCS

Hi,

We survey APPLE's ANCS right now! But we have a question that need your help

We see the sample code experimental\ble_app_ancs There are 1 base uuid and 3 service ID(cp,ns,ds) those need to added.

sd_ble_uuid_vs_add(&ble_ancs_base_uuid128, &m_ancs_uuid_type); sd_ble_uuid_vs_add(&ble_ancs_cp_base_uuid128, &service_uuid.type); sd_ble_uuid_vs_add(&ble_ancs_ns_base_uuid128, &service_uuid.type); sd_ble_uuid_vs_add(&ble_ancs_ds_base_uuid128, &service_uuid.type);

About our product,we also have other functions to achieve(Like transfer data between phone and device,every 3 second to send HR data to phone),so we also create our service and characteristic

ble_uuid128_t nus_base_uuid = {0x82, 0xAF, 0x72, 0x37, 0x0F, 0x9D, 0x42, 0x9B, 0x8D, 0x05, 0x22, 0xA1, 0x24, 0x2E, 0x4D, 0x45}; sd_ble_uuid_vs_add(&nus_base_uuid, &ble_uuid.type); BLE_UUID_BLE_CUS_ASSIGN(ble_uuid, BLE_UUID_CURRENT_DATA_SERVICE); BLE_UUID_BLE_CUS_ASSIGN(ble_uuid, BLE_LDC_SERVICE_UUID);

How do we combine our service and ANCS? They can work at the same time it?

Thank you.

Parents
  • There shouldn't be any problems with combining these. From version 6.0.0, you can have 10 custom base UUIDs, and using different ones for different services shouldn't be a problem. However, it looks as if your code for using a custom UUID is outdated. Please take a look on how this is done in ble_lbs.c here, storing the value returned from sd_ble_uuid_vs_add() and then using that returned type for the other UUIDs.

    As of second revision nRF51422, they come without a preprogrammed softdevice from the factory, and on such devices, you can flash S110 and run your nRF51822 application unmodified. It doesn't really matter which chip you use, only which softdevice that's currently programmed on the chip.

Reply
  • There shouldn't be any problems with combining these. From version 6.0.0, you can have 10 custom base UUIDs, and using different ones for different services shouldn't be a problem. However, it looks as if your code for using a custom UUID is outdated. Please take a look on how this is done in ble_lbs.c here, storing the value returned from sd_ble_uuid_vs_add() and then using that returned type for the other UUIDs.

    As of second revision nRF51422, they come without a preprogrammed softdevice from the factory, and on such devices, you can flash S110 and run your nRF51822 application unmodified. It doesn't really matter which chip you use, only which softdevice that's currently programmed on the chip.

Children
Related