Skip to content

Commit 88e2751

Browse files
committed
samples: Bluetooth: observer with 10 ms continuous scanning
Updated observer sample to use 10 ms continuous scanning parameters. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 908ad59 commit 88e2751

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

samples/bluetooth/observer/src/observer.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,11 @@ static struct bt_le_scan_cb scan_callbacks = {
8888

8989
int observer_start(void)
9090
{
91+
/* 30 ms continuous active scanning with duplicate filtering. */
9192
struct bt_le_scan_param scan_param = {
92-
.type = BT_LE_SCAN_TYPE_PASSIVE,
93+
.type = BT_LE_SCAN_TYPE_ACTIVE,
9394
.options = BT_LE_SCAN_OPT_FILTER_DUPLICATE,
94-
.interval = BT_GAP_SCAN_FAST_INTERVAL,
95+
.interval = BT_GAP_SCAN_FAST_INTERVAL_MIN,
9596
.window = BT_GAP_SCAN_FAST_WINDOW,
9697
};
9798
int err;

tests/bsim/bluetooth/host/adv/chain/tests_scripts/adv_chain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_adv_chain_prj_conf\
1818
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=scan
1919

2020
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
21-
-D=2 -sim_length=10e6 $@
21+
-D=2 -sim_length=11e6 $@
2222

2323
wait_for_background_jobs

0 commit comments

Comments
 (0)