Other Parts Discussed in Thread: CC2652R
Dear All
I'm trying to encrypt the link layer using a CC2642R, based on a multi role project, without success so far.
As mentioned in my previous post https://e2e.ti.com/support/wireless-connectivity/bluetooth/f/bluetooth-forum/982882/cc2642r-how-to-check-the-link-layer-is-encrypted?tisearch=e2e-sitesearch&keymatch=%252520user%25253A16043#,
I modified the services and characteristics declarations, by replacing GATT_PERMIT_READ | GATT_PERMIT_WRITE with GATT_PERMIT_ENCRYPT_READ | GATT_PERMIT_ENCRYPT_WRITE.
But this does not seem to encrypt the link layer.
To check if the link is encrypted, I proceeded as follow :
- Use Btool to connect to my device
- Once connected, I read all chars description to find characteristics handles
- I then enabled notifications on my device by writing 01:00 to the characteristics handle
- When sending data (MIDI over BLE) from my device (Note ON: 90:58:40, then Note OFF: 80:58:00), I can see them in btool, but they are NOT encrypted:
Please note I previously erased all bounds in the device, and I did not pair nor bound to the device, I only connected btool central to my peripheral.
I also tried to send notifications with the third parameter as 0x02 (Secure Connections authenticated) instead of 0x00
GATT_Notification(handle, ¬i, 0x02)
This does not result in an encrypted layer.
What am I missing here ?
Thanks
Jerome