This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nrf51822 ble s110 scan another device get RSSI value

Hi everyone : I have some questions about nrf51822 ble S110 ,I have two ble device ,both device used S110,is it possible use the first device to scan the second device to get the RSSI value?

  • If you start scanning by calling sd_ble_gap_scan_start (link) you will get a BLE_GAP_ADV_REPORT event upon receiving an advertisement packet. This event contains RSSI information.

    This event also contains the devices address, which you can use to select only RSSI values from the correct device.

    Note that the other device needs to be advertising for this to work.

  • @Peter: The S110 (peripheral) stack is not made to be able to scan for a device. You can think of having one device running S120 (central stack) to scan for the other device running S110. If you want the central device be able to be peripheral also, you can think of using S130 (central+peripheral stack).

    Alternativelly, if you don't want to use S130/S120, you can use S110 and access radio directly using timeslot API to scan for packet with S110, but it's more complicated. You can have a look at this example.

  • @Hung Bui : I have some question want to ask 1.if i use S130 (central+peripheral stack) device can be switch central or peripheral what i want ? 2.is S130 (central+peripheral stack)power consumption higher than S110? 3.radio method is use first device's RF to scan second device's RF to get second device's RSSI value ? what different between BLE RSSI and RF RSSI ? thanks

    1. You can switch between central or peripheral, or you can do both at the same time.
    2. If it does the same task as S110 then the current consumption should be the same
    3. Please provide the topology, what is first device, second device, their roles (connected or simply broadcasting ?)
    4. There should be no different if the setting of proprietary RF are the same with BLE.
  • @Hung Bui : 1.so in S130 device can be connected by smartphone and it also can scan another devices in the same time? 3.i have two device i want to know their distance(use rssi) without connect and both device are peripheral

Related