Advertisement
Guest User

aprx.conf

a guest
Nov 26th, 2012
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.25 KB | None | 0 0
  1. #
  2. # Simple sample configuration file for the APRX-2 -- an APRS iGate and Digipeater
  3. #
  4. # This configuration is structured with Apache HTTPD style tags
  5. # which then contain subsystem parameters.
  6. #
  7.  
  8. #
  9. # For simple case, you need to adjust 4 things:
  10. # - Mycall parameter
  11. # - Select correct type of interface (ax25-device or serial-device)
  12. # - Optionally set a beacon telling where this system is
  13. # - Optionally enable digipeater with or without tx-igate
  14. #
  15.  
  16. #
  17. #
  18. # Define the parameters in following order:
  19. # 1) <aprsis> ** zero or one
  20. # 2) <logging> ** zero or one
  21. # 3) <interface> ** there can be multiple!
  22. # 4) <beacon> ** zero to many
  23. # 5) <telemetry> ** zero to many
  24. # 6) <digipeater> ** zero to many (at most one for each Tx)
  25. #
  26.  
  27. #
  28. # Global macro for simplified callsign definition:
  29. # Usable for 99+% of cases.
  30. #
  31.  
  32. mycall SQ7MRU-10
  33.  
  34. <aprsis>
  35. # The aprsis login parameter:
  36. # Station callsignSSID used for relaying APRS frames into APRS-IS.
  37. # Use this only to define other callsign for APRS\-IS login.
  38. #
  39. #login OTHERCALL-7 # login defaults to $mycall
  40.  
  41. # APRS-IS server name and optional portnumber.
  42. #
  43. # WARNING: Do not change from default port number [14580]
  44. # unless you are absolutely certain you want
  45. # something else, and you allow that something
  46. # else also affect your tx-igate behaviour!
  47. #
  48. server poland.aprs2.net
  49. #server rotate.aprs2.net
  50. #server euro.aprs2.net
  51. #server asia.aprs2.net
  52. #server noam.aprs2.net
  53. #server soam.aprs2.net
  54. #server aunz.aprs2.net
  55.  
  56. # Some APRS-IS servers tell every about 20 seconds to all contact
  57. # ports that they are there and alive. Others are just silent.
  58. # Default value is 3*"heartbeat" + some --> 120 (seconds)
  59. #
  60. #heartbeat-timeout 0 # Disabler of heartbeat timeout
  61.  
  62. # APRS-IS server may support some filter commands.
  63. # See: http://www.aprs-is.net/javAPRSFilter.aspx
  64. #
  65. # You can define the filter as single long quoted string, or as
  66. # many short segments with explaining comments following them.
  67. #
  68. # Usability of these filters for a Tx-iGate is dubious, but
  69. # they exist in case you for example want to Tx-iGate packets
  70. # from some source callsigns in all cases even when they are
  71. # not in your local area.
  72. #
  73. #filter "possibly multiple filter specs in quotes"
  74. #
  75. #filter "m/100" # My-Range filter: positions within 100 km from my location
  76. #filter "f/OH2XYZ-3/50" # Friend-Range filter: 50 km of friend's last beacon position
  77. </aprsis>
  78.  
  79. <logging>
  80.  
  81. # pidfile is UNIX way to tell that others that this program is
  82. # running with given process-id number. This has compiled-in
  83. # default value of: pidfile /var/run/aprx.pid
  84. #
  85. pidfile /var/run/aprx.pid
  86.  
  87.  
  88. # rflog defines a rotatable file into which all RF-received packets
  89. # are logged. The host system can rotate it at any time without
  90. # need to signal the aprx that the file has been moved.
  91. #
  92. rflog /var/log/aprx/aprx-rf.log
  93.  
  94. # aprxlog defines a rotatable file into which most important
  95. # events on APRS-IS connection are logged, namely connects and
  96. # disconnects. The host system can rotate it at any time without
  97. # need to signal the aprx that the file has been moved.
  98. #
  99. aprxlog /var/log/aprx.log
  100.  
  101. # dprslog defines a rotatable file into which most important
  102. # events on DPRS receiver gateways are logged.
  103. # The host system can rotate it at any time without need to
  104. # signal the aprx that the file has been moved.
  105. #
  106. #dprslog /var/log/dprs.log
  107.  
  108. # erlangfile defines a mmap():able binary file, which stores
  109. # running sums of interfaces upon which the channel erlang
  110. # estimator runs, and collects data.
  111. # Depending on the system, it may be running on a filesystem
  112. # that actually retains data over reboots, or it may not.
  113. # With this backing store, the system does not loose cumulating
  114. # erlang data over the current period, if the restart is quick,
  115. # and does not stradle any exact minute.
  116. # (Do restarts at 15 seconds over an even minute..)
  117. # This file is around 0.7 MB per each interface talking APRS.
  118. # If this file is not defined and it can not be created,
  119. # internal non-persistent in-memory storage will be used.
  120. #
  121. # Built-in default value is: /var/run/aprx.state
  122. #
  123. erlangfile /var/run/aprx.state
  124.  
  125. </logging>
  126.  
  127.  
  128. # *********** Multiple <interface> definitions can follow *********
  129.  
  130. # ax25-device Lists AX.25 ports by their callsigns that in Linux
  131. # systems receive APRS packets. If none are defined,
  132. # or the system is not Linux, the AX.25 network receiver
  133. # is not enabled. Used technologies need at least
  134. # Linux kernel 2.4.x
  135. #
  136. # tx-ok Boolean telling if this device is able to transmit.
  137. #
  138.  
  139. <interface>
  140. ax25-device $mycall
  141. # #tx-ok false # transmitter enable defaults to false
  142. </interface>
  143.  
  144. # moje : sndmodem
  145. #<interface>
  146. # serial-device /dev/soundmodem0 9600 8n1 KISS
  147. #</interface>
  148.  
  149. #moje : TNC
  150. #<interface>
  151. # ax25-device $mycall
  152. # tx-ok true
  153. #</interface>
  154.  
  155. #
  156. # The TNC serial options. Parameters are:
  157. # - /dev/ttyUSB1 -- tty device
  158. # - 19200 -- baud rate, supported ones are:
  159. # 1200, 2400, 4800, 9600, 19200, 38400
  160. # - 8n1 -- 8-bits, no parity, one stop-bit,
  161. # no other supported modes
  162. # - "KISS" - plain basic KISS mode
  163. # - "XORSUM" alias "BPQCRC" - KISS with BPQ "CRC" byte
  164. # - "SMACK" alias "CRC16" - KISS with real CRC
  165. # - "FLEXNET" - KISS with real CRC
  166. # - "TNC2" - TNC2 monitor format
  167. # - "DPRS" - DPRS (RX) GW
  168. #
  169.  
  170. #<interface>
  171. # serial-device /dev/ttyUSB0 19200 8n1 KISS
  172. # #callsign $mycall # callsign defaults to $mycall
  173. # #tx-ok false # transmitter enable defaults to false
  174. #</interface>
  175.  
  176. #<interface>
  177. # serial-device /dev/ttyUSB1 19200 8n1 TNC2
  178. # #callsign $mycall # callsign defaults to $mycall
  179. # #tx-ok false # TNC2 monitor can not have transmitter
  180. #</interface>
  181.  
  182. #<interface>
  183. # serial-device /dev/ttyUSB1 19200 8n1 DPRS
  184. # callsign dprsgwcallsign # must define actual callsign
  185. # #tx-ok false # DPRS monitor can not do transmit
  186. #</interface>
  187.  
  188.  
  189. # *********** Multiple <beacon> definitions can follow *********
  190. <beacon>
  191. #
  192. # Beacons are sent out to radio transmitters AND/OR APRSIS.
  193. # Default if "both", other modes are settable.
  194. #
  195. #beaconmode { aprsis | both | radio }
  196. beaconmode aprsis
  197. #
  198. # Beacons are sent from a circullar transmission queue, total cycle time
  199. # of that queue is 20 minutes by default, and beacons are "evenly"
  200. # distributed along it. Actual intervals are randomized to be anything
  201. # in between 80% and 100% of the cycle-size / number-of-beacons.
  202. # First beacon is sent out 30 seconds after system start.
  203. # Tune the cycle-size to be suitable to your number of defined beacons.
  204. #
  205. cycle-size 20m
  206. #
  207. # Basic beaconed thing is positional message of type "!":
  208. #
  209. beacon symbol "R&" lat "5144.34N" lon "01948.68E" comment "Rx-only iGate"
  210. #
  211. #Following are basic options:
  212. # 'symbol' no default, must be defined!
  213. # 'lat' coordinate latitude: ddmm.mmN (no default!)
  214. # 'lon' coordinate longitude: dddmm.mmE (no default!)
  215. # 'comment' optional tail part of the item, default is nothing
  216. #
  217. # Sample symbols:
  218. # R& is for "Rx-only iGate"
  219. # I& is for "Tx-iGate"
  220. # /# is for "Digipeater"
  221. # I# is for "Tx-iGate + Digipeater""
  222. #
  223. #Additional options are:
  224. # 'srccall' parameter sets claimed origination address.
  225. # 'dstcall' sets destination address, default "APRXnn"
  226. # 'interface' parameter picks an interface (must be "tx-ok true" type)
  227. # 'via' sets radio distribution pattern, default: none.
  228. # 'timefix' On APRS messages with HMS timestamp (hour:min:sec), the
  229. # system fixes appropriate field with transmit time timestamp.
  230. #
  231. # Message type is by default '!', which is positional no timestamp format.
  232. # Other possible formats are definable with options:
  233. # 'type' Single character setting type: ! = / @, default: !
  234. # 'item' Defines a name of Item (')') type beacons.
  235. # 'object' Defines a name of Object (';') type beacons.
  236. #
  237. # 'file' option tells a file at which a _raw_ APRS message content is
  238. # expected to be found as first line of text. Line ending newline
  239. # is removed, and no escapes are supported. The timefix is
  240. # available, though probably should not be used.
  241. # No \-processing is done on read text line.
  242. #
  243. # The parameter sets can vary:
  244. # a) 'srccall nnn-n dstcall "string" symbol "R&" lat "ddmm.mmN" lon "dddmm.mmE" [comment "any text"]
  245. # b) 'srccall nnn-n dstcall "string" raw "string"'
  246. #
  247. # The a) form flags on some of possible syntax errors in parameters.
  248. # It will also create only "!" type messages. The dest parameter
  249. # defaults to "APRS", but can be used to give other destinations.
  250. # The via parameter can be used to add other keywords, like "NOGATE".
  251. #
  252. # Writing correct RAW format beacon message is very hard,
  253. # which is evidenced by the frequency of bad syntax texts
  254. # people so often put there... If you can not be persuaded
  255. # not to do it, then at least VERIFY the beacon result on
  256. # web service like findu.com, or aprs.fi
  257. #
  258. # Do remember that the \ -character has special treatment in the
  259. # Aprx configuration parser. If you want a '\' on APRS content,
  260. # then you encode it on configuration file as: '\\'
  261. #
  262. # Stranger combinations with explicite "transmit this to interface X":
  263. #
  264. #beacon file /tmp/wxbeacon.txt
  265. #beacon interface N0CALL-3 srccall N0CALL-3 \
  266. # raw "!0000.00NR00000.00E&Rx-only iGate"
  267. #beacon interface N0CALL-3 srccall N0CALL-3 \
  268. # raw "!0000.00NI00000.00E&Tx-iGate"
  269. #beacon interface $mycall symbol "R&" lat "0000.00N" lon "00000.00E" \
  270. # comment "Rx-only iGate"
  271. #beacon interface $mycall symbol "I&" lat "0000.00N" lon "00000.00E" \
  272. # comment "Tx-iGate"
  273. #
  274. </beacon>
  275.  
  276. # *********** <telemetry> definition(s) follow *********
  277. #
  278. # The system will always send telemetry for all of its interfaces
  279. # to APRSIS, but there is an option to define telemetry to be sent
  280. # to radio channel by using following sections for each transmitter
  281. # that is wanted to send out the telemetry.
  282. #
  283. # transmitter - callsign referring to <interface>
  284. # via - optional via-path, only 1 callsign!
  285. # source - one or more of <interface> callsigns for which
  286. # the telemetry transmission is wanted for
  287. #
  288. #<telemetry>
  289. # transmitter $mycall
  290. # via TRACE1-1
  291. # source $mycall
  292. #</telemetry>
  293.  
  294. # *********** <digipeater> definition(s) follow *********
  295. #
  296. # The digipeater definitions tell transmitters that receive
  297. # AX.25 packets from possibly multiple sources, and then what
  298. # to do on the AX.25 headers of those messages.
  299. #
  300. # There is one transmitter per digipeater -- and inversely, there
  301. # can be at most one digipeater for each transmitter.
  302. #
  303. # In each digipeater there is at least one <source>, usually same
  304. # as the transmitter. You may use same <source> on multiple
  305. # <digipeater>s. Using multiple instances of same <source> on
  306. # a single <digipeater> does not crash the system, but it can cause
  307. # packet duplication in case of non-APRS protocols (like AX.25 CONS)
  308. #
  309. # Use only at most two levels of viscous-delay in your <digipeater>.
  310. # Immediate sending is by "0", and a delayed sending is any value
  311. # from 1 to 9. This system does not correctly support other than
  312. # immediate sending and one level of delay.
  313. #
  314. # Note: In order to igate correct when multiple receivers and
  315. # transmitters are used on single channel, the <interface>
  316. # definitions of each radio port must have associated
  317. # "igate-group N" parameter which has N of value 1 to 3.
  318. # See the aprx-manual.pdf for details.
  319. # (Default software compilation allows you to have up to
  320. # three channels of APRS operation.)
  321. #
  322. #<digipeater>
  323. # transmitter $mycall
  324. # #ratelimit 60 120 # default: average 60 packets/minute,
  325. # # # burst max 120 packets/minute
  326. #
  327. # <source>
  328. # source $mycall
  329. # # #relay-type digipeated # default mode is "digipeated"
  330. # # viscous-delay 0 # no viscous delay for RF->RF digipeating
  331. # # ratelimit 60 120 # default: average 60 packets/minute,
  332. # # # burst max 120 packets/minute
  333. # ## filter a/la/lo/la/lo # service area filter
  334. # ## filter -b/CALL # always block these
  335. # </source>
  336. #
  337. # # Diversity receiver which combines to the primary
  338. # # Tx/Rx transmitter. There can be as many of these
  339. # # as you can connect on this machine.
  340. # #<source>
  341. # # source RXPORT-1
  342. # # #relay-type digipeated # default mode is "digipeated"
  343. # # viscous-delay 0 # no viscous delay for RF->RF digipeating
  344. # # ratelimit 60 120 # default: average 60 packets/minute,
  345. # # # burst max 120 packets/minute
  346. # ## filter a/la/lo/la/lo # service area filter
  347. # ## filter -b/CALL # always block these
  348. # </source>
  349. #
  350. # #<source> # APRSIS source adds a TX-IGATE behaviour
  351. # # source APRSIS
  352. # # relay-type third-party # Must define this for APRSIS source!
  353. # # viscous-delay 5 # Recommendation: 5 seconds delay to give
  354. # # # RF delivery time make itself known.
  355. # # ratelimit 60 120 # default: average 60 packets/minute,
  356. # # # burst max 120 packets/minute
  357. # ## filter a/la/lo/la/lo # service area filter
  358. # ## filter -b/CALL # always block these
  359. # #</source>
  360. #
  361. # #<source> # DPRS source adds a DPRS->APRS RF gate
  362. # # interface DPRS
  363. # # ratelimit 60 120 # default: average 60 packets/minute,
  364. # # # burst max 120 packets/minute
  365. # # relay-type third-party # Must define this for DPRS source!
  366. # #</source>
  367. #</digipeater>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement