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

HCI core data buffer overflow with ESP32-C3 in Peripheral HR sample #43258

Closed
pflonz opened this issue Feb 28, 2022 · 1 comment · Fixed by #43947
Closed

HCI core data buffer overflow with ESP32-C3 in Peripheral HR sample #43258

pflonz opened this issue Feb 28, 2022 · 1 comment · Fixed by #43947
Assignees
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug platform: ESP32 Espressif ESP32 priority: low Low impact/importance bug

Comments

@pflonz
Copy link

pflonz commented Feb 28, 2022

Describe the bug
The Peripheral HR sample program issues the warning <wrn> bt_hci_core: Data buffer overflow (link type 0x01) while connected to nRF Toolbox HRM after some time and stops notification (same behaviour also with other BLE smartphone apps).

Please also mention any information which could help others to understand
the problem you're facing:

  • What target platform are you using?
    • ESP32-C3 (esp32c3_devkitm)
  • What have you tried to diagnose or workaround this issue?
    • Nothing as I expected this example to work

To Reproduce
Steps to reproduce the behavior:

  1. mkdir build
  2. west build -p auto esp32c3_devkitm -s ~/workspace/zephyr/samples/bluetooth/peripheral_hr/ -d build/ -- -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
  3. west flash -d build/
  4. west espressif monitor
  5. start nRF Toolkit on smartphone
  6. choose HRM in nRF Toolkit and connect to Zephyr Heartrate Sensor

Expected behavior
As soon as a device connects, it generates dummy heart rate values without issuing the warning and stopping the notifications.

Impact
What impact does this issue have on your progress (e.g., annoyance, showstopper)

  • Showstopper, because I want to use the basic BLE features to create my own GATT Service to receive notifications from my device.

Logs and console output

*** Booting Zephyr OS build zephyr-v3.0.0-483-g145bcd7ab96e  ***
I (1) phy_init: phy_version 500,985899c,Apr 19 2021,16:05:08
Bluetooth initialized
Advertising successfully started
[00:00:00.000,977] <inf> esp32_bt_adapter: BT controller compile version [9c99115]
[00:00:00.295,445] <inf> bt_hci_core: Identity: 88:61:A1:02:02:40 (public)
[00:00:00.295,539] <inf> bt_hci_core: HCI: version 5.0 (0x09) revision 0x0016, manufacturer 0x0060
[00:00:00.295,559] <inf> bt_hci_core: LMP: version 5.0 (0x09) subver 0x0016
Connected
[00:00:05.077,917] <inf> bas: BAS Notifications enabled
[00:00:05.115,279] <inf> hrs: HRS notifications enabled
[00:01:44.403,870] <wrn> bt_hci_core: Data buffer overflow (link type 0x01)
[00:01:44.404,257] <wrn> bt_hci_core: Data buffer overflow (link type 0x01)
[00:01:45.405,777] <wrn> bt_hci_core: Data buffer overflow (link type 0x01)

Environment (please complete the following information):

  • Windows 10 with WSL2 running a Docker container (I'm using the Dockerfile.user with small extensions)
  • Toolchain (e.g Zephyr SDK, ...)
    • Espressif RISC-V Toolchain installed with west espressif install
  • zephyr-v3.0.0-483-g145bcd7ab96e

Additional context
Add any other context that could be relevant to your issue, such as pin setting,
target configuration, ...

  • Nothing, only the bare sample without any changes.
@pflonz pflonz added the bug The issue is a bug, or the PR is fixing a bug label Feb 28, 2022
@pflonz
Copy link
Author

pflonz commented Mar 1, 2022

@sylvioalves Can you possibly help me out here? Many thanks in advance!

@carlescufi carlescufi added area: Bluetooth area: Bluetooth Host Bluetooth Host (excluding BR/EDR) priority: low Low impact/importance bug platform: ESP32 Espressif ESP32 and removed area: Bluetooth Host Bluetooth Host (excluding BR/EDR) labels Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug platform: ESP32 Espressif ESP32 priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants