Can W5500 send packet to itself
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: Can W5500 send packet to itself
by Eugeny ·
Try the following: include router into the network segment, and configure it in GAR register. Will it work then?
RE: Can W5500 send packet to itself
by gogodick ·
At first, thanks a lot for you suggestion.
No, it does not work. And I can’t capture the outgoing packet on ethernet.
If the target address is itself, I think the TCP/IP stack should not send packet to PHY, and the packet should be handled internally.
It seems W5500 does not support this feature, and it will send every packet to ethernet. Is that correct?
RE: Can W5500 send packet to itself
by Eugeny ·
I do not know. From application point of view such loopback of not much use, thus I would not be surprised that it is not implemented as you suggest.
However, if W5500 would use its standard algorithm, it would need to resolve its IP address into MAC address (using its internal ARP cache [not sure if it has one BTW] or sending broadcast ARP request - and this one you would see with Wireshark), and then transmitting the packet to its another listening socket.
RE: Can W5500 send packet to itself
by gogodick ·
For example, ping 127.0.0.1
When ethernet is not working, we can use this to verify that TCP/IP stack is still working.
It seems that W5500 does not have any arp cache, when I ping the same address for 5 times, I can capture 5 arp packets.
If the target address is itself or 127.0.0.1, this chip only needs to copy the packet from TX buffer to RX buffer.
Anyway, really appreciate your help!
RE: Can W5500 send packet to itself
by Eugeny ·
Localhost is supported by the operating system and not NIC, do not forget about it.
Let’s look at it differently. Why do you need to send information to self? Would it be better to manage data transfer on the driver/application level? Probably you can change your goal so that this issue would not need to be solved at all.