WA5PB

DigiMode Technical Specifications

For Beta testers - DigiMode v1.16.1

← The WA5PB Ham Radio AI Project

Please read this page before you open DigiMode. It says what the program needs, what it does and does not do yet, and how to test it with or without a radio. A few minutes here will save you a puzzled evening at the rig. DigiMode now transmits, experimentally: read Transmit before you key a rig with it.

Open DigiMode (Beta) (opens in a new tab)

DigiMode is free software under the GNU General Public License, version 3 or later, and comes with NO WARRANTY. License, source and credits.

At a Glance

Version1.16.1, Beta. The version is shown at the top of the page and at the top of its Help window (the ? button), which links back to this page.
What it isA waterfall, receive decoder and transmitter for the conversational keyboard modes, with rig control for the Elecraft K2 and ten more Elecraft and Kenwood rigs.
Receive / transmitReceive, and transmit - new and experimental - in every mode it decodes, on a computer only. The rig is keyed by a line of the serial port (RTS or DTR) or by VOX, never by a CAT command. Try it into a dummy load at low power before going on the air; see Transmit.
ModesPSK31, PSK63, Olivia 8/250 and 8/500, MFSK16 and MFSK32, RTTY 45.45 baud / 170 Hz - each received and sent - and RSID (Reed-Solomon ID) reception across the passband, with an ID optionally sent before a transmission.
Audio sourcesSound card (live), audio file, or the built-in signal generator.
PlatformsA computer with a current desktop browser, or an Android phone in Chrome (an upright phone layout, tap to tune; receive only). iPhone and iPad: audio only.
Rig controlVerified on the Elecraft K2. Provisional - written from flrig and Elecraft's references, not yet tried on a real rig - on the Elecraft K3, K3S, K4, KX2 and KX3 and the Kenwood TS-480HX, TS-480SAT, TS-590S, TS-590SG and TS-890S. Pick the rig before connecting. On a computer, over Web Serial through any serial port; on an Android phone, the K2 only, over WebUSB through a USB-serial adapter with a Silicon Labs CP210x (the Digirig), an FTDI FT232R or an MCT U232 (Belkin F5U109/F5U409) chip. A rig not on the list: audio only, or keyed by a line with No rig control (PTT only).
InstallationNone. DigiMode is a single web page. That one HTML file is the whole program and its complete source, rig definitions included.
PrivacyAudio is processed in your browser by the Web Audio API. Nothing is uploaded, and there is no account.
Addresshttps://wa5pb.com/digimode.html - a fixed address. Each new build replaces the page at the same address, so features may change between versions.

Computer, Phone and Browser

Audio Interface and Levels

Interface cables. If a rig misbehaves the moment an interface cable is plugged in - a frozen front panel, relays clicking, a band jump - check that every plug of a Y or adapter cable is at the end it was made for. A reversed cable put a microphone (PTT) line where it did not belong at WA5PB's station, and it looked for all the world like a software fault.

Modes and Their Specifications

Choose the mode with the selector above the text pane. The amber band on the waterfall shows the width the decoder is listening to. Squelch runs from 0 to 1, default 0.6: raise it if noise prints characters, lower it for weak signals.

ModeSignalTuningNotes for testers
PSK31 Differential BPSK, 31.25 baud, Varicode (G3PLX). About 31 Hz wide; amber band ±31 Hz. AFC on by default; pulls in ±25 Hz and marks where it settled with a dashed line. The phase scope shows two clusters for good copy, a ring for noise.
PSK63 The same at 62.5 baud. About 62 Hz wide; amber band ±62 Hz. AFC looks ±60 Hz and pulls in ±40 Hz, so a click on either idle line copies. Needs roughly 3 dB more signal than PSK31. A PSK31 decoder on PSK63 prints garbage; a PSK63 decoder on PSK31 prints nothing.
Olivia 8/250 8 tones in 250 Hz, 31.25 baud, strong error correction; a 2-second block per character group. Amber band ±125 Hz. No AFC to set: the sync finds the station anywhere inside the band and follows drift. Click once and leave it - every cursor move restarts the sync. In testing, perfect copy to about -15 dB S/N in 3 kHz. Text starts about 10 s after a transmission begins and finishes about as long after it ends.
Olivia 8/500 8 tones in 500 Hz, 62.5 baud; 1-second blocks. Amber band ±250 Hz. As 8/250. Choose the submode beside the selector; switching mid-QSO prints what the old submode still held. In testing, perfect copy to about -11 dB S/N in 3 kHz. Text starts about 5 s into a transmission. In acceptance testing it copied up to about 250 Hz off centre.
MFSK16 / MFSK32 16 tones, 15.625 Hz apart at 15.625 baud (MFSK16), or 31.25 Hz apart at 31.25 baud (MFSK32) - about 250 Hz or 500 Hz wide. K = 7, rate 1/2 convolutional code with interleaving; the MFSK Varicode. Amber band ±117 Hz or ±234 Hz. Choose MFSK, then 16 or 32 beside the selector. A click anywhere on the signal snaps the cursor to its centre, from the last 3 s of audio (live or playing audio only). AFC then follows drift up to half a tone spacing - ±7.8 Hz, or ±15.6 Hz in MFSK32 - only while text flows, and goes back to the cursor when the station stops. In testing, clean copy to about -11 dB S/N in 3 kHz in MFSK16; MFSK32 needs about 3 dB more. Text starts about 6 s after an MFSK16 transmission begins (3 s in MFSK32) and runs about 4 s (2 s) behind the signal; each transmission starts on a new line. The tuning must be close - within about 6 Hz in MFSK16 - which is why the click snaps; a typed frequency, the arrow keys, the nudge buttons, a band button or an RSID row do not snap. The small panel shows the AFC and the decoder's S/N in place of the phase scope. RSID codes 57 (MFSK16) and 147 (MFSK32).
RTTY 45.45 baud, 170 Hz shift, ITA2 (Baudot), 1.5 stop bits, unshift on space. The cursor is the centre of the pair; a click within about 40 Hz of a pair snaps to it. No AFC; tolerates about ±15 Hz. Mark and space follow the rig's sideband over CAT (USB assumed with no rig). Tick Reverse only for a station sending upside down. Transmitted as AFSK - audio tones, with the rig in USB, LSB or DATA.
RSID The 1.4-second, 15-tone Reed-Solomon ID burst that fldigi and other programs can send (design by F6CTE). Off by default; tick RSID. Searches about 200 to 2900 Hz, whatever decoder is selected. A PSK31, PSK63, Olivia, MFSK or RTTY row in the list can be clicked to tune to it (an Olivia or MFSK row sets the submode too). Most stations do not send an ID - fldigi ships with it off - so no ID does not mean no signal.

Olivia, MFSK and RTTY take the sideband from the rig over CAT, as RSID does; Olivia and MFSK also offer Reverse, for a station sending upside down. Decoded text can be copied with Copy text. Every mode in the table can also be sent - see Transmit.

Waterfall and Tuning

Band Presets

The nine band buttons (160 through 10 meters; no 60 m) work only with a rig connected over CAT. Each one tunes the dial to the selected mode's channel on that band and, once the rig confirms the dial, puts the cursor where the signal will be. They leave the sideband as the rig has it; the figures assume USB. Hover over a button for its dial and offset, written as the K2 displays them. Where a channel list differs by region, ITU Region 2 is used.

BandPSK31 / PSK63Olivia and MFSKRTTY
160m1.837.00 +1150 Hz1.825.50 +1500 Hz1.803.50 +1500 Hz
80m3.579.00 +1000 Hz3.581.50 +1500 Hz3.583.50 +1500 Hz
40m7.069.00 +1000 Hz7.038.50 +1500 Hz7.083.50 +1500 Hz
30m10.141.00 +1000 Hz10.141.50 +1500 Hz10.133.50 +1500 Hz
20m14.069.00 +1000 Hz14.071.00 +1500 Hz14.078.50 +1500 Hz
17m18.099.00 +1000 Hz18.097.50 +1500 Hz18.101.50 +1500 Hz
15m21.079.00 +1000 Hz21.071.00 +1500 Hz21.083.50 +1500 Hz
12m24.919.00 +1000 Hz24.921.00 +1500 Hz24.922.50 +1500 Hz
10m28.119.00 +1000 Hz28.121.00 +1500 Hz28.083.50 +1500 Hz

Dial frequencies in MHz; the offset is the audio frequency where the cursor goes. PSK dials sit 1 kHz below the usual PSK31 calling frequencies; Olivia dials 1.5 kHz below the published Olivia calling channels, and MFSK16 and MFSK32 share them, because no current band plan publishes MFSK channels (the button's tooltip names the submode); RTTY dials are parking spots inside the ARRL RTTY/data segments, with the cursor on the pair's centre. Without CAT, the same table works by hand: set the dial, then click the offset on the waterfall.

Rig Control (CAT)

Verified on the Elecraft K2; ten more rigs are provisional. Rig control has been tested on the air on the K2 only. The K3, K3S, K4, KX2, KX3, TS-480HX, TS-480SAT, TS-590S, TS-590SG and TS-890S are DigiMode's best effort from flrig and Elecraft's programmer's references, not yet tried on a real rig. Pick your rig in the Rig list before you connect. With a rig that is not on the list, do not connect its CAT port: some commands mean something different, or something unwanted, on another rig - even one that speaks a Kenwood-style command set. Use DigiMode for audio only, or key such a rig by a line with No rig control (PTT only) (see Transmit). A report of how a provisional rig behaves is very welcome.

Choosing the rigThe Rig list in the Rig panel names every rig DigiMode has a definition for, with the K2 first. It is locked while connected, and the browser remembers the choice. The definitions come from WA5PB's RigDefs project and are built into the page.
LinkEach rig at its own rate: the K2 at 4800 baud, 8 data bits, no parity, 2 stop bits (8N2), to its KIO2 serial port; the K3, K3S, K4, KX2 and KX3 at 38400; the TS-480s at 57600; the TS-590s and TS-890S at 115200 - all of them 8N1. On the Kenwoods the rate is a menu setting - set the rig to match. On a computer the link is Web Serial; on an Android phone it is WebUSB, and the K2 only for now. Connect picks the path by platform.
Flow controlAlways off, and RTS and DTR held off, for every rig - on many interfaces RTS keys the transmitter, and with hardware flow control the operating system would drive it. A Kenwood whose COM port expects RTS/CTS may need its flow control turned off to answer (not yet tried on a real Kenwood).
Choosing the port (computer)The browser lists every serial port the computer has - what Windows shows under Ports (COM & LPT) in Device Manager: a Digirig, a USB-serial adapter (FTDI, Prolific, CH340 or Silicon Labs), the computer's own built-in COM port, or a paired Bluetooth serial port. Pick the one wired to the rig's CAT jack. A wrong choice does no harm: DigiMode asks the rig to identify itself and says so if it does not answer as expected - as advice, never a refusal. Avoid a Bluetooth port whose device is not switched on and in range - opening it can stall for some seconds. The status line names the port's USB VID:PID, or says "non-USB".
Wiring (K2)A USB-serial adapter must be RS-232 level, not a 3.3 V or 5 V TTL board, and only transmit, receive and ground - DE-9 pins 2, 3 and 5 - should reach the K2. Use a cable built to the Elecraft KIO2 manual, which warns against any pre-assembled cable between the KIO2 and a computer. The kit's own cable joins pins 7 and 8 (an RTS/CTS loop-back) at the computer end only; at the K2 end, pins 7 and 8 are RF Detect and the DC supply. (Elecraft, KIO2 Aux I/O Module manual, Rev. C, pp. 13-14.)
On LinuxJoin the dialout group and reboot first - see Computer, Phone and Browser. Without it the port cannot be opened, and Connect names the dialout group and the fix. A computer's built-in DE-9 COM port works: tested on a Debian 13 laptop, where the status line shows it as (non-USB).
On an Android phoneRig control on a phone is for the K2 only for now. Plug the serial adapter into the phone's USB-C port, press Connect and choose it from the list. Three USB-serial chips connect directly this way: the Silicon Labs CP210x in the Digirig (USB vendor ID 10C4), the FTDI FT232R (0403:6001 - for example FTDI's US232R cable) and the MCT U232 (050D:0109 - the Belkin F5U109/F5U409). An FTDI or Belkin adapter carries only the serial link, so for receive audio put it and a Digirig (or another USB sound interface) on a USB hub between the phone and the rig - the phone has one USB port. Other chips (CH340, CP2105, PL2303) are not supported on a phone yet; on a computer any serial port works. A K2 reached through a Bluetooth serial adapter can be chosen with Use a serial or Bluetooth port instead (not yet tested).
PTT linesRTS and DTR are held off while the port is open - on a phone, switched off before anything is sent, on every chip - except while transmitting on a computer, when the line chosen under PTT keys the rig. That suits an interface that keys the rig from either line, but not one that takes its power from them. Rig control itself never keys the transmitter.
Unplug and Reconnect (phone)Pulling the serial adapter stops rig control with a message; the audio stops only if its own input goes away - a Digirig carries both, an FTDI or Belkin adapter only the serial link. When the same adapter is plugged back in, a USB serial adapter is back - Reconnect banner brings rig control back with one tap, with no port picker, and the audio too if it had stopped.
K2 firmwareK2 firmware 2.04 or later. DigiMode asks the K2 "are you transmitting?" (TQ;) before every command, and that command arrived in 2.04. Developed on firmware 2.04P. The K2 is tuned from 1.5 to 30 MHz.
On connectK2: reads the rig's state first (Auto-Info mode, command mode, ID, frequency and mode, display), then sets Auto-Info mode 1 so the K2 reports frequency and mode changes itself; there is no polling. Other rigs: read the rig's ID, frequency and mode; the other Elecrafts have Auto-Info set off (AI0;), the Kenwoods are not asked for it.
TrafficK2: one display read (DS;) every 15 seconds as a heartbeat, which also refreshes the LCD mirror. Other rigs: frequency and mode read (FA;, MD;) once a second. DigiMode cannot ask these rigs whether they are transmitting, and gives them no tuning range of its own: any frequency is sent, and if the rig refuses it or goes elsewhere the page says so. The heartbeat or the polling is held for the length of a transmission. If the rig stops answering, the link says so.
ControlsDial entry, step buttons (10 Hz, 100 Hz, 1 kHz), QSY to cursor, band presets, and the mode list - DATA first, the rig's own mode for sound-card digital (USB on the K2 and TS-480s; DATA A on the other Elecrafts; USB-D on the TS-590s and TS-890S, with DA0; sent when another mode is picked, or the rig's microphone stays off), then USB, LSB, and RTTY-R where the rig has it. The K2 also has a mirror of its LCD with a DISPLAY button, a PRE / ATT / OFF button, and the antenna and preamp readouts; these appear for the K2 only. The K2 tunes in 10 Hz steps.
Allowed commandsDigiMode can send only the commands it uses. For the K2: AI K2 ID IF DS TQ FA MD PA RA RX and the DISPLAY switch SW02, refused while the rig reports transmit. For every other rig, a fixed list of exact command forms of its own, checked a second time against the rig's definition. Commands that can key a rig - its transmit command, a tuner start, VOX - are refused for every rig. On the ten rigs beyond the K2, VOX (and on the Kenwoods a tuner start) is also refused by the rig's own definition, a second lock behind the list.
On disconnectSets Auto-Info back to off (AI0;) on the K2 and the other Elecrafts (a Kenwood is left as it is), and releases the port. Only one program or browser tab can hold a serial port at a time.

How DigiMode uses Web Serial, and what was learned on the air, is written up in Web Serial for Rig Control.

Transmit EXPERIMENTAL

Your station, your responsibility. Transmit is new and experimental. At WA5PB's station it has been tested on the Elecraft K2 into a 15 W dummy load at very low power - not yet on the air. Try it into a dummy load first, start with the Level low, and watch the rig's ALC and power. You are the control operator, responsible for everything your station sends, under FCC Part 97 or the rules of your own country.

WhereOn a computer. A phone has no transmit in this version: there is no way to key the rig over WebUSB, so the transmit strip is hidden there.
ModesWhatever the decoder is set to: PSK31, PSK63, RTTY, Olivia 8/250 or 8/500, MFSK16 or MFSK32. RTTY is sent as audio tones (AFSK) - set the rig to USB, LSB or DATA, not its own RTTY/FSK mode. The tone order follows the rig's sideband.
Enable transmitThe transmit strip sits under the text pane. Enable transmit is off every time the page loads and is never remembered; unticking it during a transmission stops it at once.
PTTRTS (the Digirig and most interfaces) or DTR - a line of the serial port, so Connect in the Rig panel first - or VOX, where the audio keys the rig and no line is touched. DigiMode never keys a rig by a CAT command. To unkey it drops the line, then sends the rig's receive command (RX;) where CAT is connected.
No rig control (PTT only)An entry in the Rig list for a rig that is not on it: the port is opened only to key the rig by RTS or DTR, and no bytes are sent on it - for a keying-only port such as microHAM Router's PTT port.
Output and LevelOutput is where the transmit audio goes - the interface's USB audio device. It is Default output until you choose one; DigiMode does not pick a device for you, and in a browser that cannot choose an audio output, Default output is what is used. The list is read with the input list, so start the sound card before connecting the rig. Level runs from -40 to 0 dB (-20 dB to start): set it so the rig shows little or no ALC. On the K2, through the Digirig, the rig's ALC held its set power across most of the range in testing, so set the power at the rig as well as the Level.
SendingPut the cursor where you want to transmit - the middle of the signal you are answering, or a clear spot - type, and press Send (or Ctrl+Enter). The cursor is the transmit frequency and is held, with the decoder mode and the rig controls, until the transmission ends. The whole signal must sit inside 200 to 2800 Hz of audio, or Send says where to put the cursor. Text typed while sending goes out as the transmission runs, and what has gone out is shown in the text pane after [TX]. RSID first sends the mode's ID burst (about 2.3 s) before the text.
EndingWith Unkey when text is sent ticked (the default, remembered) the transmission ends once everything typed has gone out. Unticked, the mode's idle is sent and the rig stays keyed until End transmission, as fldigi does. End transmission sends what is typed and the mode's closing, then unkeys; pressed again it stops after the current block (Olivia) or character. Abort, or Esc anywhere on the page, unkeys at once.
SafeguardsA transmission is ended cleanly at the Longest transmission length (1 to 10 minutes, 5 by default), with a 30-second warning. If no key is pressed and nothing is clicked for 2 minutes, a 30-second "still there?" countdown starts, and then the transmission is ended. An end that does not finish within 10 seconds is cut. These run on the transmit audio clock, so a hidden or minimised tab keeps them. Closing the page, unplugging the serial port or losing the audio output unkeys; if the browser itself dies, the port closes and the line drops with it.
While transmittingReceive is muted from Send until 1.5 seconds after unkey, so DigiMode does not decode its own signal, and the waterfall shows a dark band marked TX. RTTY, Olivia and MFSK are constant-power modes: reduce the rig's power for long transmissions.
ConnectingOpening a serial port raises RTS for a few milliseconds before DigiMode drops it (Windows and Linux both do this), so a rig may click into transmit and out again as you connect. Leave the rig in receive when connecting, and with an amplifier keyed from the rig, put it in standby while you connect.
Checked against fldigiRecordings of DigiMode's transmit audio in all seven modes, with RSID, were played into fldigi 4.2.13, and fldigi copied each one. In Olivia 8/500, some earlier test recordings lost whole blocks in fldigi for a reason not yet found; v1.16.0's own recording copied whole (the transmitter is unchanged in v1.16.1). On-air reports are welcome.

Testing Without a Rig

Everything except rig control can be tried with no radio at all.

Experimentation UNTESTED IDEAS

Nothing in this section has been tested at WA5PB's station. These are starting points for testers who like to try things. If you try one, please report what worked and what did not - that is how the next version gets better.

A phone with the Digirig is no longer an experiment: it was tested at WA5PB's station with v1.10.0 and is described in the sections above. What follows is what remains untried.

The provisional rigs

Phone or tablet - audio without a Digirig

Other phones and links

Transmit beyond the bench

Transmit has been tried at WA5PB's station only on the K2, keyed by RTS through the Digirig, into a dummy load. Everything below is untried there.

Known Limitations and What's Next

Limitations in v1.16.1

What's next

Reporting Problems

Please report problems, and successes, to WA5PB. A report is most useful when it gives:

Thank you for testing. 73.