We are using ESP32-S3-DevkitC-1 to develop BLE devices.
It worked fine when connecting with the Nordic nRfConnect app on my Android phone (Galaxy S20).
However, when I replace the Android phone with Windows 11 and pair it, an error occurs.
ESP32 Error message
E (11296) BT_SMP: smp_calculate_link_key_from_long_term_key failed to update link_key. Sec Mode = 2, sm4 = 0x00
E (11296) BT_SMP: smp_derive_link_key_from_long_term_key failed
E (11302) BT_BTM: btm_proc_smp_cback received for unknown device
E (11413) BT_BTM: Device not found
[Controlled by nRfConnect app on Android (works OK) ]
### setup ##
##=> BLE Callback on Connected ## <== Connect from Android nRFConnect App
##=> BLE Connected ##
##=> BLE Callback onRead ## <== Read Opearation from Android nRFConnect App
##=> BLE Callback onWrite ## <== Write Opearation from Android nRFConnect App
##=> BLE Callback on disConnected ## <== Disconnect from Android nRFConnect App
##=> BLE DisConnected ##
[Controlled by Windows11 (not work) ]
setup
##=> BLE Callback on Connected ##
##=> BLE Connected ##
E (11296) BT_SMP: smp_calculate_link_key_from_long_term_key failed to update link_key. Sec Mode = 2, sm4 = 0x00
E (11296) BT_SMP: smp_derive_link_key_from_long_term_key failed
E (11302) BT_BTM: btm_proc_smp_cback received for unknown device
E (11413) BT_BTM: Device not found
##=> BLE Callback on disConnected ##
##=> BLE DisConnected ##
Windows11 operation is
Windows->SYSTEM-> Bluetooth and Devices-> Add Device
Buetooth mouse keyboard, pen, audio device, controller, etc.
Select TestBLeDeveice -> Paired
Although paired in Windows, but ESP32 is disconnected, so communication with Windows will not work afterwards, of course.
We are using ESP32-S3-DevkitC-1 to develop BLE devices. It worked fine when connecting with the Nordic nRfConnect app on my Android phone (Galaxy S20).
However, when I replace the Android phone with Windows 11 and pair it, an error occurs.
ESP32 Error message E (11296) BT_SMP: smp_calculate_link_key_from_long_term_key failed to update link_key. Sec Mode = 2, sm4 = 0x00 E (11296) BT_SMP: smp_derive_link_key_from_long_term_key failed E (11302) BT_BTM: btm_proc_smp_cback received for unknown device E (11413) BT_BTM: Device not found
Please help me about this probrem !!
[Our development environment] VSCode + PlatformIO
[platformio.ini] [env:esp32-s3-devkitc-1] platform = espressif32 board = esp32-s3-devkitc-1 framework = arduino
[main.cpp]
[BleCtrl.h]
[BleCtrl.cpp : Excerpts from the required sections only]
[Controlled by nRfConnect app on Android (works OK) ]
[Controlled by Windows11 (not work) ]
setup
Windows11 operation is Windows->SYSTEM-> Bluetooth and Devices-> Add Device Buetooth mouse keyboard, pen, audio device, controller, etc. Select TestBLeDeveice -> Paired
Although paired in Windows, but ESP32 is disconnected, so communication with Windows will not work afterwards, of course.