noble / bleno

A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals
MIT License
2.13k stars 451 forks source link

Change connection interval ? #235

Open natcl opened 8 years ago

natcl commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 notifications@github.com 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 https://github.com/sandeepmistry/bleno/issues/235#issuecomment-252666655, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEu9M5HPo5eao96Xn_n6R-5LnG4Y-HGks5qymLggaJpZM4KSB-F .

sandeepmistry commented 8 years ago

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

natcl commented 8 years ago

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 notifications@github.com 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 https://github.com/sandeepmistry/bleno/issues/235#issuecomment-252668851, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEu9Oty1fYMAdmAAln0TDKFc_ZyoZ1iks5qymUBgaJpZM4KSB-F .

sandeepmistry commented 8 years ago

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

iankchristie commented 7 years ago

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 commented 4 years ago

Relate-to:

https://github.com/abandonware/bleno/issues/17