How to implement the default pairing without popup dialog

Learn MoreFAQsTutorials

4 posts / 0 new
Last post
zhangtinglu8888
Offline
Last seen:2 months 1 week 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 hour 53 min 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:2 months 1 week 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 hour 53 min ago
Staff
加入:2018-02-08 11:03
Hi zhangtinglu8888,

Hi zhangtinglu8888,

What kind of security level you would like to use?

Thanks, PM_Dialog