Re: ASL to DMR Bridge...changing talkgroups

Mike Zingman - N4IRR

I include the function below in a bash script and call it with a single parameter (the talk group).  It sends a command to AB.  The function assumes the AB instance is on the same machine ( and uses the port 31000 to communicate.  Change these to suit your needs.

Once the command is sent, a quick PTT will do the trick.  Dont forget you should also use TG 4000 to disconnect.


function tune() {
python - <<END
#!/usr/bin/env python
import sys
import socket
import struct
cmd = "txTg=$1"
_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
cmd = struct.pack("BB", 0x05, len(cmd))[0:2] + cmd
_sock.sendto(cmd, ('', 31000))

Join to automatically receive all group messages.