Other Parts Discussed in Thread: CC2642R
Tool/software:
Hi to everyone,
I'm working with CC2642R, SDK_CC26X2_R2_4_40_00_44 and multi_role example. I'm also using MITM & Pairing with passkey to pairing and bonding with generic Master.
In my scenario I can have SPhone1 and all the other generic SPhone_n. For SPhone_1 I have set Passkey_1, whether for all the other SPhone_n I have set the Passkey_2
My goal is to aknoledge if the pairing from a Master is coming from SPhone_1 or from all the other SPhone, without know in advance the MAC address of SPhone_1.
At the moment I'm working in this (not ideal) way:
during a connection from a generic Master, multi_role receive MR_EVT_PASSCODE_NEEDED event. So multi_role_processPasscode((mrPasscodeData_t*)(pMsg->pData)); is called.
Inside this function I try at first, to call GAPBondMgr_PasscodeRsp(pData->connHandle, SUCCESS, Passkey_1);
If the pairing is done with success, it means that the Master connected was SPhoner_1, otherwise after the connection is drop, for the next MR_EVT_PASSCODE_NEEDED event, the multi_role will ask for GAPBondMgr_PasscodeRsp(pData->connHandle, SUCCESS, Passkey_2); to see if the Master who is trying to Pair is a generic SPhone_n
I've read the GAPBondMgr and LE Secure Connection documents, but I couldn't figure out if is possible to get the passkey received from Master, before the whole pairing and bonding process is done/failed.
May be I can't due to encryption?
Thanks in advance for your support
Federico