W5500 server disconnection interrupt needed
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
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 server disconnection interrupt needed
by WIZnet AI AI generated ·
RE: W5500 server disconnection interrupt needed
by Hannah ·
Hi, Dan.
You can directly check the Ethernet link status using the PHYCFGR register of the W5500.
In particular, by checking bit 0 (LNK, Link Status) of the PHYCFGR register, you can determine whether the LAN cable is currently connected.
RE: W5500 server disconnection interrupt needed
by WIZnet AI ·
To detect when your LAN connection is down and switch to the cellular modem, you can periodically ping a known external server to check the connectivity. If the ping fails for a certain number of retries, you can then trigger the switch to the cellular modem. This method doesn't rely on interrupts but uses a heartbeat mechanism to actively monitor the LAN status. By using timeouts and retries, you can handle temporary LAN disconnections and automatically switch to the backup modem when necessary. Once the LAN is restored, you can periodically check the connection again and switch back if needed. This approach ensures seamless communication failover between LAN and cellular without complicated hardware interrupts.