seemoo-lab / mobisys2018_nexmon_channel_state_information_extractor

Example project for extracting channel state information of up to 80 MHz wide 802.11ac Wi-Fi transmissions using the BCM4339 Wi-Fi chip of Nexus 5 smartphones.
Other
99 stars 39 forks source link

Real time data analysis #25

Open bachejames opened 4 years ago

bachejames commented 4 years ago

Fantastic git!

I'm wondering if anyone has tried to capture and analyse the CSI data in real-time using this extractor?

I've seen people successfully do it with this approach, though can't see anything on this git about it.

My guess is if sticking to the original approach, you'd somehow have to feed back the constantly updating .pcap file from the Nexus 5 to the computer and then adjust the Matlab code to somehow constantly run the updated file?

Many thanks for anyone's thoughts!

gkpln3 commented 4 years ago

You can pipe the output of tcpdump to stdout (or some other way, even TCP) and parse it in real time.

# Create a pipe to redirect the data through.
mkpipe /tmp/pipe

# Serve the data on port 7777
tcpdump -i wlan0 -xxx -w /tmp/pipe & cat /tmp/pipe | nc -l 7777

On your PC access the data through port 7777 nc [PHONE_IP_ADDRESS] 7777