Nobody can give an idea? :-(
If you know how many bytes you should receive, you could check
That is the problem!, i don't know many bytes will be incoming in my RX buffer!. String length will be variable always.
If you do not know in advance how long your frame will be, you'll need to somehow write a loop that can scan incoming data and detect the end of the frame based on the incoming data. Typically in communication protocols, end of frame markers are added at the end of the text. An alternative, also often used in communication protocols is that the frame length is sent as first bytes of data before the actual frame data.
Ok, i think so.
You'd need to do something like Pos($0A,...) in the text read or alternatively, use VaComm.ReadBuf() where you receive the serial data as an array of bytes and then scan this received array of bytes for byte 0x0A.
Ok, i will try.