AnsweredAssumed Answered

stm32f4 Discovery UART Rx IT - receiving msg of unknown bytes

Question asked by sparky.marky on May 28, 2014
Latest reply on May 29, 2014 by sparky.marky
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?