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

The difference between first connection and PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING?

I'm developing a device that's supposed to establish an encrypted connection with an Android device and I've gotten PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING during connecting a few times after programming a new app and reprogramming the SoftDevice. How is "this bond" identified?

I understand that I've erased the LTK, but why doesn't the device behave like it's their first-ever connection? AFAIK, I erase the whole chip when I reprogram the SD, but I sometimes still get the event on the very next connection. My device's MAC address should be new after every reset, so what's getting recognized? What information about "this bond" could be sticking around?

Related