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

Change connection interval ? #235

Open
natcl opened this issue Oct 9, 2016 · 9 comments
Open

Change connection interval ? #235

natcl opened this issue Oct 9, 2016 · 9 comments

Comments

@natcl
Copy link

natcl commented Oct 9, 2016

Hello,
I'm trying to implement the Apple BLE MIDI Service.

In the documentation they state this:

The accessory shall request a connection interval of 15 ms or less. Apple recommends starting with a request for a connection interval of 11.25 ms and going to 15 ms if the connection request is rejected by the Apple product.

Is there a way to set this in bleno ?

Thanks

@sandeepmistry
Copy link
Collaborator

Hi @natcl,

This is not supported at the moment, I'm marking it as an enhancement.

We could have an API similar to CoreBluetooth's setDesiredConnectionLatency with values low, medium, and high.

@natcl
Copy link
Author

natcl commented Oct 10, 2016

Thanks, and what would be the default connection interval now ? Is it the same as the 100ms advertising interval or once a connection is established it's faster ?

@sandeepmistry
Copy link
Collaborator

I believe it's determined by the central device, you can use sudo hcidump -t -x to see what is specified. Please let me know what it reports on your system.

@natcl
Copy link
Author

natcl commented Oct 10, 2016

In my case the central device is my iPhone I believe, the peripheral (using
bleno) runs on MacOS.

Le lun. 10 oct. 2016 à 12:08, Sandeep Mistry [email protected] a
écrit :

I believe it's determined by the central device, you can use sudo hcidump
-t -x to see what is specified. Please let me know what it reports on
your system.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#235 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEu9M5HPo5eao96Xn_n6R-5LnG4Y-HGks5qymLggaJpZM4KSB-F
.

@sandeepmistry
Copy link
Collaborator

You can use the Packet Logger app that is part of Xcode Hardware IO tools to see what's going on then.

@natcl
Copy link
Author

natcl commented Oct 10, 2016

Thanks will try that !
So far speed seems good so I assume nothing more is needed in bleno.

Le lun. 10 oct. 2016 à 12:17, Sandeep Mistry [email protected] a
écrit :

You can use the Packet Logger app that is part of Xcode Hardware IO tools
to see what's going on then.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#235 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEu9Oty1fYMAdmAAln0TDKFc_ZyoZ1iks5qymUBgaJpZM4KSB-F
.

@sandeepmistry
Copy link
Collaborator

@natcl excellent, let's leave this request open for now to see if other people request a similar feature.

@iankchristie
Copy link

Hello!

I'm working on transmitting small files from a Raspberry Pi to an Android. Being able to increase the connection interval would be extremely helpful to speed up transfer.

@rzr
Copy link

rzr commented Nov 4, 2020

Relate-to:

abandonware#17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants