Skip to content

Linux kernel updates connection interval #22

@haroal

Description

@haroal

Even if I set the connection interval to the wanted value on connect, the Linux kernel sends a ConnectionParameterUpdateRequest right after connection to set it to 30ms...
This value seems to be hardcoded in the Bluetooth kernel module (see here)

I can't prevent it to send the request but I could send a response with the connection interval that we want. The only issue is that I have to modify a lot of code to register the connection interval for each connection handle in HCISocket to be able to set the right value in the Connection Update ... OR find a way to send a reject response to keep the value set in LE Create Connection (hoping that the kernel won't retry...)

selection_014

Obviously, this occurs only if we use a Linux computer as a peripheral. If you connect to another device, it will depend on this device: will it accept the connection interval or will it try to update the connection? If it updates the connection, this is not handled yet by baBLE, and so the requested connection interval will be automatically used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions