ESP32-WROOM-DA: Need WiFi Interface Details

fester225
Posts: 5
Joined: Tue Feb 27, 2024 3:54 pm

ESP32-WROOM-DA: Need WiFi Interface Details

Postby fester225 » Thu Apr 04, 2024 10:18 pm

I have a project going which requires both UDP and TCP/HTTP access by my system. So far I have been unable to find any UDP Async WiFi libraries which operate with Arduino, let alone in conjunction with TCP. I'm thinking I'm going to have to write my own library to create the interface which will allow both protocols to run asynchronously at the same time.

Is there any documentation describing how the existing asynchronous WiFi libraries work on ESP32? I need to get down to the level of the memory address for the WiFi-Radio hardware interrupt.

BTW: What do people use to write assembly language for ESP32, to be used later as a .h file?

lbernstone
Posts: 826
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32-WROOM-DA: Need WiFi Interface Details

Postby lbernstone » Fri Apr 05, 2024 2:14 am

If you are a bit clearer about what you mean, we can help you much faster.
There are AsyncUDP and AsyncTCP libraries for arduino-esp32. They both run FreeRTOS tasks which then reach down to directly access the ESP-IDF functionality.
The ESP-IDF framework uses a customized version of LwIP (esp_lwip). LwIP provides sockets and many higher level protocols.
LwIP then interacts with the WiFi driver through Net-IF layer events.
The WiFi driver itself is a proprietary blob which does the radio control. The radio functions are not documented nor are they intended to be user-accessible.

Who is online

Users browsing this forum: Google [Bot] and 13 guests