This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Scanner doesn't work on NRF52832/SDK 14

Hi,

We have custom board with STM32F407 as an application chip and BL652-SC-01 as a connectivity chip. When we worked on SDK 13 and softdevice 4.0.2 or 4.0.4 we had problem with connection mentioned here but didn't have any problems with concurrent scanner/peripheral modes operation. Trying to migrate code from SDK 13 to SDK 14 we faced the problem: the connectivity chip works improperly until we disable scanner mode.

During debugging the function sd_ble_gap_scan_start(&m_scan_params) we receive success but after that there are no events from connectivity chip. We watched UART RX line of the application chip and didn't see any activity on it. Here's scanner init structure:

#define SCAN_INTERVAL                   0x00A0 
#define SCAN_WINDOW                     0x0050
#define SCAN_TIMEOUT                    0

static ble_gap_scan_params_t const m_scan_params = {
  active : 1,
  use_whitelist : 0,
  adv_dir_report : 0,
  interval : SCAN_INTERVAL,
  window : SCAN_WINDOW,
  timeout : SCAN_TIMEOUT
};

There is one note: scanner doesn't work even if we don't start advertising. On the other hand, If scanner is enabled, advertising works but we are not able to connect to the device. The same issue is reproduced on NRF52 DK if we connect it to our custom board using 4 UART wires.

Regarding NRF_SDH_BLE_PERIPHERAL_LINK_COUNT and NRF_SDH_BLE_TOTAL_LINK_COUNT - we tried to increase those values but it didn't help. Here's the values we tried so far:

#define NRF_SDH_BLE_PERIPHERAL_LINK_COUNT 1
#define NRF_SDH_BLE_CENTRAL_LINK_COUNT 1
#define NRF_SDH_BLE_TOTAL_LINK_COUNT 2

Update #1

I've attached project which includes SDK files and BLE logic. Readme.txt file describes all changed that were applied to launch serialization.

project_periph_central.zip

Parents Reply Children
No Data
Related