According to the following configuration, there is a pairing dialog will be popped up on the first connection. How to implement the default pairing without popup dialog so we don't have to click the"Pair"option
static const struct security_configuration user_security_configuration = {
.oob = GAP_OOB_AUTH_DATA_NOT_PRESENT,
.key_size = KEY_LEN,
.iocap = GAP_IO_CAP_NO_INPUT_NO_OUTPUT,
.auth = GAP_AUTH_REQ_MITM_BOND,
.sec_req = GAP_SEC1_NOAUTH_PAIR_ENC,
.ikey_dist = GAP_KDIST_SIGNKEY,
.rkey_dist = GAP_KDIST_ENCKEY,
.tk={
.key={0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0},
},
.csrk={
.key={0xAB,0xAB,0x45,0x55,0x23,0x01,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0},
},
};
Device:
Hi zhangtinglu8888,
Please use the ble_app_security example and try to define the just works method (USER_CFG_PAIR_METHOD_JUST_WORKS).
If you are starting a new design, we would strongly recommend to start with DA14531 or DA14585/586 products and our latest SDK6.0.14, as it is much more improved. We have a lot of code examples and improved documentation, and there is also software roadmap support. There is not any software roadmap support for DA14580 product family and SDK5.
的年代DK6, there is a detailed tutorial for the security :
http://lpccs-docs.dialog-semiconductor.com/Tutorial-DA145x-BLE-Security/index.html
Thanks, PM_Dialog
What I want is bonding. No information will pop up for pair. Pair is allowed by default.
Hi zhangtinglu8888,
What kind of security level you would like to use?
Thanks, PM_Dialog