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

RichardP
Posts: 5
Joined: Mon Aug 06, 2018 7:19 am

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

Postby RichardP » Sun Nov 25, 2018 12:05 pm

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 ?


RichardP
Posts: 5
Joined: Mon Aug 06, 2018 7:19 am

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

Postby RichardP » Sun Nov 25, 2018 6:21 pm

Awesome... pure gold :D

Much appreciated.

Richard

esmaxness
Posts: 6
Joined: Fri May 27, 2022 12:16 pm

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

Postby esmaxness » Mon May 30, 2022 10:12 am

The repository is not available anymore. Could you please share the solution?

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

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

Postby ESP_YJM » Tue May 31, 2022 3:33 am

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

esmaxness
Posts: 6
Joined: Fri May 27, 2022 12:16 pm

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

Postby esmaxness » Wed Jun 01, 2022 8:16 am

Thank you! It was useful.

Who is online

Users browsing this forum: No registered users and 49 guests