2025-04-25 4:35 AM
Hi
I am trying to communicate via ethernet on STm32f407 board with phy LAN8720. I have used TCP protocol and I have used Hercules for sending and reciving frame. But I want to acheive the operation sung HAL_ETH_Transmit (I want to send raw ethernet frame ).
note: Can you suggest me any tool I can use to analysis Ethernet frame (send and recv.) tool like USB CAN analyzer for CAN .
B.R
Ash
2025-04-25 4:38 AM - edited 2025-04-25 4:42 AM
@Ash1 wrote:any tool I can use to analysis Ethernet frame (send and recv.)
As I said in your earlier thread, Wireshark is the de facto standard ...
Nothing specific to STM32.
2025-04-25 4:45 AM - edited 2025-04-25 4:55 AM
hi Andrew
Can you tell me how I can send a frame via wireshark to my board.
Note1: I have achieved sending and reception via hercules, But now I want to achieve with raw frame using HAL library directly instead of TCP/UDP protocols and I can see frame on tool and can send frame from tool this was my query (I have tried Wireshark but I am unable to understand how I can send frame to my board ) I hope you got my point?
Note2: Is it possible whatever I asked you above or using TCP/UDP any protocol is mandatory?
B.R
Ash
2025-04-25 5:00 AM - edited 2025-04-25 5:35 AM
To my knowledge Wireshark is not intended to send ETH frames but to sniff and scan the network.
You can use Hercule to send and receive TCP or UDP packets.
2025-04-25 5:08 AM
Hi
Thank you will try the same .
B.R
Ash
2025-04-25 5:39 AM
@Ash1 wrote:Can you tell me how I can send a frame via wireshark to my board.
I don't know - ask here: https://ask.wireshark.org/questions/
Like @mƎALLEm, I think it's primarily a monitoring tool.
Perhaps something like this might help:
Try searching for "raw ethernet frames" in your favourite internet search engine...
@Ash1 wrote:Is it possible whatever I asked you above or using TCP/UDP any protocol is mandatory?
Many things besides IP-based protocols use Ethernet frames.
2025-04-25 5:46 AM - edited 2025-04-25 5:46 AM
There is also https://packetsender.com/ or Release EchoTool · PavelBansky/EchoTool (github.com). tools motioned in this article: How to create a IPv4 NetXDuo Ethernet UDP application for STM32H5 with TrustZone® enabled
See the section 12. Testing the application in the article.
2025-04-25 6:39 AM
Have you looked at LWIP_HOOK_UNKNOWN_ETH_PROTOCOL: at https://www.nongnu.org/lwip/2_1_x/group__lwip__opts__hooks.html#ga6cc92f5101dd7a0420e18e1f2101abf4
You might get some ideas from the rest of that thread...