2016-09-13 01:12 PM
Hello everyone i'm a beginner, i have implemented uart receive of variable number of characters successfully using IRQ and RXCmpltCallback , what i did is i have received each character one by one and then inserting it in an array of chars, i have used an ''if check'' to identify the terminating symbol in my case i used the newline character. but now i want to modify my code so that i wont need any terminating symbol such as the newline character, is there any way to know whether the whole UART receive process is complete or like checking any flag or uart status ???
#uart #stm32f1032016-09-13 01:45 PM
> is there any way to know whether the whole UART receive process is complete or like checking any flag or uart status ???
A special character for this purpose is probably the best option. There are schemes to compensate for the reserved character in the character set, usually envolving escaping, e.g. https://en.wikipedia.org/wiki/High-Level_Data_Link_Control#Asynchronous_framing . In theory, handshake signals (RTS/CTS, DTR/DSR) could be used for framing, but in practice the various drivers mainly on PC have usually trouble maintaining synchronicity and such schemes then create more problems than they solve. JW2016-09-14 02:26 AM