W5200 disconnect 관련 질의
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: W5200 disconnect 관련 질의
by becky ·
안녕하세요
현재상황만 봐서는 Interrupt가 발생하지 않는것 같은데, 다른 요인도 있는것인지 확인해봐야할것 같습니다.
우선, IR값을 확인해보세요.
추가적으로 Sn_IR_TIMEOUT의 값이 0x08로 정상적으로 define이 되어있는지
Sn_IMR레지스터의 값이 0xFF로 설정되어있는지 확인부탁드립니다.
default값으로 따로변경하지 않으셨다면, 위의 값대로 설정되어있어야 합니다.
감사합니다.
RE: W5200 disconnect 관련 질의
by gman777 ·
안녕하세요
확인해 보았는데 Timeout 08, SnMR은 0xff 정상적으로 초기화 되어 있습니다.
참고로 Loop Back 예제에서는 Interrupt 방식을 사용하지 않은것 같아서 그것과 유사하게 Hardware를 만들었습니다.
반드시 Interrupt 방식을 사용해야 하는가요?
RE: W5200 disconnect 관련 질의
by becky ·
안녕하세요
제 설명에 오해가 있었나보네요
Interrupt 방식을 사용하는것이 아니라,
Timeout 발생시 Socket IR레지스터의 값이 바뀌게 되어있습니다.
IR레지스터값이 update되지않아 close 명령이 send 되지않고, 상태가 close되지 못하기 때문에 while문을 빠져나오지 못하는것같습니다.