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

large data send central to peripheral nrf52832

Hello everyone,

I need transfer large data 12KB array send central to peripheral using nrf52832. I try this examples in central (ble_app_uart_c) and peripheral (ble_app_uart). I add this few line in central

for(;;){

            uint16_t cnt=0;
           for(cnt=0;cnt<12000;cnt++)

            {
                uint8_t data=array_data[cnt];
            ble_nus_c_string_send(&m_ble_nus_c, &data, sizeof(data));
            
            }      
            
            idle_state_handle();
        }

peripheral doesn't receive any data from central. any example function or code is there to communicate central and peripheral transfer large data....????

Parents Reply
  • I don't have a Sniffer board please give any other way to find this problem solving method..???

    I put delay of 2 second in every transmission all bytes receive success without any loss

        nrf_delay_ms(2000);

        err_code=ble_nus_c_string_send(&m_ble_nus_c,Buff, sizeof(Buff));

    but i remove this delay continuously reset. i need without delay my code working function receive all data with in 1 second...???

Children
Related