[arm-allstar] Help with RXKEYED and TXKEYED events

Kevin Davis blu666z at gmail.com
Sun Dec 20 10:53:40 EST 2020


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


More information about the ARM-allstar mailing list