Measure the duration of the wifi ISR

nofavor
Posts: 1
Joined: Fri May 22, 2020 10:26 pm

Measure the duration of the wifi ISR

Postby nofavor » Fri May 22, 2020 10:32 pm

Hello,

I plan to measure the duration of the wifi ISR for an experiment, but sadly I have no clue on where to start. I couldn't find anything useful so far and i'd really appreciate it if you can give me hints or links on where to start. Thanks.

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

Re: Measure the duration of the wifi ISR

Postby ESP_Sprite » Sat May 23, 2020 12:52 pm

What is your purpose of measuring this? The 'WiFi ISR' is pretty much wrapped up in the WiFi driver itself, so it's probably not that useful to know...

User avatar
jgustavoam
Posts: 134
Joined: Thu Feb 01, 2018 2:43 pm
Location: Belo Horizonte , Brazil
Contact:

Re: Measure the duration of the wifi ISR

Postby jgustavoam » Tue Jun 23, 2020 1:55 am

Hi,
If you really need to measure the duration of the WIFI or another ISR, you can use this method (used by me) :
Setup one GPIO pin as an output.
Before ISR, put this pin LOW. When ISR starts, put this pin HIGH (inside Interrupt handler). At the end of handler put this pin LOW.
An then with one cheap Logic analyzer, capture the times of that GPIO.
Retired IBM Brasil
Electronic hobbyist since 1976.

Who is online

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