LWiP UDP and TCP at same time - issues on i.MXRT1050 EVK

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

LWiP UDP and TCP at same time - issues on i.MXRT1050 EVK

跳至解决方案
1,489 次查看
avbot
Contributor III

I'm trying to get UDP (with IGMP) and TCP connections working at the same time (same IP address with different ports). Each one works on its own but not together.
My code is almost direct copied from tcpecho_freertos demo in MCUExpresso...
It seems there is some conflict between the two protocols... help appreciated...

 

tcpip_init(NULL, NULL);
netifapi_netif_add(&netif, &netif_ipaddr, &netif_netmask, &netif_gw, &enet_config, EXAMPLE_NETIF_INIT_FN,
                       tcpip_input);
netifapi_netif_set_default(&netif);
netifapi_netif_set_up(&netif);
sys_thread_new("tcpecho_thread", tcpecho_thread, NULL, 1024, 3); //<<A
sys_thread_new("udpecho_thread", udpecho_thread, NULL, 3000, 2); //<<B

//...... udpecho_thread...
conn = netconn_new(NETCONN_UDP);
IP4_ADDR(&netif_groupaddr,239,0,0,3); //Multicast pool
netconn_join_leave_group(conn, &netif_groupaddr, IP_ADDR_ANY, NETCONN_JOIN);
netconn_bind(conn, IP_ADDR_ANY, 1234);//7);
... etc..

//...... tcpecho_thread...
conn = netconn_new(NETCONN_TCP);
netconn_bind(conn, IP_ADDR_ANY, 7);
netconn_listen(conn);
... etc..

 

 

0 项奖励
1 解答
1,399 次查看
avbot
Contributor III

Turns out that the issue was that I had 

#define CHECKSUM_BY_HARDWARE

and it seems HW CHKSUM its not supported by the SDK yet.

在原帖中查看解决方案

4 回复数
1,400 次查看
avbot
Contributor III

Turns out that the issue was that I had 

#define CHECKSUM_BY_HARDWARE

and it seems HW CHKSUM its not supported by the SDK yet.

1,473 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi avbot:

 

could you please let me know the SDK version you are using.

 

Regards

Daniel

0 项奖励
1,445 次查看
avbot
Contributor III

Hi Daniel, any update?

0 项奖励
1,470 次查看
avbot
Contributor III

Hi we are using v2.9.1

0 项奖励