This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220SF: How to send text string with network terminal command ?

Part Number: CC3220SF


Hi TI!

I am starting a project with CC32xx.

I have a CC3220SF launch pad with the network terminal firmware running.

The CC3220SF joins the network just fine.

My intention is to send a text string (via Network Terminal commands in CC3220SF) to another device on the network (via UDP).

I am checking the Network Terminal command 'send', but this command does not accept the text string.

So how can I send the text string?

Thank yuo very much. 

Best Regards

  • The NetworkTerminal doesn't support this.

    You will need to develop such feature. You can use the network terminal as a reference.

    The send and receive in network terminal demonstrate how to open a socket, listen /connect on the socket and then send /receive number of packets. The data of the packets is stored in app_CB.gDataBuffer.nwData and is initialized to a repetitive pattern of 0-9 before sending (see code in socket_cmd.c):

    memset(app_CB.gDataBuffer.nwData, 0x0, MAX_BUF_SIZE);
    
    /* filling the buffer with data */
    for(i = 0; i < MAX_BUF_SIZE; i++)
    {
    app_CB.gDataBuffer.nwData[i] = (char)(i % 10);
    }
    
    

    You can basically replace this with the string you want to send (and you will need to update the command line parser if you want to get the string from the user).