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

[BT] Application level Watchdog Timer to avoid scan_evt timeout #1590

Merged
merged 1 commit into from Apr 6, 2023

Conversation

1technophile
Copy link
Owner

Description:

Implement a BLE scan watchdog to bypass the problem related to the BLE scan hang scan_evt timeout
This is a bypass solution to espressif/arduino-esp32#5860
The watchdog will restart the ESP if no new BLE messages has been added to the queue following:

  • checked every 120s
  • if we are after the last BLE message time + the BLE scan interval for passive
  • if the process is not locked by an OTA update or other operation
    We restart the ESP

We also remove the WDT0 enable and disable functions.

Checklist:

  • The pull request is done against the latest development branch
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • I accept the DCO.

Implement a BLE scan watchdog to bypass the problem related to the BLE scan hang scan_evt timout
@1technophile 1technophile merged commit 6e8b463 into development Apr 6, 2023
146 checks passed
@1technophile 1technophile changed the title BT Watchdog Timer [BT] Application level Watchdog Timer to avoid scan_evt timeout Apr 6, 2023
@1technophile 1technophile deleted the app-wdt branch April 6, 2023 20:09
DigiH pushed a commit that referenced this pull request Apr 10, 2023
Implement a BLE scan watchdog to bypass the problem related to the BLE scan hang scan_evt timout
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

Successfully merging this pull request may close these issues.

None yet

1 participant