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

my bluetooth gets disconnected while sending continous stream of data

hi, i am using uart example from nrf51822 example. when i am sending continuous stream of data then my connection breaks. it disconnects from peripheral device. how should i overcome from this situation. i think i am missing some data exchange concept for sending devices based on connection interval and all different parameters.

can anyone please guide me what should i do to make connection live while sending continuous data over ble uart.

thanks!!

Parents
  • hi, actually i am new to ble development. i am printing only to see the output of my program. i am sending the data using sendData() function in the program

    void sendData(uint8_t data[],int index)
    {
    	uint32_t err_code;
    	err_code = ble_nus_string_send(&m_nus, data, index);
                    if (err_code != NRF_ERROR_INVALID_STATE)
                    {
                        APP_ERROR_CHECK(err_code);
                    }
    }
    

    please explain me how can i send continuous data using this way. or is there any other way to do this.

    and yes app_timer_cnt_diff_compute i am using from SDK 10 only. one more issue i am having regarding timer. after connecting to peripheral device timer always gives 0. can you explain me why it is so. and how can i get time after connecting.

    thanks!!

Reply
  • hi, actually i am new to ble development. i am printing only to see the output of my program. i am sending the data using sendData() function in the program

    void sendData(uint8_t data[],int index)
    {
    	uint32_t err_code;
    	err_code = ble_nus_string_send(&m_nus, data, index);
                    if (err_code != NRF_ERROR_INVALID_STATE)
                    {
                        APP_ERROR_CHECK(err_code);
                    }
    }
    

    please explain me how can i send continuous data using this way. or is there any other way to do this.

    and yes app_timer_cnt_diff_compute i am using from SDK 10 only. one more issue i am having regarding timer. after connecting to peripheral device timer always gives 0. can you explain me why it is so. and how can i get time after connecting.

    thanks!!

Children
No Data
Related