Skip to content

Running version 0.13? Its documentation is on the 0.13 site. Go to the 0.13 documentation

WRC Link in detail

WRC Link in detail

The details of WRC Link links for those who set up their applications by hand or want to know what the station allows: the link types and their ports, what the station checks in the commands that come through a link, and the command line of WRC Link. To add a link, see Link your applications.

Link types and their ports

Every link listens on 127.0.0.1, so only applications on the same computer reach it. WRC Link proposes the first free port from the one below.

TypeForFirst port proposedApplications at once
Hamlib NET (rigctld)A radio4532Several
Hamlib NET (rotctld)A rotator4533Several
Kenwood TS-2000, TS-480 or TS-590SGA radio, for applications that know only radios on a serial port4600 on TCPOne, up to four more waiting
WinKeyerA radio, for loggers that send CW through a WinKeyer4650 on TCPOne, up to four more waiting
Yaesu GS-232B or GS-232AA rotator, for applications that take a GS-232 controller4670 on TCPOne, up to four more waiting

An emulated device listens on a TCP port, on a serial port that WRC Link makes on macOS and Linux (a PTY), or on one port of a COM pair on Windows.

Emulated devices and their serial ports are experimental. WRC Link acting as a Kenwood radio, a WinKeyer or a GS-232 rotator controller, and the serial ports it makes for them, are not yet tested with the applications that use them. Use Hamlib NET where your application has it, and tell us how an emulated device works for you.
  • The Kenwood TS-590SG has the data modes. The TS-2000 and the TS-480 don’t, so a data mode set through them sets the radio to USB or LSB.
  • A Hamlib NET link reaches the station’s own rigctld or rotctld for the device, which every application linked to it shares.
  • WRC Link reports each link to the station, with its applications and its state, so that Web Radio Control shows it. The states are starting, waiting for an application, connected, stopped, and failed with its reason.

What the station checks

The station checks every command that comes through a link as it checks the same action in the browser.

  • When a link opens, the device must be one your device access lets you operate, and the license must include the links and the device. A device you may only view is refused with Your device access lets you view …, but not control it. A device hidden from you is refused as a device the station doesn’t have.
  • Every 15 seconds the station checks the open links again. A link whose device the license no longer allows is closed, with the reason, which WRC Link shows. A reservation of another user that begins stops the link.
  • Each command controls the device as the browser does: a power user needs the reservation of a radio another operator holds, an administrator none, and a rotator or an amplifier related to a radio follows the reservation of the radio.
  • Commands that transmit pass the same checks as the PTT button: PTT, CW sent by the radio’s own keyer (send_morse), a voice memory (send_voice_mem), DTMF digits (send_dtmf), a tune of the tuner (vfo_op TUNE), and VOX, the tone burst, CW or a voice memory switched on with set_func. Each is refused when your roles don’t let you transmit, when the license doesn’t include transmitting (or Morse keying, for CW), when Transmitting disabled is on for the radio, or when no antenna is selected on its antenna switch. A PTT release always reaches the radio.
  • The transmit limits of the radio hold a link too. A tuning that would have the radio transmit outside them is refused, and an RF power above the limit is set to the limit.
  • An operator class holds a link too: its frequencies limit tuning, whether the radio transmits or not. The band and step operations of the radio itself are run by the station, which sets the radio back where it would land outside the class.
  • Raw commands for the radio (send_cmd, send_cmd_rx, send_raw) need the right to transmit, as the custom commands of Web Radio Control do.
  • One command a line. Each line must be exactly one Hamlib command with all its arguments, as Hamlib’s own clients send them. A line with two commands, or with an argument missing, is refused with RPRT -1.
  • \halt is refused. The rigctld of the station is never ended by an application.

A refused command is answered with Hamlib’s security error, RPRT -19, and never reaches the radio. The station lists each refusal among the events of the device, which its administrators read in Diagnostics (see Device events).

The command line

The WRC Link executable takes these commands, for support and for scripts:

CommandWhat it does
wrc-link versionPrints the version of WRC Link, when and from what it was built, and its copyright notice.
wrc-link licensesPrints the license notice of WRC Link, and the licenses and sources of the third-party software it is built with. --json prints only the third-party notice, as JSON.
wrc-link diagnostics --save <file.zip>Saves the diagnostic report as a ZIP without opening the window (see When WRC Link misbehaves).

The executable is %LOCALAPPDATA%\Programs\WRC Link\wrc-link.exe on Windows, /Applications/WRC Link.app/Contents/MacOS/wrc-link on macOS, and the AppImage file on Linux. Without a command, it starts WRC Link and opens its window. If WRC Link is already running, it opens the window of that WRC Link. Given a wrc-link:// link, it hands the link to WRC Link, as your browser does. wrc-link --help lists the commands.

About WRC Link, at the foot of its Settings, shows the same version, the copyright notice and Third-party licenses…, a list you can search.

Last updated on