Learn MoreFAQsTutorials

4 posts / 0 new
Last post
DanyloVodopianov
Offline
Last seen:3 months 5 days ago
加入:2019-09-30 19:35
Security

Hi,

Can you help me with ble security

I create device pairing mode, but i can't create pairing with static or dynamic password

I looked into tutorial 5 Pairing, Bonding and Security 2017 March, but it doesn't work for me

This is my settings:

static const struct security_configuration user_security_conf = {
// IO Capabilities
.iocap = GAP_IO_CAP_NO_INPUT_NO_OUTPUT,

// OOB Capabilities
.oob = GAP_OOB_AUTH_DATA_NOT_PRESENT,

// Authentication Requirements
.auth = GAP_AUTH_REQ_MITM_BOND,

// LTK size
.key_size = KEY_LEN,

// Initiator key distribution
.ikey_dist = GAP_KDIST_SIGNKEY | GAP_KDIST_IDKEY,

// Responder key distribution
.rkey_dist = GAP_KDIST_ENCKEY,

// Security requirements (minimum security level)
.sec_req = GAP_SEC1_AUTH_PAIR_ENC,

};

What should i change?
Thank you.

Device:
PM_Dialog
Offline
Last seen:11 hours 19 min ago
工作人员
加入:2018-02-08 11:03
Hi DanyloVodopianov,

Hi DanyloVodopianov,

谢谢你r question. Can you please clarify which kind of security you are trying to accomplish? I assume that you are working on our latest SDK6.0.10 and you are using a clean ble_app_security project. Is my assumption correct? The tutorial is based on a previous SDK release, so can you please let me know which steps from the tutorial are you following in order to provide you the correct guidelines?

Thanks, PM_Dialog

DanyloVodopianov
Offline
Last seen:3 months 5 days ago
加入:2019-09-30 19:35
When i started project, it

When i started project, it didn't work, had some hardfault. Then I done 1-14 steps and all work now.

I want to have security type, when i must enter static passkey on my phone to have ability to connect to the device.

PM_Dialog
Offline
Last seen:11 hours 19 min ago
工作人员
加入:2018-02-08 11:03
Hi DanyloVodopianov,

Hi DanyloVodopianov,

Do you have a custom board, or you are using any of our development boards? The ble_app_security example uses the SPI Flash in order to store the bonding data. So in your hardware setup, can you please make sure that you have the correct Flash configuration ?

Thanks, PM_Dialog