Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
High-Level Data Link Control
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Asynchronous framing === When using asynchronous serial communication such as standard [[RS-232]] [[serial port]]s, synchronous-style bit stuffing is inappropriate for several reasons: * Bit stuffing is not needed to ensure an adequate number of transitions, as start and stop bits provide that, * Because the data is [[Non-return-to-zero|NRZ]] encoded for transmission, rather than NRZI encoded, the encoded waveform is different, * RS-232 sends bits in groups of 8, making adding single bits very awkward, and * For the same reason, it is only necessary to specially code flag ''bytes''; it is not necessary to worry about the bit pattern straddling multiple bytes. Instead asynchronous framing uses "control-octet transparency", also called "[[byte stuffing]]" or "octet stuffing". The frame boundary octet is 01111110, (0x7E in [[hexadecimal]] notation). A "control [[Escape character|escape octet]]", has the value 0x7D (bit sequence '10111110', as RS-232 transmits least-significant bit first). If either of these two octets appears in the transmitted data, an escape octet is sent, followed by the original data octet with bit 5 inverted. For example, the byte 0x7E would be transmitted as 0x7D 0x5E ("10111110 01111010"). Other reserved octet values (such as [[Xon/Xoff|XON or XOFF]]) can be escaped in the same way if necessary. The "abort sequence" 0x7D 0x7E ends a packet with an incomplete byte-stuff sequence, forcing the receiver to detect an error. This can be used to abort packet transmission with no chance the partial packet will be interpreted as valid by the receiver.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)