Skip to main content
Associate III
April 25, 2025
Solved

Ethernet tool to analysis

  • April 25, 2025
  • 3 replies
  • 724 views

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

3 replies

Andrew Neil
Super User
April 25, 2025

@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 ...

https://www.wireshark.org/

 

Nothing specific to STM32.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Ash1Author
Associate III
April 25, 2025

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

 

mƎALLEm
Technical Moderator
April 25, 2025

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.

mALLEm_1-1745582399625.png

 

 

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
mƎALLEm
Technical Moderator
April 25, 2025

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.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Andrew Neil
Andrew NeilBest answer
Super User
April 25, 2025
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.