This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problem of multi-link using the relay unit

I would like to carry out communication with a plurality of peripheral using a central multi-link function.

When performing the communication via the relay unit, the communication of the second and subsequent, there are cases where advertising is not accepted.

At that time, Central SCAN is operating normally, it is possible communication with another peripheral.

Why, in the second and subsequent communication, Will advertising can not be accepted?

  • FormerMember
    0 FormerMember

    ble_app_hrs_rscs_relay can connect to two peripherals without any problems. Remember that the advertising devices has to have the same device name, because ble_app_hrs_rscs_relay filters on device name: see on_ble_ev(..) --> case BLE_GAP_EVT_ADV_REPORT

  • Thanks for the quick answer. I am sorry that the description was not sufficient. My problem is not that the two peripherals can not connect. In the following 3rd step, Central can not respond to advertising from the relay. Central can respond the advertising from the peripheral. Do you know the reason why the Central can not respond?

    1st step:first communication     peripheral -> relay -> central -> relay -> peripheral 2nd step:all disconnect 3rd step:second communication relay -> central : NG

  • FormerMember
    0 FormerMember in reply to KIYOMI

    Okay, I see. After both peripherals have disconnected from the relay device, can the central device see that the relay device is advertisting? When I test what you describe here, it works without any problems.

  • I'm sorry reply late. I'll explain in detail. Goal we want to achieve:

    • Establishment of communication between the central and peripherals The communication may or may not be established via a relay station.

    As the specifications of the communication, we want to achieve 1 and 2 below.

    Conditions:

    • Peripheral: Starts Advertising
    • Relay station: Scanning, then starts advertising after connected to a peripheral.
    • Central: Scanning (multiple connections)

    Specifications of the communication:

    1. Communication A peripheral sends data to the central, and then the central sends the data back to the peripheral.

    2. Disconnection of the communication: After the peripheral receives the data from the central in 1. above, the peripheral verifies the received data, and when the data is correct, then it disconnects the communication.

    Issue: When peripherals are placed in two cases of locations as described below, communications between peripherals and the central may become unstable.

    Peripherals’ communication paths:

    1. A peripheral can directly communicate with the central.
    2. A peripheral can communicate with the central via a relay station.

    Question: Is the issue solved, i.e., the communication becomes stable, if peripherals are placed in locations where they can only communicate with the central via a relay station (case 2. above).

  • FormerMember
    0 FormerMember in reply to KIYOMI

    What do you mean by unstable communication? When the relay device is connected to a peripheral, is the connection unstable? Or is it hard for the relay device to re-connect to the peripheral, because the central device is already connected to the peripheral?

Related