Control URIx GPIO on ID?

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

1 Like

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

Script to play Allstar Voice ID, by K0KN 9/2012

last revised 2/3/13

Usage - ID [node number]

IDSCRIPT=/home/repeater/idrandom

if [ “$1” == “” ] ; then
echo “Usage - id [node number]”; exit
fi

Play voice ID

sleep 1.5

Disable TX PL during ID

asterisk -rx “rpt cmd $1 cop 62,GPIO4=1 0”

Delay so that COS is dropped before ID plays. Otherwise

CWID will play also. Note CWID will also play if a remote

node is speaking when script ran

asterisk -rx “rpt cmd $1 status 11 0”

Enable TX PL

asterisk -rx “rpt cmd $1 cop 62,GPIO4=0 0”

Rotate voice IDs

$IDSCRIPT

done

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