TCPIP cwx - flexradio/smartsdr-api-docs GitHub Wiki

SEND

Queues up text in the CWX buffer to be sent out as dots and dashes.

C[D]<seq_number>|cwx send "<message>" <block>

<message>    =  the string to be sent (replace spaces with hex 0x7f)
<block>      =  (optional) a number to help sync the reply with the original string

Example:

C19|cwx send "CQ TEST" 42  (*spaces shown in message here would be replaced by 0x7f)

See Response Format for details on the format of the response messages from the radio

Hex Response Message starting radio index for message, block
00000000   OK
5000002C   Incorrect number of parameters
31000004 Nothing to send

Responses

Response Example:

R19|0|170,42|

CLEAR

Clear the current CWX buffer

C[D]<seq_number>|cwx clear

Example:

C19|cwx clear

See Response Format for details on the format of the response messages from the radio

Hex Response Message starting radio index for message, block
00000000   OK
5000002C   Incorrect number of parameters
500000C2 Transmit not allowed due to other client transmitting

Responses

Response Example:

R19|0|

DELAY

Set the CWX hang time delay in ms

C[D]<seq_number>|cwx delay <ms>

<ms>    =  The amount of time to delay in ms

Example:

C19|cwx erase 3 170

See Response Format for details on the format of the response messages from the radio

Hex Response Message erased start index, erased stop index (inclusive)
00000000   OK
5000002C   Incorrect number of parameters

Responses

Response Example:

R19|0|

WPM

Set the speed of the CW keyer to a specific words-per-minute (WPM) value. If a value below 5 is sent, 5 will be used. If a value above 100 is sent, 100 will be used.

C[D]<seq_number>|cw wpm <speed>

<speed>    =  a number between 5-100 setting the speed in words-per-minute

Example:

C19|cw wpm 25

See Response Format for details on the format of the response messages from the radio

Hex Response Message Debug Output / Meaning
00000000   OK
5000002C   Incorrect number of parameters

Responses

Response Example:

R19|0||

ERASE

Erases characters from the CWX buffer

C[D]<seq_number>|cwx erase <num_chars> <index>

<num_chars>    =  The number of characters to erase
<index>        =  (optional) The index at which to begin erasing.  If this is not provided, the end of the buffer is assumed.

Example:

C19|cwx erase 3 170

See Response Format for details on the format of the response messages from the radio

Hex Response Message erased start index, erased stop index (inclusive)
00000000   OK
5000002C   Incorrect number of parameters
10000003 Nothing to erase

Responses

Response Example:

R19|0|170,172|

INSERT

Inserts text into the CWX buffer at a specific index to be sent out as dots and dashes.

C[D]<seq_number>|cwx insert <index> "<message>" <block>

<index>      =  the index at which to insert the message
<message>    =  the string to be sent (replace spaces with hex 0x7f)
<block>      =  (optional) a number to help sync the reply with the original string

Example:

C19|cwx insert 170 "CQ " 43  (*spaces shown in the message here would be replaced by 0x7f)

See Response Format for details on the format of the response messages from the radio

Hex Response Message starting radio index for inserted message, block
00000000   OK
5000002C   Incorrect number of parameters
50000090 Index invalid
50000091 Insert failed

Responses

Response Example:

R19|0|170,43|

MACRO_SAVE

Save CWX macro buffers

C[D]<seq_number>|cwx macro save <macro#> "text message"

<macro#>    =  The number of the macro to be saved

Example:

C19|cwx save 1 "The quick brown fox jumps over a lazy dog"

See Response Format for details on the format of the response messages from the radio

Hex Response Message erased start index, erased stop index (inclusive)
00000000   OK
5000002C   Incorrect number of parameters
5000007A   Incorrect macro number

Responses

Response Example:

R19|0|1|

MACRO_SEND

Send CWX macro buffers

C[D]<seq_number>|cwx macro send <macro#> [<block>]

<macro#>    =  The number of the macro to be sent
<block>     = Optional. Can be set to send only certain bits of the message

Example:

C19|cwx send 1 [20,40]

See Response Format for details on the format of the response messages from the radio

Hex Response Message erased start index, erased stop index (inclusive)
00000000   OK
5000002C   Incorrect number of parameters
5000007A   Incorrect macro number

Responses

Response Example:

R19|0|1|20,40|

QSK_ENABLED

Set flag that determines if QSK is allow in CWX

C[D]<seq_number>|cwx qsk_enabled 0|1

Example:

C19|cwx qsk_enabled 1

See Response Format for details on the format of the response messages from the radio

Hex Response Message erased start index, erased stop index (inclusive)
00000000   OK
5000002C   Incorrect number of parameters

Responses

Response Example:

R19|0|

TEST

Tests sequence or string commands.

C[D]<seq_number>|cwx test sequence [.][-]...

C[D]<seq_number>|cwx test string <string>

Example:

C60|cwx test sequence -... ..- - - .... --- .-.. .

See Response Format for details on the format of the response messages from the radio

Hex Response Message starting radio index for message, block
00000000   OK
5000002C   Incorrect number of parameters

DUMP

Displays parameters of CWX

C[D]<seq_number>|cwx dump

Example:

C61|cwx dump
Hex Response Message starting radio index for message, block
00000000   OK
5000002C   Incorrect number of parameters
⚠️ **GitHub.com Fallback** ⚠️