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

cccd enables to report errors

Hi,

I'd like to set up cccd here, but test the error,


In the routine

nRF5_SDK_15.3.0_59ac345 nRF5_SDK_15.3.0_59ac345.0_59ac345.s.ble_peripheral?ble_app_uart/pca10040-s132-arm5_no_packs-ble_app_uart_pca10040_s132.uvprojx

How do I make a cccd in ?

Kind regards. Peter.Min

Parents
  • Hello,

    The log says that in your main.c file there is an APP_ERROR_CHECK(err_code); with err_code = 0x3401 (=13313). 

    Can you check what function call that is? Remember to debug into the functions to see what call inside that function that returned 0x3401.

    0x3401 is BLE_ERROR_GATTS_SYS_ATTR_MISSING (defined in ble_gatts.h).

    This is usually returned if you try to send a notification, but notifications aren't enabled. Did you enable notifications before calling ble_nus_data_send()? 

    What does your ble_evt_handler() look like?

    Do you handle the event: BLE_GATTS_EVT_SYS_ATTR_MISSING? If so, what do you do in that event?

    BR,

    Edvin

  • Hello 

    I just modified the code for the red box section.
    The other code is the default routine

    Kind regards. Peter.Min

  • That doesn't tell me much. What function is this? Does the issue happen if you remove the change in the red box? Are you trying to force the notification to turn on from the peripheral? You can't do that because of two reasons:
    1: It is against the BLE specification.

    2: The softdevice will not allow that.

     

    Edvin said:
    Can you check what function call that is?

     

    Edvin said:
    What does your ble_evt_handler() look like?

     

    Edvin said:
    Do you handle the event: BLE_GATTS_EVT_SYS_ATTR_MISSING? If so, what do you do in that event?
Reply
  • That doesn't tell me much. What function is this? Does the issue happen if you remove the change in the red box? Are you trying to force the notification to turn on from the peripheral? You can't do that because of two reasons:
    1: It is against the BLE specification.

    2: The softdevice will not allow that.

     

    Edvin said:
    Can you check what function call that is?

     

    Edvin said:
    What does your ble_evt_handler() look like?

     

    Edvin said:
    Do you handle the event: BLE_GATTS_EVT_SYS_ATTR_MISSING? If so, what do you do in that event?
Children
No Data
Related