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

HID keyboard example and whitelist

After disconnecting from chip I can not connect it with the same phone .And the chip will restart when we try to reconnet with the same phone (the phone have been deleted the pairing messages). what may be the problem?Why this will happen ?Could you  explain it clearly to me ? And can you give me a suggestion on how to solve this problem?I have read some similar quetions the other developer asked ,but I still have no idea.Thank you very much .

Parents
  • Hi!

    You could use nRFgo Studio to erase your board, and reflash the application. This will erase the bond information.
    Nrfjprog can be used to acheive the same.

    If you want to add it as a functionality to your code, you can take a look at the ble_app_proximity and see how it is handled there (waking up the chip by pressing button 2 erases the bond information).

    You can also use the dm_device_delete_all() function to delete the bond information.

    Let me know if you have further questions.

    Best regards,
    Joakim.

  • Hi,Joakim

        I want to know the reason of the error I asked before .If I just erased the encryption keys from my phone ,and I still use the same phone to scan the device ,then the error would hanppen?Am I right?

    Thank you very much!

    Anna.

Reply
  • Hi,Joakim

        I want to know the reason of the error I asked before .If I just erased the encryption keys from my phone ,and I still use the same phone to scan the device ,then the error would hanppen?Am I right?

    Thank you very much!

    Anna.

Children
  • Hi!

    Note that you have to erase the bond information both on the phone and the device before trying to reconnect.
    But I'm not absolutely sure that is what is causing your error.

    You can look at the list of error codes here:
    Softdevice Global Error Codes

    Hard to say exactly what is causing this. Are you able to trace back exactly where the error is returned from?
    You can find some additional information about the ble_advertising_start() function here.

    Maybe you could upload your main.c file, so that I can take a look at it?

    Cheers.

     

     

     

  • Hi ,

       Thank you very much .