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 TCP connection

Other Parts Discussed in Thread: MSP430FR5739

Hi,

I am using CC3000 + msp430fr5739 as a client. I am setting up a TCP connection and trying to send 5 byte data and wait for the response from the server but i can not see the 5 byte data on server side on COMM operator although when i pause the debug i can see the "sendto" function returns 5. What can be the problem?

Thank you

Burak

  • Hey I am also seeing the same issue, did you able to find any solution..

    TI -  Please follow the ticket

  •  

    Hi,

    Are you using one of our demo application for this test or is this a code written by you?

    If the second is correct, why are you using sendto() API for TCP connection?

    For TCP you should use send() and for UDP sendto().

    Please let me know if this solved your issue.

    Yael

  • it is really nice to answer 5 months later which i solved the prblem and forget how to solve because 5 months passed. Thank you for your concern.

  •  Last post was at March 31.

    If we didn't have the chance to help you, I still hope I can help someone else...

  • Thanks for looking into this yeal.

    I create my own application for TCP Communication, also I am using Send API not sendto API.

     

    I create a different thread for it, please look into it :

    http://e2e.ti.com/support/low_power_rf/f/851/p/254623/894507.aspx#894507

    http://e2e.ti.com/support/low_power_rf/f/851/p/254926/892677.aspx#892677

     

     

  • I would love to see sample code for making a TCP connection using the  CC3000 + msp430fr5739 combination of products. If you have somthing that works, I would love to see how you are accomplishing this. If there are sample applications out there, please point me that way.

    Thank you in advance!!

  • Philip Matthew said:

    I would love to see sample code for making a TCP connection using the  CC3000 + msp430fr5739 combination of products.

    If you are able to connect to an AP, get a DHCP address/static address and create sockets then TCP/UDP based socket programming is (almost) same throughout all the platforms.

    You can achieve TCP program on required platform by taking an example of MSP430/Stellaris TCP socket programming and use it as your reference.

    Thanks,

    -VR Shankar.

  • Pretty easy, wait for dhcp to be done.

    For tcp you need to first init by doing a
    socket()  it will answer back so the socket handler to keep track of the 0-3 potential socket number.

    Then use
    connect() with Destination IP address and port

    And data is done by
    send() and not with sendto() as that is for UDP.

  • Thank you both! This confirmed that I was on the right track. I just needed to take a closer look at each phase of the process.

  • Hello Yael, 

    I am using the WiFi demo code to try send a message over a TCP socket but I have yet to see anything being transmitted. 

    I have tried using:

    03
    DONE
    0404wxyz02c738c0a801bf
    DONE 

    but I still do not see anything when using hercules(free socket testing software). 

    My steps are as follows:

    1: open hercules and go to the "TCP Server" tab

    2: set port as 51000

    3: press "isten"

    4: open putty/hyperterm and connect CC3000 to AP (same network as PC) I am able to ping the CC3000

    5: enter "0404wxyz02c738c0a801bf" (IP address is 192.168.1.191) 

    6: look for received bytes in hercules but nothing shows up :( 

    do you have any further suggestions so I can hopefully get this working soon 

    P.s. I have tried with 03 before entering 0404wxyz02c738c0a801bf and without 03 first and still no luck.

    I have also tried using the UDP tab in hercules still with no success.  The steps are:

    1: open hercules

    2: go to UDP tab

    3: Module IP = IP of CC3000 (191.168.1.143)

    4: Port = 51000

    5: Local port = 51000

    6: connect 

    7: send "0404wxyz02c738c0a801bf" from putty to the Stellaris 

     

    This still produces no success, if I can get a TCP socket to work and forget the UDP that would be better as that is what i really need. Any help would be very much appreciated.

    Thanks  

    Kasriel

  • Hello,

    This is Alark Mishra from India, I am also writing my own piece of code for TCP Communication and I am really done with almost every command including GetHostName, Socket Open and Socket Connect but when I am trying to Connect TCP Socket, it is actually giving false response i.e. 0xFFFFFFFF.

    I am passing the same IP received from GestHostByName into Socket Connect command, actually the problem is that TI has restricted the resources, they dont give proper documentation for every command due to which it is very difficult to execute whole procedure, its like stucking in between.

    Can you please guide me how to proceed ahead as I am really stuck.

    Regards,
    Alark Mishra
    alark.mishra@gmail.com
  • You have to wait for Wlan Connect and dhcp to be completed first