How to send or dump Wi-Fi CSI packet data to my host PC with USB?

david711205
Posts: 9
Joined: Fri Sep 28, 2018 9:22 am

How to send or dump Wi-Fi CSI packet data to my host PC with USB?

Postby david711205 » Fri Sep 28, 2018 9:35 am

Hi all:
I used console to enable Wi-Fi CSI function.
But I have no idea about how to send or dump Wi-Fi CSI packet data to my host PC with USB when CSI callback function returns CSI packet data everytime.

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

Re: How to send or dump Wi-Fi CSI packet data to my host PC with USB?

Postby ESP_Sprite » Fri Sep 28, 2018 10:56 am

The USB you mention is in all probability a serial-to-usb converter on your devboard. as such, you can just send it over your serial port (printf?) in some format (suggest binary or base64-encoded) and write a program PC-side to grab it off the emulated serial port.

david711205
Posts: 9
Joined: Fri Sep 28, 2018 9:22 am

Re: How to send or dump Wi-Fi CSI packet data to my host PC with USB?

Postby david711205 » Sat Sep 29, 2018 12:30 am

Could you give me an simple c code example on esp32 side and PC side(if we use fwrite() to send binary data to PC )

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

Re: How to send or dump Wi-Fi CSI packet data to my host PC with USB?

Postby ESP_Sprite » Sat Sep 29, 2018 12:09 pm

No, sorry, I'll leave that up to you.

jonathanmuller
Posts: 6
Joined: Thu Feb 07, 2019 9:20 am

Re: How to send or dump Wi-Fi CSI packet data to my host PC with USB?

Postby jonathanmuller » Thu Feb 07, 2019 9:31 am

Hi,

If you are interested I recently did it : https://github.com/jonathanmuller/ESP32 ... ation-CSI-
It logs 802.11n frames as well as CSI from the ESP32 to a linux running PC

Who is online

Users browsing this forum: No registered users and 83 guests