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
  • thanks for

    I check this return code

    do
    {
        err_code = ble_nus_c_string_send(&m_ble_nus_c, &data, sizeof(data));
    } while (err_code == NRF_ERROR_BUSY || err_code == NRF_ERROR_RESOURCES);
    APP_ERROR_CHECK(err_code);

    return this kind of error message show

     0> Logs dropped (45)
     0> <warning> ble_nus_c: Connection handle invalid.
     0> Logs dropped (45)
     0> <warning> ble_nus_c: Connection handle invalid.
     0> ndle invalid.
     0> ndle invalid.
     0> <error> app: Fatal error

    Any other way to have possible send large data in NUS service...???

Children
No Data
Related