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

How To Add AES128 bit encription in my Application

Dear Nordic Team,

Thanks for supporting.

I want support for AES18bit Encription. Need basic tutorials and how to add my existing code.

  • Hi Murugan, 

     Decimal 4352 is 0x1100. The following defines and reasoning for this error in peer_manager_types.h:

    #define PM_CONN_SEC_ERROR_BASE 0x1000  /**< @brief The base for Peer Manager defined errors. See @ref PM_SEC_ERRORS and @ref pm_sec_error_code_t. */
    #define PM_CONN_SEC_ERROR_DISCONNECT         (PM_CONN_SEC_ERROR_BASE + 0x100) /**< @brief Pairing or encryption did not finish before the link disconnected for an unrelated reason. */

    So it looks like the device disconnects before the pairing or encryption procedure completed.

    Can you provide the full log output from the failing device? If you could set NRF_LOG_DEFAULT_LEVEL to 4 in your sdk_config.h file, that should provide more details.

    What device are you testing against?

    Can you provide a sniffer trace between the two devices when trying to perform bonding? You can use nRFSniffer v2 for that.

    This thread might help. 

    -Amanda H.

Related