Link Layer
The following special characters are reserved to structure the frames
Start |
|
Stop |
|
Escape |
|
The message frame is structured as follows
Field |
|
Escaped data |
|
Size in Bytes |
1 |
n |
1 |
To prevent any Start or Stop characters from appearing the escaped data,
the following substitutions are performed on the original data
Replace |
With |
|---|---|
|
|
|
|
|
|
Example for Framing
The original, unframed message
0x56 |
0x10 |
0xaa |
0x30 |
0x03 |
is escaped and framed into the following message
0x02 |
0x56 |
0x10 |
0x30 |
0xaa |
0x30 |
0x10 |
0x23 |
0x03 |