Skip to main content
Visitor II
October 23, 2020
Question

GOOSE message sending using lwip

  • October 23, 2020
  • 1 reply
  • 1810 views

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

    This topic has been closed for replies.

    1 reply

    Graduate II
    October 23, 2020

    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