This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why is my service cccd_handle number wrong

Hello.

Nordic Team.

I add for ble Service and i select my service notify enable

I want receive my service number, but service number is different.

Add for my source code and I looking for example PCA10040 HRS service.

The development environment is as follows :

   OS : Windows 7 Pro 64bit
   IDE : Keil uVision V5.24.1
   Python : 2.7
   SDK Version : nRF5_SDK_14.0.0
   DK : PCA10040 2EA

image description

image description

Thanks you

Bestregards,

kevin.ko

2017-12-01 add for Image

image description

Parents
  • Hello, Ketil NRFConnect App is find ECG Service Service UUID is here. I testing Thingy UUID not change ECG UUID. use on my ECG Base uuid #define ECG_BASE_UUID {{0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B, 0x33, 0x49, 0x35, 0x9B, 0x00, 0x00, 0x68, 0xEF}} /**< Used vendor specific UUID. */

    HRS is Notification 'on' msg -> Handle is not same

    static void on_write(ble_ecg_t * p_ecg, ble_evt_t const * p_ble_evt) { ble_gatts_evt_write_t const * p_evt_write = &p_ble_evt->evt.gatts_evt.params.write; NRF_LOG_INFO("ecg[%s]handle[%d][%d][%d]",func,p_evt_write->handle,p_ecg->ecgdata_handles.cccd_handle,p_ecg->ecgconf_handles.cccd_handle); if(p_evt_write->handle == p_ecg->ecgdata_handles.cccd_handle) { }

    }

Reply
  • Hello, Ketil NRFConnect App is find ECG Service Service UUID is here. I testing Thingy UUID not change ECG UUID. use on my ECG Base uuid #define ECG_BASE_UUID {{0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B, 0x33, 0x49, 0x35, 0x9B, 0x00, 0x00, 0x68, 0xEF}} /**< Used vendor specific UUID. */

    HRS is Notification 'on' msg -> Handle is not same

    static void on_write(ble_ecg_t * p_ecg, ble_evt_t const * p_ble_evt) { ble_gatts_evt_write_t const * p_evt_write = &p_ble_evt->evt.gatts_evt.params.write; NRF_LOG_INFO("ecg[%s]handle[%d][%d][%d]",func,p_evt_write->handle,p_ecg->ecgdata_handles.cccd_handle,p_ecg->ecgconf_handles.cccd_handle); if(p_evt_write->handle == p_ecg->ecgdata_handles.cccd_handle) { }

    }

Children
No Data
Related