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

BLE RELAY EXAMPLE

hello support  team

nRF52 DK , Mesh 2.01

I am trying Experimental BLE RELAY example.

1. In first trial I am using 1 RELAY DK  all works well.

2.In second Trial I am using 3 RELAY DK  nothing happens at collector side

Any check list how can debug or check . nRF connect showing no services.

Parents
  • Hi,

    The BLE Relay Example is a multirole example, where the relay acts both as central and as peripheral. It acts as central in order to scan for and connect to a heart rate sensor and to a running speed sensor. It acts as peripheral in order for a collector to connect to it. It relays the heart rate values and the running speed values from the sensors to the collector, without doing any calculations on them.

    The relay example can connect to one heart rate sensor and one running speed sensor, and it can be connected to from a collector. Our heart rate sensor and running speed sensor examples connect to one central, which means they connect to one relay only.

    If you need more connections than that then you must modify the example. For how to do multiple connections you may have a look at the multiperipheral eample and the (central) multi-link example. The current SoftDevices allows for up to 20 connections total.

    Regards,
    Terje

     

Reply
  • Hi,

    The BLE Relay Example is a multirole example, where the relay acts both as central and as peripheral. It acts as central in order to scan for and connect to a heart rate sensor and to a running speed sensor. It acts as peripheral in order for a collector to connect to it. It relays the heart rate values and the running speed values from the sensors to the collector, without doing any calculations on them.

    The relay example can connect to one heart rate sensor and one running speed sensor, and it can be connected to from a collector. Our heart rate sensor and running speed sensor examples connect to one central, which means they connect to one relay only.

    If you need more connections than that then you must modify the example. For how to do multiple connections you may have a look at the multiperipheral eample and the (central) multi-link example. The current SoftDevices allows for up to 20 connections total.

    Regards,
    Terje

     

Children
  • Hi, Tesc,

    Thanks for you replay.

    Actually, I hope my programming device can be as Role Central and Peripheral.

    1. When device switch to Role as Peripheral, it could be connected with SmartPhone(Central) and communicate with iOS or Android App.

    2. When device switch to Role as Central, I hope device can receiving data from Peripheral and also process the data in local device. I hope this device able to support more than two Peripheral.

    I have finished Experimental: BLE Relay Example, this feature seen meet my request, and I have some question.

    3. Is that the "running speed sensor" Example will not Advertising the Device Name "Nordic_RSC"? I cann't found on nRF Connect and Sniffer log. (SDK15.0.0)

    4. Continuous the Q3, is that the "running speed sensor" Example propose to Hide the Device Name, something like invisible SSID, do not hope the Smart Phone can access into DUT.

    5.  If I hope we support more than two device, is that possible in this SDK, something like increase NRF_BLE_GATT_LINK_COUNT and add more services.

  • Hi everyone, am about to start this project; using Experimental: BLE Relay Example.

    Can i just verify whether the relay (ie Node B) carry it own sensor as well? i understand the relay help to collect data from its peripheral(Node A) then send to collector(aka central).

    As gathered here, the relay can be both peripheral and central. Am i right to say, the collector will collect two set of data, from Node A and Node B each?

  • Hi,

    The BLE Relay Example only relays sensor data. Yes, it can collect from one heart rate peripheral and from one running speed peripheral, and relay that to one central.

    You may of course modify the example as you wish, for instance let sensor readings originate from the relay device. Note that the BLE peripheral examples in the SDK does not use sensors, they show the BLE side of things and only emulate sensor data. Connecting an actual sensor and writing the sensor related code is something you would have to do yourself.

    Regards,
    Terje

  • Hi tesc, Thanks for your prompt reply. 

    i understand i have to write my own sensor related code for the sensor to work on the relay.

    Can i just verify whether the collector (central) in BLE Relay Example; or any other example, able to collect sensor data from two individual two nodes? For my case, Node A - a peripheral with a sensor and Node B - a relay with another same sensor.

    Is the collector refer to, in this case, either another board or android phone?

    Rgds

  • Hi,

    In the BLE Relay Example, "collector" refers to any device implementing the Collector role for the Heart Rate Profile. That profile is specified by the Bluetooth SIG.

    For instance, you can use our BLE Heart Rate Collector Example. That example only connects to one peripheral. To see how to connect to multiple peripherals you can have a look at our BLE Multi-link Example.

    Regards,
    Terje

Related