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

peer_manager_handler: Connection security failed: error: 1

Hi all,

My device is working as a HID device. it's working on android and iPad but not work on macOS. It's can't solve the security procedure and returning error:
<info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 1

I was trying to connect to macOS 10.13.6 High Sierra using ble_app_hids_keyboard example. But I got the same error.

My device using NRF52810 with s112 and SDK 15.3.0. Ble_app_hids_keyboard project I had run on pca10040 board with s112 and SDK 15.3.0. The only thing which I changed in ble_app_hids_keyboard example is sdk_config.h

#define NRF_LOG_BACKEND_RTT_ENABLED 1
#define NRF_LOG_DEFAULT_LEVEL 4

Can you help me?
Many thanks in advance.
Parents
  • Everything strangely works on our devices.
    History: The customer has a connection problem. The problem is that there was no connection on the imac device, i.e. nothing happened when connecting. I assumed that this is because I used a test randomly generated mac address in the firmware. Therefore, I generated a new mac address based on hardware. The code:

    err_code = sd_ble_gap_addr_get (& hardware_mac);
    APP_ERROR_CHECK (err_code);
    hardware_mac.addr [5] & = ~ (1 << 4);
    err_code = sd_ble_gap_addr_set (& hardware_mac);

    And I was able to connect on my iMac. I did the same trick with DK 10040. And a miracle happened. An example from nordic connected to iMac.
    Those. I changed the standard example from nordic so that it would work. Compiled code did not connect to imac by default.

Reply
  • Everything strangely works on our devices.
    History: The customer has a connection problem. The problem is that there was no connection on the imac device, i.e. nothing happened when connecting. I assumed that this is because I used a test randomly generated mac address in the firmware. Therefore, I generated a new mac address based on hardware. The code:

    err_code = sd_ble_gap_addr_get (& hardware_mac);
    APP_ERROR_CHECK (err_code);
    hardware_mac.addr [5] & = ~ (1 << 4);
    err_code = sd_ble_gap_addr_set (& hardware_mac);

    And I was able to connect on my iMac. I did the same trick with DK 10040. And a miracle happened. An example from nordic connected to iMac.
    Those. I changed the standard example from nordic so that it would work. Compiled code did not connect to imac by default.

Children
Related