[W5300] 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: [W5300] UDP 데이터 버퍼 수신 중 초기화
by justinkim ·
예를 들어보겠습니다.
1000byte data를 가진 패킷을 수신했을시
buffer에는 8byte의 ip정보가 들어있는 header와 1000byte의 data가 쌓이게 됩니다.
CR_RECV의 경우 pointer를 업데이트해줄 뿐이니
처음 8byte와 함께 500byte를 recv command로 포인트 업데이트 했을 시엔 데이터만 500byte가 남게됩니다.
이해가 되시는지요
만약 그렇게 사용하고 싶으시면 포인터 업데이트를 받은 패킷의 size만큼 더 해주시면 됩니다.
즉 recv 함수를 수정하셔서 사용하셔야합니다.
감사합니다.