Hello again,
I'd like to suggest two features in "UDP Log Messages".
1. I'am missing a feature like in N1MM "Send Radio Data".
I need the CAT for my local connected rig and the AMP should get data via UDP.
2. The AMP is capable to read UDP data for radio 1 up to 4.
CQRLOG can handle two rigs. So I'd say: radio 1 and 2 is enough to read :-)
Is this worth a try?
Kind regards,
73 de Martin, DL1MTG
HI Martin!
Would you explain your needs a little more specific, please.
I have a fellow ham here who has linear amp that needs radio data but it can operate with hamlib rigctld (started by script and so divided to several purposes, not only for Cqrlog)
For what the UDP is needed for?
I am afraid you are still on 2.5.2 as you say Cqrlog can handle two rigs. True, but CqrlogAlpha can handle six rigs.
How ever there is nothing like sending cat data via UDP in Alpha version, but hundreds of other fixes and improvements.
I fact you do not need Cqrlog for that. It is enough that Cqrlog starts rigctld, or it is started in other ways (via script, is most recommended).
Then you can do a simple program with bash scripting, python, perl or what ever you prefer that asks rig state from rigctld and sends it via UDP frame.
When rigctld is running several client programs can connect it, not just Cqrlog alone.
Please state your needs for AMP. I am sure we can find a solution.
You can also connect me via email. Address can be found from call books.
--
Saku
OH1KH
Hi Saku,
thanks for your time.
I'll send you an email.
--
73 de Martin, DL1MTG
Hello forum,
I've to thank you Saku for his quick help.
And I also want to share a small and helpful script to send VFO-Data to the AMP using UDP 12060 data for QRG.
My rig is connected locally with USB to the computer. And now this background script transfers every second the radio data to the AMP.
I found some helpful information in N1MM docs. Look at Radio Info
https://n1mmwp.hamdocs.com/appendices/external-udp-broadcasts/
#!/bin/bash
clear
AMP_IP=192.168.178.58 # IP of the AMP
AMP_PORT=12060 # UDP Port on AMP
RADIO="1" # AMP can handle radio from 1 up to 4
echo -e "To exit loop press Ctrl+C\n\n\n"
echo "-----------------------"
#begin of loop ***************************************************
while :
do
# has rigctld started with "--vfo" parameter? Check that first:
cv=$(echo "\get_vfo" | nc -N 127.0.0.1 4532)
# next ask frequency:
freq=$(echo "f $cv" | nc -N 127.0.0.1 4532)
# above 52 MHz: do not use PA!
if [ $freq -lt 52000000 ]; then
# trim length of QRG
freq=$(echo $freq | cut -c1-7)
# create XML string and send with UDP:
myudp='<?xml version="1.0" ?>\n\n\t'$RADIO'\n\t'$RADIO'\n\t'$freq'\n'
echo -en "$myudp" | nc -q 0 -u $AMP_IP $AMP_PORT
fi
sleep 1
#end of loop ***************************************************
done
Have fun ;-)
--
73 de Martin, DL1MTG