What ISR is called upon packet receive over WiFi?

ille111
Posts: 6
Joined: Thu Feb 06, 2020 1:09 pm

What ISR is called upon packet receive over WiFi?

Postby ille111 » Tue May 05, 2020 2:01 pm

Hey everyone,

I was wandering if it is possible to see the code that is executed when a network packet is received by a NIC. I want to reconstruct the "way" a packet takes through the kernel until its payload is used by a user task. In the reference manuals I was only able to find programming models and events that are used for status updates of the wifi module.

Best Regards!

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

Re: What ISR is called upon packet receive over WiFi?

Postby ESP_igrr » Tue May 05, 2020 9:32 pm

Hi ille111,

The packet handling is done inside the Wi-Fi driver, and the Wi-Fi interrupt handler is also part of it. Conceptually the flow is very similar to that in the other peripherals: an interrupt handler sends an element to a FreeRTOS queue, which wakes up a high-priority Wi-Fi task. That task does some processing and passes the packet to the network interface layer (esp_netif in IDF 4.1+, tcpip_adapter before that).

Who is online

Users browsing this forum: Abisha, Baidu [Spider], Hello1024, Remenyo and 292 guests