This will enable CAT control on your Mac running WSJT-X with the (tr)uSDX and possibly other USDX rigs as well. WSJT-X uses Hamlib to connecto to and manage CAT on different radios. The problem (thanks to Guido PE1NNZ for identifying), is that Hamlib resets the port when it connects. This causes the radio to reset and then it's not yet available when Hamlib tries to connect. We can work around that by blocking the ability for Hamlib to reset the port. The simplest way to do that is to have the port already in use when Hamlib starts up.
I was not able to achieve that using the Hamlib built into WSJT-X. However, by installing Hamlib separately, and running it in TCP server mode (acts like a network server), I was able to get this all to work.
You need to install hamlib
with brew install hamlib
. If you don't have brew
already, then you will need
to either install it, or use a in different method for installing hamlib
. Once that is installed, you should
be able to run rigtctld
on its own.
- Connect the (tr)USDX to external power first
- Connect the USB cable to the rig
- Copy the shell script above into your path (e.g.
/usr/local/bin
) - Run
chmod 755 <where you put it>
to make it executable - Run the script with
urig
if it's in your path or./urig
if it's in the current directory
Once that says 'rigctld' running
, you can start WSJT-X. Configure WSJT-X like the screenshot included in
this gist.
I'm using analog audio to the Mac's headphone/microphone jack. I put some resistors in the cable to match the expected voltages better, and to mix the left and right outputs from the Mac.
(The resistors are in KΩ. You can ignore the colors, which were just for the particular cables I got on Amazon and cut up.)
I use the Loopback app to route the audio in the Mac. Though it costs as much as a (tr)uSDX! (I had Loopback for other reasons anyway.) I hear that the free/donateware Blackhole app can do the same thing.
Recent (tr)uSDX firmware can also stream audio both ways over the USB port. Though it's only 8 bits per sample streamed, whereas internally the audio is 16 bits. So I'm thinking the analog audio is higher fidelity. But I have no data there.