Skip to content

Default bleak timeout (10s) while getting GATT services - leads to Transport error: connection timeout #89

@RubenIxorigue

Description

@RubenIxorigue

Hi there,

I’ve been testing the new 0.17.0 build and noticed that we’re consistently hitting Transport error: connection timeout.

To better understand what was happening, I collected detailed logs, since the Windows embedded .exe version of 0.13.0 does not exhibit this behavior in our environment.

From what we can see, in 0.17.0 the BLE stack appears to be enforcing a default 10-second timeout during GATT service discovery, even when --timeout 120 is provided. The timeout value does not seem to be propagated to the GATT discovery phase after the device is already connected.

This behavior was not present in 0.13.0, as shown in the logs. In our case, GATT service discovery after a successful connection can take up to ~110 seconds in a clean environment, which 0.13.0 handled correctly.

Both versions tested are the embedded Windows .exe builds.

Please let me know if you’d like us to provide additional logs or test a specific build or configuration.

0.17.0

Image

0.13.0

Image

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