BLE Just Works on nrf52832 and NRF Connect

Hi, I am working on something that requires me to use Just Works on nrf52832 custom board. Here is the work sccenario. under normal conditions, my module has a bonding PIN and the user is supposed to enter the PIN on his application to get data. My NRF module is a peripheral and i have enabled following in the prj.conf.


CONFIG_BT_NUS_SECURITY_ENABLED

CONFIG_BT_FIXED_PASSKEY

I have registered the necessary callbacks too.

What I now need to implement is a functionality which allows user to bond without a PIN temporarily after a button press. I assume BLE Just Works is what I need for this purpose. But I am open to any other suggestions or new perspectives to get this done.Thanks in advance.

  • Hi, 

    Have you tried with my example ? When you press button 3 on the kit would the bond information be deleted ? 

    Please do a chip erase before testing. 

  • Yes when button 3 is pressed I can bond.But what actually happens is this same assertion failure and a consequent reboot. I hadnt gone through the logs earlier so I could not see this happening. All these happens so fast that I could not observe any thing wrong while connecting/dusconnecting/pairing. Can you please check on your side if there is this assertion failure happening ?

  • Hi again, 
    I attached here the log when I test with my example: 

    What I did was to connect, bond, then disconnect, then press button 3 (BTN3), and then Button 4 (BTN) then pair again. It worked just fine, no assert. 

  • I do not understand this. Can you please do me a favor and try again the same steps with the fixed passkey thing as I did and let me know , if that is not too much to ask ? I still have the same issue.

  • Please try the attached project with static passkey. I tested here and it worked fine.

    peripheral_uart_changebond2.zip

    6406.zephyr.hex

« 3 4 5 6 7 »