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

unable to send data from uart ble for every 10msec

hello, I am using nrf52 dk. I am doing a project that uart send the adc data through bluetooth to nRF UART v2.0 app for every 10msec. but when i am transmitting the data the bluetooth connectivity was lost . I am testing the "ble_app_uart" example code in ble_peripheral folder in version nRF5_SDK_13.0.0_04a0bfd. i am sending the text "hi\n" from uart to the ble app but after some seconds the connection was lost. I am sending data using docklight by setting send periodic data is 0.01sec(i.e.,10 msec).

In the example code also nrf52 was unable to send the data from ble-uart to my mobile(i.e.,ble app).I am tested this for another nrf ble apps but the result is same.can any one give me any suggestions to resolve this issue.

note:The baurd rate of uart is 115200,the example code will works fine for 100msec but the connection was lost when data was send for every 10msec.

  • Are you using mobile phone as GAP Central or Peripheral? What OS it runs? Can you do the trace from some BLE sniffer (e.g. Nordic one)? How do you achieve connection interval 10ms? Almost no Android phone allows this (which would explain why your connection terminates)...

  • hello sir,

       i am using Gap peripheral & my mobile runs with android 6.0. I am testing my code with all nrf ble apps but all are disconnected. My goal is to send a  data to my mobile through ble  uart  for every 10 msec. The data is send by using docklight, in that i am activating "send peroidic data" and i am giving value 0.01 sec  i.e.,10  msec.
    
  • So you are running SDK example from nRF5 SDK V13.0.0 examples\ble_peripheral\ble_app_uart\ on nRF52 DK and trying to transport data through serial line (terminal on PC) to mobile. The mobile is Android thing (various HWs and OS releases) which acts as GAP Central + GATT Client and is connecting to nRF52 DK. Correct? Your assumption that BLE scales down in timing to frequencies like 10ms is little bit problematic. Yes, theoretically connection interval can go as low as 7.5ms but that depends on GAP Central (unless you try to change it from Peripheral side) and Android devices are mostly using 48.75ms interval. Anyway that should not cause terminating of the link so the best will be to record radio communication with some BLE analyzer (sniffer). If you manage to follow the connection then you should see immediately if there is some timeout or explicit LL_TERMINATE and from which side.

Related