0

How to delete specific peer?

Fanis gravatar image

asked 2017-11-19 19:42:06 +0100

I met a problem when delete bonding information on android central, i actually can't connect to the nrf52832 peripheral again, until i totally clear it's peer list and bond again. If i don't do this and try bond from android again, nrf just rejects, as it thinks that the device is already in peer list, and on android i see unseccessfull pairing due to wrong PIN. Is there any way to track from peripheral point of view that the android device that connects have messed up the pairing info and remove this specific central by id from peer list, preserving all other members in it.

P.S. If i do the opposite - clear peer list in peripheral and then try to rebond from central, there is no problem. First android still remembers that the device is bonded. When it try to read protected characteristic connection is lost (it's okey, because for nrf52 this is new device). And then force bonding from android it all works (my passkey entry pops up and new bonding establishes successfully).

edit retag flag offensive close delete report spam

Comments

Which SDK are you using? Which example?

Petter Myhre ( 2017-11-20 17:19:07 +0100 )editconvert to answer

It's nrf5 v12.3. I suppose i haven't go far from ble glucose example, as i've managed to establish static passkey bonding.

Fanis ( 2017-11-20 17:54:23 +0100 )editconvert to answer

1 answer

Sort by ยป oldest newest most voted
1
Petter gravatar image

answered 2017-11-20 18:12:36 +0100

What if you change

pm_conn_sec_config_t conn_sec_config = {.allow_repairing = false};

to

pm_conn_sec_config_t conn_sec_config = {.allow_repairing = true};

in pm_evt_handler()

edit flag offensive delete publish link more

Comments

It works! The solution was just in front of my eyes. Thanks a lot!

Fanis ( 2017-11-20 18:19:49 +0100 )editconvert to answer

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

Question Tools

1 follower

Stats

Asked: 2017-11-19 19:42:06 +0100

Seen: 42 times

Last updated: nov. 20