text stringlengths 0 99.6k |
|---|
There are at least 4 things that |
can go wrong with the mode setting |
handshake: |
1. the initial <C> can be garbled |
or lost. |
2. the initial <SOH> can be |
garbled. |
3. the initial <C> can be changed |
to a <NAK>. |
4. the initial <NAK> from a |
receiver which wants to receive in |
checksum can be changed |
to a <C>. |
The first problem can be solved |
if the receiver sends a second <C> |
after it times out the first time. |
This process can be repeated several |
times. It must not be repeated too |
many times before sending a <NAK> and |
switching to checksum mode or a |
sending program without CRC support may |
time out and abort. Repeating the |
<C> will also fix the second problem if |
the sending program cooperates by |
responding as if a <NAK> were received |
instead of ignoring the extra <C>. |
It is possible to fix problems 3 |
and 4 but probably not worth the |
trouble since they will occur very |
infrequently. They could be fixed by |
switching modes in either the sending |
or the receiving program after a |
large number of successive <NAK>s. |
This solution would risk other |
problems however. |
---- 10C. SENDING PROGRAM |
CONSIDERATIONS. The sending |
program should start in the checksum |
mode. This will insure compatibility with checksum only receiving programs. |
Anytime a <C> is received before the |
first <NAK> or <ACK> the sending |
program should set itself into CRC |
mode and respond as if a <NAK> were |
received. The sender should respond |
to additional <C>s as if they were <NAK>s |
until the first <ACK> is received. |
This will assist the receiving program |
in determining the correct mode when |
the <SOH> is lost or garbled. After |
the first <ACK> is received the |
sending program should ignore <C>s. |
11. DATA FLOW EXAMPLES WITH CRC |
OPTION |
---- 11A. RECEIVER HAS CRC OPTION, |
SENDER DOESN'T Here is a data |
flow example for the case where the |
receiver requests transmission in the |
CRC mode but the sender does not |
support the CRC option. This example |
also includes various transmission |
errors. <xx> represents the checksum |
byte. |
SENDERRECEIVER <--- |
<C>times out after 3 sec. |
<---<NAK><SOH>01 |
FE-data-<xx>---><---<ACK><SOH>02 |
FD-data-<xx>--->(data gets line hit) |
<---<NAK><SOH>02 FD-data-<xx>---><---<ACK><SOH>03 |
FC-data-<xx>--->(ack gets garbaged) |
<---<ACK> times out after 10 |
seconds<---<NAK><SOH>03 |
FC-data-<xx>---> |
<---<ACK><EOT>---><---<ACK> |
---- 11B. RECEIVER AND SENDER BOTH |
HAVE CRC OPTION Here is a data |
flow example for the case where the |
receiver requests transmission in the |
CRC mode and the sender supports the |
CRC option. This example also |
includes various transmission errors. |
<xxxx> represents the 2 CRC bytes. |
SENDERRECEIVER |
<---<C><SOH>01 FE-data-<xxxx>---><---<ACK><SOH>02 |
FD-data-<xxxx>--->(data gets line |
hit) |
<---<NAK><SOH>02 |
FD-data-<xxxx>---><---<ACK><SOH>03 |
FC-data-<xxxx>--->(ack gets garbaged) |
<---<ACK> times out after 10 |
seconds<---<NAK><SOH>03 |
FC-data-<xxxx>---> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.