⚠️
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.
3 posts / 0 new
Last post
anghockleong50
Offline
Last seen:1 year 8 months ago
加入:2019-07-17 09:05
Pairing on DA14585

Hi Dialog engineers,

I follow example code from DA14585_SDK\6.0.10.511\projects\target_apps\ble_examples\ble_app_peripheral.

After compile and flash into to my DA14585 at daughter board, the BLE is able be detected but not able to pair.

I try to follow step from slide from

Tutorial 5 : Pairing , Bonding & Security

but I have a few problem in below:

1. I can not find the document as mentioned in slide 2 for "Trainingmaterial2" .

2. Cannot find the code at slide 10

In user_config.h, change line 44 to 58. (tk.key= PIN code in hex: 0x01E240 = “123456”). We are using a fixed PIN code in this example, but normally the PIN is randomly generated.staticconststructsecurity_configurationuser_security_configuration={.oob=GAP_OOB_AUTH_DATA_NOT_PRESENT,.key_size=KEY_LEN,.iocap=GAP_IO_CAP_DISPLAY_ONLY,.auth=GAP_AUTH_REQ_MITM_BOND,.sec_req=GAP_SEC1_AUTH_PAIR_ENC,.ikey_dist=GAP_KDIST_SIGNKEY,.rkey_dist=GAP_KDIST_ENCKEY,.tk={.key={0x40,0xE2,0x01,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},

3. Cannot find the code at slide 11 :

In app_default_handlers.cdisable the first two lines in function default_app_on_tk_exch_nomitm()voiddefault_app_on_tk_exch_nomitm(uint8_t connection_idx,structgapc_bond_req_indconst*param){//uint32_t pin_code= app_sec_gen_tk();//app_easy_security_set_tk( connection_idx, (uint8_t*) &pin_code, 4 );app_easy_security_tk_exch(connection_idx);

4. Can not find the code at slide 14:

To convert an existing read or write characteristic to require pairing change the Characteristic Value permissions in the Database Description change the permission flag:

5. Do you have another document to describe step by step to do pairing configuration for DA14585?

Please advise. Thank you.

Device:
Qinjiny_Dialog
Offline
Last seen:3 weeks 3 days ago
Staff
加入:2016-11-01 05:47
Hi anghockleong50,

Hi anghockleong50,

Please refer to this updated tutorial//www.xmece.com/sites/default/files/training_05_ble_security_example_v1.2.pdf

This file can be accessed from our product page from DA14585/586

Please reply on this post if there's still something don't apply with the SDK you use.

BR,

Qinjin Yang

anghockleong50
Offline
Last seen:1 year 8 months ago
加入:2019-07-17 09:05
Hi Qinjin,

Hi Qinjin,

Thank you the file. I will study this slide and get back to you next week.

Have a nice week end.