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.

CC3000-sending data from my laptop to CC3000

I am using LaunchpadG2 and have completed SmartConfig. I can ping from my laptop to the CC3000. I amd now trying to send data to and fro from each. I do an open socket in TeraTerm and then bind using the same parameters as in the document (06C738). I then do a 05 and I get "no message received" and DONE. At the laptop what program should I be using to send data? I find that if I use TeraTerm with the IP address of the CC3000 and 51000 for a port number that it times out.

I have looked through for other posts on this topic and can see nothing that helps.

Thanks

Peter

  • Hi Peter,

    You can use 'iperf' to test TCP and UDP scenarios. Make sure that CC3000 is listening on that port (51000) and you know the IP address that CC3000 has acquired.

    Thanks & Regards,

    Raghavendra

  • Hi Raghavendra,

    I have TCP/IP Builder and Advanced Serial Port Terminal so I shall try these first.IPERF seems difficult to downlaod and I am not sure whether to use iperf, iperf2 or iperf3. There seems to be a lot in geting it going as well

    Thanks

    Peter

  • Hi Raghavendra

    I am using TCPIP Builder. I connect the CC3000/Launchpad to the computer via the USB cable and press reset. I get the message in TeraTerm and the the IP address 10.0.0.231.

    I first tried to set up the CC3000 to send data to my laptop. I have TCPIP Builder on my laptop. I did a ipconfig and got wireless LAN IPv4 address of 10.0.0.231. The default gateway is 10.0.0.138. In TCPIP Builder I set up local IP as 10.0.0.231 and port as 51000. I press "CREATE SOCKET" and then a message appears in the receive data I get "Listening for connections" 

    At the CC3000 I press 03<CR> and get DONE. I then press 0404wxyzC7380a0000E7<CR>

    I get nothing at the laptop. It dsplays the same message "listening for connections"

    I then tried to set it up in reverse. At the CC3000 I pressed 03<CR> and got DONE

    I pressed 06c738<CR> and got DONE

    I pressed 05<CR> and got no data received and then DONE.

    At the laptop I set up Builder again with IP Connection 10.0.0.233, port 51000. I pressed CREATE SOCKet and then CONNECT. The send button stayed dim, ie disabled and then it timed out saying it could not establish a connection.

    What am I doing silly??

    Thanks

    Peter

  • Hi Peter,

    In the first case, if I have not mistaken, I see that client is using 10.0.0.231 and also the remote is using 10.0.0.231. Did you do the same for the second case as well? Also did you change 0a0000E7 for your second case?

    Thanks & Regards,

    Raghavendra

  • Hi Raghavendra,

    My fingers were moving too fast. The IP address of teh CC3000 is 10.0.0.233. This is the IP address I get from TeraTerm.

    I hope it makes sense now.

    Thanks

    Peter

  • Hi Peter,

    In the string 0404wxyzC7380a0000E7, replace "C738" with "c738". And also the IP address string to "0a0000e7". The example code currently checks only for lower case. Let me know how it goes.

    Thanks & Regards,

    Raghavendra