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

ble_central_uart multi-connection cause periodically reset

Dear all,

I'm trying to modify ble_central_uart (SDK16) to connect two peripherals. I've achieved the connection and been able to print receiving data via UART.

But here is my problem, the connection would break periodically, probabally caused by central system reset. And the period seems depending on UART baudrate, for example 115200 and 230400 would reset every few seconds while 409600 would last several minutes(disconnection period is not that clear in this baudrate). Peripheral data rates is 8800bps each.

One on one connection is quite stable with either peripheral.

Any help will be appreciated.

Thanks!

Parents Reply
  • You can try to increase UART_TX_BUF_SIZE, but you can also find the description for the api useful:

    /**@brief Function for putting a byte on the UART.
     *
     * @details This call is non-blocking.
     *
     * @param[in] byte   Byte to be transmitted on the UART.
     *
     * @retval NRF_SUCCESS        If the byte was successfully put on the TX buffer for transmission.
     * @retval NRF_ERROR_NO_MEM   If no more space is available in the TX buffer.
     *                            NRF_ERROR_NO_MEM may occur if flow control is enabled and CTS signal
     *                            is high for a long period and the buffer fills up.
     * @retval NRF_ERROR_INTERNAL If UART driver reported error.
     */
    uint32_t app_uart_put(uint8_t byte);

Children
Related