Skip to content

FW: Earable disconnects when running high sampling rate on sensors and playing audio #136

@DennisMoschina

Description

@DennisMoschina

When running multiple sensors at high sampling rates via BLE and then starting audio streaming, the Earable disconnects from the phone. First there is output like this in the serial monitor:

HR [00:02:26.206,115] <wrn> sensor_manager: ble sensor stream queue full
HR [00:02:26.208,831] <wrn> bt_conn: Unable to allocate buffer within timeout
HR [00:02:26.208,831] <err> bt_att: Unable to allocate buffer for op 0x1b
HR [00:02:26.208,862] <wrn> bt_gatt: No buffer available to send notification
HR [00:02:26.208,862] <wrn> bt_ascs: Out of buffers for ase state notification. Will retry in 11ms
HR [00:02:26.219,970] <wrn> bt_conn: Unable to allocate buffer within timeout

This output repeats multiple times a second before after a few seconds the earable disconnects with the following output:

HR [00:02:26.239,898] <wrn> bt_conn: conn 0x20009eb0: not connected
HR [00:02:26.240,142] <wrn> bt_conn: conn 0x20009eb0: not connected
HR [00:02:26.240,264] <inf> battery_service: unsubscribe from battery level
HR [00:02:26.240,600] <inf> bt_mgmt: Disconnected: AC:3E:B1:05:3A:63 (public), reason 0x13 
HR [00:02:26.240,753] <wrn> bt_att: Not connected
HR [00:02:26.240,753] <wrn> sensor_manager: Failed to send data: -128.

HR [00:02:26.241,516] <inf> streamctrl: Disconnection event. Num connections: 0
HR [00:02:26.243,682] <inf> bt_mgmt_adv: Local addr: 58:4D:17:92:06:1E (random)
HR [00:02:26.243,743] <inf> bt_mgmt_adv: Adv directed to: AC:3E:B1:05:3A:63 (public).
HR [00:02:26.243,865] <wrn> bt_conn: Found valid connection (0x20009eb0) with address AC:3E:B1:05:3A:63 (public) in disconnected state

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions