xieyaxiongfly / Atheros_CSI_tool_OpenWRT_src

GNU General Public License v2.0
114 stars 53 forks source link

Getting corrupt .dat file #69

Open mamdouhJ opened 2 years ago

mamdouhJ commented 2 years ago

I am trying to send 10 packets between two openwrt wdr-4300 routers. The receiver is getting the packets however after I stop the recvCSI function and get the .dat file I can't read the data. I tried the Matlab script supplemented in the repo. the error I get is Unrecognized function or variable 'read_csi'. although the read_csi.c file is in the directory. I tried csikit but couldn't get anything as well. When I try to open the file with Wireshark it tells me that The capture file appears to have been cut short in the middle of a packet.

Im running ./bin/recvCSI csi.dat at the receiver router and after 10 received packets I quit recvCSI and transmit the .dat file to the computer. I am suspecting that there's something wrong with the way Im handling the file at the receiver end.

Any help is greatly appreciated.

Thank you

putterer commented 2 years ago

Did you try taking a look at the data manually by using a hex editor / reading it in your own script based on the recvCSI tool's code?

You can also try giving my CSI framework, based on this tool, a shot: https://github.com/putterer/csi-client-app (I sadly don't have that much knowledge about the recvCSI tool's output as I've been using my own tool based on that)

It contains a modified recvCSI (https://github.com/putterer/csi-auxiliary/raw/main/router/csi-server-openwrt-prebuilt-executable) tool that ships off the CSI obtained using this tool to a client application for previewing and processing in real time (https://github.com/putterer/csi-client-app/releases).