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

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

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

Jump to solution
1,466 Views
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 Kudos
1 Solution
1,376 Views
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.

View solution in original post

4 Replies
1,377 Views
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,450 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi avbot:

 

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

 

Regards

Daniel

0 Kudos
1,422 Views
avbot
Contributor III

Hi Daniel, any update?

0 Kudos
1,447 Views
avbot
Contributor III

Hi we are using v2.9.1

0 Kudos