This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to know the actual connection parameters

Hello,

I am working with the nRF51822 and S110 Softdevice. I have so far successfully created several examples of fairly complex Peripherals. Now I am trying to,

A) Set up the preferred communication parameters before actually starting the advertising.

B) Re-negotiating with the Central just at the beginning of a newly established connection (in fact, I am doing it from the onConnection callback function).

My questions,

  1. So far, I have been unable to affect the connection params by issuing a setPreferedConnectionParams() before starting the advertising process. I get the same conn params when I use the above function and when not. I have tried connecting from different Central devices (iPhone 5, Android tablet, OS X Bluetooth Explorer), but I don't get different results. What's your experience on the topic? Do you know if Central devices honor the preferred conn params broadcasted during the advertising process?

  2. How can I know the newly (if any) applied communication parameters after the re-negotiation with the Central (procedure B)? Is there any API function which I can call to retrieve the actual communication parameters, at any time, during a connection? Immediately after the connection has been established, I get the actual conn params from the onConnection callback function, but I cannot find how to do it outside the callback, at a later time of the same connection.

Thanks for your support!

Best regards, José Ángel Jiménez