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

How disable packet encryption in nrf51822

Hi to all,

i have an example that it implemented a device with some charactristics, when i use sniffer to sniff these packets i can not see the packets data because the encryption enabled, now i want know that how can  disable packet encryption in this example, i am new in ble and i want learn about ble.

thanks.

Parents
  • Hello,

    What sniffer are you using? Most sniffers have no problem following basic SMP. But some simpler models, like our own https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer has trouble with advanced LESC.

    What SDK are you using? 12.3?

    What example in the SDK are you using as your starting point?

     

    I don't think you should try to remove the encryption. If you are a beginner you may be making things harder instead of simpler.

    But here are some ideas anyway:

    If your device is a central, you can try to avoid calling pm_conn_secure(), however, many characteristics that you interact with have security requirements. Notice that many examples use these macros BLE_GAP_CONN_SEC_MODE_SET_OPEN, BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM etc in the main.c files

    So on your periheral side, you would have to disable security (set to open) on all characteristics.

Reply
  • Hello,

    What sniffer are you using? Most sniffers have no problem following basic SMP. But some simpler models, like our own https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer has trouble with advanced LESC.

    What SDK are you using? 12.3?

    What example in the SDK are you using as your starting point?

     

    I don't think you should try to remove the encryption. If you are a beginner you may be making things harder instead of simpler.

    But here are some ideas anyway:

    If your device is a central, you can try to avoid calling pm_conn_secure(), however, many characteristics that you interact with have security requirements. Notice that many examples use these macros BLE_GAP_CONN_SEC_MODE_SET_OPEN, BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM etc in the main.c files

    So on your periheral side, you would have to disable security (set to open) on all characteristics.

Children
Related