Plugged/unplugged ethernet cable
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: Plugged/unplugged ethernet cable
by lr15 ·
I don’t think so with W5300. But depending on the socket mode you are using, you might have some answer here.
If it’s TCP then check out RTR and RCR registers. If the transmission doesn’t succeed even after the retries they’ll eventually close the socket. So when you do TCP, status register would ideally be in established state as long as everything is fine. If you unplug the cable, the time out will cause the socket to close and the status register will now be in closed state.
RE: Plugged/unplugged ethernet cable
by Daniele ·
Ok, I’ll try the 2 solutions!!!
Thanks to midnightcow and lr15 for the answer.
RE: Plugged/unplugged ethernet cable
by mboehmer ·
Dont forget the pullup, otherwise you will read garbage on this GPIO pin.
uC internal pullup on GPIO usually is sufficient.
Michael