2.5 Line Data Processing


RsKey can find line data out of RS232c character stream.

Data transmitted by an external device through RS232c are received by RsKey as characters. Independently, each has no meaning. However, at the sending end, that is, on an external device, before data is sent out, characters are often interrelated and a group of characters as a string usually comprises a significant unit.

For example, on a measurement instrument, a measurement result such as "12.345" bears its meaning only as a string. If it is broken apart into each independent characters "1", "2", ".", "3", "4" & "5", as when sent to a PC through RS232c, it loses its original meaning.

The receiving end has to re-construct an original unit of data out of incoming independent characters. RsKey provides a way to implement it and this is what is meant by "RsKey can find line data out of RS232c character stream". RsKey re-constructs an original string data by locating an agreed-upon data terminator. RsKey temporarily buffers received characters until spotting data terminator character(s), whereupon the buffered characters as a whole are considered an original line ( string ) data.

The ability to construct a line data(string) is critically related with another feature; data pre-processing function.


Bext Next