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

Error Code 0x3401

Hi, I'm calling sd_ble_gatts_hvx and every once in a while I get an error code of 0x3401. I went through the SDK documentation but I could not find what that error code is. Have you seen this error code before? thank you, akbar

Parents
  • I'm assuming you are using S110 v7.0.0

    0x3XXX = Stack error
    0x34XX = GATTS error
    0x3401 = BLE_ERROR_GATTS_SYS_ATTR_MISSING
    

    This error comes when the stack does not know the state of the CCCD, and whether notifications/indications are enabled for that specific characteristic. When connecting to a brand new device, the attribute states should be set with NULL as a param, resetting all the CCCD states to disallowing HVX. For a bonded device, however, the previous states need to be restored. This handling is left to the application in the current SoftDevices by using sd_ble_gatts_sys_attr_get() upon disconnection and and _set() on reconnection to the same device.

    The handling of system attributes (and more) should be handled in the Device Manager SDK module.

Reply
  • I'm assuming you are using S110 v7.0.0

    0x3XXX = Stack error
    0x34XX = GATTS error
    0x3401 = BLE_ERROR_GATTS_SYS_ATTR_MISSING
    

    This error comes when the stack does not know the state of the CCCD, and whether notifications/indications are enabled for that specific characteristic. When connecting to a brand new device, the attribute states should be set with NULL as a param, resetting all the CCCD states to disallowing HVX. For a bonded device, however, the previous states need to be restored. This handling is left to the application in the current SoftDevices by using sd_ble_gatts_sys_attr_get() upon disconnection and and _set() on reconnection to the same device.

    The handling of system attributes (and more) should be handled in the Device Manager SDK module.

Children
No Data
Related