How to implement the default pairing without popup dialog

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
zhangtinglu8888
Offline
Last seen:4 months 3 weeks ago
加入:2015-06-15 07:20
How to implement the default pairing without popup dialog

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:
PM_Dialog
Offline
Last seen:1 day 13 hours ago
Staff
加入:2018-02-08 11:03
Hi zhangtinglu8888,

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

zhangtinglu8888
Offline
Last seen:4 months 3 weeks ago
加入:2015-06-15 07:20
What I want is bonding. No

What I want is bonding. No information will pop up for pair. Pair is allowed by default.

PM_Dialog
Offline
Last seen:1 day 13 hours ago
Staff
加入:2018-02-08 11:03
Hi zhangtinglu8888,

Hi zhangtinglu8888,

What kind of security level you would like to use?

Thanks, PM_Dialog