WiFi Radio WITHOUT lwIP dependence?

asicontrols
Posts: 1
Joined: Mon Jul 31, 2017 9:23 pm

WiFi Radio WITHOUT lwIP dependence?

Postby asicontrols » Mon Jul 31, 2017 10:04 pm

Can the ESP32 send/receive wireless packets for an external lwIP stack (not running on this ESP-WROOM-32 module itself)? We are interested in using the USB serial bridge as a bi-directional network interface to the ESP-32 WiFi radio.

I have experimented with esp_wifi_internal_tx() function and it does return success error codes in my tests, but I haven't yet been able to sniff any actual data...

It is a legitimate commercial application, with some volume potential, and I don't see ANY reason why I shouldn't be able to send aribitrary 802.11 data frames without the overhead of the lwIP stack on the ESP32.

Hoping to hear from Espressif engineer ideally...

Thanks to anyone who has useful information on this issue.

Regards,

Paul Chapman
CTO, ASI Controls

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: WiFi Radio WITHOUT lwIP dependence?

Postby ESP_Sprite » Tue Aug 01, 2017 1:34 am

Yes, that should be possible: esp-idf/components/lwip/port/netif/wlanif.c describes the interface used by the internal LWIP; you could disable lwip entirely and use the code there as an interface into the wireless subsystem.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: WiFi Radio WITHOUT lwIP dependence?

Postby ESP_igrr » Tue Aug 01, 2017 10:33 am

Also, take note that this function does not let you send arbitrary 802.11 frames, but rather Ethernet frames. You need to make sure that connection to an AP or STA is established before you try to send anything using this API.

That said, this is still considered to be an internal API. If you wish that to be changed, please raise your request via Espressif sales channels.

Who is online

Users browsing this forum: lxkxst and 111 guests