Failed to generate DHKey

Hello,

I'm getting this error when trying to connect, which seems to happen after the first SMP Timeout. Most of the time connecting/disconnecting works, deleting bonds etc, but it seem to get into the state. After this it doesn't matter which device is connecting, it will keep coming up with the same error.

Any idea on what is causing this problem?

Parents
  • Hi,

    I do not recall seeing the "Failed to generate DHKey" error before, and have not found any other references to it here on DevZone. It can be pårinted from a few locations, but I assume you see it printed from smp.c? Can you check that with a debugger? And if so, can you step down into bt_dh_key_gen() and see if you can learn more about what caused it to fail?

    Also, which SDK version are you using? Did LESC pairing work on your product before? If so, which changes did you do when it stopped working?

Reply
  • Hi,

    I do not recall seeing the "Failed to generate DHKey" error before, and have not found any other references to it here on DevZone. It can be pårinted from a few locations, but I assume you see it printed from smp.c? Can you check that with a debugger? And if so, can you step down into bt_dh_key_gen() and see if you can learn more about what caused it to fail?

    Also, which SDK version are you using? Did LESC pairing work on your product before? If so, which changes did you do when it stopped working?

Children
Related