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

Passkey without keyboard and display

Hi,

I'm developing a BLE advertising sender and want to give the user the chance to change some settings of the sender with an iOS app. The user should connect/pair to the sender inside the iOS App and enter a preconfigured passkey (like 666666). After entering the passkey he should have to chance to change the passkey inside the iOS App and change other things.

I found the "BLE_GAP_IO_CAPS_DISPLAY_ONLY" property in the IO capabilities. But if I understood it correct the passkey is generated from the softdevice. Like in the "ble_app_gls" sample:


p_passkey = (char *)p_ble_evt->evt.gap_evt.params.passkey_display.passkey;

Is it possible to use "BLE_GAP_IO_CAPS_DISPLAY_ONLY" and instead of using the softdevice generated passkey using a static one? (with the possibility to change it later by the user).

Thanks in advance,

Alex

Parents
  • As mentioned in the other thread: If you control both sides, you can set capabilities to "keyboard only" on both the initiator and responder side. This will result in both devices having to type in the same key, and these can be static if you really want to.

    In the case where any of the two report that they have a display, the resulting authentication method will be passkey entry with a randomly generated code. This is according to the Bluetooth spec.

Reply
  • As mentioned in the other thread: If you control both sides, you can set capabilities to "keyboard only" on both the initiator and responder side. This will result in both devices having to type in the same key, and these can be static if you really want to.

    In the case where any of the two report that they have a display, the resulting authentication method will be passkey entry with a randomly generated code. This is according to the Bluetooth spec.

Children
No Data
Related