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
  • Hmm, alright. I will just check again about your program is doing

    because I don't know exactly your output is. I guess it's creating frequency and a piezo or speaker makes sounds since you wrote midiData.

    You press keyboard button from your computer while you run a terminal program. ->

    UART Interrupt is called. Also, it calculates the elapsed time or whatever it is. ->

    Then midiData is created and you want to see the value via BLE NUS at your phone, is it?

    /**********************************/
    

    I will post an answer how to send multiple NUS packets soon.

    Before posting, please note me if I understood your code.

    Also, I think the reason of reset is that the timer or UART handling process is too long.

    I wish you can check when your code calls NVIC reset.

Reply
  • Hmm, alright. I will just check again about your program is doing

    because I don't know exactly your output is. I guess it's creating frequency and a piezo or speaker makes sounds since you wrote midiData.

    You press keyboard button from your computer while you run a terminal program. ->

    UART Interrupt is called. Also, it calculates the elapsed time or whatever it is. ->

    Then midiData is created and you want to see the value via BLE NUS at your phone, is it?

    /**********************************/
    

    I will post an answer how to send multiple NUS packets soon.

    Before posting, please note me if I understood your code.

    Also, I think the reason of reset is that the timer or UART handling process is too long.

    I wish you can check when your code calls NVIC reset.

Children
No Data
Related