2017-02-17 03:48 PM
Hi,
My BlueNRG-MS, running 7.2c, acts both as a central and a peripheral (mode 4). How should I select the advertizing min and max intervals for the peripheral as well as the connection min and max intervals for the central? There seem to be a relationship between them, but I'm not sure I understand it.
I'm trying to get the minimal connection interval for the central role, while ensuring proper connectivity for the peripheral.
LE_Scan_Interval and LE_Scan_Window seems also to come into play...
Right now, I'm testing different values through trial and error, but if there is a mathematical relationship between those, I'd like to know it.
Thanks!
#bluenrg-msSolved! Go to Solution.
2017-02-26 02:25 PM
I have also been experimenting with different connection / scan interval combinations and found some useful guidelines in the BlueNRG programming manual (
For Example, this is from section 4.3:
4. Every time you start Advertising:
a) If Direct Advertising, choose Advertising_Interval_Min = Advertising_Interval_Max= integer multiple of the shortest allocated connection intervalb) If not Direct Advertising, choose Advertising_Interval_Min =Advertising_Interval_Max such that (Advertising_Interval_Min + 5ms) is an integermultiple of the shortest allocated connection intervalHope this helps
2017-02-23 02:43 AM
Hi,
On
https://github.com/ARMmbed/ble-x-nucleo-idb0xa1
you can find a wrapper library for BlueNRG-MS.In particular, the BlueNRGGap class handles the computation of parameters related to Advertising:
BlueNRGGap::setAdvParameters()
and Connection:
BlueNRGGap::setConnectionParameters
()Hope that helps.
2017-02-26 02:25 PM
I have also been experimenting with different connection / scan interval combinations and found some useful guidelines in the BlueNRG programming manual (
For Example, this is from section 4.3:
4. Every time you start Advertising:
a) If Direct Advertising, choose Advertising_Interval_Min = Advertising_Interval_Max= integer multiple of the shortest allocated connection intervalb) If not Direct Advertising, choose Advertising_Interval_Min =Advertising_Interval_Max such that (Advertising_Interval_Min + 5ms) is an integermultiple of the shortest allocated connection intervalHope this helps