2022-02-19 05:35 PM
I started seeing the problem when I took the working example from pack 2.0.0 (STM32H723NG) and added the UART side of my project. I had also modified some of the NetX code to suit the server application for the client I intend connecting with. Part of the mod was to take out the echo and send data later based on commands received from the Uart. Doing so would simply stop the server from receiving from the client after about 5 transfers. Everything is running fine but the server no longer receives.
Going back the example, simply commenting out the line containing:
/* immediately resend the same packet */
ret = nx_tcp_socket_send(&TCPSocket, data_packet, NX_IP_PERIODIC_RATE);
causes the same errant behavior.
Is this an expected behavior with TCP servers that the server must reply using the send function?