Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
High-Level Data Link Control
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
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.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
High-Level Data Link Control
(section)
Add topic