There isn’t a whole lot of discussion here on these. First I find few VHF/UHF radios support CIV. Then you’re relying on hamlib support. In the case of the TM-V71A, the support is only partially there. The network dameon part rigctrld is not functional.
It would be idea to announce the currently tuned frequency to a remote user upon connection.
Has anyone done this?
It would also be slick if there was supermon support.
I set up a script in Asterisk that reads DTMF codes (*99, #) that trigger short shell scripts that will send CAT PTT commands to my IC-9100 over the USB interface.
The features.conf file will set up capture of the DTMF and pass along to a shell script. You also have to set up the extensions.conf file for your radio-extension. More CAT commands is something I’ve wanted to do but haven’t had time. Now that the holidays are over I might revisit. You will probably have to record a few words like “Megahertz” so that it can speak properly.
One thing I want to do is use the SendText() command instead of announcing the frequency. That way it shows on the handset display.
Could you post an example of what you put in functions.conf? The documentation in that file and in that link is not very clear. For example if I wanted to call a script eg. AGI(script.sh) or directly call a script, from a DTMF command eg. *699 is that easy to do?
BTW would also be nice if the PTT command from SIP phones could be shortened from *99 to just one digit… maybe like just a 5 to key PTT and # to unkey…?
I just added the following lines to functions.conf
; Added for keying up ICOM IC-9100 over USB using Hamlib
ptt-on-9100 => *99,caller,System,/usr/local/bin/ptt_on_9100.sh
ptt-off-9100 => #,caller,System,/usr/local/bin/ptt_off_9100.sh
The ptt-on-9100 is just the name for the command. I used *99 and # to maintain default commands for keying/unkeying the node, you can make it whatever you wish.
ptt_on_9100.sh:
#!/usr/bin/env bash
set -euo pipefail
PORT=/dev/ttyUSB0
BAUD=19200
MODEL=3068
rigctl -m $MODEL -r $PORT -s $BAUD T 1
ptt_off_9100.sh:
#!/usr/bin/env bash
set -euo pipefail
PORT=/dev/ttyUSB0
BAUD=19200
MODEL=3068
rigctl -m $MODEL -r $PORT -s $BAUD T 0
Pretty simple script. I should probably add some feedback and a timeout timer if I’m going to beyond proof of concept.