Forum Discussion
How to tune azure netxduo to receive more incoming connections?
Hello,
I am using the stm32h563 processor in my project. I made a TCP Server application using the ethernet connections of this processor and I was able to run it as I wanted. But I saw that it could not connect to another client over the same IP address without breaking the connection with one client. Even though I set the NX_MAX_PHYSICAL_INTERFACES defined value to two, there was no change. Also, in the files I shared, it is said that we can make a tcp server and 2 tcp client connections and open a separate socket for each (1).
After some research, I realized that this problem can be solved with lwip + freertos. Below are examples of these solutions. How can I make a similar solution on Azure RTOS Netx side?
Our problem with lwip + freertos solved community issue(2) was previously shared and the solution was "By tweaking the options in lwipopts.h, it should be possible to receive more incoming connections: MEMP_NUM_TCP_PCB, MEMP_NUM_TCP_PCB_LISTEN, MEMP_NUM_NUM_NETCONN, etc... " was returned as ".
As a similar header you can see the extension(3) under the References header.
References:
https://learn.microsoft.com/en-us/azure/rtos/netx-duo/overview-netx-duo
(2)https://community.st.com/t5/stm32-mcus-embedded-software/how-to-tune-lwip-to-receive-more-incoming-connections/td-p/227809
(3) https://community.st.com/t5/stm32-mcus-embedded-software/i-hope-to-achieve-one-to-many-connections-using-tcp-socket/m-p/592109
Best Regards
Eren Akyol