2 Replies Latest reply on Sep 29, 2017 2:16 PM by epr_1639216

    Connection Parameters and Timeout

      What is the best way to set the connection parameters?  I am experiencing timeouts using CySmart as a client.  Should the client parameters match the peripheral? I understand that the peripherals parameters are "suggestions" to the client, not sure what this really means.





        • 1. Re: Connection Parameters and Timeout

          Connection parameters are always decided by the master or the initiator or the central. The peripheral can just indicate the parameters it is comfortable with but the entire power lies with the central. It can choose whatever connection parameters it wants to, without considering the params suggested by the peripheral.


          You can send a connection parameter update request to change the parameters.

          • 2. Re: Connection Parameters and Timeout

            The "best" way would be to have a static connection parameters, but with varying clients, then you will need to adjust your code to handle various connection parameters as sujayy_46 said above. Also of note is the "slave latency" setting in the peripheral/central (I forget which side had it), but it will allow that number of missed connection windows before assuming the other device disconnected. If your connection parameters have a really short window, then the number of missed windows might be higher for you application (due to EMI, noise, interrupts, timing, etc.). This means that to get a fixed time for the timeout for connections, you will want to increase the slave latency proportionally based on how short the connection parameters are.