This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Minimum and Maximum Connection Interval



Hi,

    According the Bluetooth LE developers guide "The connection interval is the amount of time between two connection events, in units of 1.25ms. The connection interval can range from a minimum value of 6 (7.5ms) to a maximum of 3200 (4.0s)"

In BTool Discover and Connect page there are two fields Min Connection Interval and Max connection interval

Which of these is chosen for connection interval or is it supposed to be a range between minimum to maximum

  • Ok I get it 

         These limits set a range of values that a connecting device can request

    case GAPROLE_MAX_CONN_INTERVAL:

          {

            uint16 newInterval = *((uint16*)pValue);

            if (   len == sizeof ( uint16 )          &&

                 ( newInterval >= MIN_CONN_INTERVAL) &&

                 ( newInterval <= MAX_CONN_INTERVAL) )

            {

              gapRole_MaxConnInterval = newInterval;

            }

            else

            {

              ret = bleInvalidRange;

            }

          }

          break;

     

        case GAPROLE_SLAVE_LATENCY:

          {

            uint16 latency = *((uint16*)pValue);

            if ( len == sizeof ( uint16 ) && (latency < MAX_SLAVE_LATENCY) )

            {

              gapRole_SlaveLatency = latency;

            }

            else

            {

              ret = bleInvalidRange;

            }

          }

          break;