![Test-Ok eC-test-mate Hardware Reference Manual Download Page 12](http://html1.mh-extra.com/html/test-ok/ec-test-mate/ec-test-mate_hardware-reference-manual_1091897012.webp)
Copyright © TEST-OK. All Rights Reserved.
12 / 35
57600
57803
0.35
115200
114.943
-0.22
STX mode explained
Sending packets in STX mode is a way synchronize the receiver with the stream of bytes that is received.
The principle (and implementation) is simple: each packet starts with a 'Start of Transmission' (STX) byte
which has a unique value that will never be transmitted in the actual packet data. The end of a packet is
marked with another unique value: the 'End of Transmission' byte (ETX). Synchronizing is now very easy for
the receiver: as soon as an STX byte is received, the start of the packet is found and as soon as ETX is
received, the packet has been completely received. Besides the synchronization, another advantage is that
the receiving software does not need to have any knowledge about the packet size.
If the packet contains bytes with the same value as STX and ETX, then these values cannot be transmitted
as such since this would make the receiver resynchronize on the start of a new packet or on the premature
end of the current packet. Instead, a third unique value is defined to 'escape' the normal meaning of the
special values. The DLE (Data Link Escape) byte is therefore inserted into the transmission on every
occurrence of STX, ETX and DLE in the packet data. Thus, when receiving DLE, then this byte shall not be
added to the packet but the next received byte shall be added without interpreting the received value as STX,
ETX or DLE.
Values used by the eC-test-mate Type I:
STX = 0x0F (15
10
)
ETX = 0x04 (4
10
)
DLE = 0x05 (5
10
)
Associated test command(s):
• CONFIG_SERIAL
• TRANSMIT_SERIAL
• SET_SERIAL
• TEST_SERIAL
• WAITTX
• WAITRX
Summary of Contents for eC-test-mate
Page 16: ...Copyright TEST OK All Rights Reserved 16 35...
Page 17: ...Copyright TEST OK All Rights Reserved 17 35 Footprint technical drawings Type I...
Page 18: ...Copyright TEST OK All Rights Reserved 18 35...
Page 24: ...Copyright TEST OK All Rights Reserved 24 35...
Page 25: ...Copyright TEST OK All Rights Reserved 25 35 Footprint technical drawing Type II...
Page 26: ...Copyright TEST OK All Rights Reserved 26 35...
Page 31: ...Copyright TEST OK All Rights Reserved 31 35...
Page 32: ...Copyright TEST OK All Rights Reserved 32 35 Footprint technical drawing Type III...
Page 33: ...Copyright TEST OK All Rights Reserved 33 35...
Page 35: ...Copyright TEST OK All Rights Reserved 35 35 eC test mate Dimensions...