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.

Pairing for OAD process

Other Parts Discussed in Thread: CC2541

Hi,

I wanted to pair my CC2541 which contains image A with mobile. So when Application sends image it would be encrypted. I am able to do it in image B in certain services where I can send data encrypted.

I am changing permissions of OAD Image Block characteristics to  " GATT_PERMIT_AUTHEN_WRITE".  I have also enabled MITM and bonding with default pass code = 0.

My mobile app detects device, identifies image A and starts writing image B. It should ask for pairing first. 

When I am writing into characteristics using BLE device monitor, it returns error : 

ErrorRsp[FFC2]: status=0 oc=0x0012 err=5

 

Do I need to do anything else?

PS: Same thing works for imageB, It asks for pairing before reading data but for Image A it's not working.