Problem in scanning the BLE devices

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
HarishKumar
Offline
Last seen:9 months 2 weeks ago
加入:2020-02-17 06:31
Problem in scanning the BLE devices

Hello everyone,

I'm facing an error while trying to scan(as a central) by following the

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/configure-ble-peripheral-central

In this URL they have provided cause for the error

"Check with the debugger if the user_scan_start() function gets triggered and also check the completion callback if it gets triggered and what is the error code that you are getting, if its an GAP_ERROR_TIMEOUT and you get it after about 8 seconds of activity that means that you are scanning and the NMI is triggered when you reach the completion callback of the scanning procedure. Regarding the files and the code that you ve pasted i dont see anything wrong with them, the NMI you get means that the code stays for quite sometime stuck in a instruction (可用水()在主吗loop if you have the sleep disabled and no BLE activity for more than 2.6 seconds which is the maximum time that the watchdog can measure).As far as an example is concern, i suppose that you are allready familiar with the DSPS code from the host side."

What are the code changes needed in main loop to not get stuck in instruction.

it's getting stuck at WFI() every time

else if (sleep_mode == mode_idle)
{
if (((!BLE_APP_PRESENT) && check_gtl_state()) || (BLE_APP_PRESENT))
{
//wait for an interrupt to resume operation
WFI();
}
}

Please help on this to work.

Regards,

Harish

Device:
PM_Dialog
Offline
Last seen:1 day 21 hours ago
工作人员
加入:2018-02-08 11:03
Hi HarishKumar,

Hi HarishKumar,

Thanks for your question online. Could you please share the changes you have done in order to configure the DA14580 as a GAP Central role? In which SDK example are you working? Are you using any of the sleep modes?

Thanks, PM_Dialog