Is there a way to control GPIOs on a URIx during CW ID playback?
I have a pin assigned to PL Strip on my repeater, and I’d like to activate that pin during ID, but only if nobody is talking.
Is there a way to control GPIOs on a URIx during CW ID playback?
I have a pin assigned to PL Strip on my repeater, and I’d like to activate that pin during ID, but only if nobody is talking.
https://wiki.allstarlink.org/wiki/Manipulating_GPIO
But in what you ask is a bit more logic play to not do it when cor is active.
You would need to play around with ‘On Event’ programming. ‘Maybe’ you can work that out.
https://wiki.allstarlink.org/wiki/Event_Management
Here’s what I do. Could be made simpler, I manually rotate IDs with the same script.
rpt.conf:
80=cmd,/home/repeater/id [nodenumber]
#!/bin/bash
IDSCRIPT=/home/repeater/idrandom
if [ “$1” == “” ] ; then
echo “Usage - id [node number]”; exit
fi
sleep 1.5
asterisk -rx “rpt cmd $1 cop 62,GPIO4=1 0”
asterisk -rx “rpt cmd $1 status 11 0”
asterisk -rx “rpt cmd $1 cop 62,GPIO4=0 0”
$IDSCRIPT
exit 0
fi
Appreciate the script! So putting this all together…
What causes function 80
to be called?
And how does this interact with idrecording
and idtalkover
?
Dave