This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Central not receiving encrypted notifications

Other Parts Discussed in Thread: CC2540

Dear All

I have implemented a BLE central (based on simpleBLEcentral), it handles128 bits UUIDs, I'm using CC2540 and stack 1.4.1
On the other side, I developed a peripheral using 128 bits UUIDs as well, everything works fine when the peripheral sends notifications to the central.

My problem is when I use my central to another third party peripheral (using the same Services and characteristics), I'm able to discover and connects to that peripheral, but notifications from the peripheral to my central are never received.

The only difference I see between my working peripheral and the other peripheral (not working) seems to be the encryption of notifications.

Is there anything to do on the central to be able to receive encrypted notifications or is this supposed to work with encrypted and non encrypted notifications ?

Anything else that should be checked on the central to check why notifications are NOT received ?
Thanks

Jerome

  • Hello Jerome,

    Encryption is handled by the Link Layer, where as Notifications are handled by the Host (L2CAP/ATT). Any PDUs passed up from the LL to the Host are automatically decrypted. Did you compare a BLE air sniffer trace from the working and non-working sample?

    Best wishes
  • Hi

    Thanks for your answer

    It seems I had to enable notifications on the device, by writing 0x0001 to the device configuration descriptor of the characteristic.

    So I write this 0x0001 to the characteristic handle + 1, seems to work ..

    Jerome

  • Hello,

    Yes, enabling Notifications is required in BLE via the method you state. Glad to hear it's working.

    Best wishes