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

Error code 8 when sd_ble_gap_scan_start() SDK13

Hi all,

I have two nRF52 connecting, transmitting, disconnecting and sleep mode when are in normal operation, now I am experimenting a randomly error code 8 when calling sd_ble_gap_scan_start()

The two nRF52 works perfectly in normal operation when it goes to sleep. Now I am performing a throughput test and is when the randomly error code 8 appears.

I found that same issue in others threads: devzone.nordicsemi.com/.../ devzone.nordicsemi.com/.../

I am using a sniffer to be sure the devices are disconnected and before call the scan_start I always use sd_ble_gap_scan_stop()

static void scan_start(void)
{    
	ret_code_t err_code;	
    	(void) sd_ble_gap_scan_stop();
	  
    	err_code = sd_ble_gap_scan_start(&m_scan_params);
   	//APP_ERROR_CHECK(err_code); // I had to disable it to solve
}

I had to comment the APP_ERROR_CHECK I know it is not recommend, but is there a more elegant solution?

Thanks

Parents
  • Hi Aryan, I tested it removing sd_ble_gap_scan_stop inside the scan_start function, It is still giving me Error code 8 I think it is randomly because this happen every 46-270 connection/disconnection event. some times happen at the connection :16, 72, 233 and it only happen when I perform a thogutput test to measure the max number the connection in a minute. Under normal operation (a couple of weeks) I never have any similar issue.

Reply
  • Hi Aryan, I tested it removing sd_ble_gap_scan_stop inside the scan_start function, It is still giving me Error code 8 I think it is randomly because this happen every 46-270 connection/disconnection event. some times happen at the connection :16, 72, 233 and it only happen when I perform a thogutput test to measure the max number the connection in a minute. Under normal operation (a couple of weeks) I never have any similar issue.

Children
No Data
Related