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

RSSI fluctuation issue

Hello, I am working on a firmware for nrf52832 custom board, whose purpose is to light an onboard LED if another nrf52832 custom board (same design) is near to it. The other device would do the same as both have the same design (hardware+firmware) and there are twnety of them which do the same when they are near to each other. If we go back to our two devices, so device A does this by scanning for device B and measuring its RSSI. if the rssi value is greater than a threshold (say -60 dbm), device A considers device B near and ligh the LED, device B should also do this. Now the problem is with RSSI values. As we all know that the RSSI value is affected by environment and other factors, it keeps on fluctuating, sometime I get -40, or -45 and the other time (although the device is near and at the same place as before), the rssi it gets is -65 and triggers the other event. Also, when it is at the near the threshold value, this is where the problem becomes uncontrollable. I get -57, -58, -63, -65, -55 etc and the devices go back and forth. What should I do to keep this stable. I am wondering how other people are managing this in their products. Is there any other way than rssi, because I see some devices with stable operation. Is there something I am missing? Should I add rssiCounter in the code for measuring multiple rssi values and then activate the led state? Please share your experience as I want to use something professional and not writing code that would fail afterwards.

I appreciate your response in this regard.

Regards,

Sheryar Shahzad

Parents Reply Children
Related