Question
stm32f4 Discovery UART Rx IT - receiving msg of unknown bytes
Posted on May 28, 2014 at 20:13
I have basic RS-232 Tx/Rx running between the Discovery board and TeraTerm. I am successfully invoking HAL_UART_Receive_IT() in main with a fixed Rx message size.
My question is - what is the method for receiving, unblocked, messages where the length of the message is unknown? Basically the message will be terminated with a line feed, but various Rx'd command messages will have different lengths. Additionally, is there a way to set an inter-character timeout in the driver so as not to get hung up on incomplete messages? Thanks!