Skip to content

CWX Commands

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

CWX Commands

Generated from FlexLib v4.2.18

CWX text buffer operations


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

cwx macro save ...... "..."

Saves a macro for sending later

Syntax:

C<seq>|cwx macro save <value><value> \"<msg>\"

Parameters:

Parameter Description
<value>
<value>
<msg>

Response Example:

R<seq>|0||

cwx macro send ...

Saves a macro for sending later

Syntax:

C<seq>|cwx macro send <index>

Parameters:

Parameter Description
<index>

Response Example:

R<seq>|0||

cwx send "..."

Send

Syntax:

C<seq>|cwx send \"<msg>\"

Parameters:

Parameter Description
<msg>

Response Example:

R<seq>|0||

cwx send "..." ...

Send

Syntax:

C<seq>|cwx send \"<msg>\" <block>

Parameters:

Parameter Description
<msg>
<block>

Response Example:

R<seq>|0||

cwx erase ...

Erase

Syntax:

C<seq>|cwx erase <num_chars>

Parameters:

Parameter Description
<num_chars>

Response Example:

R<seq>|0||

cwx erase ... ...

Erase

Syntax:

C<seq>|cwx erase <num_chars> <radio_index>

Parameters:

Parameter Description
<num_chars>
<radio_index>

Response Example:

R<seq>|0||

cwx insert ... "..." ...

Insert

Syntax:

C<seq>|cwx insert <radio_index> \"<msg>\" <block>

Parameters:

Parameter Description
<radio_index>
<msg>
<block>

Response Example:

R<seq>|0||

cwx clear

Clear Buffer

Syntax:

C<seq>|cwx clear

Response Example:

R<seq>|0||

cwx delay ...

The CWX breakin delay in milliseconds (ms) from 0 ms to 2000 ms

Syntax:

C<seq>|cwx delay <delay>

Parameters:

Parameter Description
<delay>

Response Example:

R<seq>|0||

cwx wpm ...

The CWX speed in words per minute (wpm) from 5 to 100

Syntax:

C<seq>|cwx wpm <speed>

Parameters:

Parameter Description
<speed>

Response Example:

R<seq>|0||

cwx qsk_enabled ...

The CWX speed in words per minute (wpm) from 5 to 100

Syntax:

C<seq>|cwx qsk_enabled <value>

Parameters:

Parameter Description
<value>

Response Example:

R<seq>|0||

Clone this wiki locally