cancel
Showing results for 
Search instead for 
Did you mean: 

Ethernet tool to analysis

Ash1
Associate III

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

7 REPLIES 7

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

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

 

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.

Hi

Thank you will try the same .

B.R

Ash


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

https://stackoverflow.com/questions/70661217/is-it-possible-to-receive-raw-ethernet-frames-in-linux-without-specifying-an-int/70671654

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.

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.
mƎALLEm
ST Employee

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.

Have you looked at LWIP_HOOK_UNKNOWN_ETH_PROTOCOL: at https://www.nongnu.org/lwip/2_1_x/group__lwip__opts__hooks.html#ga6cc92f5101dd7a0420e18e1f2101abf4

via: https://community.st.com/t5/stm32-mcus-embedded-software/example-using-hal-eth-without-lwip-for-raw-ethernet-frames/m-p/416846/highlight/true#M31457

You might get some ideas from the rest of that thread...

 

Also: https://community.st.com/t5/stm32-mcus-embedded-software/goose-message-sending-using-lwip/m-p/158029/highlight/true#M9287

 

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.