Skip to content

USB Cable Commands

github-actions[bot] edited this page Jun 15, 2026 · 1 revision

USB Cable Commands

Generated from FlexLib v4.2.18

USB cable port configuration and control


Wire Protocol

Commands follow the FlexRadio TCP wire protocol:

C[D]<seq_number>|<command> [sub-command] [parameters]

Where:

  • C = Command prefix
  • D = Optional debug flag
  • <seq_number> = Sequence number for command tracking
  • <command> = Primary command word
  • [sub-command] = Optional sub-command
  • [parameters] = Command-specific parameters

Responses follow the format:

R<seq_number>|<result_code>|<data>|[debug_info]

Where:

  • R = Response prefix
  • <seq_number> = Matching sequence number from command
  • <result_code> = Result code (0 = success, non-zero = error)
  • <data> = Command-specific response data
  • [debug_info] = Optional debug information

Common Response Codes

Code Meaning
0 Success
50000001 Unable to get foundation receiver assignment
50000003 License check failed
50000004 Parameter error
50000005 Incorrect number or type of parameters
50000016 Malformed command
5000002C Incorrect number of parameters
50000032 Bad mode

Commands

usb_cable set

Syntax:

C<seq>|usb_cable set <serialnumber> <parameter>=<value>
Parameter Description
polarity
source Valid values: None, TXPanadapter, TXSlice, ActiveSlice, TXAntenna, RXAntenna, Slice, Invalid
source_rx_ant
source_tx_ant
source_slice
type Valid values: Invalid, HF_BCD, VHF_BCD, HF_VHF_BCD
type
enable
name
log
data_bits
speed Valid values: BAUD_300, BAUD_600, BAUD_1200, BAUD_2400, BAUD_4800, BAUD_9600, BAUD_14400, BAUD_19200, BAUD_38400, BAUD_57600, BAUD_115200, BAUD_230400, BAUD_460800, BAUD_921600
parity Valid values: none, odd, even, mark, space
stop_bits
flow_control Valid values: none, rts_cts, dtr_dsr, xon_xoff
auto_report
band
preamp

Response Example:

R<seq>|0||

usb_cable setbit ...

Syntax:

C<seq>|usb_cable setbit <serialnumber> <bit> <parameter>=<value>
Parameter Description
source Set Bit Source Valid values: None, TXPanadapter, TXSlice, ActiveSlice, TXAntenna, RXAntenna, Slice, Invalid
output Set Bit Output Valid values: Band, FreqRange
polarity Set Bit Active High
enable Set Bit Enable
ptt_dependent Set Bit Ptt
ptt_delay Set Bit Ptt Delay Ms
tx_delay Set Bit Tx Delay Ms
source_rx_ant Set Bit Source Rx Ant
source_tx_ant Set Bit Source Tx Ant
source_slice Set Bit Source Slice
band Set Bit Band

Response Example:

R<seq>|0||

usb_cable setbit ... ... low_freq=... high_freq=...

Set Bit Freq Range

Syntax:

C<seq>|usb_cable setbit <serialnumber> <bit> low_freq=<math> high_freq=<math>

Parameters:

Parameter Description
<serialnumber>
<bit> Valid values: Band, FreqRange
<math>
<math>

Response Example:

R<seq>|0||

usb_cable remove ...

Remove

Syntax:

C<seq>|usb_cable remove <serialnumber>

Parameters:

Parameter Description
<serialnumber>

Response Example:

R<seq>|0||

usb_cable write ... base64 ...

Writes bytes to the Passthrough Cable

Syntax:

C<seq>|usb_cable write <serialnumber> base64 <base64data>

Parameters:

Parameter Description
<serialnumber>
<base64data>

Response Example:

R<seq>|0||

usb_cable write ... text ...

Writes bytes to the Passthrough Cable

Syntax:

C<seq>|usb_cable write <serialnumber> text <text>

Parameters:

Parameter Description
<serialnumber>
<text>

Response Example:

R<seq>|0||

Clone this wiki locally