W5500 IO Library hanging (no PING) - using http and snmp server code
IO Modules
No replies yet. Be the first to reply.
Join the discussion.
IO Modules
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: W5500 IO Library hanging (no PING) - using http and snmp server code
by Grace_Koo WIZnet ·
You can refer to the following WIZnet official examples and adapt their structure and socket handling logic to your application:
HTTP server example
https://github.com/WIZnet-ioNIC/WIZnet-PICO-C/tree/main/examples/http/server
SNTP example (periodic network communication and timeout handling)
https://github.com/WIZnet-ioNIC/WIZnet-PICO-C/tree/main/examples/sntp
These examples show how to structure the main loop, manage socket states, and handle periodic network tasks more robustly.
RE: RE: W5500 IO Library hanging (no PING) - using http and snmp server code
by allenhuffman ·
Thank you for this reply last year.
Neither of those examples have any code to detect if the network stack fails. They just sit in a loop calling the *_run() routine.
We have used Wiznet chips on three different designs so far, but this is the first one I have actually had time to test longevity with. Surely it cannot be common for the stock code to just hang if left running.
For our product, that won't be acceptable. I have a watchdog to catch lockups, but I need some way to probe the network stack and see if it is still alive.