This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc2541 bonding/parring issue

Other Parts Discussed in Thread: CC2541

We are using cc2541 & developing security level projects , for this project we just modifying the SimpleBLEPeripheral code. but we facing some issue in the boding with cc2541 and mobile phone.

some mobiles will ask passkey when we request from mobile. some other mobiles will not ask passkey and automatically bonded.  in this case using these kind of phone can access easily and they hack.

basically we wants , when mobile user request bonding , it should ask passkey (which is set manually in the code)

i tried below chnages in the code , then also not asking passkey.

"GAPBOND_PAIRING_MODE_INITIATE"

can anybody say what modification we have to do in the SimpleBLEPeripheral code or give a suggestion for the above requirement.  

Thank you