[arm-allstar] Feature request for single shutdown and boot gpio setup button switch.

Doug Crompton wa3dsp at gmail.com
Tue Jul 11 10:14:17 EST 2017


I guess I am not completely following you on this. There is a hardware
single button shutdown on the hamvoip web page in the howto's that I did
several years ago. Since then we have added a simple SW shutdown in the
functions section of rpt.conf using DTMF. This as well as several other
commands are commented out in the initial install. If you edit rpt.conf,
functions stanza and uncomment the commands, after an Allstar restart they
will work. You can change the function code(s) to something else if you
desire. Here is a list of those commands - shown commented.

; Example functions to call scripts
; These are commented out. Remove ';' and change function
; command and node to your choice
; Note that halting the system remotely would require
; a power cycle to recover.
;
;A1=cmd,/usr/local/sbin/sayip.sh 27225          ; Say local IP to radio
;A3=cmd,/usr/local/sbin/saypublicip.sh 27225    ; Say Public IP to radio
;B1=cmd,/usr/local/sbin/halt.sh 27225           ; Halt the system (linux
total shutdown)
;B3=cmd,/usr/local/sbin/reboot.sh 27225         ; Reboot the system
;B6=cmd,/usr/local/sbin/astres.sh               ; Restart Asterisk

The use of DTMF kind of replaced the need for a hardware shutdown. If you
want to shut down your node and you are not able to do it via a terminal
just issue the DTMF command. But be aware after shutdown the only way to
restart is to recycle the power. So you probably would not want to do this
remotely unless you had some way to do that.

The DTMF shutdown is ideal for a portable node as the user would issue the
shutdown command before removing power. Upon issuing the command you will
get a message back that the system is going down. You can also reboot he
system or restart Asterisk this way.


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*



On Tue, Jul 11, 2017 at 3:28 AM, "kd4ont via arm-allstar" <
arm-allstar at hamvoip.org> wrote:

> I found, through lots of digging, that there is a default boot switch,
> with the gpio, with rp3. The suggested shutdown pin config, uses different
> pins. In my setup, I had to change the gpio pins to have two switches. I am
> not a python programmer yet. Could an update change this so that one pair
> of gpio and ground, if held for 6 seconds or less would make a graveful
> shutdown, yet, if the pi is off, a quick press would tell it to boot? This
> woukd free up a pair of pins and have less hardware to do the same thing.
> It would act just like a pc with a single power button. It seems more
> efficient to me.
> I don't know how many users might think this is a good feature request.
> One less hardware button. One less hardware software config. Just trying to
> think of streamlining ideas...
> _______________________________________________
>
> 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