;	For Version 4.03
;
;
;	CONFIGURATION FILE FOR G8BPQ SWITCH SOFTWARE
;
;	The program which converts this text file to binary
;	form is currently very crude - be VERY careful when
;	editing this file!
;
;
;	The order of parameters in not important, but they
;	all must be specified - there are no defaults
;
;
;K5EJ:LEAVE THIS ALONE
HOSTINTERRUPT=127 ; Sets the Interrupt used to access BPQ Host Mode. Will
		  ; normally be 127, but may be changed if this clashes with
		  ; other software. BTRIEVE seems to use 127, so if you are
		  ; using it, try INTERRUPT=126
;
;
;
;	Memory Usage. If EMS=1, the system will attempt to put its
;	data area into EMS Memory. At the moment it makes no attempt
;	to manage sharing of the EMS window, so you must not run any other
;	software using EMS.
;
;	It seems to work ok when used with Desqview, at least on my
;	AST, but it is primarily intended for use with AA4RE BBS, which
;	needs a great deal of space.
;
;K5EJ:LEAVE 0 IN DESQVIEW
EMS=0				; dont use EMS RAM
;
;	I seem to have problems with systems not using DESQVIEW - especially
;	NNA BBS's. The DV calls SHOULD be ignored if DV is not loaded, but
;	just in case, if you set DESQVIEW=0, the 'Release Timeslice' call
;	wont be used. MAKE SURE that you set DESQVIEW=1 if using DV, or
;	performance will be seriously affected.
;
DESQVIEW=1
;
;
;	Station Identification.
;
;	If a user connects to the NODE Callsign or Alias, he is linked
;	to the switch code, and can use normal NetRom/TheNet commands
;
;	If he connects to the BBS Callsign or Alias he will be connected
;	directly to a BBS port. If none are available, the connect will
;	be rejected.
;
;	Note that of you are running only a NODE (ie BBS=0), or
;	or just a BBS (NODE=0), then you must still put in two pairs of calls,
;	but they MUST be the SAME.
;
;	If you are running both, the calls MUST be different
;K5EJ:THIS WILL BE THE CALL BROADCAST AS NETROM
NODECALL=K5EJ-5  		; NODE CALLSIGN
NODEALIAS=DXPATH 
;
;K5EJ:PUT YOUR PACKETCLUSTER CALL IN HERE
BBSCALL=K5EJ    	 	; BBS CALLSIGN
BBSALIAS=DXBATE 		; BBS ALIAS
;
;
;	'ID' MESSAGE - SENT EVERY IDINTERVAL MINS
;
;	WILL BE ADDRESSED FROM THE PORT CALLSIGN (IF DEFINED)
;	     ELSE FROM THE NODE CALL
;
;	The following format allows KA nodes to include your system in
;	their 'Nodes' lists.
;
IDMSG:
Network node (DXPATH)  
***
;
 UNPROTO=HOWDY               	 ;DEFAULT UNPROTO ADDR
;
;	'I' COMMAND TEXT
;
;	Note that the bit about needing a port param in connects is only
;	necessary if you are running more that one (radio) port.
;
INFOMSG:
K5EJ  Packet Switch (G8BPQ V4.03A).
K5EJ-5 <DXPATH> IS THE NODE.
K5EJ <DXBATE> is the DX Cluster .

Commands are the same as NetRom; to Connect to a normal station
(not another node), you must specify a PORT number before
the callsign. Use PORTS command to list the available PORTS.
The "CLUSTER" command connects you to the K5EJ DX PacketCluster.
***
;
;	CTEXT - If specified, will be sent when someone connects to
;	the NODE ALIAS at level 2. It is not sent on connects to the
;	NODE callsign, as this could confuse BBS forwarding connect
;	scripts.
;
CTEXT:
Welcome to the K5EJ BPQ Node/Cluster.
Enter "CLUSTER" to access the DX Packet Cluster.
Type ? for list of other available Commands.
***
;
;
;	Network System Parameters
;
OBSINIT=3			; INITIAL OBSOLESCENCE VALUE
OBSMIN=1			; MINIMUM TO BROADCAST
NODESINTERVAL=30          	; 'NODES' INTERVAL IN MINS
IDINTERVAL=30    			; 'ID' BROADCAST INTERVAL (UK Regs require
				; an AX25 ID every 15 mins)
;
BTINTERVAL=0   			; NO BEACONS <=0>
;
L3TIMETOLIVE=18			; MAX L3 HOPS
L4RETRIES=3			; LEVEL 4 RETRY COUNT
;
;	I have seen suggestions that L4TIMEOUT should be increased to very
;	high values (even as long as seven mins). Although 60 may be a bit
; 	short in some cases, I STRONGLY advise that you dont go much above
;	120 secs unless you understand ALL the implications.
;
;	I've set TTL and TIMEOUT to the values agreed by the latest SYSOPS
;	meeting - this does not imply that I agree with them!
;
L4TIMEOUT=240			; LEVEL 4 TIMEOUT
L4DELAY=10			; LEVEL 4 DELAYED ACK TIMER
L4WINDOW=4			; DEFAULT LEVEL 4 WINDOW
;
MAXLINKS=60			; MAX LEVEL 2 LINKS (UP,DOWN AND INTERNODE)
MAXNODES=150			; MAX NODES IN SYSTEM
MAXROUTES=35			; MAX ADJACENT NODES
MAXCIRCUITS=64			; NUMBER OF L4 CIRCUITS
minqual=50			; MINIMUM QUALITY TO ADD TO NODES TABLE	
;	
BBSQUAL=130      		; BBS Quality relative to NODE - used to
				; limit 'spread' of BBS through the network
				; to your required service area. I've been
				; asked to set a low default to encourage you
				; to think about a suitable value. Max is 255
;
BUFFERS=255			; PACKET BUFFERS - 255 MEANS ALLOCATE AS MANY
				; AS POSSIBLE - NORMALLY ABOUT 130, DEPENDING
				; ON OTHER TABLE SIZES
;
;	TNC DEFAULT PARAMS
;
PACLEN=128			; MAX PACKET SIZE
;
;	PACLEN is a problem! The ideal size depends on the link(s) over
;	which a packet will be sent. For a session involving another node,
;	we have no idea what is at the far end. Ideally each node should have
;	the capability to combine and then refragment messages to suit each
;	link segment - maybe when there are more of my nodes about than 'real'
;	ones, i'll do it. When the node is accessed directly, things are a
;	bit easier, as we know at least something about the link. So, from
;	Version 3.11 onwards, there are two PACLEN params, one here and
;	one in the PORTS section. This one is used to set the initial value
;	for sessions via other nodes, and for sessions initiated from here.
;	The other is used for incoming direct (Level 2)	sessions. In all cases
;	the TNC PACLEN command can be used to override the defaults.
;
;	The main reason for changing this now was a request from someone
;	wanting to run an HF port.
;
;
;
TRANSDELAY=1			; TRANSPARENT MODE SEND DELAY - 1 SEC
;
;	Level 2 Parameters
;
; T1, T2 and N2 are now int the PORTS section
;
T3=180 				; LINK VALIDATION TIMER (10 MINS)
;
IDLETIME=0  			; IDLE LINK SHUTDOWN TIMER (30 MINS)	
;
;
;	Configuration Options
;
BBS=1				; INCLUDE BBS SUPPORT
NODE=1				; INCLUDE SWITCH SUPPORT
;
HIDENODES=1			; IF SET TO 1, NODES STARTING WITH # WILL
				; ONLY BE DISPLAYED BY A NODES * COMMAND
;
;
;
;	'COMBIOS' Port definitions.
;
;	This section defines the virtual TNC's that the code supports.
;
;	I'm afraid this is now rather more complicated than it was!
;
;	You can now define any COMBIOS port to run in normal (TNC2)
;	mode, PK232 HOSTMODE (with varients for UFQ and AA4RE), or KISS
;	mode. KISS mode allows you to run things like TCP/IP, STATS
;	packages, PACSAT Telemetry decode, etc above the switch.
;
;	The basic format is:
;
;	    TNCPORT
;		COM=n		; COMBIOS port number
;		TYPE=TNC2|KISS|PK232/AA4RE|PK232/UFQ
;	        KISSMASK=nn	; Required only for KISS
;		APPLMASK=nn	; Defaults to 1 (BBS)
;	    ENDPORT
;
;	TYPE defaults to TNC2. See file KISSMODE.DOC for full details
;	of facilities available in KISS mode.
;
;	The two PK232 modes are equvalent to the old HOSTMODE=1 or 2,
;	but can now be used on any port. See HOSTMODE.DOC for more details
;
; 	Dont try to define more than 16 ports.
;K5EJ:SHOULD ONLY NEED ONE PORT FOR CLUSTER
 TNCPORT
 COM=12 	
 ENDPORT

 ;
;	AX25 PORT DEFINITIONS
;
;	Note that these are NOT related to the Virtual TNC ports defined
;	in TNCPORTLIST above. These define the external links - normally
;	to radios, but possibly to other computers, modems, etc. You can
;	have several TNC ports, but only one radio link, or even several
;	radio links and only one TNC port.
;
;
;	The hardware type and protocol are now defined separately, but
;	at the moment only a limited number of combinations are possible
;
;	Interrupt levels may be shared by any cards with suitable
;	hardware. Examples are all but the earliest DRSI cards, and
;	a MS400 modified as described by AA4RE in his MBBIOS documentation.
;
;	There is a significant overhead in using the shared interrupt
;	feature - try to use it on relatively low speed links, and
;	wath out for TX underruns/RX overuns.
;
;
;	Hardware types are ASYNC, PC120, DRSI, TOSH, QUAD, RLC100
;
;	ASYNC is for a normal ASYNC card, or a shared interrupt card
;	      such as the MS400
;
;	Protocols allowed are KISS or NETROM (the NET/ROM async link)
;
;
;	PC120, DRSI and RLC100 are the internal HDLC cards - and allow
;	 2 channels
;
;	TOSH is for a Toshiba T1100 with Software Forge HDLC card
;
;	The above three currently only support PROTOCOL=HDLC
;
;
;	QUAD is the Quadram Quadport, which allows up to 5 async links.
;	This version only supports a single Quadport, see separate file
;	QUAD.DOC for setup details.
;
;	Protocols allowed are KISS or NETROM (the NET/ROM async link)
;
;
;	The KISS protocol supports dual port TNC's such as the KAM and KPC4.
;	You should define two port entries with the same IO addr, INT Level
;	and SPEED - set CHANNEL=A for the first and B for the second.
;
; 	Note that all timer values are in ms intervals. Most TNC's
;	use different units for the various timers, so be careful!
;
;	The timings are all derived from the PC's timer interrupt,
;	who's frequency is about 18.2 HZ, so the resolution is only to
;	approx 50ms.
;
;	All parameters should be set for all ports, but not all
;	drivers support all features. For instance, the NETROM driver
;	does not use the TXDELAY, SLOTTIME and PERSIST values. The NETROM
;	driver only works in FULL DUPLEX mode, and the HDLC only in
;	HALF DUPLEX.
;
;	SoftDCD is not yet implemented - I hope it will be soon!
;
;	CWID works only on DRSI and PC120 cards, and can be suppressed
;	by omitting the parameter.
;
;
;	BECAUSE OF OUR ODD LICENCING CONDITIONS YOU MAY WISH TO BAN
;	CONNECTIONS TO THE BBS CALLSIGN ON SOME PORTS - USERS MAY STILL
;	CONNECT USING L4, OR CONNECT TO THE NODE ADDR, AND USE BBS
;	COMMAND. PUT 'BBSFLAG=NOBBS' TO ACTIVATE THIS FUNCTION.
;	'BBSFLAG=BBSOK', OR NO PARM, MEANS BEHAVE AS NORMAL
;
;	From Version 3.21, you can have an extra callsign and alias for each
;	port for user access only. The callsigns defined in NODECALL and
;	BBSCALL are still used for all networking activity.
;K5EJ:THIS CONFUSED ME BECAUSE NO PORT NUMBERS ARE GIVEN.  PORTS ARE 
;NUMBERED IN SEQUENCE THOUGH SO 145.010 WOULD BE PORT 1, 145.69 WOULD 
;BE PORT 2 AND SO ON.  I FOUND THAT I HAD TO MAKE PROTOCOL NETROM FOR
;THE SWITCH TO BROACAST TO NETROM/NET NODES.  THE FIRST 2 PORTS SET 
;UP YOUR FIRST DRSI BOARD.  THE NEXT PORT IS FOR THE 2ND PORT ON MY 
;SECOND DRSI BOARD (I DON'T HAVE THE 1ST VHF ONE RUNNING).
PORT
	ID=145.010 MHz <User>
	TYPE=DRSI
	PROTOCOL=NETROM
	IOADDR=300H
	INTLEVEL=7
	SPEED=1200
	CHANNEL=A
	QUALITY=100
	MAXFRAME=4
	TXDELAY=300
	SLOTTIME=100
	PERSIST=64
	FULLDUP=0
	SOFTDCD=0
	FRACK=6000
	RESPTIME=1500
	RETRIES=10
	PACLEN=128
        INTERLOCK=1
	DIGIFLAG=1		; DIGIPEAT FLAG - 0 = DISABLE 1 = ENABLE
	        		; PORT TO RELAY DIGI'ED FRAMES ON -
	        		; LIMIT ON L2 SESSIONS ON THIS PORT -
;
;
;	UNPROTO=
;
ENDPORT
;
PORT
;
	ID=145.690 Mhz <Node link>
	TYPE=DRSI
	PROTOCOL=NETROM
	IOADDR=300H
	INTLEVEL=7
	SPEED=1200
	CHANNEL=B
	QUALITY=100 
	MAXFRAME=2
	TXDELAY=250
	SLOTTIME=100
	PERSIST=64
	FULLDUP=0
	SOFTDCD=0
	FRACK=6000
	RESPTIME=1500
	RETRIES=10
	PACLEN=128
        INTERLOCK=1
	DIGIFLAG=1		; DIGIPEAT FLAG - 0 = DISABLE 1 = ENABLE
				; 255 = DIGI UI FRAMES ONLY
;
	DIGIPORT=0		; PORT TO RELAY DIGI'ED FRAMES ON -
				; 0 = THIS PORT, N = PORT N
;
;	USERS=0			; LIMIT ON L2 SESSIONS ON THIS PORT -
				; 0 = UNLIMITED
;
;	UNPROTO= 
;
ENDPORT
;K5EJ: THIS IS A HF LINK USING DRSI MODEM SO I CHANGED ADDRESS AND SPEED.
PORT
;
	ID=7.089 Mhz <Texas Link>
	TYPE=DRSI
	PROTOCOL=HDLC
	IOADDR=310H
	INTLEVEL=7
	SPEED=300
	CHANNEL=B
	QUALITY=100
	MAXFRAME=4
	TXDELAY=300
	SLOTTIME=100
	PERSIST=64
	FULLDUP=0
	SOFTDCD=0
	FRACK=6000
	RESPTIME=1500
	RETRIES=10
	PACLEN=128
        INTERLOCK=1
        DIGIFLAG=1 
;
ENDPORT
;K5EJ:THIS IS HOW A KAM IS SET UP.  KAM MUST BE IN KISS.  BY THE WAY THESE
;ARE ALL ON TNC1 OF CLUSTER.  TNC2 IS NOT USED. FIRST KAM PORT MUST BE THE
;VHF ONE...GUESS THE PARAMETERS WOULD BE THE SAME FOR KPC4
PORT
ID=KAM VHFPORT
TYPE=ASYNC
PROTOCOL=KISS
IOADDR=3F8H
INTLEVEL=4
SPEED=9600 
CHANNEL=A 
QUALITY=10
MAXFRAME=2
TXDELAY=500
SLOTTIME=100
PERSIST=64
FULLDUP=0
FRACK=7000
RESPTIME=2000
RETRIES=10
PACLEN=128
QUALADJUST=5
ENDPORT

PORT
ID=KAM HFPORT
TYPE=ASYNC
PROTOCOL=KISS
IOADDR=3F8H
INTLEVEL=4
SPEED=9600
CHANNEL=B 
QUALITY=10
MAXFRAME=2
TXDELAY=500
SLOTTIME=100
PERSIST=64
FULLDUP=0
FRACK=7000
RESPTIME=2000
RETRIES=10
PACLEN=80 
QUALADJUST=5
ENDPORT


;
ROUTES:
;
;	ROUTES TO LOCK IN
;
;	specify Callsign, Quality and Port. You can now also specify
;	MAXFRAME, FRACK, PACLEN (in that order) to override the port
;	defaults.
;
;
***
APPLICATIONS=CLUSTER,,*SYS
;
