Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ] core: Reduce RSSI delta threshold for RSSI property updates on Device1.
@ 2014-09-29 22:16 Arman Uguray
  2014-09-30  8:34 ` Szymon Janc
  0 siblings, 1 reply; 8+ messages in thread
From: Arman Uguray @ 2014-09-29 22:16 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Arman Uguray

Currently the daemon does not update the RSSI property of a device object unless
it sees a change of at least 8 dBm. This is too large for proximity use cases
involving changes in distance within 4-5 feet. This patch reduces the threshold
to 2 dBm to address this.
---
 src/device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/device.c b/src/device.c
index 875a5c5..821549e 100644
--- a/src/device.c
+++ b/src/device.c
@@ -4094,8 +4094,8 @@ void device_set_rssi(struct btd_device *device, int8_t rssi)
 		else
 			delta = rssi - device->rssi;
 
-		/* only report changes of 8 dBm or more */
-		if (delta < 8)
+		/* only report changes of 2 dBm or more */
+		if (delta < 2)
 			return;
 
 		DBG("rssi %d delta %d", rssi, delta);
-- 
2.1.0.rc2.206.gedb03e5


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-10-02  8:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-29 22:16 [PATCH BlueZ] core: Reduce RSSI delta threshold for RSSI property updates on Device1 Arman Uguray
2014-09-30  8:34 ` Szymon Janc
2014-09-30 16:58   ` Arman Uguray
2014-09-30 17:04     ` Marcel Holtmann
2014-09-30 17:21       ` Arman Uguray
2014-09-30 17:26         ` Marcel Holtmann
2014-10-01 15:32           ` Arman Uguray
2014-10-02  8:34             ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox