bonding of sensor after flashing

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

I have the following problem and don't know how to solve it:

I have to modules, a sensor and a client. Both require security and should bond.

- both are bonded.

- if I flash a new software on the sensor, the client can connect to the client, but on the sensor, the client is not bonded again (the client holds the bonding-information)

On the sensor I call lesmp_sendSecurityRequest(); But it seems, they just encrypt the connection, but don't bond again. How can I achieve a new bonding?

0 Likes
1 Solution
Anonymous
Not applicable

Hello Matthias,

Make sure you do a security request and if security is enabled, then you will bond.

If you are bonded already then verification take place.

Thanks,

JT

View solution in original post

0 Likes
9 Replies
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

The fw reflash on the sensor will delete the pairing information but this is still being retained by the client. Therefore in the next re-connection attempt, the client will fail because it is still using its existing but otherwise expired pairing information. You should have a clean break, ensuring the client "forgets" its previously paired device(s), then start the pairing process all over again.

0 Likes
Anonymous
Not applicable

Hi boont,

thanks for your quick response.

Is there a function so the client can start bonding?

I'm just calling blecen_Conn(HIGH_CONN, evt->wd_addr, evt->addressType);

0 Likes
Anonymous
Not applicable

Hi boont,

No, the link doesn't help.

The connection with both devices works.

This was just a question if somebody knows a simple solution for this problem.

At the moment I implemented a button to delete all pairing information so the user has to bond all devices again. But this would be only after some updates and they shouldn't be done in normal operation.

0 Likes
Anonymous
Not applicable

Hello Matthias,

1.  Disconnect and remove the pairing keys

2.  smpbond result call back is not responding then disconnect.

3.  If you re-flash then you need to get new pairing info.

Thanks,

JT

0 Likes
Anonymous
Not applicable

Hi Matthias,

Please take a look at what JT wrote, but also keep in mind that the blecen_Conn that you are calling is for connection not bond.

Thanks,

Kevin

0 Likes
Anonymous
Not applicable

jaruhl Any updates? Still an issue?

-Kevin

0 Likes
Anonymous
Not applicable

Hi kwang,

As I wrote on

0 Likes
Anonymous
Not applicable

Hello Matthias,

Make sure you do a security request and if security is enabled, then you will bond.

If you are bonded already then verification take place.

Thanks,

JT

0 Likes