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.

Easiest way to send data to CC3200

Other Parts Discussed in Thread: CC3200

Hi guys,

My CC3200 is connected now to my router as a station mode and also my computer.What is the easiest way to send a value(A number in my case) from my computer to the device knowing that I have looked through the HTTP server example but I am not able to manage because I don't have the experience in programming a new html page for my application

  • Hi,

    Please have a look at "tcp_socket" or the "udp_socket" example from the CC3200 SDK. This should be relatively simple and should suit your test case.

    Regards,
    Raghavendra

  • Hi Raghavendra,

    I saw the "tcp_socket" and the "udp_ socket" examples.It sounds good for me but I didn't understand what is the data send through these protocols and why we send 1000 packets.Also if I want to send a value from mu computer to the CC3200 how can assign the client and server for both of them?

  • Hi,

    These examples are sample examples. You can take it as reference and change it to suit your needs. You can always reduce from 1000 to 1 if your test case needs it.

    If the CC3200 needs to run as UDP/TCP server, then you can use one of the sample examples provided in SDK and modify the buffer size as per your need and listen on a specific port.

    To run UDP/TCP client on your computer, you would have to write a client application using the APIs provided by the OS on your computer. Your application should provide the IP address of the CC3200 and the port on which CC3200 is listening on.

    Regards,
    Raghavendra

  • The easiest way to send HTTP message from the PC to the board is using cURL application. It sends your data and then displays any response it gets.

  • Hi Markus,

    you mean to use the HTTP server as an example but the problem I need to program an HTML page which I dont have any experience in this domain.What do you mean by URL application can you anticipate more information.

  • Hi Raghavendra,

    Ok i think more or less I have understand what you meant and I will summarize them in points

    1) providing the IP address of the cc3200 and the port on which cc3200 is listening on

    2) sending my packet which is only one value in my application

     but I am running now the UDP example and when I select send packets from UART it gave me"successful send packets" but when I am trying to receive it will wait for a long time and then there is a message appears on the UART saying that the cc3200 is disconnected from the Access point.Do you have explanation for what happened?  

    another thing why I should run iperf.exe function when we want to send data.