Anonymous
Not logged in
Talk
Contributions
Create account
Log in
RS-485
Search
Editing
High-Level Data Link Control
(section)
From RS-485
Namespaces
Page
Discussion
More
More
Page actions
Read
Edit
Edit source
History
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 RS-485 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
RS-485:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs