Other Parts Discussed in Thread: EK-TM4C1294XL
While using UART_read with the following configuration
st_uartParams.baudRate = 115200;
st_uartParams.readEcho = UART_ECHO_OFF;
st_uartParams.readTimeout = 5000u;
st_uartParams.readDataMode = UART_DATA_BINARY;
st_uartParams.writeDataMode = UART_DATA_BINARY;
st_uartParams.readReturnMode = UART_RETURN_FULL;
st_uartParams.dataLength = UART_LEN_8;
st_uartParams.parityType = UART_PAR_EVEN;
to communicate with a module which has
Baud rate :115200
Data bits : 8
Stop bits :1
Parity : even
Has a fixed response frame length of 12 bytes
This device has RX, TX and Ground connections only
The module is expected to respond within 50ms
i am experiencing data loss . i am trying to receive a 12 byte data from a module( i had verified the data by taking a connection from my Controller RX and observing it on a serial software, it was as per the modules manual). my observation is that i am missing some bytes when my controller reads the data , so my controller returns the UART_read (waiting for 12 bytes , s8ReturnBytes = (int8_t)UART_read(s_st_uartHandle, (void_t *)au8RecvPacket, 12); ) as timeout and returns less than 12 bytes.
Has anyone experienced a similar issue?
What should be done to solve this?
i am using 12.16.0.08