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.

CCS/CC3235MODSF: Data transfer on IP address of Simplelink wifi module

Part Number: CC3235MODSF

Tool/software: Code Composer Studio

I have connected cc3235mod simplelink wi-fi module with the laptop's hotspot.

I want to send the data from the host laptop to the module using its IP address  

how to do that?

Please suggest me steps or any relatable documents for reference.

  • Hi Muskan,

    You could use a number of tools like iperf or python scripts to have the PC establish a connection to the CC3235 device over UDP/TCP and send data. We provide some example python scripts in our SDK in the "\tools\cc32xx_tools\echo-python-scripts" folder.

    For the CC3235, you could use the network terminal application for testing this. Please see the demos in the CC32xx SDK and the following SimpleLink Academy training:

    Best Regard,

    Ben M

  • Thanks Ben, 

    I'm working on 'Network Terminal' example of sdk pack.

    I am able to connect with host laptop(Access point) by following instructions mentioned in 'readme' file of that example.

    But using send  we can transfer the packet to the  connected device

    and using recv command we can receive the packet from connected device.

    My question is:

    1) If my host laptop(Access point) send any character to my IP address then how will I get that character and display it on my terminal window?

    2) how will I send any character to my Host laptop or client  on their IP address?

  • Hi,

    In general, data is received using the sl_Send/sl_Recv API calls. sl_Send will transfer a buffer of data stored in memory to the network processor to be transmitted to a remote device over an active socket connection. sl_Recv will return a buffer of data that has been received by the network processor on an active socket connection.

    See section 6.5 of the network processor programmer's guide:

    http://www.ti.com/lit/swru455

    The network terminal example calls these functions inside of the following functions from socket_cmd.c:

    int32_t UDPServer(uint8_t nb,
                      uint16_t portNumber,
                      uint8_t ipv6,
                      uint32_t numberOfPackets,
                      uint8_t tx);
    int32_t UDPClient(uint8_t nb,
                      uint16_t portNumber,
                      ip_t ipAddress,
                      uint8_t ipv6,
                      uint32_t numberOfPackets,
                      uint8_t tx);
    int32_t TCPServer(uint8_t nb,
                      uint16_t portNumber,
                      uint8_t ipv6,
                      uint32_t numberOfPackets,
                      uint8_t tx);
    int32_t TCPClient(uint8_t nb,
                      uint16_t portNumber,
                      ip_t ipAddress,
                      uint8_t ipv6,
                      uint32_t numberOfPackets,
                      uint8_t tx);

    You can use these as reference functions to build your own functions that transmit custom data or print out the data that is being received to the terminal.

    Best Regards,

    Ben M