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.

The connection interval setting in multiple slaves to master

Other Parts Discussed in Thread: CC2540

Hi all,

I implement the multiple slaves to connect to one master for BLE. Before the connection, I have already set the connection interval individually for each slave, and when I connect to master, all connection interval is set to 100ms. And I could only adjust the interval as 50ms and 100ms, the other interval could not be assigned ex,. 70ms or 120ms.

Could any one help me what happen in this case and with this problem means the slave's connection interval could not set by itself?

(I implement this experiment with CC2540)

Thanks

  • Hello Wayne,

    Can you advise how you are setting the connection interval? Also, is the CC2540 the master/Central in this experiment?

    Best wishes
  • Hi,

    I try the two cases as follow:

    Case 1:

    I set the one CC2540 as master to connect to three slaves, one is set as 500ms, other is 520ms, and the other is 540ms.

    I measure the interval of salve, whose interval is 500ms and find the interval is scaled as 100ms.

    Case2:

    I set the one CC2540 as master to connect to three slaves, one is set as 50ms, other is 100ms, and the other is 110ms.

    I measure the interval of salve, whose interval is 50ms and find the interval is scaled as 50ms.

    Thank

  • Hi,


    any news regarding this topic ?

    I have a similar example here, were I have a cc2540 as central (scanning for peripherals) and 2 peripherals (CC2540 waiting connections) and cannot receive data on the "second" slave/peripheral.

    Case A: 1 central and 1 peripheral:
         - discovery and connection with the peripheral works OK
         - TX/RX data works OK

    Case B: 1 central and 2 peripherals
        - discovery and connection with 2 peripherals works OK
        - TX/RX with peripheral 1 works ok
        - TX/RX with peripheral 2 FAILS
                 - In this case I actually see in the Sniffer the data sent from the master (central) to peripheral 2 but the peripheral 2 never gets the data.

        * Should I do anything with my connection intervals ?

    // Currently they are as follows in both peripherals: (I tried changing it but the result was the same)

    #define DEFAULT_DESIRED_MIN_CONN_INTERVAL     8
    #define DEFAULT_DESIRED_MAX_CONN_INTERVAL    80

     

    Thanks,