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

nrf52832 UART send multiple bytes

Hi all,

    I am trying to send a command to the sensor so that the sensor will response with sending something back for acknowledgement, via UART.

    Let say, I want to send a command "SEND" to sensor, and the sensor will send its data back. However, I don't know how to modify the example code in 

    nRF5_SDK_14.2.0_17b948a\examples\peripheral\uart

    so that the code are fetching the FIFO when the '\n' is met, instead of response in every character. Right now the example is doing this for single character.

    I am not sure how to change from the example to achieve, it seems rx/tx are having independent fifo buffer, how they operate and connected?

    m_rx_fifo, m_tx_fifo

    tx_buffer[], rx_buffer[]

    nrf_drv_uart_rx(), nrf_drv_uart_tx()

    app_uart_get(), app_uart_put()

Please share your thoughts if you have any idea. Thanks Slight smile

Parents Reply Children
No Data
Related