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.

TCP Client send problem



Hello,

I use TM4C1294 to create a tcp client  with the RTOS sample code tcpEcho.

And I use function send() to send data to my PC server,using wireshark to check data.

I sent data twice and found that data segmented as below picture,info show me "TCP segment of a readdembled PDU".

Do you have any ways to let the sent data not segmented. 

Please help to solve above problem.

thank you

Arthur

  • Hi Vikram,

    Thank for your answer.
    I am confused when I use TM4C1294 to do a tcp server.
    MaybeI send "hello" to client,wireshark shows that is single packet not "TCP segment of a readdembled PDU".
    But I do a tcp client what I send always packet "TCP segment of a readdembled PDU".
    The same function send() with different results,why?
    when I do tcp client I need turn off TCP reassembly function ?
    If so, how to do or how to setting.

    Thanks
    Arthur
  • Hi Arthur,

    Reassembly PDU is how Wireshark interprets the packets. It does _not_ indicate error condition. You can find more information about this Wireshark feature in Google.

    Is this causing any problem in your application?

    Vikram
  • Hi Vikram,

    In fact, I got a issue when I sent data to web cloud server 3 times,the connection always loss.
    And server sent information "unexpected continuation frame" to my client.
    I don't have idea that tcp client data with any problem.
    So I use wireshark to see what wrong with my data.
    The different info is "TCP segment of a readdembled PDU" when I use TM4C1294 as a client.
    Maybe I client to web server need to set something?


    Thanks
    Arthur
  • Hi Arthur,

    As I understand, the reassembly should not be causing an error. But I am curious to see the full error log from the client and the server. Can you share the error logs? Also, can you share your project? I would like to reproduce this issue to understand what's happening.

    Also, you mention that the server is a web server. Is this a HTTP web server? If yes, are you implementing HTTP over TCP? Or, are you using TI-RTOS' HTTP implementation?

    Vikram
  • Hi Vikram,

    Sorry, so late to reply you because I took a trip.
    Yes, server is a HTTP web server.And Developer of server said what I sent not websocket,just normal tcp.
    As you mentioned TI-RTOS' HTTP implementation that I need to do.
    Do you have example for HTTP client?

    Thanks
    Arthur
  • Yes, TI-RTOS provides HTTP examples as a part of the product. If you are using CCS, you can import the example through the Resource Explorer.

    If your question is answered, please mark it as answered.

    Thanks,
    Vikram
  • Hi Vikram,

    I think the example  enet_weather may I need,but is's not RTOS project. 

     In TI-RTOS examples,I only found these projects as below.

    But these projects are not http client sample.

    Any others I miss?

    Or maybe one of them is what I want.If so tell me which one.

    thanks.

    Arthur 

  • Hi Arthur,

    Which version of TI-RTOS are you using? We recommend using the latest TI-RTOS - v 2.16.00.08 which has HTTP client examples.

    Vikram