home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug156.arc
/
X25.LBR
/
AX25RPTR.DQC
/
AX25RPTR.DOC
Wrap
Text File
|
1979-12-31
|
7KB
|
153 lines
DOC FILE LAST UPDATED MARCH 15, 1983
THIS FILE IS SOME SCANTY DOCUMENTATION FOR THE LEVEL 2 AX.25
REPEATER, ORIGINALLY WRITTEN BY JON BLOOM, KE3Z. THE REPEATER
HAS BEEN MODIFIED BY TERRY FOX, WB4JFI TO BE AX.25 COMPATIBLE.
THE SOFTWARE IS SLIGHTLY INELEGANT (KLUDGED), AND WHEN WE HAVE
TIME IT WILL BE UPDATED (ESPECIALLY THE MOVING OF THE ID FRAMES
TO THE BUFFER AREA BEFORE SENDING THEM).
BECAUSE OF THE ADDITIONS TO MAKE IT AX.25 COMPATIBLE,
THE REPEATER NOW IS SLIGHTLY LARGER THAN 1K. WHEN THE MOVING
ROUTINE IS ELIMINATED, THE REPEATER SHOULD AGAIN FIT IN ONE 2708
EPROM. KEEP IN TOUCH WITH AMRAD FOR NEWS ON THE NEW VERSION
OF THE REPEATER.
THERE ARE TWO BASIC AREAS IN THE REPEATER CODE THAT MUST
BE CHANGED FOR VARIOUS VERSIONS OF THE REPEATER.
THE FIRST AREA IS IMMEDIATELY FOLLOWING THE MOD. LOG.
IT CONTAINS SOME OF THE VARIABLES THAT PERTAIN TO TIMING
REQUIREMENTS OF THE REPEATER.
DELAY IS USED IF ADDITIONAL DELAY IS NEEDED WHEN GOING
FROM RECEIVE TO TRANSMIT, SUCH AS FOR RELAY TYPE RIGS.
CBDLY IS A DELAY OPTIONALLY USED TO WAIT A SHORT TIME
AFTER RECEIVING TO MAKE SURE SOMEONE ELSE DOESNT GRAB THE
CHANNEL. IT IS NORMALLY SET TO TRUE.
NORMAL IS USED TO SHOW WHERE THE TNC RAM IS LOCATED.
IF NORMAL IS TRUE, THE TNC RAM IS LOCATED AT THE STANDARD
LOCATION (1000-1FFF HEX). IF NORMAL IS FALSE, RAM IS ASSUMED
TO BE AT 8000-8FFF HEX.
SEPRFC IS USED TO TELL IF A SEPERATE MODEM AND RF CARRIER
DETECT ARE TO BE USED. IF RF CARRIER IS USED IN ADDITION TO
MODEM CD, RF CARRIER DETECT SHOULD COME IN ON THE DSR PIN OF THE
LINK SIDE DB-25. SEPERATE RF CARRIER DETECT IS USEFUL (NEEDED) IF
THE REPEATER IS TO BE USED ON TOP OF A VOICE REPEATER TO PREVENT
THE REPEATER FROM TRANSMITTING THE CW AND FRAME ID WHEN VOICERS
ARE ON THE REPEATER. THE MODEM CARRIER DETECT IS STILL USED
TO DETECT WHEN IT IS OK TO REPEAT RECEIVED FRAMES.
ADJBD IS USED ONLY ON MODIFIED TNC BOARDS THAT HAVE THE
BAUD RATE OF THE LINK SELECTABLE BY SOFTWARE PER A MOD OF MINE
IN AN AMRAD NEWSLETTER. IT IS GENERALLY SET FALSE.
DLYVAL IS THE AMOUNT USED IN THE TRANSMIT DELAY ROUTINE.
IT IS NORMALLY SET TO ABOUT 2000 HEX.
CBDLYV IS THE VALUE USED BY THE CBDLY ROUTINE TO WAIT
BETWEEN RECEIVE AND TRANSMIT. NORMAL VALUE IS 1500 HEX.
BUFSIZ IS THE MAXIMUM RECEIVED BYTE LENGTH. IT
INCLUDES THE ADDRESS AND CONTROL FIELDS. THE MAXIMUM AMOUNT
INCLUDES 21 BYTES OF ADDRESS FIELD, ONE BYTE OF CONTROL DATA,
A PID BYTE, AND 255 BYTES OF USER DATA, WHICH ADDS UP TO 279
BYTES TOTAL.
MAXPKT IS THE MAXIMUM PACKETS ALLOWED TO BE RECEIVED BEFORE
THE REPEATER SHOULD TRANSMIT THE FRAMES. IT IS NORMALLY 8.
THE OTHER AREA THAT SHOULD BE CHANGED IS TOWARD THE END
OF THE FILE. IT CONTAINS THE ADDRESS INFORMATION FOR THE REPEATER
AND THE CW AND FRAME ID INFORMATION.
THE FIRST LOCATION IS IDNUM. IT IS USED TO SET THE SPEED
OF THE CW ID INFORMATION. IT IS PRESENTLY SET TO 1200 BAUD, AND
NEEDS TO BE CHANGED ONLY IF THE LINK SPEED IS OTHER THAN 1200 BD.
THE NEXT LOCATION TO BE CHANGED IS RPTADR. THIS CONTAINS
ADDRESS OF THIS REPEATER, AND AS SUCH IT MUST CONTAIN THE EXACT!!
MATCH OF THE REPEATER ADDRESS IN THE REPEATER ADDRESS FIELD. THE
ONLY EXCEPTION TO THIS IS IF A REPEATER ADDRESS MATCHES EXCEPT FOR
THE SSID, AND IF THE SSID IS SET TO ALL ONES, INDICATING THAT ANY
REPEATER WITH THE CORRECT AMATEUR CALL SHOULD REPEAT THE FRAME.
THE ADDRESS LOCATED HERE SHOULD BE A SHIFTED VERSION OF THE CALLSIGN.
AS AN EXAMPLE, USE THE WB4JFI1 SHOWN IN THE ORIGINAL VERSION.
NORMALLY, A WB4JFI1 IN HEX ASCII WOULD LOOK LIKE THE FOLLOWING:
W=57 B=42 4=34 J=4A F=46 I=49 1=31
THE W IN BINARY IS 01010111 OR 57 HEX.
AFTER SHIFTING ONCE, THE W IS NOW 10101110, OR AE HEX.
THE B IN BINARY ASCII IS 01000010 OR 42 HEX
AFTER SHIFTING ONCE, THE B IS NOW 10000100, OR 84 HEX.
THIS CONTINUES UNTIL THE LAST (SSID) BYTE. IT IS AS FOLLOWS:
7 6 5 4 3 2 1 0
H R R(S S I D)1
WHERE, BIT 7 IS THE HAS-BEEN-REPEATED BIT. IT IS SET TO ZERO BY
THE ORIGINATING STATION, AND SET TO ONE BY THE REPEATER. AS SUCH,
IT SHOULD BE SET TO ZERO IN THE RPTADR LOCATION.
BITS 6 AND 5 ARE RESERVED AND SET TO ONE IN NORMAL OPERATION. THE
PRESENT REPEATER CONFIGURATION LOOKS FOR ONES IN THIS FIELD.
BITS 4, 3, 2, AND 1 ARE THE SSID. THEY ARE USED TO ALLOW AN
AMATEUR TO HAVE MORE THAN ONE PACKET RADIO STATION. AS AN
EXAMPLE, THE ENCODED RPTADR HERE IS WB4JFI1, AS OPPOSED TO
WB4JFI0, WHICH IS MY NORMAL STATION. BIT 1 IS LSB, 4 IS MSB.
AN EXCEPTION TO THIS IS MENTIOND ABOVE. IF THE SSID IS SET TO
ALL ONES, ANY REPEATER WHERE THE REST OF THE CALL HAS MATCHED
SHOULD REPEAT THE FRAME. THIS IS TAKEN CARE OF INTERNALLY, NOT
IN RPTADR.
BIT 0 IS THE HDLC EXTENDER BIT. IT IS SET TO ZERO ON ALL BUT
THE LAST OCTET. SINCE THE SSID OCTET IN THE REPEATER ADDRESS
IS THE LAST OCTET OF THE ADDRESS FIELD, IT SHOULD BE SET TO ONE.
NOW FOLLOWS THE ADDRESS FIELD OF THE BEACON (ID) FRAMES. IT IS
LOCATED IN ADRBCN, AND HOLDS THE THREE ADDRESS FIELDS USED IN THE
REPEATER ID FRAMES. THE DESTINATION FIELD PRESENTLY HOLDS
"RPTRID0", WHICH I USED TO INDICATE THIS IS A REPEATER ID FRAME.
THE NEXT TWO FIELDS HOLD THE DESTINATION AND REPEATER ADDRESSES
OF THE REPEATER, WHICH ARE THE SAME IN THIS CASE.
THE LAST AREA IS THE ACTUAL DATA PUT INTO THE INFORMATION FIELD
OF THE ID FRAMES. IT SHOULD HAVE AT LEAST THE CALLSIGN, WITH THE
CORRECT SSID, OF THE REPEATER. THIS WAY ANYONE TUNING IN CAN TELL
WHAT REPEATERS ARE AVAILABLE FOR USE.
THE LAST AREA IS IDSTR, WHICH HOLDS THE CW ID STRING. IT FOLLOWS THE
NORMAL VANCOUVER STYLE CW ID ENCODING, WHERE A DIT IS SIGNIFIED BY ONE
BIT BEING SET TO ONE, A DAH HAS THREE SEQUENTIAL BITS SET TO ONE, AN
INTRA-LETTER SPACE IS ONE ZERO, THE SPACE BETWEEN LETTERS IS THREE
ONES. AS AN EXAMPLE A W IN CW IS DIT-DAH-DAH. THIS MAY START WITH
THE DIT BEING A ONE, ONE ZERO FOR END OF THE DIT, THREE ONES FOR THE
FIRST DAH, ONE ZERO FOR THE SPACE BETWEEN THE DAHS, AND THREE MORE
ONES FOR THE SECOND DAH. NEXT SHOULD COME THREE ZEROS FOR THE SPACE
BETWEEN THE W AND THE NEXT LETTER. THIS SHOULD END UP AS:
1 0 1 1 1 0 1 1 1 0 0 0
D D D
I A A
T H H
OR BB HEX, C? HEX
THAT IS THE END OF THE DOCUMENTATION SO FAR. AS YOU FIND
QUESTIONS OR WANT MORE INFORMATION, PLEASE CONTACT AMRAD AT:
AMRAD, PO DRAWER 6128, MCLEAN VA. 22106
END OF AX.25 REPEATER DOCUMENTATION FILE. TERRY FOX