home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 3
/
hamradioversion3.0examsandprograms1992.iso
/
packet
/
tnc14
/
tnc.doc
< prev
Wrap
Text File
|
1986-11-27
|
14KB
|
425 lines
-------------------------------------------------
P A C K E T T E R M I N A L P R O G R A M
Version 1.4
-------------------------------------------------
Welcome to the world of Packet Radio. Say, all you
HAMS will surely appreciate the time and effort we have spent
designing and perfecting this program. We certainly don't care
if you pass a copy of this program to a friend, relative,
fiance, or even an enemy. It is intended to further the cause
of Packet Radio and stir up additional interest.
Now for the BAD news. This program is written in Turbo
Pascal and the source code is available for PURCHASE! The
authors reserve the right to limit the distribution of the
source code and DEMAND that it not be FREELY distributed. We
reserve all rights to this program and are not responsible for
any damage caused by the use of this program. Use it at your
own risk!
Copies of the source code diskettes are available for
$25.00, from:
WD0DUD KA0DMJ
Garry Kraemer Larry Kraemer
1631 A South 6th R 2 Box 190
Blytheville AFB, AR Jackson, MO
72315 63755
This program will send 128 byte sectors to the
TNC. Hardware handshake is mandatory to keep extraneous
characters out of the file being transfered. See TNC SETTINGS for
expanded settings.
NOTE: IF YOU SELECT ECHO ON, WHAT IS DISPLAYED
IN THE TRANSMIT WINDOW IS ALSO ECHO'D TO THE RECEIVE SCREEN.
YOU MIGHT LIKE THIS DISPLAY BETTER.
COMMANDS
The program is menu driven and should not be difficult to
figure out. Use the UP & DOWN ARROW keys or the first letter
of the desired menu item to select that function.
INITIAL OPENING MENU.
The following functions are available:
TERMINAL MODE
SEND FILE
RECEIVE FILE
LOG DRIVE and PATH
DIRECTORY
COMM PORT SETTINGS
OPTIONS
QUIT
SEND FILE - Transmits any disk file to another MSDOS
machine using this program. If using TNC Protocol, the
TRANSPARENT mode will be required to allow transmission of
control codes. You will have to manually enter the TRANSPARENT
Mode. Use THREE rapid ^C (CONTROL C) commands to return to the
command mode of the TNC. This program will ask for the
filename to send and then send the filename to the receiving
system. ^X (Control X) will cancel the send function. If you
are using the XMODEM Protocol and a telephone modem, you can send
to any compatible system using XMODEM Protocol. CRC is the
default error setting. If an error is encountered when the
filename is specified, the procedure will be exited and you will
have to re-enter the procedure to send a file.
RECEIVE FILE - Receives any disk file to another MSDOS
machine using this program. If using the TNC Protocol, the
TRANSPARENT mode will be required to allow reception of control
codes. Use THREE rapid ^C (CONTROL C) commands to return to the
command mode of the TNC. This program will receive the
filename from the sending system and then write the file to the
logged disk drive. ^X (Control X) will cancel the receive
function. If you are using the XMODEM Protocol, this program
will receive using either CRC or CHECKSUM error checking.
TERMINAL MODE - A SPLIT screen terminal program. The
TOP screen section displays the RECEIVED characters while the
BOTTOM section displays the TRANSMITTED characters.
TERMINAL COMMANDS:
CONTROL P - Toggle printer output ON/OFF.
A print spooler (BUFFER) needs to be utilized to eliminate loss
of characters. Most printers can not keep ahead of the TNC at
1200 BAUD. Issuing a second ^P will terminate output.
CONTROL B - Toggle buffer ON/OFF. A Buffer Open/Closed
message is displayed in the Transmit screen. The Buffer must be
CLOSED to SAVE contents to DISK! Max buffer size is 32 K BYTES.
If 32 K is received, a BUFFER FULL message is displayed, a beep
sounds, and a reminder to save contents to disk is displayed.
CONTROL T - Send ASCII/TEXT file from the terminal mode.
CONTROL X will terminate transmission. A Cancellation message
will be displayed on the Transmit screen. ONLY files that can
be 'TYPED' from DOS can be sent.
CONTROL W - Save buffer data to disk. Limited filename
checking is performed. Filename must conform to MSDOS standards,
ie., Filename.Ext.
CONTROL C - Return the TNC to COMMAND MODE! This
command will allow you to control the TNC!
CONTROL E - Exit Terminal mode and return to the COMMAND
MENU.
NOTE: This terminal section DOES NOT provide CRC or CHECKSUM
error checking; since the TNC performs this function.
I HIGHLY recommend the JRAM 3 board. It will support 2
MEG and allow you to set up any size file for a printer buffer.
I have 128 K set aside in memory disk for a printer spooler.
LOG DRIVE and PATH - This function will change the
default drive and path. Logging a new drive allows the
SEND/RECEIVE function to access the LOGGED drive via the
specified path. If you wish to receive to a specified sub-
directory, it MUST be created before entering the program.
DIRECTORY - This function will display the directory
of the specified drive. The LOGGED and Logged drive's path
remains unchanged.
COMM PORT SETTINGS - This function will allow you to
configure the comm port. A submenu is displayed and you can
use the UP & DOWN ARROW keys or the first letter of the item
you wish to change. The current selection (default) is
displayed to the left of the initial COMM Parameter menu.
Submenus containing new comm parameter settings will be
displayed when individual items are selected. These new
settings will be implemented when QUIT is selected on the
COMMUNICATIONS PARAMETERS menu.
COMM PORT SETTINGS SUBMENUS
BAUD RATE - BAUD RATES of 300, 1200, 2400, 4800 are
displayed. Use the arrow keys to highlight the desired setting
or enter the first number of the desired BAUD RATE.
COMM PORT NUMBER - PORTS 1, 2, and 3 are displayed.
Use the arrow keys to highlight the desired settings or enter
the number of the port desired.
WORD LENGTH - 8 and 7 BIT WORD options are displayed.
Use the arrow keys to highlight the desired settings or enter
the number of the port desired.
PARITY - EVEN, ODD, and NONE options are displayed.
Use the arrow keys to highlight the desired settings or enter
the number of the port desired.
STOP BITS - 1 and 2 STOP BIT options are displayed.
Use the arrow keys to highlight the desired settings or enter
the number of the port desired.
RTS - HIGH and LOW options are displayed. REQUEST TO
SEND should default to the proper setting. This signal should
be PIN 4 of the RS-232. RTS is used to control TNC
TRANSMISSION to the Computer. If RTS is LOW, the TNC will
not TRANSMIT to the Computer.
DTR - HIGH and LOW options are displayed. DATA
TERMINAL READY should default to the proper setting. This
signal should be PIN 20 of the RS-232. If your modem does not
work, try changing the DTR state. DTR HIGH is compatible with
the PROMODEM 1200 (HAYES compatible).
OPTIONS
TNC PROTOCOL - No ERROR checking provided to the TNC.
RTS/CTS hardware control of the TNC. The filename and number of
records are provided to the receiving TNC. The receivine TNC
must use this program to send files in the TRANSPARENT Mode.
XMODEM - Standard Protocol as designed by Ward
Christensen. The following submenu options are displayed:
CRC - CRC Error checking selected.
SUM - CHECKSUM Error checking selected.
ADD LF to CR - The following two options are displayed:
ADD LF to CR - Selecting this option will cause a
Line Feed (LF) to be added to all Carriage Returns (CR). Only
valid while in the Terminal mode.
CR Only - Selecting this option will display
received data just as received, ie., no LF will be added. Only
vaild while in the Terminal mode.
QUIT - EXIT Submenu or EXIT program.
Now, for one BUG in the HEATHKIT TNC. When the RTS
line is toggled to inhibit the TNC transmitting to the Computer,
the TNC will immediately stop transmission and will SOMETIMES
lose a character. We have verified this with the folks at TAPR
and they are working on a modification to help us out. Heathkit
claims no BUG spray needed! Boy, are they wrong! Just try
using the file send/receive mode to send a .com or .exe
file to another computer. I'll bet a new Boeing B-52 that the
program will not function properly after several bytes are
dropped out. (LARRY and I have more hours in the B-52 than
any other 'TWINS' in the world! Larry has approx 750 hours and
I have 3000+ B-52, 4000+ total, and 2000+ Instructor Pilot
hours. Now, if that don't impress you nothing will!). Yes,
we have tested this program by connecting RS-232 direct to
another RS-232 (FULL HANDSHAKE) and have verified that it is not
our program.
TNC SETTINGS
This program will send ANY disk file from one MSDOS
machine to another MSDOS machine. (Source code, Object code,
ASCII, any disk file!!!!). NOTE: BOTH MSDOS MACHINES
MUST RUN THIS PROGRAM, IF USING THE TNC PROTOCOL !!!!!
The TNC should be set to:
ABAUD 1200 ECHO OFF PARITY 4
ABIT 1 ESCAPE OFF PASS $16
AUTOLF ON FLOW ON REDISP $12
AWLEN 8 FRACK 4 RETRY 8
AX25 ON FULLDUP OFF SCRENL 78
AXDELAY 0 HBAUD 1200 SENDPAC $0D
AXHANG 0 LCOK ON START $11
BKONDEL ON LFADD OFF STOP $13
CANLINE $18 MONITOR OFF TRACE $1000
CANPAC $19 MALL ON TXDELAY 4
CMDTIME 1 MAXFRAME 1 TXFLOW 0FF
COMMAND $03 MCON ON VDIGIPEA OFF
CONOK ON MFROM ALL VRPT OFF
CAPTIME OFF MTO ALL XFLOW OFF
CR ON MYVADR $1F XMITOK ON
CWID OFF NULLS 0 XOFF $13
DEBUG $05 NUCR ON XON $11
DELETE OFF NULF ON
DIGIPEAT ON PACLEN 128
DWAIT 2 PACTIME AFTER 4
RS-232C WIRING
MFJ TNC MSDOS COMPUTER(DTE) HEATHKIT TNC
FG 1 not req'd1 FG not req'd1 FG
RX 2<---------------------2 TX------------->2 RX
TX 3--------------------->3 RX<-------------3 TX
CTS 20<---------------------4 RTS ------------->4 CTS
RTS 5--------------------->5 CTS<-------------5 RTS
DTR 6---- always high ---->6 DSR<-------------6 DTR
GND 7<-------------------->7 GND<------------>7 GND
DCD 8 --------------------->8 DCD------------->8 DCD
20 DTR-------------> 20 DSR
NOTE: The above wiring is required for proper hardware
handshake. This allows the TNC to operate in the
TRANSPARENT Mode.
8 Sep 86 ver 1.4 - Added Exit routines if error is
encountered in the file send modes.
Added Paths to the Log Disk selection.
GGK.
31 Aug 86 ver 1.3 - Added Menu selection of XMODEM Protocol
for XMODEM, CRC and CHECKSUM, Send &
Receive. GGK.
22 Aug 86 ver 1.2 - Corrected CR/LF Transmission during send from
Terminal mode. Added code to enable LFADD
boolean operator. Tested FULL HANDSHAKE between
two computers. 1200 BAUD checks ok. No problems
capturing data to buffer and printing when using
print buffer. Added Counter reset when Buffer is
saved to disk (Reset Counters). GGK.
21 Aug 86 ver 1.1 - Added Buffer capture and Transmit file from
Terminal mode. Also corrected ASYNC_SEND(CH)
to loop until CTS and THRE. GGK.
1 AUG 86 ver 1.0 - Added DTR and RTS options to COMM PARM MENU.
Allows program to be used with external/internal
modems. NO ERROR CHECKING!
Written by GARRY KRAEMER (WD0DUD) and LARRY KRAEMER (KA0DMJ)
Dedicated to our loving families. They have suffered many
days while we discussed, corrected, debugged, and perfected
this program.
----------8 SEP 86----------
Latest Update