Skip to content

bluetoothctl: Failed le-connection-abort-by-local #551

@user12257

Description

@user12257

Hello,

I have this issue, where sometimes when trying to connect to my esp32c6, I get Unknown errors from bluetoothctl.

Attempting to connect to MAC_ADDR
[CHG] Device MAC_ADDR Connected: yes
Failed to connect: org.bluez.Error.Failed le-connection-abort-by-local
[SIGNAL] LE.Disconnected - org.bluez.Reason.Unknown, Unspecified
[SIGNAL] Disconnected - org.bluez.Reason.Unknown, Unspecified
[CHG] Device MAC_ADDR Connected: no

This happens almost every time on my laptop and not so often but sometimes on my pc.

My code is basically mirroring this example
https://github.com/esp-rs/esp-hal/tree/1.0.0/examples/ble/bas_peripheral

On the device I don't see anything happening in the logs

    info!("[adv] advertising");
    let conn = advertiser.accept().await?.with_attribute_server(server)?;
    info!("[adv] connection established");
    Ok(conn)

I get the "advertising" log, but nothing afterward, only in the case that it works I get logs there.

I also added logging in the ble_task, to see if its running and I can see that it is started, and I don't get any error from it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions