cancel
Showing results for 
Search instead for 
Did you mean: 

GOOSE message sending using lwip

ASemy.1
Associate

I'm trying realize with IEC61850 . I try to do GOOSE Publisher device. As I understood, GOOSE message goes to NET without any headers. I use lwip library. I found there IP_Forward functions, wich help send dirrectly my message to NET. But it also adds headers to my message. Maybe you can advice to me what kind of functions I need to use to send message without any headers to NET. Example of GOOSE Ethernet frame is here. Thanks!0693W00000597ziQAA.jpg

1 REPLY 1
Piranha
Chief II

To implement a custom L3 layer protocol, you need a direct access to L2 (Ethernet) layer API. With lwIP this can be done by using LWIP_HOOK_UNKNOWN_ETH_PROTOCOL() for reception and ethernet_output() for transmission.

By the way, if you don't need at least something of ARP, ICMP, IP, then most likely you don't need lwIP or any other IP stack at all.

P.S. Be warned: https://community.st.com/s/question/0D50X0000BOtfhnSQB/how-to-make-ethernet-and-lwip-working-on-stm32