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
  • Hi hung Bui I solved that problem regarding my first observation and the second, I am able to receive scan requests successfully and stop advertising after one second of advertising timeout. Now I have a new problem that is when the code runs it stops with an error of insufficient memory. Which memory insufficiency is it referring to? Scheduler buffer ?

Reply
  • Hi hung Bui I solved that problem regarding my first observation and the second, I am able to receive scan requests successfully and stop advertising after one second of advertising timeout. Now I have a new problem that is when the code runs it stops with an error of insufficient memory. Which memory insufficiency is it referring to? Scheduler buffer ?

Children
No Data
Related