Skip to content
HamQSO
Radio over CAT

Elecraft K4: CAT control and logging app

HamQSO reads the frequency and mode of the Elecraft K4 over CAT, puts them in the QSO you are logging and tunes the radio when you tap a cluster or activation spot. An Android phone connects to the K4 with a USB cable, an iPhone or iPad through rigctld or flrig on a computer, and Chrome or Edge on a computer with a USB cable.

CAT radio control comes with a plan: going through the setup guide is free.

The K4 in the app

The K4 in the app
ProtocolASCII, Kenwood style (FA…;)
Speed115200 baud (default, can be changed)
Stop bits1
Handshakenone, RTS held low
Frequency digits11 (FA command)
Hamlib model2047
Meters over USBnone over the cable; through rigctld when it gives them
CW over CATyes, for the coverage test: the KY command, text padded to 24 characters (per Hamlib, not yet tried on a real radio)
Digital spotsUSB (DATA from the radio menu)
Bands it receives160 m, 80 m, 60 m, 40 m, 30 m, 20 m, 17 m, 15 m, 12 m, 10 m, and 6 m

How to connect the K4

Android phone or tablet: USB cable

Connect the K4 to the phone with its USB cable, or a CAT cable with a USB converter (CP210x, FTDI, CH340 or PL2303 chip), plus an OTG adapter. Choose Elecraft K4 in the list: the app fills in 115200 baud. When Android asks to use the USB device, tap Allow. No computer in between, which is handy when portable.

iPhone and iPad: through a computer

Apple does not allow a cable from an iPhone to the radio, so the K4 stays connected to a computer or a Raspberry Pi running Hamlib's rigctld, and the app reaches it over Wi-Fi on port 4532. The commands below already carry the K4's Hamlib number, 2047, and its speed, 115200. Phone and computer must be on the same network. This works on Android too.

Chrome or Edge on a computer: USB cable

HamQSO web talks to the K4 over the USB cable to the computer (Web Serial). Choose the model, click Connect and, the first time, pick the radio's port in the browser's window; the app remembers it. Safari and Firefox cannot open a serial port, and rigctld or flrig are not available in the browser.

Windows

2. With the radio connected to the computer, run

rigctld -m 2047 -r COM3 -s 115200 -T 0.0.0.0 -t 4532

macOS

1. Install Hamlib

brew install hamlib

2. With the radio connected to the computer, run

rigctld -m 2047 -r /dev/cu.usbserial-0001 -s 115200 -T 0.0.0.0 -t 4532

Linux

1. Install Hamlib

sudo apt install libhamlib-utils

2. With the radio connected to the computer, run

rigctld -m 2047 -r /dev/ttyUSB0 -s 115200 -T 0.0.0.0 -t 4532

The port is an example: use the one your computer gives the radio.

Already using flrig with the K4? Turn on its XML-RPC server and connect HamQSO to the computer on port 12345: through flrig the app reads frequency and mode, without CW.

Manual: USB, rigctld and flrig

What the app sends to the K4

The K4 speaks ASCII commands in the Kenwood style: the app sends the frequency as FA followed by 11 digits and a semicolon, and the mode with MDn;.

For an FT8 spot on 14,074 kHz the app writes FA00014074000; to the K4, then asks FA; to read the frequency back.

A digital spot puts the K4 on USB; whether that USB takes audio from the data input is a setting in the K4's own menu (DATA), not a CAT command the app sends.

Hamlib keeps the K4 in rigs/kenwood/k3.c, with the K3/K3S and KX2/KX3: the app's profiles for them come from the same file.

On the K4's port the app keeps RTS low: on many interfaces RTS keys the transmitter.

What HamQSO does with the K4

  • Logs frequency and mode: the QSO you are writing takes the K4's frequency, band and mode.
  • Tunes from spots: one tap on a DX cluster, POTA, SOTA or WWFF spot sends the K4 there. FT8, FT4 and JS8 spots go to the calling dial frequency; if you let the mode follow the spot, SSB goes to LSB below 10 MHz and USB above (and on 60 m).
  • Skips spots the K4 cannot receive: Hamlib gives it 500 to 30,000 kHz and 48,000 to 54,000 kHz, which covers 160 m, 80 m, 60 m, 40 m, 30 m, 20 m, 17 m, 15 m, 12 m, 10 m, and 6 m; a spot outside them is not sent to the radio.
  • Meters: none over the USB cable with the K4; through rigctld the app shows S-meter, power and SWR when rigctld gives them.
  • Sends the coverage test's CW through CAT, with the KY command, text padded to 24 characters. Hamlib says the K4 takes it; it has not been tried on a real one yet.
  • Drops a silent radio: after three readings with no answer (it waits up to 5 seconds each) the app disconnects the K4.

What it does not do with the K4

  • No PTT: HamQSO never keys the K4, carries no audio and does not drive digital-mode programs.
  • No Bluetooth: the K4 reaches the app only by USB cable or over the network, with rigctld or flrig.
  • No cable on iPhone and iPad: there the K4 goes through a computer.
  • No shared port: over USB the app needs the K4's port to itself, so close WSJT-X, flrig or HRD first, or reach the radio through rigctld or flrig.

Where these values come from

From the Elecraft K4 profile in the HamQSO app, written from Hamlib's driver rigs/kenwood/k3.c (model 2047). They are the defaults the app fills in; your radio's menu has the last word. Copied from the app on December 3, 2026.

Questions

Is there a CAT app for the K4 on iPhone?

Yes, through a computer: run rigctld -m 2047 -s 115200 on the computer the K4 is plugged into, or use flrig, and connect HamQSO to it over Wi-Fi. iOS does not allow a USB cable to the radio.

Can I connect the K4 to an Android phone?

Yes, with a USB cable and an OTG adapter: choose Elecraft K4 in the app and keep 115200 baud, unless the radio's menu says otherwise.

Which baud rate does the K4 use?

The app starts from 115200 baud, 1 stop bit, without RTS/CTS. Set the same in the K4's CAT menu.

Does HamQSO key the K4's PTT?

No. It reads and sets frequency and mode and sends the CW of the coverage test; transmitting stays with you and your other programs.

Can HamQSO send CW with the K4?

Only the coverage test's CW, through CAT, which Hamlib says the K4 takes; it has not been tried on a real one yet. There is no CW keyboard.

Does the K4 work with HamQSO in the browser?

Yes, in Chrome or Edge on a computer, with the USB cable to that computer. Safari and Firefox cannot reach a serial port.

Other Elecraft radios