Table des matières

Repeater for Emergency use

When an emergency plan is activated locally, amateur radio repeater are used emergency structures, as FNRASEC in France . This page explains how to configure and add emergency mode on SvxLink Repeater. Once activated mode, an information say “the repeater is currently reserved for an emergency plan… leave priority to emergency services. Thanks for your understanding”.

Edit /Logic.tcl

Add declaration of global variable emergency in the namespace Logic:

################################################################################# Generic Logic event handlers################################################################################## This is the namespace in which all functions and variables below will exist.#namespaceeval Logic {## A global variable for emergency mode#variable emergency 0;## A variable used to store a timestamp for the last identification.#variable prev_ident 0;

Activation and deactivation of emergency mode

To turn on and turn off the emergency mode with DTMF code, add following lines in the function dtmf_cmd_received in Logic.tcl. Here we use the code 281 for deactivation, and 280 for activation. We recommend choose a “hard” DTMF code “compliqué” only for administrator. You can add too a security code like le principe des code sysop.

In Logic.tcl, add a function to inform the statuts of emergency mode to Logic of repeater (RepearLogic.tcl).

proc status_emergency {}{variable emergency;return$emergency;}

Beacon filter

When the emergency mode is activated, we don't want the standard announcement of the repeater opening. The filter make a logical test of the emergency activation mode status in the existing function repeater_up in RepeaterLogic.tcl

if![Logic::status_emergency]{# Normal Execution }

You can replace the open message with the emergency message (Beacon message), add following lines ( insert between # Normal Execution and } of before code ):

}else{
playMsg "SVXCard""Emergency/EmergencyBeacon";

Regulary emergency beacon

When the relay is in emergency mode , we will regularly play the information message. For example, following message “ the repeater is currently reserved for an emergency plan … leave priority to emergency services . Thanks for your understanding.”. The sound file in wav format will be in the directory /usr/share/svxlink/sounds/fr_FR/SVXCard/Emergency/.