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

Passkey activation

Hello,

we try to use static passkey protection on our devices. we use nrf51 sdk12 with s130. We read a few threads for setting a static passkey like here, here and some other threads.. But we dont find any information or some routines for init and handle the passkey process, when connecting to a device. For example: where to put in the function sd_ble_opt_set() and where is the part in the code, where i can exactly activate the passkey is ON.

Our application: We want to connect with a smartphone as central to a peripheral nRF51 Hardware without display. This should be protected first with a static passkey we defined in main with the following code. We dont use MITM protection.

#define STATIC_PASSKEY        "111111"
uint8_t passkey[] =           STATIC_PASSKEY;
Parents
  • Hi Alex, thanks for your answer. I tried that. But i have no passkey request on my smartphone. I connect with iphone and android phones and it connects without any message, to type in any key. While testing, i had another problem with the passkey: i took the ble_app_gls example for testing. I dont know why, but when i try to connect to it with an android device, i dont get any connection, it abort direct after pushing connect. when i try with iphone, the passkey request appears on the phone. Does anybody know what is the problem here? thx

Reply
  • Hi Alex, thanks for your answer. I tried that. But i have no passkey request on my smartphone. I connect with iphone and android phones and it connects without any message, to type in any key. While testing, i had another problem with the passkey: i took the ble_app_gls example for testing. I dont know why, but when i try to connect to it with an android device, i dont get any connection, it abort direct after pushing connect. when i try with iphone, the passkey request appears on the phone. Does anybody know what is the problem here? thx

Children
No Data
Related