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

Why Bluetooth of nrf 51822 is not working when UART baud rate is set greater than 9600

I am using serial communication to have data from a sensor. That sensor only can support baud rate 115200 to communicate. Collecting data from that sensor I am trying to save the data in my mobile app database. Problem started When I was using serial baud 115200 in nrf51822 it completely stop sending any signal to the app over Bluetooth. nrf51822 stopped advertisement and acted like there is no Bluetooth module inside it. Please provide me any possible solution for this kind of situation.

Thank you

Parents
  • A function is probably returning error and the chip either resets or goes to an infinite while loop with interrupts disabled, see here. Probably sd_ble_gatts_hvx() function is returning 0x3004 (BLE_ERROR_NO_TX_PACKETS or BLE_ERROR_NO_TX_BUFFERS) depending on which version of SoftDevice you are using. This means that you are trying to send packets faster than the link allows. See this post on how to send large amount of data over a BLE link.

Reply
  • A function is probably returning error and the chip either resets or goes to an infinite while loop with interrupts disabled, see here. Probably sd_ble_gatts_hvx() function is returning 0x3004 (BLE_ERROR_NO_TX_PACKETS or BLE_ERROR_NO_TX_BUFFERS) depending on which version of SoftDevice you are using. This means that you are trying to send packets faster than the link allows. See this post on how to send large amount of data over a BLE link.

Children
No Data
Related