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

Writing password to pheripheral

Hi Gentlemen,

i want to pair my mobile(central) with peripheral device by entering passkey note: No input or display on peripheral device

suggest the method with sample codes if possible am using sdk 8.0.0 and nrf51dk

Parents
  • Without any input or display capabilities on your peripheral, you're stuck using the "Just Works" authentication model, so the link keys are generated automatically as if you had entered a passkey of all zeroes. The link will still be encrypted to guard against casual eavesdropping, but the key used to encrypt it is trivially obtained by a determined attacker.

    Your only other option is to use an out-of-band method to generate the link keys, which implies you use some alternative method of authentication, like an NFC tag.

  • see in our previous bluetooth connection initially we give default passkey 0000 then from mobile we can set some passkey so that oly that user can connect with the device . so is there any example like that ??

Reply Children
No Data
Related