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

BLE Stops Advertising after a several Connections and Disconnections (IDFGH-8840) #10267

Open
kovid-dozee opened this issue Nov 29, 2022 · 4 comments
Assignees
Labels
Awaiting Response awaiting a response from the author Resolution: Cannot Reproduce Issue cannot be reproduced Status: Done Issue is done internally

Comments

@kovid-dozee
Copy link

Hello All,
I am using ESP32 for GATTC, GATTS and WiFi. While I am using Bluetooth functionality I don't work on WiFi. I am facing the same issue in my device as well, whenever the device is in the gattc mode and takes the data from server on Notification. After taking few values the bluetooth advertising stops and Bluetooth stops working. I need to restart the device to make it work again. I am using IDF v4.3-dirty as the toolchain.

Originally posted by @kovid-dozee in #513 (comment)

@kovid-dozee kovid-dozee changed the title BLE Stops Advertising after a while in BLE Stops Advertising after a several Connections and Disconnections Nov 29, 2022
@espressif-bot espressif-bot added the Status: Opened Issue is new label Nov 29, 2022
@github-actions github-actions bot changed the title BLE Stops Advertising after a several Connections and Disconnections BLE Stops Advertising after a several Connections and Disconnections (IDFGH-8840) Nov 29, 2022
@xiewenxiang
Copy link
Collaborator

Can you describe the appearance of not working in detail?

@kovid-dozee
Copy link
Author

My accessory is sending the data on Notification.
I have a task which on an interval of 60secs call the esp_ble_gap_start_scanning() and then connects with the accessory -> take data on Notification -> inside the notification if we recieve 50 data sets we call esp_ble_gap_disconnect() -> which disconnects the accessory and starts Advertising(since we call esp_ble_gap_start_advertising() in Disconnect event).
Now the problem is after 7 or 8 times of above cycle the BLE though disconnects the accessory but couldn't start advertise. Also we are getting ESP_OK as return from esp_ble_gap_start_advertising() but still the advertising is not starting. The advertising only starts after power reset.

@kovid-dozee
Copy link
Author

Hello any updates on this?

@xiewenxiang
Copy link
Collaborator

Can you provide the reproduce code?
From the current description, it is impossible to determine the exact cause

@espressif-bot espressif-bot added the Awaiting Response awaiting a response from the author label Feb 28, 2024
@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Cannot Reproduce Issue cannot be reproduced and removed Status: Opened Issue is new labels Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Response awaiting a response from the author Resolution: Cannot Reproduce Issue cannot be reproduced Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants