2 Replies Latest reply on Sep 29, 2017 2:16 PM by e.pratt_1639216

    Connection Parameters and Timeout

    rich.soennichsen_1592346

      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.

       

      Thanks

       

      Rich

        • 1. Re: Connection Parameters and Timeout
          yssu

          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
            e.pratt_1639216

            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 yssu 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.

             

            Regards,

            Epratt