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

Services caching problem if MITM is enable or not after DFU

Hello,
I encountered a problem during my development.
My phone is paired with MITM and pin code security. I enabled the service changed indication to indicate the smartphone to update its services cache. That works well. But if between two OTA I change the security level and choose "Just works" mode for example (without MITM so) the services are not updated by the smartphone after jumping from dfu to app. The problem only occurred on Android devices (tested on several phones and android versions).

Do you have an explanation concerning this issue ?

I'm on SDK 14.1

Parents
  • Hi,

    services are not updated by the smartphone after jumping from dfu to app.

    Could you explain how you are testing this, and detecting how it it's working /not working ?

    Do you have any nrf_log outputs ? or nrf sniffer logs? 

    In nRFConnect for android, are you able to use the "Refresh device cache" functionality?

  • Yes if I use refresh device cache it's work but it is not the problem. The problem is that the goal of service changed characteristic it's to indicate to the smartphone to refresh service cache by himself. This method works only if I use just work method. If I used other methods with MITM protection like a pin code, the smartphone doesn't refresh the cache after return to DFU to APP. The problem is only on Android. In nrfconnect log i have no difference between the two mode. 

Reply
  • Yes if I use refresh device cache it's work but it is not the problem. The problem is that the goal of service changed characteristic it's to indicate to the smartphone to refresh service cache by himself. This method works only if I use just work method. If I used other methods with MITM protection like a pin code, the smartphone doesn't refresh the cache after return to DFU to APP. The problem is only on Android. In nrfconnect log i have no difference between the two mode. 

Children
Related