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

increase transmission buffer size in ble_app_uart_c transfer large data

hello,

I need send 10000bytes large data send central to peripheral in single transmission. I using example code ble_app_uart_c in SDK15.2 nrf52832. what are the parameter i change to increase transmission buffer size in central and peripheral code...???? 

Parents Reply Children
  • m_ble_nus_max_data_len is 244bytes i split by 244bytes and send every transmission first transmission successful receive peripheral but balance data doesn't send properly central show error 

     0> <warning> ble_nus_c: Connection handle invalid.

     0> <warning> ble_nus_c: Connection handle invalid.

     0> <warning> ble_nus_c: Connection handle invalid.

     0> <warning> ble_nus_c: Connection handle invalid.

    in every transmission how to handle connection valid to transfer peripheral

    for(;;)
    {
    	for(uint16_t cnt=0;cnt<10000;cnt++)
    			{
    				send[len]=data[cnt];
    				len++;
    				if(len>=244)
    				{
    				err_code=ble_nus_c_string_send(&m_ble_nus_c,send, sizeof(send));//send size 244byte
    				if(err_code != NRF_ERROR_INVALID_STATE && err_code != BLE_ERROR_INVALID_CONN_HANDLE)
    					{
    							APP_ERROR_CHECK(err_code);
    					}
    					len=0;
    				}
    			}
    	}

Related