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.
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.
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);
}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);
}Yes, that would do it!
Now please verify the answer:
