How to send 4KB data with lwIP code for LPC4357

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to send 4KB data with lwIP code for LPC4357

381 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by phamliem on Mon Jul 21 02:21:02 MST 2014
Hi guys,

I am using lwIP code for transfer data via Ethernet with MCU-LPC4357 (use kit MCB4300 of Keil).

My project use LPC4357 is Client and must send data to Server PC.

My problem, i can not send one package with length > 4KByte.

My send data function same:

tcp_sent(pcb_client, client_sent);
ret_val = tcp_write(pcb_client, data, 4096, 0);
if (ret_val != ERR_OK)
{
    while(1);
}

It can success send about 4package to Server and then go to while (1).

I know that can change the parameters in opt.h file but really, i don't know how to change?

when i use send package with length 2KByte then always success
tcp_sent(pcb_client, client_sent);
ret_val = tcp_write(pcb_client, data, 2048, 0);


Please help me?

Thank you!

Labels (1)
0 Kudos
Reply
0 Replies