PK-232 TECHNICAL MANUAL
APPENDIX B – KISS TNC Specification
PK232TM Rev. A 5/87
B-2
Page 71
2. Asynchronous Frame Format
The "asynchronous packet protocol" spoken between the host and TNC is very simple, since its on-
ly function is to delimit frames. Each frame is both preceded and followed by a special FEND
(Frame End) character, analogous to an HDLC flag. No CRC or checksum is provided. In addition,
no RS-232C handshaking signals are employed.
The special characters are:
Abbreviation Description Hex value
FEND Frame End C0
FESC Frame Escape DB
TFEND Transposed Frame End DC
TFESC Transposed Frame Escape DD
The reason for both preceding and ending frames with FENDs is to improve performance when
there is noise on the asynch line. The FEND at the beginning of a frame serves to "flush out" any
accumulated garbage into a separate frame (which will be discarded by the upper layer protocol)
instead of sticking it on the front of an otherwise good frame. As with back-to-back flags in HDLC,
two FEND characters in a row should not be interpreted as delimiting an empty frame.
3. Transparency
Frames are sent in 8-bit binary; the asynchronous link is set to 8 data bits, 1 stop bit, and no par-
ity. If a FEND ever appears in the data, it is translated into the two byte sequence FESC TFEND
(Frame Escape, Transposed Frame End). Likewise, if the FESC character ever appears in the user
data, it is replaced with the two character sequence FESC TFESC (Frame Escape, Transposed
Frame Escape).
As characters arrive at the receiver, they are appended to a buffer containing the current frame.
Receiving a FEND marks the end of the current frame. Receipt of a FESC puts the receiver into
"escaped mode", causing the receiver to translate a following TFESC or TFEND back to FESC or
FEND, respectively, before adding it to the receive buffer and leaving escaped mode. Receipt of
any character other than TFESC or TFEND while in escaped mode is an error; no action is taken
and frame assembly continues. A TFEND or TESC received while not in escaped mode is treated as
an ordinary data character.
This procedure may seem somewhat complicated, but it is easy to implement and recovers quickly
from errors. In particular, the FEND character is never sent over the channel except as an actual
end-of-frame indication. This ensures that any intact frame (properly delimited by FEND charac-
ters) will always be received properly regardless of the starting state of the receiver or corruption
of the preceding frame.
This asynchronous framing protocol is identical to "SLIP" (Serial Line IP), a popular method for
sending ARPA IP datagrams across asynchronous links. It could also form the basis of an asynchro-
nous amateur packet radio link protocol that avoids the complexity of HDLC on slow speed chan-
nels.
4. Control of the KISS TNC
Each asynchronous data frame sent to the TNC is converted back into "pure" form and queued for
transmission as a separate HDLC frame. Although removing the human interface and the AX.25
protocol from the TNC makes most existing TNC commands unnecessary (i.e., they become host
functions), the TNC is still responsible for keying the transmitter's PTT line and deferring to other
activity on the radio channel. It is therefore necessary to allow the host to control a few TNC pa-
Summary of Contents for PAKRATT PK-232
Page 75: ...PK 232 TECHNICAL MANUAL APPENDIX C DRAWINGS PK232TM Rev A 5 87 C 1 Page 75 ...
Page 76: ...PK 232 TECHNICAL MANUAL APPENDIX C DRAWINGS PK232TM Rev A 5 87 C 2 Page 76 ...
Page 77: ...PK 232 TECHNICAL MANUAL APPENDIX C DRAWINGS PK232TM Rev A 5 87 C 3 Page 77 ...
Page 78: ...PK 232 TECHNICAL MANUAL APPENDIX C DRAWINGS PK232TM Rev A 5 87 C 4 Page 78 ...
Page 79: ...PK 232 TECHNICAL MANUAL APPENDIX C DRAWINGS PK232TM Rev A 5 87 C 5 Page 79 ...
Page 80: ...PK 232 TECHNICAL MANUAL APPENDIX C DRAWINGS PK232TM Rev A 5 87 C 6 Page 80 ...
Page 81: ...PK 232 TECHNICAL MANUAL APPENDIX C DRAWINGS PK232TM Rev A 5 87 C 7 Page 81 ...
Page 82: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 1 Page 82 ...
Page 83: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 2 Page 83 ...
Page 84: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 3 Page 84 ...
Page 85: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 4 Page 85 ...
Page 86: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 5 Page 86 ...
Page 87: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 6 Page 87 ...
Page 88: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 7 Page 88 ...
Page 89: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 8 Page 89 ...
Page 90: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 9 Page 90 ...
Page 91: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 10 Page 91 ...
Page 92: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 11 Page 92 ...
Page 93: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 12 Page 93 ...
Page 94: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 13 Page 94 ...
Page 95: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 14 Page 95 ...
Page 96: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 15 Page 96 ...
Page 97: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 16 Page 97 ...
Page 98: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 17 Page 98 ...
Page 99: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 18 Page 99 ...
Page 100: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 19 Page 100 ...
Page 101: ...PK 232 TECHNICAL MANUAL APPENDIX D Waveforms PK232TM Rev A 5 87 D 20 Page 101 ...