nRF52 fall project when MITM = 1.

metcenger gravatar image

asked 2017-10-12 16:17:18 +0200

SDK13, S132

Project stopped after start. I use standart initialization:

static void peer_manager_init(void)
ble_gap_sec_params_t sec_param;
ret_code_t err_code;

err_code = pm_init();

memset(&sec_param, 0, sizeof(ble_gap_sec_params_t));

sec_param.bond              = SEC_PARAM_BOND;
sec_param.mitm              = SEC_PARAM_MITM;
sec_param.lesc              = SEC_PARAM_LESC;
sec_param.io_caps           = SEC_PARAM_IO_CAPABILITIES;
sec_param.oob               = SEC_PARAM_OOB;
sec_param.min_key_size      = SEC_PARAM_MIN_KEY_SIZE;
sec_param.max_key_size      = SEC_PARAM_MAX_KEY_SIZE;
sec_param.kdist_own.enc     = 1;
sec_param.kdist_own.id      = 1;
sec_param.kdist_peer.enc    = 1;
sec_param.kdist_peer.id     = 1;

err_code = pm_sec_params_set(&sec_param);

err_code = pm_register(pm_evt_handler);


edit retag flag offensive close delete report spam


addition: I use

#define BLE_GAP_IO_CAPS_NONE              0x03   /**< No I/O capabilities. */

can I use MITM with this setting? I want use MITM without any passkey entry.

Mikhail ( 2017-10-12 16:33:58 +0200 )editconvert to answer

1 answer

Sort by ยป oldest newest most voted
sigurdon gravatar image

answered 2017-10-13 09:23:36 +0200


Please take a look at the Peer Manager Security parameters page here for a list over required security parameters for common use cases. You can use MITM without passkey entry, if you use OOB(out-of-band) bonding.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

User menu

    or sign up

Recent questions

Question Tools

1 follower


Asked: 2017-10-12 16:17:18 +0200

Seen: 30 times

Last updated: okt. 13