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

BASE_UUID and ADC in BLE Stack

HI dear: We have two questions to ask you: 1、Can we customize two different BASE_UUID in the nrf52832 ? If we can,and how to do it,We can customize one BASE_UUID (128bit),but can't customize two. 2、How can we operate the ADC in the Bluetooth protocol stack?

Thank you!

yanglong

Parents
  • You don't say why you "can't customize two" by saying what error you get. My guess is that you get an error adding the second one. By default the softdevice only has room for one base uuid, this is set in the sd_ble_enable() function. The argument to that, p_ble_enable_params has a member common_enable_params which has a field vs_uuid_count. You need to set that to at least the number of base UUIDs you want to add.

    To use the ADC in the BTLE stack is no different from using it without a softdevice, just use the driver nordic provides or write the registers directly.

Reply
  • You don't say why you "can't customize two" by saying what error you get. My guess is that you get an error adding the second one. By default the softdevice only has room for one base uuid, this is set in the sd_ble_enable() function. The argument to that, p_ble_enable_params has a member common_enable_params which has a field vs_uuid_count. You need to set that to at least the number of base UUIDs you want to add.

    To use the ADC in the BTLE stack is no different from using it without a softdevice, just use the driver nordic provides or write the registers directly.

Children
No Data
Related