StevenMHernandez / ESP32-CSI-Tool

Extract Channel State Information from WiFi-enabled ESP32 Microcontroller. Active and Passive modes available. (https://stevenmhernandez.github.io/ESP32-CSI-Tool/)
https://stevenmhernandez.github.io/ESP32-CSI-Tool/
MIT License
262 stars 72 forks source link

Does obtaining CSI information through either an active or passive station (STA) or access point (AP) occupy both cores? #86

Open jayavanth opened 1 year ago

jayavanth commented 1 year ago

Wondering I can record from microphone on the second core while I'm collecting CSI

StevenMHernandez commented 1 year ago

Interesting question. WiFi in general occupies a single core. None of the other tasks for this project specifically request the usage of the other core. I believe that you could dedicate the second core to this task. Does sound recording require 100% CPU usage on a core?

If you already have microphone recording code, it should be simple enough to try this out by editing (https://github.com/StevenMHernandez/ESP32-CSI-Tool/blob/master/active_ap/main/main.cc).

Good luck. Please let me know if you discover any engineering issues/solutions.

jayavanth commented 1 year ago

Thanks! I'll try it out. To elaborate on my application:

  1. I have a computer that has AP that is receiving pings from ESP32-S3 for CSI
  2. ESP32-S3 is also sending the CSI data it collects back to the computer
  3. Computer does motion detection and responds back
  4. On Core 1, mic is running and also streams to the computer and gets response back

This is seeming less likely. But I guess at least steps 1-3 should be doable right?

Not sure about mic's usage. I'm guessing it's pretty high. Will check it out