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.

CC3200 read TCP/IP problem

Other Parts Discussed in Thread: CC3200

Hi all,

I am trying to read and write data (TCP/IP packets) from the CC3200 launchpad to an existing and working server. In order to do so, I created a client socket and called the following functions: sl_socket, sl_connect, sl_send. All functions returned a SUCCESS so I assume that I have a connection to the server and I assume that I can send data.

When I try to read the response from the server (call sl_recv directly after sl_send) I don't get an answer. It seems that my program stays in _SlNonOsMainLoopTask forever.

What am I doing wrong?

  • Hi Jan,

    Please verify whether server received data from client or not. And, if you are using public server than please tell us server name and port number you are trying to communicate.

    Regards,

    Aashish

  • Hi,

    I tested my implementation with a program TCP/IP builder that makes a server socket. I received my message here and I was also able to send a message back to my CC3200. It seems that I have a problem with the server itself (or probably the protocol that I should use). This problem seems therefore solved.

  • Hi all,

    I have some more information about this topic and it turns out that the problem is still there. I used a wireless sniffer and found out that no packets are sent when I try to connect to the server.

    I tried to make a server socket in my local network (TCP/IP builder) and I saw that my messages came in perfectly (both reading and writing). Moreover, I saw all the TCP/IP traffic on my sniffer program.

    It seems that I have a local connection but not an internet connection. How can I verify this and how should I solve this problem?

  • Hello Jan Oene!

    The best example to begin with is the "Getting Started with WLAN Station" example:

    The device connects to an AP (access point), with AP configurations stored in the form of macros in the application. If the connection is successful, it will try to get the IP address of “www.ti.com” and then ping to the ip address. Zero is the expected return value. A different return code would mean that the internet connection is not available or that the ping to the link is not successful.


    You can also try to run the Get Time and Get Weather examples that are provided with the CC3200 SDK.
    Documentation is available in the /docs/examples folder of the SDK installation.

    If these examples are not running as expected, you might want to double-check your internet uplink.

    Please keep us updated about your results.

    Regards,
    Marc

  • Hi all,

    It was indeed a problem with the protocol. I first send a closing message and after that a new TCP/IPmessage. There is no answer in between so I should not wait for an answer.

    This was blocking my application. I can now perfectly read and write, so my question is solved!

    Many thanks