클라이언트 접속 상태 확인 궁금 사항
General
No replies yet. Be the first to reply.
Join the discussion.
General
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: 클라이언트 접속 상태 확인 궁금 사항
by chlee ·
제가 자료를 잘 찾아 보지 않았군요 – w5200 데이터 시트
parallax.com/sites/default/f … asheet.pdf
문서에 있는 내용중 22 페이지 PHYSTATUS Register 내용을 주기 적으로 읽으면 접속 상태(하드웨어 연결 상태)를 확인 할 수 있는듯 하네요.
RE: 클라이언트 접속 상태 확인 궁금 사항
by hjjeon0608 ·
안녕하세요.
PHY status를 체크하는 방법도 하나의 방법일 수 있지만,
이 경우 5200이 스위치나 라우터에 물려 있을 경우 서버측의 연결 끊김을 판단 할 수 없습니다.
가장 좋은 방법은 데이터를 보내보는 겁니다. 데이터를 보내게 되면 timer가 동작을 시작하고 time out이 발생하면
자동으로 close 상태로 됩니다. 서버측의 연결이 끊기면 ACK를 받지 못하기 때문에 time out이 발생하게 됩니다.
감사합니다.
전혁진 드림.
RE: 클라이언트 접속 상태 확인 궁금 사항
by jameskim ·
이러한 경우에 대응하기 위해서 만들어진 기능이 KEEPALIVE 기능입니다.
위즈네트의 예제 코드에서 KEEPALIVE 기능을 참고하세요.