From 1fef5a8e5a628b581010c2366df523660d08f304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Narajowski?= Date: Wed, 30 Jan 2019 14:53:35 +0100 Subject: [PATCH] mesh: Increase scan window from 10ms to 30ms Experiments have shown that the probability of missing advertising packets is significantly lower with 30ms scan window compared to 10ms scan window. This is especially the case with advertisers using a 20ms advertising interval, which in turn is perhaps the most common one since it's the smallest allowed by the Bluetooth 5.0 specification. --- nimble/host/mesh/src/adv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nimble/host/mesh/src/adv.c b/nimble/host/mesh/src/adv.c index 996853f80..82c5c1bbf 100644 --- a/nimble/host/mesh/src/adv.c +++ b/nimble/host/mesh/src/adv.c @@ -29,8 +29,8 @@ #define ADV_SCAN_UNIT(_ms) ((_ms) * 8 / 5) /* Window and Interval are equal for continuous scanning */ -#define MESH_SCAN_INTERVAL_MS 10 -#define MESH_SCAN_WINDOW_MS 10 +#define MESH_SCAN_INTERVAL_MS 30 +#define MESH_SCAN_WINDOW_MS 30 #define MESH_SCAN_INTERVAL ADV_SCAN_UNIT(MESH_SCAN_INTERVAL_MS) #define MESH_SCAN_WINDOW ADV_SCAN_UNIT(MESH_SCAN_WINDOW_MS)