Skip to content

Questions and issues with csi matrix #56

@Jaesuru

Description

@Jaesuru

Hello! I am completely new to the topic of CSI and trying to extract it for using it with detecting human poses, and etc. I've obtained a .pcap file type from extracting it on a Raspberry Pi using Nexmon's tool, and I just now need to use CSIKit to parse that data and obtain the CSI matrix. However, when I ran the code with Python and turned it into the format of a .mat file, all the values in the matrix table were negative numbers and doubles. I was told that I am supposed to receive complex doubles and a mix of positive/negative numbers. How do I solve this issue? My code is down below here that I've did some changes on to convert into .mat

from CSIKit.reader import get_reader
from CSIKit.util import csitools
import scipy.io as sio

pcap_file = "path/to/file.pcap"

my_reader = get_reader(pcap_file)

csi_data = my_reader.read_file(pcap_file, scaled=True)

csi_matrix, no_frames, no_subcarriers = csitools.get_CSI(csi_data)

data_for_matlab = {
'csi_matrix': csi_matrix,
'no_frames': no_frames,
'no_subcarriers': no_subcarriers
}

mat_file = "path/to/file.pcap"
sio.savemat(mat_file, data_for_matlab)

Help with this would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions