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

Scanner(Central) stop scanning at random event

I am scanning beacons data in ble central profile with gap scan parameter 

static ble_gap_scan_params_t const m_scan_params =
{
.extended = 1,
.active = 1,
.interval = 0x640,
.window = 0x640,
.timeout = 0,
.scan_phys = BLE_GAP_PHY_1MBPS,
.filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL,
};

my code consist of buttonless dfu,central,peripheral role,all working together very well,but after sometime central only provide its own data through uart i.e.scanning data missing,please guide

Parents Reply Children
  • as we used custom board with skyworks PA,and other various peripheral code doesn't work with dev board,as i mention scanning stop randomly sometimes in few minutes or it takes hours.also in nrf52832 only one uart available and we are using it for data uploading so unable see logs,if you want to share any particular settings i will share you.   

  • This seems to be really hard nut to crack if the error happens after few hours and the side affect is that the scanner stops without any errors. If this is really the case, then you need to send your hardware here and help us reproduce the issue. I am afraid there is no easy way of dealing with this as it might involve debugging the softdevice, which is not possible from your end.

    Please check if you can send the hardware to us at 

    For direct shipments/visiting address:

    Susheel Nuguru
    Nordic Semiconductor
    Otto Nielsens veg 12
    7052 Trondheim
    Norway

    Telephone: +47 72 89 89 00

  • Hi,

    I have a similar problem using Thingy52, SDK 13.0.0, SD S132 v4.0.5, that sends periodically beacon eddystone UID every 200ms, and at the same time scans the beacon sent by the other Thingy52.

    Everything works fine but sometimes it stops to receive the adv events, without any specifc error.

    These are the values used to configure the scan in ble_gap_scan_params_t:

    #define SCAN_INTERVAL 0x0050 /**< Determines scan interval in units of 0.625 millisecond. */
    #define SCAN_WINDOW 0x0040 /**< Determines scan window in units of 0.625 millisecond. */
    #define SCAN_TIMEOUT 0x0000 /**< Timout when scanning. 0x0000 disables timeout. */

    Any help or suggestions?

Related