pub enum Response {
Show 67 variants
Frequency {
band: Band,
channel: ChannelMemory,
},
FrequencyFull {
band: Band,
channel: ChannelMemory,
},
FirmwareVersion {
version: String,
},
PowerStatus {
on: bool,
},
RadioId {
model: String,
},
PowerLevel {
band: Band,
level: PowerLevel,
},
BandResponse {
band: Band,
},
VfoMemoryMode {
band: Band,
mode: VfoMemoryMode,
},
FmRadio {
enabled: bool,
},
AfGain {
level: AfGainLevel,
},
Squelch {
band: Band,
level: SquelchLevel,
},
Smeter {
band: Band,
level: SMeterReading,
},
Mode {
band: Band,
mode: Mode,
},
FineStep {
step: FineStep,
},
FunctionType {
enabled: bool,
},
FilterWidth {
mode: FilterMode,
width: FilterWidthIndex,
},
Attenuator {
band: Band,
enabled: bool,
},
AutoInfo {
enabled: bool,
},
Busy {
band: Band,
busy: bool,
},
DualBand {
enabled: bool,
},
FrequencyDown,
Beep {
enabled: bool,
},
Lock {
locked: bool,
},
IoPort {
value: DetectOutputMode,
},
BatteryLevel {
level: BatteryLevel,
},
VoxDelay {
delay: VoxDelay,
},
VoxGain {
gain: VoxGain,
},
Vox {
enabled: bool,
},
MemoryChannel {
channel: u16,
data: ChannelMemory,
},
MemoryRecall {
band: Band,
channel: u16,
},
CurrentChannel {
band: Band,
channel: u16,
},
ProgrammingMode,
TncMode {
mode: TncMode,
setting: TncBaud,
},
DstarCallsign {
slot: DstarSlot,
callsign: String,
suffix: String,
},
RealTimeClock {
datetime: String,
},
StepSize {
band: Band,
step: StepSize,
},
BandScope {
band: Band,
},
TncBaud {
rate: TncBaud,
},
SerialInfo {
serial: String,
model_code: String,
},
BeaconType {
mode: BeaconMode,
},
PositionSource {
source: u8,
},
DstarSlot {
slot: DstarSlot,
},
ActiveCallsignSlot {
slot: CallsignSlot,
},
Gateway {
value: DvGatewayMode,
},
GpsConfig {
gps_enabled: bool,
pc_output: bool,
},
GpsMode {
mode: GpsRadioMode,
},
GpsSentences {
gga: bool,
gll: bool,
gsa: bool,
gsv: bool,
rmc: bool,
vtg: bool,
},
Bluetooth {
enabled: bool,
},
SdCard {
present: bool,
},
UserSettings {
value: u8,
},
RadioType {
region: String,
variant: u8,
},
McpStatus {
value: String,
},
ServiceMode {
data: String,
},
ServiceCalibrationData {
data: String,
},
ServiceCalibrationWrite {
data: String,
},
ServiceCalibrationParam {
mnemonic: String,
data: String,
},
ServiceWriteConfig {
data: String,
},
ServiceBandSelect {
data: String,
},
ServiceWriteId {
data: String,
},
ServiceFlash {
data: String,
},
ServiceEepromData {
data: String,
},
ServiceEepromAddr {
data: String,
},
ServiceVersion {
data: String,
},
ServiceHardware {
data: String,
},
Ok,
Error,
NotAvailable,
}Expand description
A parsed response from the radio.
Variants§
Frequency
Frequency response (FQ).
FrequencyFull
Full frequency and settings response (FO).
FirmwareVersion
Firmware version response (FV).
PowerStatus
Power status response (PS).
RadioId
Radio model ID response (ID).
PowerLevel
Power level response (PC).
BandResponse
Band response (BC read).
VfoMemoryMode
VFO/Memory mode response (VM).
Mode values: 0 = VFO, 1 = Memory, 2 = Call, 3 = WX.
FmRadio
FM radio on/off response (FR).
AfGain
AF gain response (AG).
Per KI4LAX CAT reference: gain range 000-099.
Fields
level: AfGainLevelGain level (0-99). Global, not per-band.
Squelch
Squelch level response (SQ).
Smeter
S-meter reading response (SM).
Mode
Operating mode response (MD).
FineStep
Fine step response (FS).
Firmware-verified: bare FS\r returns FS value (single value, no band).
FunctionType
Function type response (FT).
FilterWidth
Filter width response (SH).
Fields
mode: FilterModeReceiver filter mode queried.
width: FilterWidthIndexFilter width index (0-4 for SSB/CW, 0-3 for AM).
Attenuator
Attenuator state response (RA).
AutoInfo
Auto-info mode response (AI).
Busy
Busy state response (BY).
DualBand
Dual-band mode response (DL).
FrequencyDown
Frequency down acknowledgement (DW).
Beep
Beep setting response (BE).
D75 RE: BE x (x: 0=off, 1=on).
Lock
Key lock state response (LC).
The locked field uses wire semantics: on the D75 the wire
value is inverted (true = unlocked on wire). Radio::set_lock()
and Radio::get_lock() handle the inversion so callers see
logical lock state.
IoPort
AF/IF/Detect output mode response (IO).
Fields
value: DetectOutputModeOutput mode.
BatteryLevel
Battery level response (BL).
0=Empty (Red), 1=1/3 (Yellow), 2=2/3 (Green), 3=Full (Green), 4=Charging (USB power connected).
Fields
level: BatteryLevelBattery charge level (0–4, where 4 = charging).
VoxDelay
VOX delay response (VD).
VoxGain
VOX gain response (VG).
Vox
VOX state response (VX).
MemoryChannel
Memory channel data response (ME).
MemoryRecall
Memory recall echo response (MR write acknowledgment).
When MR band,channel is sent as a write/recall, the radio echoes
back the band and channel as acknowledgment.
CurrentChannel
Current channel number response (MR read).
Hardware-verified: MR band\r returns MR bandCCC (no comma).
Example: MR 0\r returns MR 021 = band A, channel 21.
ProgrammingMode
Programming mode acknowledgment (0M).
The radio enters MCP programming mode and stops responding to normal CAT commands. This response should never actually be received in practice.
TncMode
TNC mode response (TN).
Hardware-verified: bare TN\r returns TN mode,setting.
Example: TN 0,0.
Valid mode values per firmware validation: 0, 1, 2, 3. Mode 3 may correspond to MMDVM or Reflector Terminal mode.
DstarCallsign
D-STAR callsign data response (DC).
Hardware-verified: DC slot\r returns DC slot,callsign,suffix.
Example: DC 1,KQ4NIT ,D75A.
Fields
RealTimeClock
Real-time clock response (RT).
Hardware-verified: bare RT\r returns RT YYMMDDHHmmss.
Example: RT 240104095700.
StepSize
Step size response (SF).
Firmware-verified: SF = Step Size. Format: band,step where band is 0/1
and step is the step size index (0-11).
BandScope
Band scope data response (BS).
BS echoes the band number when queried.
TncBaud
TNC baud rate response (AS).
Values: 0 = 1200 baud, 1 = 9600 baud.
SerialInfo
Serial number and model code response (AE).
Despite the AE mnemonic (historically “APRS Extended”), this command
returns the radio’s serial number and model code.
Format: serial,model_code (e.g., C3C10368,K01).
BeaconType
Beacon TX control mode response (PT).
Fields
mode: BeaconModeBeacon transmission mode.
PositionSource
APRS position source response (MS read).
DstarSlot
Active D-STAR callsign slot response (DS).
ActiveCallsignSlot
Active callsign slot number response (CS).
CS returns a slot number, NOT the callsign text. The actual callsign text is accessible via DC (D-STAR callsign) slots 1-6.
Fields
slot: CallsignSlotActive callsign slot (0-10).
Gateway
DV Gateway mode response (GW).
Fields
value: DvGatewayModeDV Gateway mode.
GpsConfig
GPS configuration response (GP).
Two boolean fields: GPS enabled and PC output enabled.
Format: gps_enabled,pc_output (e.g., 0,0).
GpsMode
GPS/Radio mode status response (GM).
0 = Normal transceiver mode, 1 = GPS receiver mode.
Firmware-verified: cat_gm_handler guard local_18 < 2.
Fields
mode: GpsRadioModeGPS/Radio operating mode.
GpsSentences
GPS NMEA sentence enable flags response (GS).
Six boolean fields controlling which NMEA sentences are output: GGA, GLL, GSA, GSV, RMC, VTG.
Fields
Bluetooth
Bluetooth state response (BT).
SdCard
SD card / programming interface status response (SD).
The firmware’s SD handler primarily checks for SD PROGRAM to enter
MCP programming mode. The bare SD read response (SD 0/1) appears
to indicate programming interface readiness, not SD card presence.
UserSettings
User settings response (US).
Note: US returns ? on all tested formats on the TH-D75 and may not
be implemented. This variant exists for completeness but may never be
received from the radio.
RadioType
Radio type/region code response (TY).
Returns the radio’s region code and hardware variant.
Example: TY K,2 (K = US region, variant 2).
McpStatus
MCP status response (0E).
Placeholder — always returns N (not available) in normal mode.
ServiceMode
Service mode entry/exit response (0G).
ServiceCalibrationData
Factory calibration data response (0S).
ServiceCalibrationWrite
Calibration data write acknowledgment (0R).
ServiceCalibrationParam
Individual calibration parameter response (1A, 1D, 1E, 1N, 1V, 1W, 1C, 1U).
Fields
ServiceWriteConfig
Write config acknowledgment (0W).
ServiceBandSelect
Band select response (0Y).
ServiceWriteId
Factory ID write acknowledgment (1I).
ServiceFlash
Flash read/write response (1F).
ServiceEepromData
EEPROM bulk data response (9E).
ServiceEepromAddr
EEPROM targeted read response (9R).
ServiceVersion
Internal version/variant response (2V).
ServiceHardware
Hardware register/GPIO status response (1G).
Ok
Write acknowledgment (radio echoes the command).
Error
Error response (?\r).
NotAvailable
Not available response (N\r) — command not supported in current mode.