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.
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
Hi Qinjin,
Thank you the file. I will study this slide and get back to you next week.
Have a nice week end.