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

Hide Characteristics values before Bound

Hello,

I am going my project with NRG51822 in SDK 11. I build a android app that can connect to my device and access vendor specific service.

My device dedicates one button for BLE connection, and it will trigger limited advertising on button pressed. Android could connect to device in 30 secs after BLE button pressed, and it will perform bond procedure after "Just Works" pairing.

I want characteristics that in vendor specific service can not be accessible before bound, what should I do? Does any example in SDK 11 has the similar procedure that I could refer to?

Regards,

code_hard

Parents
  • Dear run_ar,

    Thank you for reply, allow me to repeat your suggestion on list.

    1. Android pair device with "Just Works". Android perform service discover procedure and can not discover vendor service at that time.
    2. Android perform bond procedure successful, then device add vendor service and send SCCD indication to android.
    3. Android perform service discover procedure again and get updated service list. Now Android could manipulate vendor service.
    4. On Disconnected event occured, device reinitialize SoftDevice module and return to un-updated service and wait for next pair.

    I don't want to misunderstand what you mean.

    Regards,

    code_hard

  • Thank you Roger Clark and run_ar,

    You are right, I can't not against MITM attack right now. so it means that I need using OOB procedure to pass key by LCD either change to nRF52 solution by NFC? It is a big design change, I not sure. I need to think about it.

    Thanks for your advice.

Reply Children
No Data
Related