[arm-allstar] Script to disconnect and disable repeater
K5CG
k5cg at hamoperator.org
Mon Feb 20 23:37:12 EST 2023
Kenyon,
If you disconnect all links, doesn't that take care of the problem? So maybe you don't have to disable the repeater at all?
To disconnect all links you can use the ilink,6 command.
For example, to make *76 disconnect all links, put this in your rpt.conf [functions#####] stanza (where ##### = your node#)
76=ilink
But, if you really want to disconnect all links and disable the transmitter you can use a macro.
Your macro prefix is defined in the [functions#####] stanza like the following and could be a 4 or a 5.
4=macro,1
Assuming it's a 4 for this example...
You need to define the macro command in your [macro#####] stanza.
To make a command like *4555 do what you want, define it so;
555=*76 *99999
Where *76 and *99999 are the commands to be executed (example *99999 is the command to disable your transmitter)
Then when you send *4555 it will run those two commands in that order, *76 which will disconnect all, then *99999 to disable your transmitter.
I think this is correct, but somebody please correct me otherwise.
Danny
K5CG
----- Original Message -----
From: "ARM Allstar" <arm-allstar at hamvoip.org>
To: "ARM Allstar" <arm-allstar at hamvoip.org>
Cc: "Keynon Lannom" <keynon at lannom.net>
Sent: Monday, February 20, 2023 9:36:58 PM
Subject: [arm-allstar] Script to disconnect and disable repeater
I am sure this has been asked before...but I could not find the answer...so
here goes. Recently, I had some noise getting into one of my repeater nodes
and I found that I could issue the "rpt cmd %node% cop 3" command and it
would disable the repeater TX...but it did not disconnect existing links.
So the noise was still transmitting down the link connections. My thought
process was to create a favorite that could be executed that would
disconnect all links and then disable the repeater, but I was unable to
figure out how to call multiple cmds via one favorite. I saw a post asking
to do this and the recommendation was to create a script and call it via a
function...and that is where I was lost. So how does one create the script?
How is it called via a function? And last...is there a better way of doing
this? All of my repeaters are simply running the Pi connected directly to
the repeaters so I have no other controller to handle these capabilities.
Thanks in advance,
Keynon - KB5GLC
_______________________________________________
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/4 web page - http://hamvoip.org
More information about the ARM-allstar
mailing list