2020-10-23 02:38 AM
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!
2020-10-23 05:19 AM
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