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

Strange behaviour while sending real time data

Hi all, i have an application with a smart beacon kit; i won't resume the whole project because it's long and boring, i will just say that i have a service that every 100 ms (temporized by a timer counter of the nrf51822) takes a value (in the real project it's an ADC converted value, for testing i just put a uint32 "1") and then sends it as a notification. Always for testing purpose, i connect to the beacon with my smartphone with the MCP app, and enable notification to see the "1" sent every 100 ms. What i find out is that for the first seconds it goes all good (the time of the receiving states the two values are spaced of around 100 ms), but after these (let's say after 5 seconds or slightly more) it happens that the values on my phone start being printed really slowly, and the date written right next to the received value states that two values arrives around 10-20 ms one after another, like there is some kind of bottleneck! How can this be possible? I also see the same behaviour using termite on my pc, after the same amount of time i start to see the "1" printed really slowly. Trying with the real ADC converted values is even worse, i try to send a sinusoid synthesized with a signal generator and visualizing the received values i see that i am losing samples in the transmission.

At a first moment i thought that it could be a problem of overflow of the MCP log of the phone, but i also tried to clear it every second and the slow printing keeps on. What is the problem in your opinion? Can it be something related to the frequency of the BLE connection interval with some kind of parameter to be set? Thanks in advance!

projects.rar

Parents
  • First of all thanks both for your help. To help you understand i loaded a zip with my projects; one is for the beacon i mentioned (peripheral), the other is for the nrf51 DK that i use to receive the values as central device and send them via uart to the pc (so for Petter, yes i am sending them over uart via the board, and this should happen as soon as a value arrives via BLE from the beacon, as done in the example ble_app_uart_c!).

    All the useful connection parameters should be in the files for the beacon since this problem happens not only with the DK but also with the phone as i said, so if you find something suspicious i will be very grateful to you!

Reply
  • First of all thanks both for your help. To help you understand i loaded a zip with my projects; one is for the beacon i mentioned (peripheral), the other is for the nrf51 DK that i use to receive the values as central device and send them via uart to the pc (so for Petter, yes i am sending them over uart via the board, and this should happen as soon as a value arrives via BLE from the beacon, as done in the example ble_app_uart_c!).

    All the useful connection parameters should be in the files for the beacon since this problem happens not only with the DK but also with the phone as i said, so if you find something suspicious i will be very grateful to you!

Children
No Data
Related