AB6A RigCtl

rigctld, without the terminal

A macOS menu bar app that finds your radios and runs a Hamlib daemon for each one.
Requires Hamlib — brew install hamlib

The AB6A RigCtl menu, showing an IC-7760 with one daemon reporting both receivers: Main on 7.074 and Sub on 14.074

One daemon, both receivers — live from the rig.

What it does

Finds your radios

Reads the USB descriptor over IOKit, so a radio identifies itself. An IC-7760 is recognised as Hamlib model 3092 without being told.

Survives replugging

Profiles are keyed on the USB serial number and interface number, not the /dev path. Move the radio to another port and it is still recognised.

One daemon per interface

A radio with several interfaces runs several daemons, each on its own TCP port — one for WSJT-X, another for logging.

Live frequency

Reads frequency and mode straight from the running daemon through libhamlib's NETRIGCTL backend.

Radios, rotators and amplifiers

Hamlib keeps the three apart: separate daemons, separate model tables, separate default ports, separate protocols. Handing a rotator model number to rigctld just gets you Unknown rig num. Each device carries a type, and everything else follows from it.

TypeDaemonDefault portModelsThe menu shows
Radiorigctld4532312 frequency and mode
Rotatorrotctld453357 azimuth and elevation
Amplifierampctld45315 SWR
The menu showing a radio, a rotator and an amplifier, each with its own live readout

Ports are assigned from each type's Hamlib default and step over the others', so adding a second radio never claims the port a rotator will want.

The rotator and amplifier here are Hamlib's dummy backends, shown next to a real IC-7760 — which is also how the support was developed and tested. The rotator is mid-slew, which is why its azimuth has not reached the commanded heading yet.

Ports are named as the radio reports them

An IC-7760 presents two serial ports over one USB cable, and they appear as interface 1 and interface 3 — not 1 and 2. That is not a gap; it is what the USB descriptor actually says:

interface 0   class 2    Communications (CDC control)   ┐ serial port one
interface 1   class 10   CDC-Data  →  /dev/cu.usbmodem114101   ┘
interface 2   class 2    Communications (CDC control)   ┐ serial port two
interface 3   class 10   CDC-Data  →  /dev/cu.usbmodem114103   ┘

Every CDC-ACM serial port costs two USB interfaces — one for control, one for data — and only the data half gets a /dev node. Interface 2 is alive and well: it is the control channel for the second port, and simply carries no tty. AB6A RigCtl shows the number the descriptor reports rather than renumbering them, so what you see here matches what ioreg and Hamlib see.

A worked example: one IC-7760, two daemons

The 7760 answers CI-V on both interfaces, so each can carry its own daemon on its own port — one for digital modes, one for logging. You do not need two just to see both receivers: a single daemon set to A and B reports the whole radio, as in the screenshot at the top. In Configure… it looks like this:

The Configure window: a USB-serial adapter showing both its cu and tty device nodes with a picker to choose between them, plus type, model, baud, VFO, TCP port and extra daemon options

Each daemon also takes an options field, handed to the Hamlib daemon verbatim — -C timeout=500 -C retry=0, -P RIG, --vfo and so on, for rigs that need settings the defaults do not cover.

macOS creates two nodes for every serial port, and each interface names both: the call-out /dev/cu.* and the dial-in /dev/tty.* twin a port is often known by elsewhere. The cu / tty picker chooses which one the daemon is given — cu by default, since it opens immediately where tty waits on carrier detect, but setups built around the tty.* name work without a fight. The adapter below cannot say which radio is behind it, so its model and baud are set by hand.

Point WSJT-X at localhost:4532 and your logger at localhost:4534, both as Hamlib NET rigctl. The second daemon is offered 4534 rather than 4533, because 4533 is rotctld's default and is held for a rotator. The radio is identified from its own USB descriptor, so model 3092 is filled in for you — Hamlib never probes the rig.

A and B, and what they mean under split

A dual-receive radio reports two VFOs, shown as A and B. These do correspond to the radio's own VFO A and B — verified by moving one from the computer and watching which changed on the front panel, and again by transmitting split and seeing B key up.

What is not dependable is Hamlib's internal naming. It calls them Main and Sub, but its “Main” tracks whichever VFO is selected rather than the Main receiver: a set_vfo Sub that the radio ignored outright still made Hamlib report the two swapped. Asking for VFOA/VFOB changes nothing — this backend aliases them to Main and Sub and they move together, and Can get VFO: N means Hamlib cannot read the VFO back to correct itself.

The practical consequence: under split transmit Hamlib's reporting inverts, the frequencies trading places on key-down and back on release. The display holds its last reading taken at rest and shows TX while it does, so what you see stays correct through a transmission.

An interface is never shared

Exactly one daemon owns each serial interface. Two daemons on one interface appear to work, which is the danger: measured on an IC-7760 at 60 concurrent reads each, about 3% of transactions came back as RPRT -9 / RPRT -20 protocol errors and the rest looked fine — and that was read-only traffic. Across two different interfaces the same test was clean. Silent, intermittent corruption is worse than an outright failure, so this is enforced rather than warned about.

When something is not behaving

Console opens a window onto a running daemon: pick the daemon, type a rigctl command, and see the raw reply with how long it took. The useful question when a setup misbehaves is what the rig actually answers, not what a menu makes of it. Ten presets cover the commands worth trying first, and Copy all takes the transcript for pasting into a message.

The console window: commands f, m and get_rig_info sent to a daemon, each with its raw reply and timing

Each command uses its own connection, so a console session cannot disturb the menu's polling or anything else already connected. Versions are named on open, and ab6a-rigctl version prints the same alongside where the configuration lives.

Configure… also has a Test button, which runs rigctl against the radio using the values currently in the fields — before saving them — and says whether it answered. It offers to stop a running daemon first, since rigctl needs the serial port to itself. From the command line, ab6a-rigctl check does the same from a saved configuration.

Hamlib is required

AB6A RigCtl does not bundle Hamlib and will not work without it. Hamlib provides rigctld — the daemon this app starts, supervises and reads from — along with the rig model table it uses to identify your radio. Install it first:

brew install hamlib
WhatWhy it is needed
rigctld The daemon itself. One is launched per radio interface; it owns the serial port and serves the rigctl protocol on a TCP port.
rigctl -l The rig model table. Read once to populate the model picker and to turn a radio's USB product name into a Hamlib model number.
libhamlib Not used. The app links no Hamlib library — it speaks the rigctl network protocol over a plain socket, so it has no third-party dynamic dependencies.

Developed and tested against Hamlib 4.7.2. Anything recent enough to ship rigctld and the NET rigctl backend should work, since the app depends on the protocol rather than on a library ABI. Note that backend maturity varies by radio — an IC-7760 is Alpha in Hamlib 4.7.2, which the model picker shows you.

When there is more than one Hamlib

A machine can carry more than one Hamlib — a working one, and an older hand-installed copy whose library has since been removed. Whichever comes first on PATH wins, and an app launched from the Finder inherits a different PATH from a terminal. That is a common reason a rig works from the command line and not from an app, with nothing on screen to say why.

So rather than trusting PATH, each candidate is run and asked its version, and the first that answers is used by absolute path. A broken copy earlier on PATH is skipped. If none works, the menu says so, the menu bar icon turns into a warning, and Start all is disabled rather than failing daemon by daemon.

Hamlib can also be pointed at directly — a Hamlib field in Configure…, or hamlib_dir in the configuration file, shared with the command line tool. A location that is set is authoritative: if it is wrong that is reported rather than papered over by quietly falling back to something else.

Install

Download for Apple Silicon macOS 26+ · signed & notarized

# Hamlib provides rigctld - required either way
brew install hamlib

# or build it yourself
git clone https://github.com/djsincla/ab6a-rigctl
cd ab6a-rigctl && ./build-app.sh --install

The download is signed with a Developer ID and notarized by Apple, with the ticket stapled — it opens normally, with no right-click or quarantine step.

Installs /Applications/AB6A RigCtl.app and puts ab6a-rigctl on your PATH. The app lives in the menu bar with no Dock icon. Both share one ~/.config/ab6a-rigctl/profiles.json, so they cannot disagree about your radios.

Command line

CommandDoes
ab6a-rigctlinteractive manager — add devices, pick interfaces and ports
ab6a-rigctl check [name|all] validate a configuration end to end, and say whether the rig answered
ab6a-rigctl version versions, which Hamlib binaries resolve, and where the configuration lives
ab6a-rigctl devices [--all]list attached devices
ab6a-rigctl listsaved devices and whether they are running
ab6a-rigctl start [name|all]a device name starts every daemon on it
ab6a-rigctl stop [name|all]stop daemons
ab6a-rigctl models [rig|rotator|amplifier]search the Hamlib model list

Why a daemon, and no Hamlib library

WSJT-X, fldigi and logging software connect to localhost:4532 and speak the rigctld network protocol — the daemon is the product, not an implementation detail. An app that drove the radio in-process through libhamlib would hold the serial interface open and give those programs nothing to connect to, while becoming a second owner of a line that already has one.

So the app links no Hamlib library at all. It runs rigctld and speaks the rigctl protocol to it over a plain socket. That leaves it with no third-party dynamic dependencies, which is also why it signs and notarizes without a library-validation exemption.