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

gls example : connect to the bonded peripheral

Hello

I am running gls example on SDK14.2.

I paired after flashing program to my DK board, and then turn off power.

And turned on again, but i can't connect to my DK board( nRF connect show that the gls is bonded ).

Why?

another question : everytime I press "disconnect" in nRF connect, but my peripheral has not any event occurred.

Thanks in advance.

Parents
  • Hi,

    I believe this is due to a peculiarity in nRF Connect for Desktop. By default, it attempts to do repairing with the GLS example. I have reported an issue to the nRF Connect developers. You can avoid it by disabling "Auto reply security requests" as shown in this image:

    Then you will be prompted when there is a security request. The correct answer is "Ignore", which will result in existing bonding information being used. See image:

    Clicking "Accept" will make nRF Connect attempt to pair again instead of using existing bonding information, but this will fail and cause a disconnection as allow_repairing is set to false in main.c of the GLS example. Clicking "Reject" will also cause a disconnect, as the GLS example will disconnect on the PM_EVT_CONN_SEC_FAILED event.

    The nRF Connect apps for iOS and Android does not have this issue.

Reply
  • Hi,

    I believe this is due to a peculiarity in nRF Connect for Desktop. By default, it attempts to do repairing with the GLS example. I have reported an issue to the nRF Connect developers. You can avoid it by disabling "Auto reply security requests" as shown in this image:

    Then you will be prompted when there is a security request. The correct answer is "Ignore", which will result in existing bonding information being used. See image:

    Clicking "Accept" will make nRF Connect attempt to pair again instead of using existing bonding information, but this will fail and cause a disconnection as allow_repairing is set to false in main.c of the GLS example. Clicking "Reject" will also cause a disconnect, as the GLS example will disconnect on the PM_EVT_CONN_SEC_FAILED event.

    The nRF Connect apps for iOS and Android does not have this issue.

Children
Related