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

I want to send data from nrf51822 through UART TX to esp8266.

Hello, 

I am trying to send data from nrf51822 through UART TX to esp8266. I've gone through the app_uart examples and I can recieve data through RX but having difficulty sending data through TX.

Parents
  • I managed to get it working by changing APP_UART_FLOW_CONTROL_ENABLE to 

    APP_UART_FLOW_CONTROL_DISABLED

    static void uart_init(void)
    {
        uint32_t                     err_code;
        const app_uart_comm_params_t comm_params =
        {
            RX_PIN_NUMBER,
            TX_PIN_NUMBER,
            RTS_PIN_NUMBER,
            CTS_PIN_NUMBER,
            APP_UART_FLOW_CONTROL_DISABLED,
            false,
            UART_BAUDRATE_BAUDRATE_Baud9600
        };
    
        APP_UART_FIFO_INIT( &comm_params,
                           UART_RX_BUF_SIZE,
                           UART_TX_BUF_SIZE,
                           uart_event_handle,
                           APP_IRQ_PRIORITY_LOWEST,
                           err_code);
        APP_ERROR_CHECK(err_code);
    }

Reply
  • I managed to get it working by changing APP_UART_FLOW_CONTROL_ENABLE to 

    APP_UART_FLOW_CONTROL_DISABLED

    static void uart_init(void)
    {
        uint32_t                     err_code;
        const app_uart_comm_params_t comm_params =
        {
            RX_PIN_NUMBER,
            TX_PIN_NUMBER,
            RTS_PIN_NUMBER,
            CTS_PIN_NUMBER,
            APP_UART_FLOW_CONTROL_DISABLED,
            false,
            UART_BAUDRATE_BAUDRATE_Baud9600
        };
    
        APP_UART_FIFO_INIT( &comm_params,
                           UART_RX_BUF_SIZE,
                           UART_TX_BUF_SIZE,
                           uart_event_handle,
                           APP_IRQ_PRIORITY_LOWEST,
                           err_code);
        APP_ERROR_CHECK(err_code);
    }

Children
Related