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

Linux kernel updates connection interval #22

Open
haroal opened this issue Jul 31, 2018 · 0 comments
Open

Linux kernel updates connection interval #22

haroal opened this issue Jul 31, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@haroal
Copy link
Contributor

haroal commented Jul 31, 2018

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.

@haroal haroal added the enhancement New feature or request label Jul 31, 2018
@haroal haroal changed the title Kernel updates connection interval Linux Kernel updates connection interval Jul 31, 2018
@haroal haroal changed the title Linux Kernel updates connection interval Linux kernel updates connection interval Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant