I amb developing a project using a w5500 to make UDP and TCP transmissions via Ethernet with a custom board.
In some occasions, after some time with the board working, the router crashes, causing all connected devices to lose internet connection. Working time before the crash may vary from few minutes to full hours, and there are usullay resets in the middle for debug purposes.
As soon as the ethernet is unplugged from the board, router’s behavior goes back to normal and the network internet is restored without the need of reset.
The problem was supposedly caused by not correctly closing the sockets. Recently I solved a part of code that kept some sockets from correctly disconnecting and closing, and the router problem has not repeated ever since. However, I want to make sure if this was the real cause. I will do some testing, but I would love to know the theory behind this misbehavior, what might cause the router to react this way, and get correction if my assumption is wrong.
- The created sockets are one UDP to get a DNS ip address, and two TCP sockets.
- W5500 source IP and port are configured static.
- Devices connected to router use both ethernet and wifi. They all lost internet.
Thanks in advanced for the contributions in that topic.
If any more information is acquired, it will be posted.