MMDVM Dynamic TG Control

I have been successful setting up ASL <> AnalogBridge<> MMDVMbridge <> DMR-BM (with MD380 emulator in their too). I have apparently missed any information that allows dynamically changing the TalkGroup (without editing the INI file and rebooting).

Has anyone worked this out? Or, did I miss the documentation.

…STeve - KF5VH

If it’s like other Brandmeister connected hotspots, dynamic talkgroups are changed by your radio. Program your HT for the TGs you want. When you key up on a TG the hotspot will open a dynamic TG.

The https://dvswitch.groups.io/g/main forum might be helpful.

I haven’t tried this personally yet but there is a script that folks are using to accomplish this:

https://dvswitch.groups.io/g/allstarlink/wiki/Script-to-change-Talk-Groups-on-the-fly

Thanks! This is what I was hoping to see. I understand its beta.

The above code did not work for me. So, I started changing things up. The code below works for me using Brandmiester. The OS is the ASL distribution from about 3 months ago [ Linux KF5VH-AS0 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13) x86_64 GNU/Linux ].

Put the script in /usr/local/sbin … I named the file “tgtune” . Then …
| # chmod +x tgtune

So, to change TalkGroup from the command shell to TG TAC-310 then TG 3122
| # tgtune 310
| # tgtune 3122

There is no error checking. No idea what happens if you feed it alpha characters.

You can write macros in rpt.conf to call shell scripts so users can change TGs.

The vertical bar on the left edge must be removed.

|#!/bin/bash
|# /*
|# * Copyright © 2018 N4IRR
|# *
|# * Edited slightly 2019 by KF5VH to operate with ASL 1.01
|# *
|# * Permission to use, copy, modify, and/or distribute this software for any
|# * purpose with or without fee is hereby granted, provided that the above
|# * copyright notice and this permission notice appear in all copies.
|# *
|# * THE SOFTWARE IS PROVIDED “AS IS” AND ISC DISCLAIMS ALL WARRANTIES WITH
|# * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|# * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|# * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|# * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|# * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|# * PERFORMANCE OF THIS SOFTWARE.
|# */
|
|python - <<END
|
|import sys
|import socket
|import struct
|
|cmd = “txTg=$1”.encode(“utf-8”)
|_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|cmd = struct.pack(“BB”, 0x05, len(cmd))[0:2] + cmd
|# Set the second value below to match the rxPort in the [AMBE_AUDIO] stanza of Analog_Bridge.ini
|_sock.sendto(cmd, (‘127.0.0.1’, 31100))
|_sock.close()
|
|END
|

@Steve_Mahler Just FYI, you can post code by putting three backticks on a line by itself (ie ```) then the code followed by three more backticks on its own line.

#!/bin/php

#This is my php CLI code
<?php
print "Hello world!\n";
?>