[arm-allstar] Logging PTT keyup on my Link Radio
Doug Crompton
wa3dsp at gmail.com
Tue Jun 19 13:11:50 EST 2018
Gerry,
There is probably more than one way to skin a cat but here is how I do it.
First archive the keyups. In /etc/asterisk/rpt.conf for the node you want
to track -
archivedir=/media/MS1
archiveaudio=0 ; Disable saving .wav files
I have a usb stick plugged into the Pi USB. The stick is 32G and is
formatted ext4 and named MS1. It mounts under media when the system boots.
As you can see I have it set as the archive directory in
/etc/asterisk/rpt.conf. I also have the archiving of audio turned off.
With this on you also get an audio file for each transmission but it can
take up a lot of space if the circuit is busy. The actual archive directory
in this example is /media/MS1/node_number - where node_number is the node
where you have this defined in rpt.conf. This is node-number part of the
file name is assigned by Allstar. You can have multiple archives when you
have multiple nodes on a server.
The resulting raw file looks like this:
20180619002604,TXUNKEY,48141 - this node unkeyed
20180619002610,TXUNKEY,MAIN - main node unkeyed
20180619002618,RXKEY,28325 - responding station keyed
20180619002618,TXKEY,MAIN - main keys
20180619002618,TXKEY,40561 - and each connected nodes is sent the
key signal
20180619002618,TXKEY,42545
20180619002618,TXKEY,27034
and many more
Yours would look different as this is a hub and many many nodes are sent
the txkey. The lines you need to look at are RXKEY. This is the indication
a station keyed your node. I use a Perl script I wrote to give me log
information gleaned from this file.
The file is for an entire day and a new file is created at midnight. The
file is named by date. The file name for today for one of my hubs is -
/media/MS1/27225/20180619.txt
How you analyze the data in the files is up to you. You could grep out all
the RXKEYS -
grep RXKEY filename
If you activate the audio recording the wav files are for EACH transmission
so many files are created. You can append them together with cat if desired.
*73 Doug*
*WA3DSP*
*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
On Tue, Jun 19, 2018 at 12:19 PM, "Gerry Filby via arm-allstar" <
arm-allstar at hamvoip.org> wrote:
> Good morning fellow Hamvoipers,
>
> I have an Alinco Dr-135, DMK URI and Pi 3 B running Hamvoip (Node 48063).
> The node is public and available to my neighbors in Glenn Park in San
> Francisco.
>
> I would like to log when the node is keyed up by an inbound RF connection
> - this is mostly for statistics so I can gauge how useful the node is.
>
> Is there a standard way of doing this ?
>
> Best,
> Gerry
> W6WNG.com
>
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>
More information about the arm-allstar
mailing list