W5500 UDP 연결후 수신이 안됩니다.
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 UDP 연결후 수신이 안됩니다.
by irina WIZnet ·
첨부 부탁드립니다.
RE: RE: W5500 UDP 연결후 수신이 안됩니다.
by dgkdigital ·
RE: W5500 UDP 연결후 수신이 안됩니다.
by irina WIZnet ·
Pcap의 파일형태로 부탁드립니다. 해당 부분만을 보고 답변드리기 어렵습니다.
RE: W5500 UDP 연결후 수신이 안됩니다.
by dgkdigital ·
캡쳐자료.zip (1.2 KB)
RE: RE: W5500 UDP 연결후 수신이 안됩니다.
by irina WIZnet ·
모듈 ->PC로 보낼때는 port 가 1004 → 20000 으로 보내고
PC ->모듈로 보낼때는 port가 1004 → 1004로 보내고 있습니다.
이유가 있는건가요?
RE: W5500 UDP 연결후 수신이 안됩니다.
by dgkdigital ·
PC측에서 송수신 포트를 다르게 요청을 해서
다르게 사용하고 있습니다.
같은 포트로 캡쳐한 파일 첨부드립니다.
같은 포트 사용해도 수신은 못하네요. 그리고 TCP는 송수신 잘됩니다.캡쳐(동일포트).zip (4.2 KB)
RE: W5500 UDP 연결후 수신이 안됩니다.
by dgkdigital ·
UDP 사용시 wizchip_con.h 내용을 변경을 해야 하나요?
RE: W5500 UDP 연결후 수신이 안됩니다.
by dgkdigital ·
PC측 송신 프로그램을 다른걸로 하니 제대로 수신됩니다.

TCP에서는 잘되어 믿고 사용했는데, 원인은 모르겠습니다.
그런데 수신Data 사이즈가 보낸것 보다 많은 Data를 수신 하였습니다.
이전에 보낸Data가 뒤에 이어서 나옵니다. 원인이 뭘까요?
“0123456789” 10byte를 보냅니다.
위의 Data는 받은 Data를 RS232로 프린터 한 Data 결과입니다.
캡쳐Data는 10Bytes라고 되어 있습니다.캡쳐.zip (759 바이트)
실제로 수신 길이를 디버깅 하면 18byte가 됩니다.
RE: W5500 UDP 연결후 수신이 안됩니다.
by dgkdigital ·
IO 라이브러리는 ret = recvfrom(sn, buf, size, destip, (uint16_t*)&destport); 에서 받은 ret를 실제 사이즈로 사용하고 있네요. 이렇게 하니 정상입니다.
size = getSn_RX_RSR(sn) 의 사이즈가 8bytes 많은 이유는 뭔가요?
감사합니다.
RE: RE: W5500 UDP 연결후 수신이 안됩니다.
by becky ·
안녕하세요
Receive buffer의 실제로 수신하는 데이터는 아래와 같습니다.
recvfrom()함수에서 이를 파싱한후 데이터를 반환합니다.
아래 링크 참고하시기 바랍니다.