Page 1 of 1

using ESP32 as a MAC+PHY (disable lwIP ? )

Posted: Sun Nov 25, 2018 12:05 pm
by RichardP
Hi all,

I am trying to create a device that passes on RAW ethernet frames - so I wasnt to use the RADIO but not have an IP stack. I want to create an TCPIP_ADAPTER that just gets ethernet frames and and passes them over to WIFI for transmission and vice versa. I just want to use the ESP32 as a MAC/PHY

I am looking to do
* Associate with AP
* Get Ethernet Frame via GPIO on ESP32
* Reformat frame to 802.11 and Send over Wifi

receiving in the opposite... remove Wifi fields and re-format frame for Wired ethernet and send over GPIO to another device.

If I disable LWIP, then compilation fails as there are lots of dependencies on IP in event_default_handler.c and other places.

Is there a cleaner way or removing lwIP ? or just hack out the pieces..



One of the errors

Code: Select all

/home/richard/esp/esp-idf/components/esp32/event_default_handlers.c:298:9: note: in expansion of macro 'ESP_LOGD'
         ESP_LOGD(TAG, "SYSTEM_EVENT_STA_GOT_IP, ip:" IPSTR ", mask:" IPSTR ", gw:" IPSTR,
Any hints ?

Re: using ESP32 as a MAC+PHY (disable lwIP ? )

Posted: Sun Nov 25, 2018 2:11 pm
by WiFive

Re: using ESP32 as a MAC+PHY (disable lwIP ? )

Posted: Sun Nov 25, 2018 6:21 pm
by RichardP
Awesome... pure gold :D

Much appreciated.

Richard

Re: using ESP32 as a MAC+PHY (disable lwIP ? )

Posted: Mon May 30, 2022 10:12 am
by esmaxness
The repository is not available anymore. Could you please share the solution?

Re: using ESP32 as a MAC+PHY (disable lwIP ? )

Posted: Tue May 31, 2022 3:33 am
by ESP_YJM
esmaxness wrote:
Mon May 30, 2022 10:12 am
The repository is not available anymore. Could you please share the solution?
You can find it here https://github.com/espressif/esp-iot-so ... s/eth2wifi

Re: using ESP32 as a MAC+PHY (disable lwIP ? )

Posted: Wed Jun 01, 2022 8:16 am
by esmaxness
Thank you! It was useful.