-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
scan_evt timeout and system restart (IDFGH-7857) #9384
Comments
there is part of the log.
thank you very much. |
I found this line in log: |
the log is here, static void esp_gap_cb(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param)
|
Hi, shuwei. I will provide a bt lib to debug. Could you please help me reproduce the problem by using the lib and provide log? Unzip the file and replace the libbtdm_app.a in esp-idf/components/bt/controller/lib_esp32/esp32/. Thanks! |
Hi cjh,Integrated with this library, I used a device to reproduce the problem, and failed to reproduce it several times; I will continue to reproduce this problem with multiple devices. |
OK, thank you very much! |
Hello, We are also facing issues randomly like after 15 to 20 days like evt_scan timeout prints are coming continuously. We are using ESP32 IDF 5.1 Release and Wi-Fi and BLE together. So, Would you please help me like what can be the cause for the same? Let me know if need anything else from my end. Regards, |
@esp-cjh
My application is running in BLE Central mode and constantly scanning for advertisements. The logs show that the scan is repeatedly stopped and started, but that the problem reproduces even if the scan is changed to just start. The problem also reproduces in ESP-IDF v4.3.6, but I have not been able to log it because applying esp32.zip causes an exception on startup. I am hoping to solve this problem as it causes the advertisements to stop scanning and cannot be restored. Please let me know if there is any other information you need as I would like to help in any way possible. Thank you. |
Hello, Would you please raise issues to Espressif Team directly as they will share few debug libraries with some debug statement using which you can get informative logs if issue is reproduced easily into your case because into my case issue is not reproduced easily? Hope that would be helpful to address out issue. Let me know if need any help from my end. Regards, |
@Ritesh236 @SB-HiroakiUchiyama |
@esp-cjh I would like to spend more time to check the problem, as the problem occurs infrequently, sometimes only once a week. thank you. |
Thanks @esp-cjh for sharing library. Actually, we are also tried to check few debug link which has been shared by Espressif Team earlier but still we are not able to reproduce issue at our end. We sometimes faced issue after 15 or 20 days one time when we were working earlier. But, We will continue to monitor it at our end and will let you know if we will be able to reproduce issue at our end. Regards, |
@esp-cjh When will the ESP-IDF be released incorporating this fix? thank you. |
Great. Thanks for providing updates. I have same suggestions like when it will be released into ESP-IDF so that it would be helpful for people to get fixed solution with that. Regards, |
OK, I will submit a merge request ASAP and let you know once it's merged. |
Thanks for providing updates. Do we have any identification for the patch once it will be fixed? Like can it be possible to identify patch with this bug id? Is there any mapping done for patch with this bug is? Just asking so that people will get to know that this bug has been fixed into this patch with some details. Regards, |
@esp-cjh |
@1technophile This lib is for EPS32 only. This issue does not currently occur on the ESP32C3. |
Hello @esp-cjh , I believe that there is no any dependencies about hardware for this issue as it is BLE Stack level issues. So, It will be reproduced into any hardware of ESP32 while using this kind of library and stack. Let me correct if i am wrong at any place. Regards, |
@esp-cjh is merge request with the fix accepted & merged? |
I think they have provided workaround libraries with fix but not sure that they have included that change into main release or not. So, you can directly check with Espressif Team to get details for the same. Regards, |
@tomasznowik The merge request was merged. The commit is 74f99d2. |
Thanks a lot @esp-cjh for sharing commit ID with details which has been fixed before two months. We will also check same issue into latest commit and will let you know if any further query for the same. Regards, |
So this fix is not in the latest v5.2.1 release? I don't see it in the list of fixes... |
@ma261065 , Are you facing similar kind of issues at your end? Would you please check commit ID which has been mentioned into earlier comments from which you can get idea like in which release it has been fixed? The merge request was merged. The commit is 74f99d2. Regards, |
Yes I have the same issue. I was hoping to see it fixed in an official IDF release - but checking the page here https://github.com/espressif/esp-idf/releases doesn't show this commit in any release, even the latest one (v5.2.1) which was only released a few days ago. |
Hello, Have you checked this below image regarding this issue fix? And also can you please check by updating library which is provided into fix link? Hello @esp-cjh, Would you please check from your end as per queries raised by end developers as they are not seeing commit into ESP IDF? Regards, |
Hi, @Ritesh236 |
Thanks a lot @esp-cjh for your prompt response. Regards, |
I am on Arduino esp32 2.0.11 and I am having this problem. Is this backported and included in arduino ? |
The problem is that Arduino 2.x is based on ESP-IDF v4.4.7 which I doubt this fix was backported to. My question is if this fix was backported to v5.1, as that is what the upcoming Arduino 3.x release is based on. |
Hi, @jensolsson @thorrak |
@thorrak For me it will not just reboot the device but hang it so it will not do anything other than putputing this error over and over. I think it rendera the esp32 very ubreliable when used with arduino and scanning. I believe this is a fix that should be considered for backporting. After all Arduino 3 is not released and there is a lot of both companies and individuals who use the esp32 with arduino. |
@esp-cjh Is the backported to 5.0? |
using ble and wifi together in idf 4.41,it work well.
but it's about 4 hours .
how i can fix it, thank you.
The text was updated successfully, but these errors were encountered: