Udev Rules in Linux

I became very frustrated with the fact that my USB ports kept changing. I have a TNC2S 1k2 for Aprs and an SCS Tracker for Robust Packet connected to my Pi. The Icom 7300 is controlled via HamLib on another Raspberry Pi. But once it was necessary to reboot the PI running Linbpq , the ttyUSB0 or the ttyUSB1 would keep changing places. Conclusion, I had to adjust the bpq32.cfg again before everything worked the way I wanted.

Now it is quite easy to do something about this. Call me Lazy because it took so long.

Udev rules look like this

SUBSYSTEM=="tty", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303",
SYMLINK+="ttyTNC2S

Now, of course, we first have to find out what the “idVendor” and “idProduct” is.

With the command….

udevadm info -a -n /dev/ttyUSB0

We get a long list of data from usb to serial port ttyUSB0.

With this information we can create an udev rule.

sudo nano etc/udev/rules.d/99-usb-serial.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303",
SYMLINK+="ttyTNC2S
udevadm control --reload
reboot

This has been done for both sides. Both ttyUSB0 and ttyUSB1. And look there are the ttyTNC2S and ttySCS ports. Now you can restart Linux as often as you want and trust that the same USB port is always assigned to the right box.

Now my port config looks like this in bpq32.cfg.

PORT
 PORTNUM=3
 ID=14.1022 RPR ;(RPR)
 TYPE=EXTERNAL 
 COMPORT=/dev/ttySCS
 SPEED=38400
 DRIVER=SCSTracker
 CONFIG
RIGCONTROL
HAMLIB 44.137.31.76:4532
14.1022,USB,F1,H1
****
WL2KREPORT PUBLIC, api.winlink.org, 80, PI8LAP-10, JO11VN, 00-23, 14102200, ROBUST, 25, 35, 3
WL2KREPORT PUBLIC, api.winlink.org, 80, PI8LAP-10, JO11VN, 00-23, 14102200, PKT300, 25, 35, 3
WL2KREPORT PUBLIC, api.winlink.org, 80, PI8LAP-10, JO11VN, 00-23, 144850000, PKT1200, 10, 20, 5, 0
WL2KREPORT PUBLIC, api.winlink.org, 80, PI8LAP-10, JO11VN, 00-23, 430950000, PKT9600, 10, 20, 5, 0
;#
  M UISC
  O 4                   ; MAXFRAME
  F 190                 ; FRACK
  T 8                   ; TX Delay
  FORCE ROBUST
  USEAPPLCALLS          ; Accept connects to all APPLCALLS
  BEACONAFTERSESSION    ; Beacon after session
  %L 1500               ; Centre Freq for Normal Packet (Default is 1500)
  @I 64                 ; Paclen = 60
  %T 1                  ; TX Autotracking 1 = on
  %N 10
  %B 300
ENDPORT

Great…..

Direwolf to LinBPQ config

John WQ6N has found a solution for direwolf and Linbpq that works very well for HF.

Direwolf.conf

/etc/direwolf/direwolf.conf
ADEVICE plughw:1,0
ACHANNELS 1
CHANNEL 0
MODEM 300 2130:2230 D
SERIALKISS /dev/ptyp0 19200
KISSPORT 0
DWAIT 0
SLOTTIME 12
PERSIST 63
TXDELAY 40
TXTAIL 10
FIX_BITS 1 AX25
LOGDIR /var/log/direwolf

bpq32.cfg

/linbpq/bpq32.cfg (HFGW Port)
PORT
PORTNUM=XX                       ; Optional but sets port number if stated
ID=BPQ HFGW                     ; Displayed by PORTS command
TYPE=ASYNC                       ; Port is RS232 Com
PROTOCOL=KISS           ; TNC is used in KISS, JKISS or BPQKISS mode
FULLDUP=0                        ; Only meaningful for KISS, JKISS or BPQKISS devices
COMPORT=/dev/ttyp0
SPEED=19200                      ; RS232 COM PORT SPEED
CHANNEL=A                        ; A for single channel TNC, A or B for multichannel
NOKEEPALIVES=1
PERSIST=63                       ; PERSIST=256/(# of transmitters-1)
SLOTTIME=120            ; CMSA interval timer in milliseconds
TXDELAY=300             ; Transmit keyup delay in milliseconds
TXTAIL=100                       ; TX key down, in milliseconds, at packet end
QUALITY=0               ; Quality factor applied to node broadcasts heard on
MINQUAL=0               ; Entries in the nodes table with qualities greater or
MAXFRAME=1                       ; Max outstanding frames (1 thru 7)
FRACK=5000                       ; Level 2 timout in milliseconds
RESPTIME=1000           ; Level 2 delayed ack timer in milliseconds
RETRIES=15                       ; Level 2 maximum retry value
PACLEN=60                        ; Default max packet length for this port
UNPROTO=<URNODE>             ; BTEXT broadcast addrs format: DEST[,digi1[,digi2]]
BCALL=<URCALL-SSID>            ; BTEXT call. unstated defaults to APPL1CALL
L3ONLY=0                         ; 1=No user downlink connects on this port
DIGIFLAG=0                       ; Digipeat: 0=OFF, 1=ALL, 255=UI Only
DIGIPORT=0                       ; Port on which to send digi'd frames (0 = same port)
USERS=0                 ; Maximum number of L2 sessions, 0 = no limit
ENDPORT
journalctl -o cat -af -u direwolf
Opened /dev/ptyp0 for serial port KISS.
KISS protocol set TXDELAY = 30 (*10mS units = 300 mS), port 0
KISS protocol set Persistence = 63, port 0
KISS protocol set SlotTime = 12 (*10mS units = 120 mS), port 0
KISS protocol set TXtail = 10 (*10mS units = 100 mS), port 0
KISS protocol set FullDuplex = 0, port 0

 

BPQ32.CFG example PI1BDG/PI8BDG

/* This begins a multi-line comment

CONFIGURATION FILE FOR BPQ32: G8BPQ SWITCH SOFTWARE

Includes 1 AX/IP/UDP, 1 Telnet Port, 2 Pi TNC port and 2 KISS TNC Port.
Written by Fred/PA8F V20170419

*/ This ends a multi-line comment
LOCATOR=JO22JB ; Node locator
NODECALL=PI1BDG ; Node callsign
NODEALIAS=BDGNOD ; Node alias (6 characters max)
MAPCOMMENT=BPQ32 Node<BR>PI1BDG Node<BR>PI8BDG BBS<BR>PI8BDG-10 RMS<BR>PI1BDG-4 CHAT<BR>430.925MHz<BR>Bodegraven, ZH
LINMAIL ; Enable BBS
LINCHAT ; Enable CHAT
; ‘ID’ MESSAGE – SENT EVERY IDINTERVAL MINS
;
; WILL BE ADDRESSED FROM THE PORT CALLSIGN (IF DEFINED)
; ELSE FROM THE NODE CALL
;
; The main purpose of this is to satisfy the requrements of those administations that require a regular station
; identification in the same mode as used for communication.
IDMSG: ; UI broadcast text from NODECALL to fixed dest ID
Net/Rom node and BBS Regio Gouda (430.925: 1k2), Bodegraven, ZH
BBS @ PI8BDG, Chat @ PI1BDG-4, DXSpider @ PI8BDG-6, RMS @ PI8BDG-10
*** ; Denotes end of IDMSG text
/*
The BTEXT below contains an APRS location specification. Search the internet
for “APRS Protocol Specification” for details on the format. If you do not
care to do this, it would be best to replace the line by simple non APRS
text rather than transmit incorrect data which may find it’s way via APRS
IGates to FINDU.COM.
*/

BTEXT: ; UI broadcast text from BCALL to destination UNPROTO=
; Coordinates in APRS format: ddmm.mm(N|S) latitude
; dddmm.mm(W|E) longitude,For longitude the the first ‘d’
; must be either 0 or 1.
!5204.48N/00445.04E#BPQ Node en BBS
*** ; Denotes end of BTEXT text

INFOMSG: ; The INFO command text follows:

PI1BDG – PI8BDG Packet System
Linux BPQ NODE/APRS/IGate – Sysop: Fred/PA8F, Bodegraven NL – JO22jb –
This system runs on a Raspberry-PI 3 under Raspbian-Jessie.

Node Ports:
Port 1: AXUDP Interlinks through the Internet / Hamnet where possible
Port 2: Internal and External Telnet port
Port 3: APRS/IGate – 144.800 MHz, Antenna Diamond X50N at 12m HAAT
Port 4: APRS/IGate – 432.500 MHz, Antenna Diamond X50N at 12m HAAT
Port 5: LAP1k2 – 430.925 Mhz, Antenna Diamond V2000 at 12m HAAT
Port 6: LAP9k6 – 430.925 MHz, Antenna Diamond V2000 at 12m HAAT

Telnet Access:
Port 3694: Uronode Telnet Access
Port 6300: F6FBB Mailbox for forwarding (Internal Application PI8BDG)
Port 7300: DX Cluster (Internal Application PI8BDG-6)

HTTP Access:
PI1BDG Linux BPQ Node: pa8f.ddns.net

Internal Applications:
Mailbox: PI8BDG, F6FBB 7.08
Chat: PI1BDG-4
DX Cluster: PI8BDG-6, DXSpider version 1.55
RMS gateway: PI8BDG-10

Ax25-mail : pa8f@pi8bdg.#zh.nl.eu
AMPR mail : pa8f@pa8f.ampr.org
E-mail : pa8f@ziggo.nl

Have Fun
*** ; Denotes end of INFOMSG text
CTEXT: ; The CTEXT text follows:
Welcome to PI1BDG BPQ32 Node and Telnet Server Use “?” for Help menu.
BDGNOD:PI1BDG}
*** ; Denotes end of CTEXT text

FULL_CTEXT=1 ; 0=send CTEXT to L2 connects to NODEALIAS only
; 1=send CTEXT to all connectees
; Network System Parameters:
OBSINIT=6 ; Initial obsolescence set when a node is included
; in a received nodes broadcast. This value is then
; decremented by 1 every NODESINTERVAL.
OBSMIN=4 ; When the obsolescence of a node falls below this
; value that node’s information is not included in
; a subsequent nodes broadcast.
NODESINTERVAL=10 ; Nodes broadcast interval in minutes
IDINTERVAL=15 ; ‘IDMSG’ UI broadcast interval in minutes, 0=OFF
BTINTERVAL=15 ; The BTEXT broadcast interval in minutes, 0=OFF
L3TIMETOLIVE=25 ; Max L3 hops
L4RETRIES=3 ; Level 4 retry count
L4TIMEOUT=60 ; Level 4 timeout in seconds s/b > FRACK x RETRIES
L4DELAY=10 ; Level 4 delayed ack timer in seconds
L4WINDOW=4 ; Level 4 window size
MAXLINKS=63 ; Max level 2 links
MAXNODES=512 ; Max nodes in nodes table
MAXROUTES=64 ; Max adjacent nodes
MAXCIRCUITS=128 ; Max L4 circuits
MINQUAL=144 ; Minimum quality to add to nodes table
; INP3 Routing is experimental. The two parms which follow will be ignored
; unless activated in the ROUTES: section.
MAXHOPS=4 ; INP3 hop limit to add to tables
MAXRTT=90 ; INP3 max RTT in seconds
BUFFERS=255 ; Packet buffers – 255 means allocate as many as
; possible, normally about 130, depending upon other
; table sizes.
; TNC default parameters:
PACLEN=236 ; Max packet size (236 max for net/rom)
; 236 is suitable for reliable and fast connections, such
; as AX/IP/UDP or a dedicated 9600 RF Link
; 120 is suitable for a shared VHF packet radio connection
; PACLEN is defined for each port individually in the ports sections
TRANSDELAY=1 ; Transparent node send delay in seconds
; Level 2 Parameters:
; T1 (FRACK), T2 (RESPTIME) and N2 (RETRIES) are now in the PORTS section
T3=120 ; Link validation timer in seconds
IDLETIME=720 ; Idle link shutdown timer in seconds
; Configuration Options:
AUTOSAVE=1 ; Saves BPQNODES.dat upon program exit
BBS=1 ; 1 = BBS support included, 0 = No BBS support
NODE=1 ; Include switch support
HIDENODES=1 ; If set to 1, nodes beginning with a #
; require a ‘N *’ command to be displayed.
/*
The *** LINKED command is intended for use by gateway software, and concern
has been expressed that it could be misused. It is recommended that it be
disabled (=N) if unneeded.
*/
ENABLE_LINKED=A ; Controls processing of *** LINKED command
; Y = allows unrestricted use
; A = allows use by application program
; N = disabled
;
; Port Definitions:
; AX/IP/UDP port definition.
PORT
PORTNUM=1 ; Optional but sets port number if stated
ID=AX/IP/UDP ; Displayed by PORTS command
DRIVER=BPQAXIP ; Uses BPQAXIP capability of bpq32.dll
QUALITY=192 ; Quality factor applied to node broadcasts heard on
; this port, unless overridden by a locked route
; entry. Setting to 0 stops node broadcasts
MINQUAL=142 ; Entries in the nodes table with qualities greater or
; equal to MINQUAL will be sent on this port. A value
; of 0 sends everything.
FRACK=3000 ; Level 2 timout in milliseconds
RESPTIME=1000 ; Level 2 delayed ack timer in milliseconds
RETRIES=10 ; Level 2 maximum retry value
MAXFRAME=7 ; Max outstanding frames (1 thru 7)
PACLEN=236 ; Maximum packet lenght
CONFIG ; Driver specific configuration from here to ENDPORT
MHEARD ; Keep herad status. Opens AXIP MHEARD window
UDP 10093 ;Listens for UDP packets on this UDP port number
; You may listen on additional port numbers if desired:
; UDP 10094 ;Listens for UDP packets on this UDP port number
; The default behavior is to not
; add information to BPQ32’s nodes table for AX/IP/UDP nodes which are not
; explicitly listed in the bpqaxip.cfg file. The default behavior can be
; modified with these commands:
; DONTCHECKSOURCECALL ;This option allows entries in the NODES table from
;stations sending you nodes broadcasts without the
;corresponding node being configured in bpqaxip.cfg.
; AUTOADDMAP ;This option automatically adds the node call and
;address of a node for which you do not have a
;pre-arranged fixed entry in bpqaxip.cfg. If the
;option DONTCHECKSOURCECALL is specified then the
;AUTOADDMAP option is ignored.

BROADCAST NODES

MAP VE3UIL-7 206.47.13.106 UDP 10093 B ; Mike Smiths Falls, Ontario, Canada
MAP PD4U-12 pd4u.zapto.org UDP 10093 B ; Mark
MAP F1OYP-5 F1OYP.NO-IP.ORG UDP 10093 B ;
MAP KA9LCF-7 69.1.147.35 UDP 10093 B ; Clifford
MAP KE0CQF-7 KE0CQF.120V.AC UDP 10093 B ; Art
MAP N7VVX-1 n7vvx.ampr.org UDP 10093 B ; Dave
MAP ON0AR-10 on0ar.ampr.org UDP 93 B ; Luc
MAP OH5RM-10 oh5rm.no-ip.org UDP 10093 B ;
MAP ZS6RO-14 zs6ro.ddns.net UDP 10093 B ;
MAP PD1DER-14 213.73.162.161 UDP 10093 B ; Wander
MAP PI1CDR sytsma.co.uk UDP 93 B ; Han
MAP PI1BDG-1 44.137.1.82 B ; Fred
MAP GB7CIP-5 82.70.39.222 UDP 10093 B ; Paul

; If INP3 routing (experimental at this point) is utilized the ‘B’ command
; should not be included
MAP PE1MVX-15 pe1mvx.mooo.com KEEPALIVE 120 UDP 10093 ; Hans
MAP PI1LAP 82.176.45.213 UDP 93 ; Niels
MAP I0OJJ-3 44.134.32.240 UDP 93 ; Gus ir0rm-7.ampr.org

; A keepalive may be needed if you have not properly configured your
; router to direct incoming UDP traffic to the specific machine on you
; LAN which is running BPQ32. You should properly configure your router
; so that the keepalive is unneeded, as this ploy is not completely
; reliable!

; In the exceptional case where your ISP is dropping your incoming traffic
; testing has found that the keepalive might help ‘keep the door open’.
; In the following example a keepalive packet is sent every 30 seconds:
; MAP AA1AA-1 example.net KEEPALIVE 30 UDP 10093 B

; An experimental TCP communication mode was added with the 2009/Aug/28 Beta
; release. The purpose is to circumvent router issues which are almost certain
; when ‘your side’, which we will call the client side, cannot control access
; to direct incoming UDP packets to your machine. Instead you will originate
; a connection via TCP. TCP is a connected protocol, all routers should
; automatically set up the return path to your machine.

; An example would be your BPQ32 node, with a node call of MYCALL-5, on a
; laptop at a public access WiFI site. To connect to AA1AA-1 via this method
; you will need this entry in your MAP list (without the ; of course):
; MAP AA1AA-1 example.net TCP-Master 10093 B

; AA1AA-1 is the node call of the remote side, e.g. server side. The server
; side must have the ability to program its router to direct incoming TCP
; traffic with the specified port number to the machine running BPQ32 Node
; AA1AA-1, just as it does for UDP.

; BPQ32 Node AA1AA-1 at URL=example.net would add the folllowing entry to its
; MAP list:
; MAP MYCALL-5 0.0.0.0 TCP-Slave 10093 B

; As a result AA1AA-1 will listen for TCP packets on port 10093 from MYCALL-5.
; When heard, a TCP connection will result over which AX.25 traffic will flow.
; The server side obtains the client side ip address when the connection
; request is received.

; As currently implemented the client side will have to make advance
; arrangements with the server side so that the correct MAP entries will be in
; effect, as well as to specify a unique TCP port number for each prearranged
; client.
ENDPORT

; Radio port definitions.

; With the following definitions BPQ32 accesses the TNC directly.

PORT
PORTNUM=2 ; Optional but sets port number if stated
ID=Telnet Server
DRIVER=Telnet
CONFIG
CMS=1
CMSCALL=PA8F
CMSPASS=xxxxxx
LOGGING=1
DisconnectOnClose=1
TCPPORT=8010
FBBPORT=8011 6300
HTTPPORT=9123
CMDPORT 63000
LOGINPROMPT=user:
PASSWORDPROMPT=password:
MAXSESSIONS=10
CTEXT=BPQ32 Telnet Server\nPress ? For list of commands \n\n
USER=PA8F,xxxxxx,PA8F,””,SYSOP
USER=PI8BDG,xxxxxx,PI8BDG,””,SYSOP
USER=PD0HLA,xxxxxx,PD0HLA
USER=PD1DER,xxxxxx,PD1DER
USER=PA3GON,xxxxxx,PA3GON
; USER=N0ARY,xxxxxx,N0ARY,BBS
ENDPORT

; Radio port definitions.

; Suitable parameters for radio ports depend upon the quality and speed of the port.
; For 1200 baud RF shared access suggested values are:
; FRACK=8000, RESPTIME=1500, RETRIES=10, MAXFRAME=2, PACLEN=120
; For 9600 baud dedicated high quality suggested values are:
; FRACK=5000, RESPTIME=1000, RETRIES=5, MAXFRAME=7, PACLEN=236
;
; With the following definition BPQ32 accesses the TNC directly.
; The TNC used is a PiTNC in KISS mode

; With the following definition BPQ32 interfaces with AGWPE.exe.
; AGWPE could then interface with a sound card to emulate a TNC.
; There is additional configuration to be done within AGWPE.

PORT
PORTNUM=3 ; Port number
ID=APRS 144.800 MHz ; Displayed by PORTS command
; PI TNC settings
TYPE=I2C
I2CBUS=1 ; I2C Bus number. 0 for version 1 board, 1 for Version 2
I2CDEVICE=16 ; I2C Device number (decimal)
PROTOCOL=KISS ; TNC is used in KISS, JKISS or BPQKISS mode
KISSOPTIONS=PITNC,NOPARAMS ; Using BPQKISS eprom w/o polling
;
PERSIST=64 ; PERSIST=256/(# of transmitters-1)
SLOTTIME=100 ; CMSA interval timer in milliseconds
TXDELAY=500 ; Transmit keyup delay in milliseconds
TXTAIL=30 ; TX key down, in milliseconds, at packet end
;In this application port 2 is used by UIView32 as an APRS digipeater thus
;nodes broadcasts are suppressed on this port by setting QUALITY=0.
QUALITY=0 ; Quality factor applied to node broadcasts heard on
; this port, unless overridden by a locked route
; entry. Setting to 0 stops node broadcasts
; With QUALITY=0, the value of MINQUAL is irrelevant
MINQUAL=144 ; Entries in the nodes table with qualities greater or
; equal to MINQUAL will be sent on this port. A value
; of 0 sends everything.
MAXFRAME=2 ; Max outstanding frames (1 thru 7)
; In this application port 2 is used as an APRS digipeater thus the next two
; parms are set per the ‘New Paradigm’ recommendations:
FRACK=7000 ; Level 2 timout in milliseconds
RESPTIME=1000 ; Level 2 delayed ack timer in milliseconds
RETRIES=5 ; Level 2 maximum retry value
PACLEN=128 ; Default max packet length for this port
UNPROTO=APBQ1 ; BTEXT broadcast addrs format: DEST[,digi1[,digi2]]
BCALL=PI1BDG-2 ; BTEXT call. unstated defaults to APPL1CALL
L3ONLY=0 ; 1=No user downlink connects on this port
; Digipeating to be done by UIView32 instead of BPQ32 for APRS applications:
DIGIFLAG=0 ; Digipeat: 0=OFF, 1=ALL, 255=UI Only
DIGIPORT=0 ; Port on which to send digi’d frames (0 = same port)
USERS=0 ; Maximum number of L2 sessions, 0 = no limit
ENDPORT

PORT
PORTNUM=4 ; Port number
ID=APRS 432.500 MHz ; Displayed by PORTS command
; PI TNC settings
TYPE=I2C
I2CBUS=1 ; I2C Bus number. 0 for version 1 board, 1 for Version 2
I2CDEVICE=17 ; I2C Device number (decimal)
PROTOCOL=KISS ; TNC is used in KISS, JKISS or BPQKISS mode
KISSOPTIONS=PITNC,NOPARAMS ; Using BPQKISS eprom w/o polling
;
PERSIST=64 ; PERSIST=256/(# of transmitters-1)
SLOTTIME=100 ; CMSA interval timer in milliseconds
TXDELAY=500 ; Transmit keyup delay in milliseconds
TXTAIL=30 ; TX key down, in milliseconds, at packet end
;In this application port 2 is used by UIView32 as an APRS digipeater thus
;nodes broadcasts are suppressed on this port by setting QUALITY=0.
QUALITY=0 ; Quality factor applied to node broadcasts heard on
; this port, unless overridden by a locked route
; entry. Setting to 0 stops node broadcasts
; With QUALITY=0, the value of MINQUAL is irrelevant
MINQUAL=144 ; Entries in the nodes table with qualities greater or
; equal to MINQUAL will be sent on this port. A value
; of 0 sends everything.
MAXFRAME=2 ; Max outstanding frames (1 thru 7)
; In this application port 2 is used as an APRS digipeater thus the next two
; parms are set per the ‘New Paradigm’ recommendations:
FRACK=7000 ; Level 2 timout in milliseconds
RESPTIME=1000 ; Level 2 delayed ack timer in milliseconds
RETRIES=5 ; Level 2 maximum retry value
PACLEN=128 ; Default max packet length for this port
UNPROTO=APBQ1 ; BTEXT broadcast addrs format: DEST[,digi1[,digi2]]
BCALL=PI1BDG-3 ; BTEXT call. unstated defaults to APPL1CALL
L3ONLY=0 ; 1=No user downlink connects on this port
; Digipeating to be done by UIView32 instead of BPQ32 for APRS applications:
DIGIFLAG=0 ; Digipeat: 0=OFF, 1=ALL, 255=UI Only
DIGIPORT=0 ; Port on which to send digi’d frames (0 = same port)
USERS=0 ; Maximum number of L2 sessions, 0 = no limit
ENDPORT

PORT
PORTNUM=5 ; Port number
ID=AX25_70cm_1k2 ; Displayed by PORTS command
; KISS TNC with USB interface
TYPE=ASYNC
PROTOCOL=KISS ; TNC is used in KISS, JKISS or BPQKISS mode
COMPORT=/dev/ttyUSB0 ; Serial port is USB interface ttyUSB0
SPEED=9600 ; SERIAL PORT SPEED, NOT RADIO DATA SPEED.
CHANNEL=A ; A for single channel TNC
;
PERSIST=64 ; PERSIST=256/(# of transmitters-1)
SLOTTIME=100 ; CMSA interval timer in milliseconds
TXDELAY=500 ; Transmit keyup delay in milliseconds
TXTAIL=30 ; TX key down, in milliseconds, at packet end
; QUALITY=192 ; Quality factor applied to node broadcasts heard on
; ; this port, unless overridden by a locked route
; ; entry. Setting to 0 stops node broadcasts
QUALITY=0 ; There are no Net/Roms in radio range at this site, thus
; no nodes broadcasts need be sent on this radio port.
; As such the value of MINQUAL which follows is ignored.
MINQUAL=142 ; Entries in the nodes table with qualities greater or
; ; equal to MINQUAL will be sent on this port. A value
; ; of 0 sends everything.
FRACK=8000 ; Level 2 timout in milliseconds
RESPTIME=1500 ; Level 2 delayed ack timer in milliseconds
RETRIES=10 ; Level 2 maximum retry value
MAXFRAME=2 ; Max outstanding frames (1 thru 7)
PACLEN=120 ; Default max packet length for this port.
; PACLEN is ignored for APRS packets
UNPROTO=NODE,PD0HLA-14 ; BTEXT broadcast addrs format: DEST[,digi1[,digi2]]
BCALL=PI1BDG ; BTEXT call. Unstated defaults to NODECALL
L3ONLY=0 ; 1=No user downlink connects on this port
DIGIFLAG=0 ; Digipeat: 0=OFF, 1=ALL, 255=UI Only
DIGIPORT=0 ; Port on which to send digi’d frames (0 = same port)
USERS=0 ; Maximum number of L2 sessions, 0 = no limit
ENDPORT

PORT
PORTNUM=6 ; Port number
ID=AX25_70cm_9k6 ; Displayed by PORTS command
;
; KISS TNC with USB interface
TYPE=ASYNC
PROTOCOL=KISS ; TNC is used in KISS, JKISS or BPQKISS mode
COMPORT=/dev/ttyUSB1 ; Serial port is USB interface ttyUSB0
SPEED=19200 ; SERIAL PORT SPEED, NOT RADIO DATA SPEED.
CHANNEL=A ; A for single channel TNC
;
PERSIST=64 ; PERSIST=256/(# of transmitters-1)
SLOTTIME=100 ; CMSA interval timer in milliseconds
TXDELAY=500 ; Transmit keyup delay in milliseconds
TXTAIL=30 ; TX key down, in milliseconds, at packet end
; QUALITY=192 ; Quality factor applied to node broadcasts heard on
; ; this port, unless overridden by a locked route
; ; entry. Setting to 0 stops node broadcasts
QUALITY=0 ; There are no Net/Roms in radio range at this site, thus
; no nodes broadcasts need be sent on this radio port.
; As such the value of MINQUAL which follows is ignored.
MINQUAL=142 ; Entries in the nodes table with qualities greater or
; ; equal to MINQUAL will be sent on this port. A value
; ; of 0 sends everything.
FRACK=8000 ; Level 2 timout in milliseconds
RESPTIME=1500 ; Level 2 delayed ack timer in milliseconds
RETRIES=10 ; Level 2 maximum retry value
MAXFRAME=2 ; Max outstanding frames (1 thru 7)
PACLEN=120 ; Default max packet length for this port.
; PACLEN is ignored for APRS packets
UNPROTO=NODE,PD0HLA-14 ; BTEXT broadcast addrs format: DEST[,digi1[,digi2]]
BCALL=PI1BDG ; BTEXT call. Unstated defaults to NODECALL
L3ONLY=0 ; 1=No user downlink connects on this port
DIGIFLAG=0 ; Digipeat: 0=OFF, 1=ALL, 255=UI Only
DIGIPORT=0 ; Port on which to send digi’d frames (0 = same port)
USERS=0 ; Maximum number of L2 sessions, 0 = no limit
ENDPORT

APRSDIGI

APRSCall PI1BDG
StatusMsg=Node @ PI1BDG, BBS @ PI8BDG

Symbol=# ; Icon to display for station.
Symset=/ ; This is a “B” in a Red Diamond.

;
; Specify a Dest Addreess and Path for each port you want to use for APRS. No dest means receive only port
; Ports without an APRSPath statement will not be used by the Digi
;
; Note if you specify APRS as the destination call it will be replaced by the current BPQ32 APRS
; identification destination – APBPQ1. If you really want to send APRS, specify APRS-0.

APRSPath 3=APRS,WIDE1-1,WIDE2-1 ; Dest and up to 8 digis
APRSPath 4=APRS,WIDE1-1,WIDE2-1 ; Dest and up to 8 digis
BeaconInterval=30 ; Send Beacon every 30 minute. Minimum is 5 mins
MobileBeaconInterval=2 ; Beacon interval when moving

; Define Crossport Digi. For each port, a list of ports to send a packet to (IS means send to APRS-IS)
; If a Digimap isn’t specified for a port, digi out on the port the packet arrived on,
; and send to APRS-IS (if enabled)
; If you want to digi on same port, but not send to APRS-IS, Specify Digimap n=n
; If you dont want to digi on a port, specify Digimap n=
;
; If you only have one APRS port, you probably don’t need a Digimap statement
Digimap 3=3,4,IS ; Packets from 3 to 3 and APRS-IS
Digimap 4=3,4,IS ; Packets from 4 to 4 and APRS-IS

; Define Digipeating parameters

TraceCalls=WIDE,TRACE ; Calls for CALLN-n Processing with Trace
; FloodCalls=XXXZZ ; Calls for CALLN-n Processing without Trace
; DigiCalls=ZZXXX ; Calls for Normal (ie no SSID manipulation) Digi
; For a Local “Fillin” Digi, you could include WIDE1-1 and leave out TraceCalls and FloodCalls

ReplaceDigiCalls ; Replace DigiCalls with APRSCall. Omit if you want the call to be left as it is received.

MaxTraceHops=2 ; Max value of n in CALLN-n processing. If a packet is received with n greater than
MaxFloodHops=2 ; this, the value will be replaced BEFORE it is decremented.

; Specify position. You can specify a fixed LAT/LONG, or use GPS

LAT=5204.48N ; Must be in standard APRS Format (ddmm.mmN/S)
LON=00445.04E ; Must be in standard APRS Format (dddmm.mmE/W)

; GPSPort=0 ; if specified, lat/lon will be taken from a GPS,
; GPSSpeed=0 ; overriding the values set above.
; The Digi can generate Object and Item reports.

; The format is pretty strict – a single space between param=value pairs,
; a comma but no spaces in PATH and PORT string.

; Minimum interval is 10 mins. You can have as many OBJECT lines as you need.
; See thr APRS specification for information on how to format an Object or Item string
OBJECT PATH=APRS,WIDE1-1 PORT=3,IS INTERVAL=30 TEXT=;PI8BDG-6 *111111z5204.48N/00445.04E%DX Cluster PI8BDG-6. Telnet pa8f.ddns.net port 7300
OBJECT PATH=APRS,WIDE1-1 PORT=3,IS INTERVAL=30 TEXT=;PI8BDG *111111z5204.48N/00445.04EBPacket BBS PI8BDG. Telnet pa8f.ddns.net port 6300

; IGATE Params. If specified you will gate RF packets and your beacons to APRS-IS
ISHost=aprs.pa4tw.nl ; APRS-IS Host Name. May be either an IPV4 or an IPV6 Host

ISPort=14580 ; Normal port for a filtered feed
ISPasscode=xxxxx ; If you don’t already have a passcode I can issue you one.
;
; You can specify a filter command to be sent when you log on to APRS-IS. Normally you don’t
; need one. The APRS Mapping Application (BPQAPRS) sets a filter when it starts,
; and if you aren’t running an APRS application, there isn’t much point in getting info from APRS-IS
;
ISFilter=m/25 ; Filter Command if needed
;
***
; AGW Emulator Params
;
AGWPORT=8001 ; Port Applications connect to
AGWSESSIONS=5 ; Max sessions allowed
AGWMASK=2 ; Application Mask. This os only needed for connects to the ;application,
; ; and can be specified in decimal or hex – ie 16 or 0x10

ROUTES: ; Locked routes (31 maximum)
/* ; Begin comment block
CALLSIGN,QUALITY,PORT[,MAXFRAME,FRACK,PACLEN,INP3Enable]

The values in […] if stated override the port defaults
MAXFRAME, FRACK and PACLEN if stated override the port defaults.
INP3Enable = 0 (or unstated) disables, 1 enables.
The INP3 (internode protocol) implementation in BPQ32 is experimental.

Example of a route statement using INP3:
HISCAL-12,193,1,0,0,0,1 ;MAXFRAME, FRACK & PACLEN defaults, INP3 Enabled

If you are in range of another radio node you may choose to lock the
route. Locked routes tend to be overused and should not be set unless
truly needed.
*/ ; End comment block
PE1MVX-15,193,1,0,0,0,1 ; INP3 neighbour PE1MVX-15
PI1LAP,193,1,0,0,0,1 ; INP3 neighbour PI1LAP
I0OJJ-3,193,1,0,0,0,1 ; INP3 neighbour I0OJJ-3

PI1BDG-1,255,1 ; PI1BDG-1 is a BPQ32 on a separate machine on my LAN and I want the Quality high!
PI1CDR,193,1
;Y2DEF-1,193,1 ; This will lock the quality of Y2DEF-1 to 193. It is probably unnecessary!
;A1MNO-9,0,1 ; This sets the route quality for A1MNO to 0, thus preventing connection. This
; is shown as an example of how you would lock out A1MNO-9 if AUTOADDMAP were
; active.
*** ; Denotes end of locked routes

/*
Applications:

You can define additional Node commands that are available to your users. These may connect to
applications running on you computer, or be aliases or ‘shortcuts’ to other node commands.
For example you can define the command “BBS”. This can either be set up to connect to a BBS running
on your computer, or to be an alias for a command that connects to a BBS on another system.

You can set up a callsign that if connected to will select the command, and if required cause the
call to be added to your NODES list.

The format is:

APPLICATION n,CMD,New Command,Call,Alias, Quality

n Application Number. You can define up to 32.
CMD The command the user types
New Command (optional) The Node command to be run
Call (optional) The call which directly invokes CMD
Alias and Quality (optional) If specified, causes an entry for Call and Alias to be added to your
NODES table with the specified Quality.

Associated with each Application number is an application mask. Most BPQ32 applications can be configured to
use any Application. An exception is AR-Cluster using the OCX interface, which must be Appl 1. Normally an Application Mask is configured in the application, rather than an Application Number. The following table gives
the Application Mask values:

Appl: 1,2,3,4,5,6,7,8, etc
Decimal Mask: 1,2,4,8,16,32,64,128, etc
Hexadecimal Mask: 0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80, etc

*/

APPLICATION 1,BBS,,PI8BDG,BDGBBS,255
APPLICATION 2,CHAT,,PI1BDG-4,BDGCHT,255
APPLICATION 3,RMS,C 2 CMS,PI8BDG-10,BDGRMS,255
APPLICATION 4,DX,C 2 HOST 0,PI8BDG-6,BDGDXC,255

/*

In this example a single local application, AR-Cluster, is supported.
If a connected user enters ‘DX’ the node will involk the application
associated with the first positional parameter.

If we elect to use the OCX interface to AR-Cluster, it must be the first
positional parameter, as AR-Cluster does not give the user the option to
set it’s application mask, rather it is hard coded as 0x1 internally in
AR-Cluster.

If instead we choose to use the AGWtoBPQ interface for AR-Cluster, the
applications may be in any of the 8 possible positions. However we have
chosen position 1, thus the mask in AGWtoBPQ must be configured as 0x1 to
correspond to the first positional parameter.

*/

Bpq32 ardop Config

Configuration example of ardop with BPQ32.

;
;	Sample Config for a ARDOP Port
;
PORT
 PORTNUM=7
 PORTCALL=PI1LAP                    ; This is the call sent to the ARDOP modem
 ID=ARDOP
 TYPE=EXTERNAL
 DLLNAME=ARDOP
 INTERLOCK=1
 CONFIG

 ADDR 127.0.0.1 8515 PTT RTS PATH C:\ARDOP_Chat\ARDOPC.exe
 RIGCONTROL 
 COM2 19200 ICOM IC700 70
 25,7.04730,USB,F3
 5,7.045,USB,F3,D
 ****
 
 CWID FALSE															 
 BUSYHOLD 1                              
 BUSYWAIT 20                             
 GRIDSQUARE JO11VN
 DRIVELEVEL 100
 DEBUGLOG FALSE
 CMDTRACE FALSE
 FECMODE 4PSK.500.100
 FECREPEATS 1
 ARQBW 1000MAX							 
 										 
 ARQTIMEOUT 90

   
ENDPORT
;

Linbpq bpq32.cfg

Hier onder de configuratie die ik gebruik voor Linbpq.

/* 
Packet/Switch netwerk Kortgene. 
*/

LOCATOR=JO11VN
MAPCOMMENT=PI1LAP Network Node, Kortgene JO11VN

PASSWORD=**********

NODECALL=PI1LAP-15	; Node callsign
NODEALIAS=LAPNET ; Node alias (6 characters max)

IDMSG:
Winlink Gateway PI1LAP-10
***

BTEXT:				; UI broadcast text from BCALL to destination UNPROTO=
=5133.52N/00348.15En PI1LAP-15 Switch Node, BBS/APRS/AMPR/DXspider/RMS-(PI1LAP-10) Gateway. 
***

INFOMSG:			; The INFO command text follows:

PI1LAP LinBPQ Packet/Switch Node

Computer : Optiplex GX280
Software : Debian GNU/Linux 7 3.2.0-4-686-pae  / Linbpq 6.0.13.1
Rx/Tx    : Kenwood IC-F1010 / Yaesu FT7800
Modem    : Mfj 1278b / tnc7multi
Antenne  : X50n / X30n

Sysop Niels Ruiter

Ax25-mail   : pd2lt@pi8lap.#zl.nld.euro 
AMPR mail   : pd2lt@pi1lap.pd2lt.ampr.org
E-mail      : pd2lt@packet-radio.net

Have Fun
***
CTEXT:				; The CTEXT text follows:
Connected to PI1LAP-15.
Packet/Switch Node, Kortgene JO11VN 

RMS : Winlink packet Gateway
Dx  : Dxspider Cluster

LAPNET:PI1LAP-15} APP,RMS,DX,CHAT,C,B,I,N,R,P,U,V,S,MH
***			; Denotes end of CTEXT text

FULL_CTEXT=1		; 0=send CTEXT to L2 connects to NODEALIAS only
			; 1=send CTEXT to all connectees
OBSINIT=6		; Initial obsolescence set when a node is included
			; in a received nodes broadcast. This value is then
			; decremented by 1 every NODESINTERVAL.
OBSMIN=4		; When the obsolescence of a node falls below this
			; value that node's information is not included in
			; a subsequent nodes broadcast.
LogL4Connects=1
NODESINTERVAL=15	; Nodes broadcast interval in minutes
IDINTERVAL=10		; 'IDMSG' UI broadcast interval in minutes, 0=OFF
BTINTERVAL=60		; The BTEXT broadcast interval in minutes, 0=OFF
L3TIMETOLIVE=25		; Max L3 hops
L4RETRIES=3		; Level 4 retry count
L4TIMEOUT=60		; Level 4 timeout in seconds s/b > FRACK x RETRIES
L4DELAY=10		; Level 4 delayed ack timer in seconds
L4WINDOW=4		; Level 4 window size
MAXLINKS=63		; Max level 2 links
MAXNODES=1024		; Max nodes in nodes table
MAXROUTES=128		; Max adjacent nodes
MAXCIRCUITS=1024	; Max L4 circuits
MINQUAL=100		; Minimum quality to add to nodes table
; INP3 Routing is experimental.  The two parms which follow will be ignored
; unless activated in the ROUTES: section.
MAXHOPS=10		; INP3 hop limit to add to tables
MAXRTT=90		; INP3 max RTT in seconds
BUFFERS=255		; Packet buffers - 255 means allocate as many as
			; possible, normally about 130, depending upon other
			; table sizes.

; TNC default parameters:

PACLEN=128		; Max packet size (236 max for net/rom)
; Level 2 Parameters:
; T1 (FRACK), T2 (RESPTIME) and N2 (RETRIES) are now in the PORTS section
T3=120			; Link validation timer in seconds
IDLETIME=10000		; Idle link shutdown timer in seconds

; Configuration Options:

AUTOSAVE=1		; Saves BPQNODES.dat upon program exit
BBS=1			; 1 = BBS support included, 0 = No BBS support
NODE=1			; Include switch support
HIDENODES=1		; If set to 1, nodes beginning with a #
			; require a 'N *' command to be displayed.

; The *** LINKED command is intended for use by gateway software, and concern
; has been expressed that it could be misused. It is recommended that it be
; disabled (=N) if unneeded.

ENABLE_LINKED=A		; Controls processing of *** LINKED command
			; Y = allows unrestricted use
			; A = allows use by application program
			; N = disabled

; Port Definitions:

PORT
 PORTNUM=1			; Optional but sets port number if stated
 ID=144.850Mhz		        ; Displayed by PORTS command
 TYPE=ASYNC			; Port is RS232 Com
 PROTOCOL=KISS			; TNC is used in KISS, JKISS or BPQKISS mode
 FULLDUP=0			; Only meaningful for KISS, JKISS or BPQKISS devices
 COMPORT=/dev/ttyUSB0
 SPEED=9600			; RS232 COM PORT SPEED
 CHANNEL=A			; A for single channel TNC, A or B for multichannel
 NOKEEPALIVES=0
 PERSIST=160			; PERSIST=256/(# of transmitters-1)
 SLOTTIME=180			; CMSA interval timer in milliseconds
 TXDELAY=180			; Transmit keyup delay in milliseconds
 TXTAIL=23			; TX key down, in milliseconds, at packet end
 QUALITY=192			; Quality factor applied to node broadcasts heard on
				; this port, unless overridden by a locked route
				; entry. Setting to 0 stops node broadcasts
 MINQUAL=100			; Entries in the nodes table with qualities greater or
				; equal to MINQUAL will be sent on this port. A value
				; of 0 sends everything.
 MAXFRAME=4			; Max outstanding frames (1 thru 7)
 FRACK=5000			; Level 2 timout in milliseconds
 RESPTIME=1000			; Level 2 delayed ack timer in milliseconds
 RETRIES=25			; Level 2 maximum retry value
 PACLEN=128			; Default max packet length for this port
 UNPROTO=APBPQ1,PI1LAP       ; BTEXT broadcast addrs format: DEST[,digi1[,digi2]]
 BCALL=PI1LAP-15   		; BTEXT call. unstated defaults to APPL1CALL
 L3ONLY=0			; 1=No user downlink connects on this port
 DIGIFLAG=1			; Digipeat: 0=OFF, 1=ALL, 255=UI Only
 DIGIPORT=0			; Port on which to send digi'd frames (0 = same port)
 USERS=0			; Maximum number of L2 sessions, 0 = no limit
ENDPORT

PORT
 PORTNUM=2                     ; Optional but sets port number if stated
 ID=430,950MHz            ; Displayed by PORTS command
 TYPE=ASYNC                    ; Port is RS232 Com
 PROTOCOL=KISS                 ; TNC is used in KISS, JKISS or BPQKISS mode
 FULLDUP=0                     ; Only meaningful for KISS, JKISS or BPQKISS devices
 COMPORT=/dev/ttyUSB0
 SPEED=9600                   ; SERIAL PORT SPEED, NOT RADIO DATA SPEED.
 CHANNEL=B                     ; A for single channel TNC, A or B for multichannel
 PERSIST=255                   ; PERSIST=256/(# of transmitters-1)
 SLOTTIME=100                  ; CMSA interval timer in milliseconds
 TXDELAY=300                   ; Transmit keyup delay in milliseconds
 TXTAIL=30                     ; TX key down, in milliseconds, at packet end
 QUALITY=192                    ; Quality factor applied to node broadcasts heard on
                                ; this port, unless overridden by a locked route
                                ; entry. Setting to 0 stops node broadcasts
                                ; With QUALITY=0, the value of MINQUAL is irrelevant
 MINQUAL=100                   ; Entries in the nodes table with qualities greater or
                                ; equal to MINQUAL will be sent on this port. A value
                                ; of 0 sends everything.
 MAXFRAME=4                    ; Max outstanding frames (1 thru 7)
 FRACK=5000                    ; Level 2 timout in milliseconds
 RESPTIME=1000                 ; Level 2 delayed ack timer in milliseconds
 RETRIES=25                     ; Level 2 maximum retry value
 PACLEN=128                    ; Default max packet length for this port
 UNPROTO=APBPQ1,PI1LAP         ; BTEXT broadcast addrs format: DEST[,digi1[,digi2]]
 BCALL=PI1LAP                   ; BTEXT call. unstated defaults to APPL1CALL
 L3ONLY=0                      ; 1=No user downlink connects on this port
 DIGIFLAG=1                    ; Digipeat: 0=OFF, 1=ALL, 255=UI Only
 DIGIPORT=0                    ; Port on which to send digi'd frames (0 = same port)
 USERS=0                       ; Maximum number of L2 sessions, 0 = no limit
ENDPORT


; AX/IP/UDP port definition.

PORT
 PORTNUM=3		; Optional but sets port number if stated
 ID=AX/IP/UDP		; Displayed by PORTS command
 DRIVER=BPQAXIP		; Uses BPQAXIP capability of bpq32.dll
 QUALITY=255		; Quality factor applied to node broadcasts heard on
			; this port, unless overridden by a locked route
			; entry. Setting to 0 stops node broadcasts
 MINQUAL=192		; Entries in the nodes table with qualities greater or
			; equal to MINQUAL will be sent on this port. A value
			; of 0 sends everything.
 MAXFRAME=7		; Max outstanding frames (1 thru 7)
 FRACK=3000		; Level 2 timout in milliseconds
 RESPTIME=1000		; Level 2 delayed ack timer in milliseconds
 RETRIES=5		; Level 2 maximum retry value
 PACLEN=236		; Max = 236

CONFIG			; BPQAXIP.cfg has been deprecated.  Instead the AXIP
			; configuration occurs here:
 MHEARD ON		; Opens AXIP MHEARD window
 UDP 10094		; Listens for UDP packets on this UDP port number
; UDP 93			; Listens for UDP packets on this UDP port number
; AUTOADDMAP		; This option automatically adds the node call and
			; address of a node for which you do not have a
			; pre-arranged fixed entry in bpqaxip.cfg.  If the 
			; option DONTCHECKSOURCECALL is specified then the
			; AUTOADDMAP option is ignored.
 BROADCAST NODES
 BROADCAST QST

MAP PI1SNK ip-adres pi1snk UDP 10094
MAP PI1DXC-15 ip-adres pi1dxc UDP 93 B
MAP PI1DEC-14 ip-adres pi1dec UDP 93
MAP PI1LAP ip-adres link local UDP 93 B

ENDPORT

; Radio port definitions.

PORT
 PORTNUM=4			; Optional but sets port number if stated
 ID=Telnet
 DRIVER=Telnet
 PORTCALL=PI1LAP-10

CONFIG
 CMS=1
 CMSCALL=PI1LAP
 CMSPASS=********
 LOGGING=1
 DisconnectOnClose=1
 CMDPORT 7400 63000
 TCPPORT=6323
 FBBPORT=6300
 HTTPPORT=9180
 LOGINPROMPT=User:
 PASSWORDPROMPT=Password:
 MAXSESSIONS=10
 CTEXT=Welcome to PI1LAP`s Telnet Server.\nPress ? For list of commands \n\n
 USER=pd2lt,********,PD2LT,,SYSOP
 USER=pd2nlx,*******,PD2NLX,,SYSOP
ENDPORT

PORT
 PORTNUM=5
 ID=LOOPBACK
 TYPE=INTERNAL
 PROTOCOL=KISS
 CHANNEL=A
 QUALITY=255
 MAXFRAME=6
 FULLDUP=0
 FRACK=10000
 RESPTIME=3000
 RETRIES=10
 PACLEN=200
 TXDELAY=500
 SLOTTIME=100
 PERSIST=64
 DIGIFLAG=1
 UNPROTO=APBPQ1,PI1LAP-11
 BCALL=PI1LAP-15
ENDPORT


PORT
 PORTNUM=6
 ID=Link tnn
 TYPE=ASYNC
 PROTOCOL=KISS
 QUALITY=255
 COMPORT=/dev/com6
 CHANNEL=A
 SPEED=9600
 MAXFRAME=7
 FRACK=5000
 RESPTIME=1000
 RETRIES=10
 PACLEN=128
ENDPORT

;PORT
; PORTNUM=7
; ID=Link RMS
; TYPE=ASYNC
; PROTOCOL=KISS
; QUALITY=255
; COMPORT=/dev/com7
; CHANNEL=A
; SPEED=9600
; MAXFRAME=6
; FRACK=5000
; RESPTIME=1000
; RETRIES=10
; PACLEN=236
;ENDPORT



ROUTES:				; Locked routes (31 maximum)
; CALLSIGN,QUALITY,PORT[,MAXFRAME,FRACK,PACLEN,INP3Enable]
PI1SNK,1,3,1,0,0,1
PI1DXC-15,255,3
PE1PLM-14,192,1
PI1LAP,1,1,0,0,0,1		; BPQ AX/UDP on Multiple_Apps System
***					; Denotes end of locked routes
;
IPGATEWAY

Adapter eth0                   # Linux

44ENCAP 192.168.1.220          # Enable AMPRNET Tunnels and RIP44
IPAddr 44.137.31.70            # IP address of BPQ32
IPNetmask 255.255.255.224      # Netmask 
IPPorts 1,3                # BPQ Ports to be used for links to IP systems. List of ports, separated by commas

;NAT 44.137.31.66 192.168.1.238   # inet.pd2lt.ampr.org (www,ftp)
;NAT 44.137.31.81 192.168.1.222	 # hamnet.pd2lt.ampr.org (hamnet access)
;NAT 44.137.31.67 192.168.1.112	 # jnos.pd2lt.ampr.org (jnos)
;NAT 44.137.31.67 192.168.1.222   # aprs.pd2lt.ampr.org (aprsc server)
;NAT 44.137.31.69 192.168.1.213	 # sys1.pd2lt.ampr.org (windows 7)

;ARP 44.131.31.67 PI1LAP-2 1 D     # 44.131.56.6 is reachable over radio port 1
;ARP 44.137.31.67 PI8LAP-1 1 D
;ARP 44.147.31.67 PI1LAP-14 3 D
ARP 44.137.56.106 PI1SNK 3 D     # ARP entry for Gateway below
ROUTE 44.137.56.0/22 44.137.56.106 # All subnet 44.131.11.0/29  is reachable over radio link 1 to GM8BPQ-7

route addprivate 44.137.31.64/27 encap 82.176.25.213  # AMPRNET Tunnel route
;route addprivate 44.137.31.72/29 encap 149.210.235.143 # Link vpn ipip tunnel vpn-server
;route addprivate 44.137.31.89/29 encap 149.210.215.162 # Link www server tunnel vps
*****

APRSDIGI

 APRSCall=PI1LAP-11
 StatusMsg=PI1LAP-11 APRS Digi  RX-only .

 Symbol=&         ; Icon to display for station.
 Symset=I         ; This is a "B" in a Red Diamond. 

 ;
 ;    Specify a Dest Addreess and Path for each port you want to use for APRS. No dest means receive only port
 ;    Ports without an APRSPath statement will not be used by the Digi
 ;
 ;    Note if you specify APRS as the destination call it will be replaced by the current BPQ32 APRS
 ;    identification destination - APBPQ1. If you really want to send APRS, specify APRS-0. 
 
  ;APRSPath 2=APRS                         ; Receive only port
  APRSPath 1=APRS,WIDE1-1,WIDE2-1             ; Dest and up to 8 digis
;  APRSPath 2=APRS,WIDE1-1,WIDE2-1
  APRSPath 5=APRS,WIDE1-1,WIDE2-1
  
  BeaconInterval=20                   ; Send Beacon every 30 minute. Minimum is 5 mins
  MAXAGE=120
  MobileBeaconInterval=2              ; Beacon interval when moving

 ;    Define Crossport Digi. For each port, a list of ports to send a packet to (IS means send to APRS-IS)
 ;    If a Digimap isn't specified for a port, digi out on the port the packet arrived on,
 ;        and send to APRS-IS (if enabled)
 ;    If you want to digi on same port, but not send to APRS-IS, Specify Digimap n=n 
 ;    If you dont want to digi on a port, specify Digimap n=
 ;
 ;    If you only have one APRS port, you probably don't need a Digimap statement

 
 Digimap 1=1,IS            ; Packets from 1 to 9, but not APRS-IS
 Digimap 5=5,IS       ; Packets from 7 to 7, 9 and APRS-IS
; Digimap 2=2,IS
 
 ;    Define Digipeating parameters
 
 TraceCalls=WIDE,TRACE  ; Calls for CALLN-n Processing with Trace
 FloodCalls=NLD         ; Calls for CALLN-n Processing without Trace
 DigiCalls=ZLD         ; Calls for Normal (ie no SSID manipulation) Digi
                        ; For a Local "Fillin" Digi, you could include WIDE1-1 and leave out TraceCalls and FloodCalls
						
;ReplaceDigiCalls       ; Replace DigiCalls with APRSCall. Omit if you want the call to be left as it is received.
						
 MaxTraceHops=2         ; Max value of n in CALLN-n processing. If a packet is received with n greater than
 MaxFloodHops=2         ; this, the value will be replaced BEFORE it is decremented.

 ;    Specify position. You can specify a fixed LAT/LONG, or use GPS

 LAT=5133.52N           ; Must be in standard APRS Format (ddmm.mmN/S)
 LON=00348.15E          ; Must be in standard APRS Format (dddmm.mmE/W)

 ;GPSPort=/dev/ttyUSB1              ; if specified, lat/lon will be taken from a GPS,
 ;GPSSpeed=4800             ; overriding the values set above.


 ; The Digi can generate Object and Item reports. 
 ; The format is pretty strict - a single space between param=value pairs,
 ; a comma but no spaces in PATH and PORT string.
 ; Minimum interval is 10 mins. You can have as many OBJECT lines as you need.
 ; See thr APRS specification for information on how to format an Object or Item string.

 OBJECT PATH=APRS,WIDE1-1,WIDE2-1 PORT=1,IS INTERVAL=10 TEXT=PI1LAP*111111z5133.52N/00348.15EIPI1LAP Switch Node, BBS/APRS/AMPR/DXspider/RMS-(PI1LAP-10) Gateway.

 ; IGATE Params. If specified you will gate RF packets and your beacons to APRS-IS

 ISHost=194.109.192.235    ; APRS-IS Host Name. May be either an IPV4 or an IPV6 Host
 ISPort=14580              ; Normal port for a filtered feed
 ISPasscode=*******              ; If you don't already have a passcode I can issue you one.
 ;
 ; You can specify a filter command to be sent when you log on to APRS-IS. Normally you don't
 ; need one. The APRS Mapping Application (BPQAPRS) sets a filter when it starts,
 ; and if you aren't running an APRS application, there isn't much point in getting info from APRS-IS
 ;
 ISFilter=m/500              ; Filter Command if needed

; Bridge 1=6
; Bridge 6=1

****

LINMAIL
LINCHAT

APPLICATION 1,BBS,,PI8LAP,LAPBBS,255
APPLICATION 2,CHAT,,PI1LAP-6,LAPCHT,255
APPLICATION 3,RMS,C 4 CMS,PI1LAP-10,LAPRMS,255
APPLICATION 4,DX,C 4 HOST 0 S,PI1LAP-4,LAPDX,255
APPLICATION 5,APP,C 4 HOST 1 S
APPLICATION 6,TNN,C 6 PI1LAP,255
APPLICATION 32,SYSOP