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.

tm4c129x ethernet

hi all,

  I am using tm4c129 controller ,i am developing code of ehernet to serial transfer. I am using

1.  UPnPStart()  ->

                     loop: //LOOP TILL CONNECTION IS ESTABLISHED

                     pcb = tcp_new();
                    if (pcb == NULL)
                    goto loop;
                    g_psUPnP_ListenPCB = pcb;
                   tcp_bind(pcb, IP_ADDR_ANY, PORT);
                   pcb = tcp_listen(pcb);
                   tcp_accept(pcb, UPnP_accept);

                   if (UPnP_accept(0, pcb, 0) != ERR_OK)
                   goto loop;

2.UPnP_accept ->

                   tcp_arg(pcb, pState);

                   tcp_recv(pcb, UPnP_recv);

                   tcp_err(pcb, UPnP_error);

                  tcp_poll(pcb, UPnP_poll, (1000 / TCP_SLOW_INTERVAL));

3.UPnP_recv ->    

                 tcp_recved(pcb, p->tot_len);

                 UARTSend((uint8_t *)p->payload, p->tot_len);

                 pbuf_free(p);

From hyperteminal(TCP/IP)  when i send text file in p->payload  i got only 18bytes.Why i am not able to receive all data.

Thanks & regards,

Dhanush