1APRSMON(8) Linux Programmer's Manual APRSMON(8)
2
3
4
6 aprsmon - monitor APRS AX.25 traffic for javAPRS
7
9 aprsmon [-a] [-m] [-r] [-k minutes] [-p port] [-t title] [-i infofile]
10
12 Aprsmon uses SOCK_PACKET facilities to provide a network monitor of all
13 AX.25 UI text traffic heard by the system. It is based on listen(1).
14
15 Aprsmon collects (-m) or displays standard AX.25 UI text frames in a
16 format similar to that output by a standard TNC in "Monitor ON" mode
17 and is intended to be used with programs like javAPRS which wish to see
18 a TNC data stream over a TCP connection. When the aprsmon master has
19 been running for a while and a new aprsmon slave starts up, first all
20 saved up reports are sent, then a title line indicating the beginning
21 of live data is sent, and new reports are sent as received.
22
23 Compressed position and telemetry reports as generated by the APRS Mic
24 Encoder are translated into the conventional uncompressed APRS Micro-
25 Interface-Module (MIM) telemtry format so that these stations are visi‐
26 ble in javAPRS. Reports containing a TheNet X1J4 beacon header are
27 also edited to strip off the header making these nodes visible in
28 javAPRS as well.
29
31 -a Allow for the monitoring of outgoing frames as well as incom‐
32 ing ones.
33
34 -r Choose "raw" mode which allows non-printable data through.
35
36 -p port Monitor only those frames received on a particular port, by
37 default all AX.25 interfaces are monitored.
38
39 -m "Master" mode. Retain monitored data for the number of min‐
40 utes specified with the -k option in a shared memory segment.
41
42 -k minutes
43 Retain monitored packets going back the given number of min‐
44 utes. Default is 30.
45
46 -t title Sets the javAPRS title string. Default is "Live data from
47 Linux."
48
49 -i infofile
50 Infofile is the path to the file that the aprsmon master
51 writes the shared memory segment and semaphore id's into.
52 Default is "/var/ax25/aprsmon.info."
53
55 Set up one aprsmon master running on your system to collect historical
56 data going back a while. You will probably want to set up an
57 /etc/rc.d/init.d script for this.
58
59 aprsmon -a -m&
60
61 Add an entry into /etc/services with the port number you want javAPRS
62 to connect on. For example:
63
64 aprs 14439/tcp # APRS monitor on 144.39
65
66 Add an entry into /etc/inetd.conf for this service:
67
68 aprs stream tcp nowait root /usr/sbin/aprsmon aprsmon -a
69
70 To test, simply "telnet localhost aprs". To use with javAPRS, set, for
71 example,
72
73 <PARAM name = "dataFile1" value = "netc:14439:localhost">
74 in your HTML file as described in the javAPRS documentation, and then
75 use appletviewer to run javAPRS:
76 appletviewer mydemo.html
77
78
80 The Mic-E reduces the duration of packet noise on a voice frequency by
81 encoding its data in a compressed form, some of which is binary. Some
82 APRS-decoding software, notably javAPRS, is unable to deal with this
83 data. To solve this problem aprsmon expands the Mic-E packet into one
84 or two MIM packets as follows:
85
86 @ddhhmmzDDMM.hhN/DDDMM.hhW$cse/spd/E>mon/Mm/status
87 T#MIC,aaabbbcccdddeeefffComments
88
89
90 ddhhmm is the UTC day and time the packet was received by the host
91 running aprsmon.
92
93 DDMM.hhN is the latitude.
94
95 / is the symbol table selection (/ or \).
96
97 DDDMM.hhW is the longitude.
98
99 $ is the symbol.
100
101 cse,spd are course and speed.
102
103 E is the type of Mic-Encoder:
104
105 E - TAPR Mic-Encoder
106 T - Kenwood TH-D7
107
108 m is the status message number, and
109
110 status is the status message number expanded as follows:
111
112 0 - Off duty..
113 1 - Enroute...
114 2 - In Service
115 3 - Returning.
116 4 - Committed.
117 5 - Special...
118 6 - PRIORITY..
119 7 - EMERGENCY.
120
121 aaa,bbb,ccc,ddd,eee,fff
122 are the values of the telemetry channels.
123
125 /etc/ax25/axports /var/ax25/aprsmon.info
126
128 call(1), listen(1), beacon(1), ax25(4), axattach(8),
129 http://www.bridge.net/~sdimse/javAPRS.html, http://www.tapr.org,
130 http://www.aprs.net, MIC-E.TXT,TELEMTRY.TXT,PROTOCOL.TXT
131
133 Alan Crosswell, n2ygk@weca.org
134
135
136
137Linux 9 February 1999 APRSMON(8)