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

SCAN_REQ as ACKNOWLEDGEMENT

Hello all, I am implementing an energy efficient system, in which I am advertising in BLE_GAP_ADV_TYPE_ADV_SCAN_IND mode, I am using scan_req_report as an acknowledgement from a phone(my central device) after which i would like to stop advertising.

I use nRF51822xAA, SDK 9.0.0, sd110 8.0.0 and keil uVision5

I observe the following:

1.After my device receives scan request report (as seen in the debugging mode), it reaches sd_ble_evt_get funtion and subsequently HARDFAULT error.

2.When not in debugging mode, my device is not responding with a scan response for scan requests it receives(as observed by the sniffer).

main.c

Please interpret the observations I have made and suggest the best way to use SCAN_REQ as an ACK.

Thank you

Parents
  • I do the following: I am running the code in debug mode with no breakpoints , on switch press I observe advertisements, after say 8 to 10 rounds of switch presses and advertisements , advertising stops when i stop debugging on this, it is in a while loop of app_error_handler which i saw the error_code is 4. I don't know how to debug this. Please guide

Reply
  • I do the following: I am running the code in debug mode with no breakpoints , on switch press I observe advertisements, after say 8 to 10 rounds of switch presses and advertisements , advertising stops when i stop debugging on this, it is in a while loop of app_error_handler which i saw the error_code is 4. I don't know how to debug this. Please guide

Children
No Data
Related