-
Notifications
You must be signed in to change notification settings - Fork 132
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
Intermitent issue when try to provisioning device #80
Comments
Hi @jlpuma24 , Can you give some more details like which idf version and Android version you are using ? |
Thanks for answer @khushbushah2302 i'm using the latest one 2.1.1, and the android version what i'm using are 12 and 13. |
Hi @jlpuma24 , can you please install esp-idf v5.0 device firmware and check this ? |
Hi @khushbushah2302, i am the firmware engineer on the project with @jlpuma24 that has this issue. I have updated to esp-idf v5.0 and i am running the wifi_prov_mgr example without changes to replicate the issue we are seeing. The issue is still there with the latest esp-idf. i have the example configured to reset provisioning after a esp32 reset (CONFIG_EXAMPLE_RESET_PROVISIONED). when using the ESP BLE Prov app (App version – v2.1.0 – 7f8108a) i see the issue that we believe to be the same as what happens on our custom app. after a successful bluetooth connection and provision, i click "provision another device". i reset the esp32 and then select it from the device list on the app. it then immediately shows "device disconnected". the message disappears after a few seconds. I can also close the app immediately after a successful bluetooth connection without completing the provisioning, reset esp32, then open app again, and the "device disconnected" message will appear after selecting device. |
here is the esp32 device log on a BT failure: I (0) cpu_start: App cpu up. █▀▀▀▀▀█ ███ ▀▄▀▀▀▄▄▄█▄▀▀▄▄▀▀ █▀▀▀▀▀█ I (1595) app: If QR code is not visible, copy paste the below URL in a browser. |
Hi @jlpuma24 , |
Hi @khushbushah2302 i didn't see that commit, or branch, or tag in the tree. Can you clarify how can i got the access to this version? Thanks! |
Hi @jlpuma24 , |
Hi @jlpuma24 , app is released now. Please check with new app. |
Hi @khushbushah2302, I have tested the new app and it still shows the "device disconnected" message every other provisioning attempt. For the custom android app that @jlpuma24 is developing, which also has this problem, we have found that the issue is only happening on samsung devices. |
@adamlehotay I have same issue with samsung devices. did you resolve this issue? |
When provisioning with android library, the bluetooth connection fails every other attempt. It will successfully connect, then if attempt to provision again, the bluetooth fails to connect. this pattern repeats. the bluetooth permission popup does not occur when the fail happens. My company is in early production with the esp32 device and about to release to market. this problem does not happen with our iOS app.
The problem can be seen using the wifi_prov_mgr example and android ESP provisioning app. After a successful provision, reset device and attempt to provision again. The app will show this error:
Device startup log for version references:
This happens all the time when i provision success, then fails, then success, then fail.
Also i have a ANR on the BleScanner, and maybe is relatd.
Also i'm using the wifi_prov_mgr example and the android provisioning example app and the app will show the error in the image below
The text was updated successfully, but these errors were encountered: