This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WEBENCH® Tools/CC2541: cc2541 distance measurement using RSSI example

Part Number: CC2541

Tool/software: WEBENCH® Design Tools

Hi

I tried to use SimpleBLEObserver to fins an example for distance calculation using RSSI but I couldn't find it.

1. Can you point me to a specific code that reads RSSI ?

2. Can you point me to a code that calculate distance from it ?

Thanks

Gil

  • Hi Gil,

    You can read RSSI from Scan Response data in the GAP_DEVICE_INFO_EVENT. Go to the GAPCentralRole Profile and look at the contents of the struct gapDeviceInfoEvent_t.

    Please refer to the API documentation in your install directory for more information about how to read RSSI. 

    There is no code that calculates distance from it. RSSI can be used to estimate distance, but it's an application specific adaptation that is up to the developers of their application to determine the distance. For instance, enclosure, antenna efficiency and many other aspects can impact RSSI measurements, so it's up to the application developer to determine how you would want to interpret RSSI into a distance.