Hello,
I am using the Bluetopia stack on MSP430exp5438 with PAN1323EMK. I am running a modified version of SPPDemo application on it.
In my application, I am trying to estimate the distance (need not be accurate, less than 5 mts should be flagged) of remote device from the board using following steps.
1) Connect to device using it MAC Address.
2) After connection confirmation, read rssi value using HCI_Read_RSSI.
3) Read link quality value using HCI_Get_Link_Quality.
On doing this Link quality always remains 255 (even at distance 15 mtrs) and RSSI is always 0 (I guess it means inside golden power range)
However RSSI gives random values like 4, 6, -2 etc even when remote device is not moved.
Is there any way that I can read RSSI raw values (no golden power range etc)?
I tried to set max power level to 2dB using the function in BTVSAPI.h, but still the device gets connected outside 15 mtrs.
Is there any way to restrict connection with 5 mtr radius of local bt device?
Regards
Shashank