How to send 4KB data with lwIP code for LPC4357

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to send 4KB data with lwIP code for LPC4357

415件の閲覧回数
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!

ラベル(1)
0 件の賞賛
返信
0 返答(返信)