On 21/11/2015 17:14, Steven Franke wrote:
> Thanks. As usual, it’s not as simple as I thought.
>
> I need to re-configure my antenna switch after each band change. Is there a 
> way for me to externally detect band changes using the UDP functionality? 
> Suppose that I write a little UDP client in Python --- could I sense the band 
> change that way?
Hi Steve,

sorry about it getting complicated. It is a worthy goal to get this 
working in a robust way and I will code up something to call a user 
defined executable in the rig control thread - I don't think that will 
be too tricky.

Yes you can use the UDP messages to detect band changes. The hurdle to 
cross is unpacking the messages, once that is done you have generic code 
that can be used to process any of the UDP messages.

I would think that PyQt is your best bet (but see below) since you 
should have the QUdpSocket and QDataStream classes available for the UDP 
server and message unpacking available.

Another approach could be to strip down the message_aggregator reference 
application which is written in C++. You could take out all the GUI 
stuff and use it to make a small daemon program. The bonus there is that 
the MessageServer class which receives and unpacks the messages is 
already in place and will get updated as new message get added to the 
protocol. If you want to go this way, I am happy to do the initial 
stripped down program that you could extend for your needs.

73
Bill
G4WJS.

------------------------------------------------------------------------------
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to