This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

activate pass on nRF51822

how I can to activate the password on nRF51822 for connect to BLE?

  • Do you mean passkey? Could you be a bit more specific regarding your setup? What are you running on the nRF51822? S110? What are you connecting it to? A smart phone? PC? Have you connected anything to the nRF51822 so you can input or display a passkey?

  • Sorry, yes I wanted to say passkey. I´m running S110, and trying connect a smart phone.

    I need a secure connection, I want a passkey to connect the smart phone to the nRF5122.

    I hope I have been more specific. Thanks for yor help.

  • The BLE Pairing Algorithms are described in Vol 3, Part H, Section 2.3.5 in the Bluetooth Core specification, v4.2.

    In short, you need to set that MITM protection is required in the GAP security parameters (see the ble_gap_sec_params_t struct). Then the IO capabilities of the devices will be used in the pairing process. Table 2.9 displays what IO combinations that will trigger a passkey entry. I'm assuming you are using a nRF51 DK, this doesn't have a keyboard or display, so NoInputNoOutput should be used as IO capability. This does not however trigger a passkey entry.

    You could however set the IO capability to DisplayOnly and set the passkey to a static value. Then you don't need to actually display the key to know what it is. Please see this MSC.

    I have added this static passkey functionality in the ble_app_uart example in SDK 8.1.0, please examine this.

    Edit 21.05.2015: Fixed a mistake in the project.

  • just copy pasted your code to my project but it did not asked for a static pass. it works as a ble_app_uart_example with no static pass key

  • Same here also. It doesn't give prompt for passkey. I opened the project from the directory ble_app_uart_static_passkey_ver2\pca10028\s110\arm5_no_packs

    @Nomi: Any luck? @Petter Myhre: Any suggestions

    I am using nRF51822AA MDBT40 chip from Raytac

Related