How to send 4KB data with lwIP code for LPC4357

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to send 4KB data with lwIP code for LPC4357

486 次查看
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 回复数