Skip to content

P3 CAT Command Reference

This document is derived from the Elecraft P3 Programmer’s Reference, Rev. A7 (March 8, 2016, firmware 01.59). It provides a complete reference for the CAT (Computer Aided Transceiver) serial commands supported by the Elecraft P3 panadapter. These commands allow remote control of the P3’s most important instrument functions via its RS232 PC port.

The P3 Utility computer program provides a convenient Command Tester screen for trying individual commands, as well as macro support for sending strings of P3 and/or K3 commands with a single click. The Capture Image screen uses the #BMP command to upload the current P3 screen to a standard bitmap file.

When a K3 is connected to the RS232 XCVR port, both K3 and P3 commands can be sent from the same computer program. For example, #RVM; returns the P3 firmware revision while RVM; (without the # prefix) returns the K3 main firmware revision. This is a useful connectivity check: a response to #RVM; confirms the PC port is connected; a response to RVM; confirms the XCVR port is also connected.

The table below lists all P3 control commands. Commands marked “Internal use only” are omitted from the detailed reference.

CommandDescriptionCommandDescriptionCommandDescription
=Product ID#LBLLabels on/off#RVSSVGA firmware revision
#AVGAveraging time#MFAMarker A frequency#SCLScale
#BMPBitmap upload#MFBMarker B frequency#SPMSpan mode
BRBaud rate set#MKAMarker A on/off#SPNSpan
#BRBaud rate set#MKBMarker B on/off#SVDTSVGA data on/off
#CTFCenter frequency#NBNoise blanker on/off#SVENSVGA enable
#DSMDisplay mode#NBLNoise blanker level#SVFLSVGA fill on/off
#FNLFunction key label#PKMPeak mode on/off#SVFNSVGA font
#FNXFunction key execute#PSPower status/control#SVRSSVGA resolution
#FONDisplay font size#PTPass-through mode#SVWBSVGA waterfall bias
#FXAFixed auto-adjust mode#QSYQSY to current marker#VFBVFO B cursor on/off
#FXTFixed or tracking select#RCFRelative center freq.#WFAWaterfall average on/off
#REFReference level#WFCWaterfall color
#RSTReset the P3#WFMWaterfall markers on/off
#RVFSVGA FPGA revision#XCVTransceiver select
#RVMMain firmware revision

Commands sent from the computer to the P3 follow a GET/SET/RSP model:

  • GET commands are sent by the computer to request information from the P3. The P3 responds with a RSP (response) message.
  • SET commands are sent by the computer to change the P3’s configuration or initiate an event.
  • Commands with an incorrect format or out-of-range parameter are silently ignored.
  • A SET can be followed by a GET to verify the new settings.

SET commands use 2-4 characters, optional data fields, and a terminating semicolon (;).

#AVG05; Set averaging on with time constant of 5
#DSM1; Select spectrum+waterfall display mode

Many SET commands have a corresponding GET command, which is the command letters with no data, plus the semicolon. The RSP data format is usually identical to the SET data format; exceptions are noted in the individual command descriptions.

#AVG; Get the current averaging setting
#DSM; Get the current display mode
  • Characters sent to the P3 can be in either upper or lower case. The P3 always responds in upper case.
  • All commands must be terminated with a semicolon (;) except where noted.
  • When a K3 is connected to the XCVR port, commands without the # prefix are passed through to the K3.

This section describes all P3 GET, SET, and RSP command formats. Unless otherwise noted, the GET format is the command letters followed by a semicolon with no data. The SET and RSP data formats are identical unless otherwise noted.

Type: GET only

GET format:

=

RSP format:

P3 Main firmware executing
p3 Boot loader ready to download new firmware

There is no # prefix or semicolon in either the query or the response.


Type: GET/SET

SET/RSP format:

#AVGnn;
ParameterValuesDescription
nn00Average mode off
nn02-20Averaging time constant (average mode on)

Type: GET only

RSP format:

[bmp]cc
FieldDescription
[bmp]131,638 bytes of binary image data in standard .BMP file format
ccTwo-byte checksum

Notes:

  • The response does not include the command name and has no terminating semicolon.
  • The checksum is the modulo-65,536 sum of all 131,638 bytes, sent least-significant byte first.

Type: SET only

SET format:

BRn;
#BRn;
ParameterValueBaud Rate
n04800 baud
n19600 baud
n219200 baud
n338400 baud

Notes:

  • The P3 Utility program automatically sets the P3 to 38400 baud for downloads, then restores the user’s previous selection.
  • The baud rate can also be set via the P3’s RS232 menu.
  • The RS232 port that connects to the K3 always runs at 38400 baud.
  • Any BR command received from a host computer affects the baud rate of the P3’s PC-facing RS232 port, not the K3.

Type: GET/SET

SET/RSP format:

#CTFsxxxxxxxxxxx;
ParameterDescription
sSign: +, -, or space (space is equivalent to +)
xxxxxxxxxxxCenter frequency in Hz (11 digits)

Example:

#CTF+00014060000; Set center frequency to 14,060 kHz

Notes:

  • If the specified frequency is in a different band than the K3 is tuned to, the action is undefined.
  • A value of zero sets the center frequency to the main VFO frequency of the transceiver.
  • For transceivers other than the K3, the center frequency is interpreted relative to the frequency the transceiver is tuned to and may be positive or negative.

Type: GET/SET

SET/RSP format:

#DSMn;
ParameterValueMode
n0Spectrum only
n1Spectrum + waterfall
n2Spectrum + power meters
n3Spectrum + waterfall + power meters

Type: GET only

GET format:

#FNLn;

RSP format:

#FNLnccccccccc;
ParameterDescription
nKey number, 1-8 (for keys FN1-FN8)
ccccccccc9 ASCII characters of the key label for FNn

Type: GET/SET

SET/RSP format:

#FONn;
ParameterValueFont Size
n05 x 7 pixels
n17 x 11 pixels
n29 x 14 pixels

Type: SET only

SET format:

#FNXn;
ParameterDescription
nKey number, 1-8 (for keys FN1-FN8)

Executes the function assigned to the specified key, if any.


Type: GET/SET

SET/RSP format:

#FXAn;
ParameterValueMode
n0Full screen
n1Half screen
n2Slide
n3Static

Specifies how far the P3 center frequency moves when the K3 VFO A is tuned off screen in fixed-tune mode.


Type: GET/SET

SET/RSP format:

#FXTn;
ParameterValueMode
n0Tracking mode
n1Fixed-tune mode

Type: GET/SET

SET/RSP format:

#LBLn;
ParameterValueDescription
n0FN key labels off
n1FN key labels on

Type: GET/SET

SET/RSP format:

#MFAsxxxxxxxxxxx;
#MFBsxxxxxxxxxxx;
ParameterDescription
sSign: +, -, or space (space is equivalent to +)
xxxxxxxxxxxMarker frequency in Hz (11 digits)

Example:

#MFA+00014060000; Set marker A frequency to 14,060 kHz

Notes:

  • If the specified frequency is in a different band than the K3 is tuned to, the action is undefined.
  • A value of zero sets the marker to the main VFO frequency of the transceiver.
  • For transceivers other than the K3, the marker frequency is interpreted relative to the frequency the transceiver is tuned to and may be positive or negative.

Type: GET/SET

SET/RSP format:

#MKAn;
#MKBn;
ParameterValueDescription
n0Marker off
n1Marker on

Notes:

  • The last marker to be turned on automatically becomes the active marker, meaning it can be adjusted with the knob and responds to the QSY command.
  • If the marker was off-screen before executing a marker-on command, it will default to the center frequency.

Type: GET/SET

SET/RSP format:

#NBn;
ParameterValueDescription
n0Noise blanker off
n1Noise blanker on

Type: GET/SET

SET/RSP format:

#NBLnn;
ParameterValuesDescription
nn1-15Noise blanker aggressiveness (1 = least, 15 = most)

Type: GET/SET

SET/RSP format:

#PKMn;
ParameterValueDescription
n0Peak mode off
n1Peak mode on

Type: GET/SET

SET/RSP format:

#PSn;
ParameterValueDescription
n0Turn P3 off
n1P3 is on

Notes:

  • #PS0 turns the P3 off, but this removes power, so #PS1 cannot be used to turn it back on.
  • If the power-on jumper on the rear-panel I/O board is in the “always on” position, the #PS0 command has no effect.

Type: SET only

SET format:

#PT;

Sets the P3 to pass-through mode: panadapter operation ceases and all data received on either RS232 port is passed through immediately to the other RS232 port without delay or modification.

Notes:

  • This command is used by P3 Utility when downloading new firmware to the K3 transceiver.
  • Pass-through mode ends automatically 8 seconds after the last RS232 activity.

Type: SET only

SET format:

#QSYn;
ParameterValueDescription
n0Undo QSY (return VFO to pre-QSY frequency; one-level undo)
n1QSY (transfer active marker frequency to associated VFO)

Notes:

  • Marker A controls VFO A; Marker B controls VFO B.
  • “Undo QSY” returns the VFO to the frequency it was on before the last QSY (one-level undo).

Type: GET/SET

SET format:

#RCFsnnnnnn;
ParameterDescription
sSign: + or -
nnnnnnOffset in Hz (6 digits)

The offset is added to the VFO A frequency to compute the new center frequency. This command is used to position the VFO A cursor on the screen.

Example:

#RCF+025000; With a 50 kHz span, moves VFO A cursor to the left edge

The center frequency moves up 25 kHz, which shifts the VFO A cursor to the left.

RSP format:

#RCFsnnnnnn;

The response returns the difference between the current center frequency and the VFO A frequency.


Type: GET/SET

SET/RSP format:

#REFsnnn;
ParameterDescription
sSign: +, -, or space (space is equivalent to +)
nnnReference level in dBm, range -170 to +010

Example:

#REF-120; Set reference level (bottom of spectrum screen) to -120 dBm

Type: SET only

SET format:

#RST;

Forces a power-on reset of the P3.


Type: GET only

GET format:

#RVFnn;

RSP format:

#RVFnnNN.NN;
ParameterDescription
nnFPGA image number, 00 to 05
NN.NNImage revision (e.g., 01.23)

Notes:

  • Returns 99.99 if no FPGA image is installed.

Type: GET only

RSP format:

#RVMNN.NN;
ParameterDescription
NN.NNFirmware revision (e.g., 01.23)

Type: GET only

RSP format:

#RVSNN.NN;
ParameterDescription
NN.NNFirmware revision (e.g., 01.23)

Notes:

  • Returns 99.99 if no SVGA firmware is installed.
  • Returns 00.00 if only the SVGA boot loader is installed.

Type: GET/SET

SET/RSP format:

#SCLnnn;
ParameterValuesDescription
nnn010-080Scale in dB (difference between top and bottom of spectrum screen)

Example:

#SCL080; Set scale to 80 dB

Type: GET/SET

SET/RSP format:

#SPMn;
ParameterValueMode
n0Continuous span mode
n1Stepped span mode

Notes:

  • In stepped span mode, the span steps between 2, 5, 10, 20, 50, 100, and 200 kHz.

Type: GET/SET

SET/RSP format:

#SPNxxxxxx;
ParameterValuesDescription
xxxxxx000020-002000Span in 100 Hz units

Example:

#SPN000500; Set span to 50 kHz (500 x 100 Hz)

#SVDT — SVGA Decoded Data Display On/Off

Section titled “#SVDT — SVGA Decoded Data Display On/Off”

Type: GET/SET

SET/RSP format:

#SVDTn;
ParameterValueDescription
n0Data display off
n1Data display on

Type: GET/SET

SET/RSP format:

#SVENn;
ParameterValueDescription
n0SVGA display off
n1SVGA display on

Type: GET/SET

SET/RSP format:

#SVFLn;
ParameterValueDescription
n0Fill off
n1Fill on

Notes:

  • When on, the area below the spectrum trace on the external SVGA display is filled in for easier visibility.

Type: GET/SET

SET/RSP format:

#SVFNn;
ParameterValuesDescription
n0-3Font number (larger number = larger font)

Type: GET/SET

SET/RSP format:

#SVRSn;
ParameterValuesDescription
n0-4External display resolution

See the SVGA option manual for details on resolution values.


Type: GET/SET

SET/RSP format:

#SVWBnn;
ParameterValuesDescription
nn01-99Waterfall bias, corresponding to 0.1-9.9 in the P3 “SVGA bias” menu

Notes:

  • The higher the number, the greater the color contrast in the external display waterfall.
  • A value of 1.0 (parameter 10) makes the display look similar to the P3 screen on a typical monitor.

Type: GET/SET

SET/RSP format:

#VFBn;
ParameterValueDescription
n0VFO B cursor off
n1VFO B cursor on

Type: GET/SET

SET/RSP format:

#WFAn;
ParameterValueDescription
n0Waterfall averaging off
n1Waterfall averaging on

Type: GET/SET

SET/RSP format:

#WFCn;
ParameterValueDescription
n0Gray scale waterfall
n1Colored waterfall

Type: GET/SET

SET/RSP format:

#WFMn;
ParameterValueDescription
n0Waterfall markers off
n1Waterfall markers on

Type: GET/SET

SET/RSP format:

#XCVnn;
ParameterValueDescription
nn00K3
nn01User-defined transceiver
nn02455 kHz IF
nn03+Additional transceivers per “Xcvr Sel” menu

Applicable firmware revision shown in brackets.

RevisionDateFirmwareChanges
A12010-10-2000.41Added commands #AVG, #CTF, #DPM, #FNL, #FNX, #LBL, #MFA/#MFB, #MKA/#MKB, #PKM, #PS, #QSY, #REF, #SCL, and #SPN.
A22010-11-0500.41Added “Internal use only” commands to the table. Changed #DPM command name to #DSM. Changed #SPN format. Added #PT and #VFB commands.
A32011-02-1601.05Added commands #FXA, #FXT, and #TP.
A42012-03-1901.11Added commands #RST, #RVF, and #RVS.
A52015-01-2301.35Added commands #NB, #NBL, #SPM, #SVWB, #SVDT, #SVEN, #SVFN, #SVFL, #SVRS, #WFA, #WFC, and #WFM.
A62016-02-0201.57Changed #DSM command. Added #FON and #XCV commands.
A72016-03-0801.59Added #RCF command.