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

  • Hi Abhijit,

    Seems like after a point the scanner is stopping. You seems to set scan interval = scan window which means that you are setting your scanner on all the time. Is this intentional? 

    Also not sure what you mean by central is sending its own data? does this mean the default data in your app, if so this must be in the application logic? or do you mean that the BLE stack is giving the app something else than the expected advertising data?

  • thanks for reply,i want continuous scanning so i used scan interval = scan window,central data means our application data including updated rtc data,so i am sure central not blocked anywhere,it stops scanning,so i wont get beacon advertising data

  • I do not think that scanner would stop suddenly without any error, but it is not impossible (if there is a bug in the softdevice). If this is really the case, then i would like to reproduce this error. Can you please attach the project here so that i can test it. If I can reproduce it, then i will start to debug as to why this happens.

  • 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

Related