cancel
Showing results for 
Search instead for 
Did you mean: 

Why do the client to server transactions in the Nx_TCP_Echo_Server example stop after 4 to 5 messages sent by the client if the nx_tcp_socket_send(&TCPSocket, data_packet, NX_IP_PERIODIC_RATE); call to echo the data back is not made?

GGree.1
Associate III

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?

0 REPLIES 0