W7500(P) Get destination IP of received UDP packet
MCU & Boards
No replies yet. Be the first to reply.
Join the discussion.
MCU & Boards
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: W7500(P) Get destination IP of received UDP packet
by Kei ·
Hi, Rob.
As you already know, the UDP Header itself does not have an IP address. The IP Header has that information.
Since the W7500 chip uses the H / W TOE, this information is handled at the H / W level.
Among them, it uploads information that user often needs.
But, Destination ip address information of received UDP packet is not provided.
However, there is a way to distinguish.
On the W7500, you can block Unicast, BroadCast, and Multicast through the socket settings.
Refer to below link.(datasheet)
[url]http://wizwiki.net/wiki/lib/exe/fetch.php?media=products:w7500:w7500_rm_v106.pdf[/url]
To do this, refer to the Sn_MR Register in the Datasheet, pages 59-61.
In other words, you only need to open two sockets and only non-blocking Unicast and Broadcast respectively.
If you do so, you can only receive unicast packets for A sockets and broadcast packets for B sockets, so you can see what kind of cast the received packet is.
I hope this helps.
Best Regard,
Kei.