I tried testing Current time service example provided in examples of SDK 15.3.0.The things I have noticed were
1)From Apple mobile it is able to discover current time service after getting connect,paired and disconnected and in between the proccess I was able to see some error messages too.Can you please let me know reason for those error messages and how to rectify them and also please let me now the reason why it has to go through connecting,disconnecting and pairing several times before discovering services.The below attached is the log info while testing on Apple mobile
2)From Android mobile it was not discovering service even after connecting several times as done in Apple mobile.The below capture contains log messages while testing CTS with Android mobile.
Please let me know whether I have to delete any bond information?and every time it is advertising erase bonds is being used and I also tried deleting bond information on nRF connect mobile application too.
4102 is the same as PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING. It means that encryption failed because the peripheral has lost the LTK for this bond. As indicated in this post, try to remove the bond on both sides of the link, and bond again.
can you please let me know where exactly I can delete these bonds?
On mobile first thing it is not at all getting bonded and In nrf52832 advertising_start() delete bonds function is called.
is that about these ways of deleting bond information mentioned by the post?If not,what is the way to delete bond information on link?
Thanks & Regards,
You have to delete bond info on both sides (phone and nrf52832). On the phone, you have to go to Settings => Bluetooth, and looking for the nRF Device. Then go to "Forget this device" or delete this device's information. For the nRF device, you erase the kit as the link.
The scenario required in my project is that If suppose a device got connected to the mobile and if I choose to disconnect and delete the bonding from mobile then it has to delete the bond on nrf52832 too.Is there any possibility to delete the bond automatically on device when we choose to delete the bond on mobile.For this purpose In our application it is not possible to erase the kit whenever we need to delete the bond.Can you please suggest me any other possible way?
Another way is as advertising_start() deletes bonds after if the clear bonding button (button 2) was pressed to wake the application.