[arm-allstar] Help with RXKEYED and TXKEYED events
David McGough
kb4fxc at inttek.net
Sun Dec 20 10:57:59 EST 2020
You're correct. In duplex=2 or duplex=3, and RPT_RXKEYED event will
immediately have a following RPT_TXKEYED event.
On Sun, 20 Dec 2020, "Kevin Davis via ARM-allstar" wrote:
> Morning all.
>
> I'm working on controlling an "On-Air" sign using RPT events and MQTT. I'm
> trying to understand why, when I key up my node, both the RXKEYED and
> TXKEYED events are both triggered. Is it because I'm on a radioless node
> running full duplex?
>
>
> ***** RPT.CONF *****
> python2 /usr/local/sbin/on_air.py 1 = s|t|RPT_RXKEYED
> python2 /usr/local/sbin/on_air.py 1 = s|t|RPT_TXKEYED
> python2 /usr/local/sbin/on_air.py 0 = s|f|RPT_RXKEYED
> python2 /usr/local/sbin/on_air.py 0 = s|f|RPT_TXKEYED
>
>
> ***** Asterisk Log *****
> -- Event on node 507410 doing shell command python2
> /usr/local/sbin/on_air.py 1 for condition s|t|RPT_RXKEYED
> -- Event on node 507410 doing shell command python2
> /usr/local/sbin/on_air.py 1 for condition s|t|RPT_TXKEYED
> -- Event on node 507410 doing shell command python2
> /usr/local/sbin/on_air.py 0 for condition s|f|RPT_RXKEYED
> -- Hungup 'DAHDI/pseudo-1027201242'
> -- Event on node 507410 doing shell command python2
> /usr/local/sbin/on_air.py 0 for condition s|f|RPT_TXKEYED
>
>
> ***** Python Script *****
> import paho.mqtt.publish as publish
> import sys
> from datetime import datetime
>
> if sys.argv[1] == '1':
> payload = 'ON'
> else:
> payload = 'OFF'
>
> payload += ' ' + str(datetime.now())
> publish.single(topic="ke7k/on_air/status", payload=payload, retain=True,
> hostname="192.168.1.3")
>
>
> ***** MQTT Payload Published *****
> ON 2020-12-20 07:22:32.323583
> ON 2020-12-20 07:22:32.395017
> OFF 2020-12-20 07:22:34.326844
> OFF 2020-12-20 07:22:35.624007
> _______________________________________________
>
> 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