Hello,
we want to support scan for both 1Mbps and Long Range beacons and we are using the S140 6.1.0.
This is the configuration for the scan parameters:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#define SCAN_INTERVAL 0x0640
#define SCAN_WINDOW 0x0320
#define SCAN_DURATION 0
static ble_gap_scan_params_t m_scan_param = /**< Scan parameters requested for scanning and connection. */
{
.active = 0x00,
.interval = SCAN_INTERVAL,
.window = SCAN_WINDOW,
.filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL,
.timeout = SCAN_DURATION,
.scan_phys = BLE_GAP_PHY_1MBPS | BLE_GAP_PHY_CODED,
.extended = 1,
};
When this is the case, I only see beacons that are advertising on 1MBPS and I cannot see the beacons that are advertising on CODED PHY.
When I set the scan_phys to BLE_GAP_PHY_CODED only or BLE_GAP_PHY_1MBPS only, I am able to see the beacons that are advertising on CODED PHY and 1MBPS, respectively.
What can be the problem? How can I scan for both CODED_PHY and 1MBPS?
I saw this post and thought it would work for me as well. Do I need to change some other configuration too?
Thanks.