How to use nRF sniffer with LE Secure connection?

Dear Support,

I successfully use the nRF sniffer with LE Secure connection providing the LTK key. This works just perfectly for any reconnection. 

However now I'd like to sniff also the pairing and bonding sequence with exchanges occurring immediately after the establishing encryption.

I found 2 possibilities in the manual:

1. put the device into "debug mode" :  Enable Secure Connections debug mode on one or both of the devices. 

or 

2. provide SC Private Key as input key and type the 32-byte Diffie-Hellman private key of your device

I can't find any way or guideline how to do any of those 2 steps. 

I'm using nRF SDK 17. 

Could you please help to properly configure the sniffer to this use case?

Thank you very much!

Regards,

Jiri

Parents
  • Hi, 

    1. In the earlier versions of the nRF5 SDK, we included the option to use the Debug key for the LESC, but in later SDKs, this was removed. I am not sure why. We didn't receive many complaints about this, so whether or not it has been much used I am not sure. 

    2. See Sniffing the pairing procedure of a connection:

    • For connections that use LE Secure Connections with a private key:
      1. Before the devices initiate pairing, select SC Private Key as input key and type the 32-byte Diffie-Hellman private key of your device in big-endian, hexadecimal format with a leading "0x" into the input field in Wireshark.
      2. Initiate pairing between the devices if it does not happen automatically.

    Regards,
    Amanda H.

Reply
  • Hi, 

    1. In the earlier versions of the nRF5 SDK, we included the option to use the Debug key for the LESC, but in later SDKs, this was removed. I am not sure why. We didn't receive many complaints about this, so whether or not it has been much used I am not sure. 

    2. See Sniffing the pairing procedure of a connection:

    • For connections that use LE Secure Connections with a private key:
      1. Before the devices initiate pairing, select SC Private Key as input key and type the 32-byte Diffie-Hellman private key of your device in big-endian, hexadecimal format with a leading "0x" into the input field in Wireshark.
      2. Initiate pairing between the devices if it does not happen automatically.

    Regards,
    Amanda H.

Children
Related