Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth connection error on iOS with ESP32 device ("Authentication is Insufficient" or "Encryption is insufficient") #80

Open
Jucy-Dev opened this issue Apr 17, 2024 · 6 comments

Comments

@Jucy-Dev
Copy link

Description:

I am experiencing an error when trying to connect to my ESP32 device using the iOS app ESP BLE Prov. The error message I receive is either "Authentication is Insufficient" or "Encryption is insufficient".

However, the connection works perfectly fine on the Android app.

Frequency:

It happens every time. Sometimes is "Authentication is Insufficient » or otherwise "Encryption is insufficient » error.

To reproduce:

Steps to reproduce the error:

  • Launch the iOS app ESP BLE prov.
  • Click on « I don’t have a QR code » to scan nearby bluetooth devices.
  • Try to connect to the device via Bluetooth.
  • The "Authentication is Insufficient" or "Encryption is insufficient" error is displayed.

iOS information:

  • Device type/model: iPhone 11
  • iOS version: iOS 17.3.1
  • iOS app version: v2.1.0

Android information:

  • Device model: realme 9i
  • Android version: Android 13
  • Android app version: v2.1.4

Additional provisioning information:

  • ESP Device type: ESP32 device
  • Device type: BLE
  • Security: Unsecure

Screenshots:

Android connexion success: Video example
IOS connexion error: Video example

Request:

I would like to know if this is a known issue on iOS app and detailed reasons why it does this. If possible, please provide instructions on how to resolve this issue.

@blackcodefr
Copy link

Hi,

Did anyone look at this yet ?

I seems like a fairly obvious bug since the Android library and Android sample app work.

@vikas-chandra-mnnit
Copy link
Contributor

Yes @blackcodefr, we are looking into this issue and will provide a fix soon.

@vikas-chandra-mnnit
Copy link
Contributor

@Jucy-Dev @blackcodefr Unfortunately we are not able to reproduce this issue at our end. I have tried on ESP-IDF version 5.4. Please let us know your IDF version and any additional example configurations.

@vikas-chandra-mnnit
Copy link
Contributor

@Jucy-Dev @blackcodefr Unfortunately we were not able to reproduce this issue at our end. We used the example from ESP-IDF version 5.4. Can you please let us know the IDF version and any additional steps to reproduce it?

@patafx
Copy link

patafx commented Jul 19, 2024

The version of ESP-IDF is 4.4 and 4.4.7

@ajay-gantayet
Copy link
Contributor

HI @patafx We tried to reproduce the issue in the version 4.4.7 but we are still not able to reproduce it. Could you please send us the device logs in debug mode, so we can identify the root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants