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.

Tiva C UART to TCP

Hi all,

I would like to ask you about a few questions. I make a converter from UART to TCP using TIVA C (tm4c1294). The data flow of uart is about 4Mbits/s and only one tcp client can connect to the tiva (tcp server). I use DMA transfer (specifically Ping-pong mode). I have created a global variable for tcp structure (tcp_pcb) and when there is DMA interrupt to send data using tcp_write function. Can I use tcp_write this way?

The application works fine for some time (normally hours) and then tiva don’t transfer any data. Do you know where a problem is?

Wireshark test:

Thanks for your answers

Vsekaz.

  • Hello Vsekaz

    It is possible to use the DMA to parse the data to the tcp_write function for transmission. But just seeing wireshark logs is not going to provide the data required for any debug w/o knowing which process on the device is causing the issue. Some debug on your side is required

    Regards
    Amit
  • Hello Amit,

    I thank you for your fast answer at first. I understand wireshark logs are not going to provide the data for debug but a error happens one for a few hours. It is not possible debugging. I have studied this problem for a long time and I discovered this:

    My situation: tiva as tcp server and pc as client

    Tiva sends a data to the PC. The PC receives it and sends ack. After some time the PC sends ack later than tiva has rto (retransmission time-out). Tiva sends same tcp segment again – the PC sends tcp dup ack (pc receives duplicate data). LWIP stack cannot solve this problem.

    This situation is being shown on the screen shoot above.

    I will study this problem even in the future…

    Regards Vsekaz
  • Hello Vsekaz

    Which TivaWare version are you using? Is the TM4C bogged down with heavy processing which is causing a delay in the response?

    Regards
    Amit