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

UART problem while interfacing nrf52 dk with bmd 101 ecg sensor. bluetooth connection getting lost.

hi,i am using nrf52 DK kit. i have interfaced it with bmd 101 ecg sensor. The sensor sends continuous data over UART. I am using SEGGER IDE. The code which i am using is ble_app_uart from nrf  SDK 15.0 version. The problem is that the bluetooth connection gets disconnected and module needs to be restarted manually to connect again. The nrf52 dk module's Uart works fine when connected with pc. I think the problem is with uart receive buffer overflow which causes error. I dont know how to solve this error in code. 

Parents
  • Hi,

    If the Bluetooth get disconnected and your device needed to be reset, it's more likely it got asserted. Please follow the debug guide here. You need to find where it got asserted and because of which error code. 

    How do you send your data to Bluetooth from UART ? Do you have a check if the Bluetooth buffer is overflow and retry it after more packets have been sent ? 

    Note that you will receive BLE_GATTS_EVT_HVN_TX_COMPLETE event when there is notification(s) sent over Bluetooth 

Reply
  • Hi,

    If the Bluetooth get disconnected and your device needed to be reset, it's more likely it got asserted. Please follow the debug guide here. You need to find where it got asserted and because of which error code. 

    How do you send your data to Bluetooth from UART ? Do you have a check if the Bluetooth buffer is overflow and retry it after more packets have been sent ? 

    Note that you will receive BLE_GATTS_EVT_HVN_TX_COMPLETE event when there is notification(s) sent over Bluetooth 

Children
No Data
Related