This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to implement nRF52832 be peripheral and request bonding: Just works

Hi, there:

based on \\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\pca10040\s132, I need add Just-Works bonding function. But this bonding request need launch by nRF52832 as peripheral role.

As I checked 

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v7.0.1%2Fgroup___b_l_e___g_a_p___p_e_r_i_p_h___b_o_n_d_i_n_g___j_w___m_s_c.html

seems the bonding request always launch by Central not Peripheral side. 

Here is my plan:

Based on source code in

\\nRF5_SDK_17.0.2_d674dde\examples\ble_central_and_peripheral\experimental\ble_app_hrs_rscs_relay

-nRF52832 as Peripheral role to do Advertisement

-While GAP Connected then change to Central Role and send bonding request

-As Bonding OK, then turn the role back to Peripheral role

Thanks a lot for feedback any suggestion or you have alternative solution.

Michael

Related