Dotcomwebdesign.com
APRS door PE1MEW

www.hamnet.be
APRS > PE1MEW-10 > Gebruikte software > JavAPRS (pre 4.0)

JavAPRS (pre 4.0)

Deze handleiding heb ik enkele jaren geleden geschreven voor JavAPRS pre 4.0. Inmiddels is deze versie vervangen voor 4.0 en zijn er aan aantal dingen veranderd.
Daarmee is de bruikbaarheid afgenomen.
This tutorial was mede a few years ago. After the realeas of JavAPS 4.0 this how-to has become obsolete. It was kept here for information purpose.

Running a javaprs I-Gate on Linux The PE1MEW-10 javaprs I-Gate on my linux server is running on xubuntu 11. This is a description of my installation based on information I found in the javaprs group at Yahoo with aditional information on configuring javaprs I-Gate.

The PE1MEW-10 javaprs I-Gate is using a PK88 TNC connected to the PC using a serial interface. As all serial interfaces ware occupied i have used a Serial to USB converter. Is this description is on Linux, knowledge of Linux and Ubuntu in particular is mandatory I assume you have it before you start this.

As japrs is running on JAVA the system will require a JRE (JAVA Runtime Environment). If the system does not have it, install it. i used the 'Software centre' of UBUNTU to install a JRE.

Download javaprs conducts from the yahoo group. To be able to download you must have a subscription to the group.

Preparing the system: Now we will prepare the system: Make a directory as /usr/local/javaprs Make a directory /lib (under /usr/local/javaprs!)

Place javaprssrvr.cfg & favicon.ico into /usr/local/javaprs then place .jar files in /lib

Configuring the I-gate: Now we will configure javaprs as a I-gate. In the file javaprssrvr.cfg all required settings are stored. In this how-to we will configure javprs as a I-Gate. All other parameters will be untouched.

Some comments on the configuration:

» Upstream in this example is configured to use tier-2 APRS network using benelux servers » A TNC2 type TNC is used in KISS. Switching to KISS is done using a bat-file (see below) » this I-gate is also digipeating WIDE1-1 packets according to WIDEn-N Paradigm digipeating rules. javaprsservr.cfg

#javAPRSSrvr 3.14b02 Configuration File 
#Fri Apr 4 11:00:00 CDT 2008 
# 
userCall=<yourcallsign> 
AdminInfo=<youradmin info> 
isBackground=true 
#isBackground=false 
stderr=err.log 
# 
# Global Parameters 
# 
excludeCalls=NITRUS;N0CALL;NOCALL 
useHistoryQueue=false 
# 
# Server Adjunct 
# 
#ServerAdjunct=ServerAdjunct 
#ServerAdjunct=javAPRSDB 
# 
# javAPRSDB Parameters (only active if ServerAdjunct=javAPRSDB) 
# 
dbServerAdjunct=ServerAdjunct 
# 
JDBCDriver= 
dbPath= 
dbConnProps= 
# 
dbMinTrackTime=0 
dbMinTrackDist=0.0 
dbMinWxTime=0 
# 
# Console and Log Ports 
# 
consolePorts=127.0.0.1:14500 
logList=127.0.0.1 
logPorts=127.0.0.1:14502 
errorPorts=127.0.0.1:14503 
dupePorts=127.0.0.1:14504 
loopPorts=127.0.0.1:14505 
callLogPorts=127.0.0.1:14506 
connLogPorts=127.0.0.1:14507 
TNCLogPorts=127.0.0.1:14508 
# 
# Status Page Parameters 
# 
statusPorts=14501 
portTable=10152;Full APRS-IS Feed;14580;User-defined Filtered Feed;1314;Message-only Feed 
# 
# Upstream Connection Properties 
# 
#upstreamHubs=first.aprs.net:23000u;second.aprs.net:23000u;third.aprs.net:23000u 
#upstreamUDPPort=60000 
#upstreamHubs=first.aprs.net:14580;second.aprs.net:14580;third.aprs.net:14580 
#loginCommand;first.aprs.net;14580=filter r/52.211/5.9833/100 
#loginCommand;second.aprs.net;14580=filter r/52.211/5.9833/100 
#loginCommand;third.aprs.net;14580=filter r/52.211/5.9833/100 
# 
# Upstream for PA 
# 
upstreamHubs=amsterdam.aprs2.net:14580;netherlands.aprs2.net:14580;belgium.aprs2.net:14580 
loginCommand;amsterdam.aprs2.net;14580=filter r/52.211/5.9833/100 
loginCommand;netherlands.aprs2.net;14580=filter r/52.211/5.9833/100 
loginCommand;belgium.aprs2.net;14580=filter r/52.211/5.9833/100 
# 
# Client Port Properties 
# 
noEchoPorts=10152u 
msgOnlyPorts=1314u 
IGatePorts=14580u 
#;14579u 
#saDefaultFilter14579=r/52.211/5.9833/200 
# 
# IGate Properties 
# 
IGateAdjunct=IGateAdjunct 
IGateCall=<your I-gate callsign> 
IGateVia=WIDE2-2 
IGateGateToRF=true 
IGateLat=<your station latitude>
IGateLon=<your station Longitude>
IGatePositCmt=<your comment> 
IGateStatus=<your status info> 
# 
# Interface properties 
# 
#TNCModule=AGWInterface 
#TNCModule=ax25Interface 
TNCModule=KISSInterface 
TNCModule=javAPRSDigi 
# 
# TNC properties 
# 
# 
TNCSpeed=9600 
TNCPortInit=./tncinit.bat 
# 
# Digi Properties 
# 
digiAliases=WIDE1-1 
#digiAliases=RELAY;WIDE1-1;WIDE2-2;WIDE2-1 
#digiTNCInterface=AGWInterface 
#digiTNCInterface=ax25Interface 
digiTNCInterface=KISSInterface 
# 
# AGWPE Interface 
# 
#AGWTNCPortNumber=1 
#AGWAddress=127.0.0.1:8000 
#AGWUserName= 
#AGWPassword= 
# 
# ax25Interface Properties 
# 
#ax25TNCPortName=aprs 
# 
# KISSInterface Properties 
# 
KISSTNCPortNumber=1 
KISSPortName=/dev/ttyUSB0 
# 
# Serial Port Parameters 
# 
#PortClassName=RXTXIntf 
#SerialPortName=/dev/ttyUSB0 
#PortClassName=WinCommIntf 
#SerialPortName=COM1 
#SerialToTCPPorts=127.0.0.1:14509 

now we have configured javaprs we have to create files that will witch the TNC2 in to KISS mode.

We have to create 2 files: setkiss.txt and tncinit.bat

setkiss.txt will have the commands that will be sent to the TNC and tncinit.bat will send the setkiss.txt file to the tnc over teh serial port.

setkiss.txt

KISS ON
RESTART 

tncinit.bat

stty -F /dev/ttyUSB0 9600 pass8 raw -iexten -echo -echoe -echok
cat setKISS.txt >/dev/ttyUSB0 

Please note that in this example the serial port is at the Serial to USB converter ttyUSB0. As the bat file must be executeable make it so using: sudo chmod -x tncinit.bat Now we have to make javaprs run as a service so it will operate unattended. Make a file called javaprs in /etc/init.d and insert the text below: init.d

 

#! /bin/bash
#
# Start/Stop the JAVA APRS Server
# Make sure JAVA is installed
test -x /usr/bin/java || exit 0
ROOT=/usr/local/javaprs
case "$1" in
start)
(
cd $ROOT || exit 1
#java -Djava.library.path=$ROOT/src/javax25 -jar $ROOT/lib/javAPRSSrvr.jar
/usr/lib/jvm/java-6-openjdk/bin/java -server -cp $ROOT/lib/javAPRSSrvr.jar javAPRSSrvr
) &
;;
stop)
ps aux | grep \[j\]avAPRSSrvr.jar | sed -e "s/^[^ ]\+ \+\([0-9]\+\).*$/\1/" | xargs kill
;;
restart)
$0 stop
$0 start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
;;
esac 

Then make javaprs executable & setup defaults for runlevels

sudo chmod +x javaprs sudo update-rc.d javaprs defaults'

Now we can start the service. therefore run:

sudo /etc/init.d/javaprs start you should now have your service running as you want...

Testing for confirmation browse to localhost:14501 to confirm all is working.

I made the following change to add APRSDB.

cd $ROOT || exit 1
#java -Djava.library.path=$ROOT/src/javax25 -cp $ROOT/lib/javAPRSSrvr.jar
/usr/lib/jvm/java-6-sun/bin/java -server -cp  $ROOT/lib/javAPRSSrvr.jar:
$ROOT/lib/mysql-  connect.jar:$ROOT/lib/javAPRSDB.jar javAPRSSrvr
) &


That added the javAPRSDB.jar & mysql-connect.jar

Sponsoren en Donaties

In 2013 zijn bijdragen ontvangen van:

PE2CJ, PE1RYY, PC2KY.


Doneren of een financiele bijdrage leveren? Graag! Stuur een bericht aan PE1MEW via het
E-mail formulier.
Status = Niet alle kosten zijn gedekt door donaties.

 

Status PI1APA

Systeem: PI1APA
Operationeel
P1: 144.800
Operationeel
P2: 430.512
Off-Air

Status PI1APK

Systeem: PI1APK
Operationeel
P1: 144.800
Operationeel
 
 

Status PI1APU

Systeem: PI1APU
Operationeel
P1: 144.800
Operationeel


Status PE1MEW-10

Systeem: PE1MEW-10
Operationeel
P1: 144.800
Operationeel
I-Gate
 Operationeel

 

Status informatie

Van de verschillende systemen wordt hier de systeemstatus in kleur weergegeven.

Groen = Operationeel.
Oranje = Operationeel
met opmerkingen.
Rood = Buiten bedrijf.

 

Powered By CMSimple_XH | DCWD Design modified by PE1MEW