One Central multi Peripheral connection problem

Hi

         1、 I want to know the connection mechanism of one Central connects multi Peripheral.

         2、What is the time interval between one connection switching to another? Is there a flow chart?

         3、How to ensure that the data of a link is sent before entering the next link?

thank you

Parents Reply
  • helen said:
    Whether there is a response mechanism between the center and peripheral after connecting, If so,Why does data loss occur?

    Data can not be lost on a BLE link - if a packet is not acknowledged by the peer it will be resent. This happens both in the cases where the peer does not hear the packet, or in the case that the packet has been corrupted by noise and is thus discarded.
    The SoftDevice handles this bit for you as well, so the application layer does not need to do anything in order to have packets retransmitted etc.

    If you experience any dataloss in your application it likely happens on the application side before it is passed to the SoftDevice (such as if you have forgotten to check the returned error code from your SoftDevice write function call), or in the application layer on the peer's side.

    Best regards,
    Karl

Children
Related