-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSI collection not working correctly #292
Comments
Pilot and Null subcarriers have arbitrarily high csi values and are over shadowing you actual csi data. Indices for different bandwidths are available here: https://github.com/nexmonster/nexcsi/blob/main/nexcsi/__init__.py#L5 Or you can use the https://github.com/nexmonster/nexcsi and remove the pilots and nulls as decribed in https://github.com/nexmonster/nexcsi#null-and-pilot-subcarriers |
Er, it doesn't seem the right nulls and pilot values have been removed. For an 80 MHz channel, these are the indices Or maybe your CSI is just like that. Can you post a pcap with 10-20 packets? |
the indices seem correct. This is one of my pcap files |
import numpy as np
import matplotlib.pyplot as plt
from nexcsi import decoder
device = "rtac86u" # nexus5, nexus6p, rtac86u
samples = decoder(device).read_pcap('lab_trial_2.pcap')
# Accessing CSI as type complex64
csi = decoder(device).unpack(samples['csi'], zero_nulls=True, zero_pilots=True)
f, (ax1, ax2) = plt.subplots(2, 1)
ax1.plot(np.abs(csi[0])) # Amplitude
ax2.plot(np.angle(csi[0])) # Phase
plt.show() |
I already saw this code.. I'm working on Matlab though, with the csireader.m code |
Ah. Then maybe modify it to set these indices to 0. Python array index starts from 0 while matlabs starts from 1, so maybe that's the confusion? I don't know matlab much, however, so I can't help you with that. |
No no I already shifted indices by 1, it doesn't work. I'm going to work with python. Thank you anyway |
Your question is not related to this issue. Please, don't choose random issues and post your questions there! |
I am very sorry for my impoliteness.I will delete my comment.Sorry for this again. |
I tried to collect CSI with ASUS RT-AC86U but this is the plot that I got, that's the CSI amplitude (80 Mhz) for each receiving antenna. I couldn't find what's the problem while I'm collecting it.

The text was updated successfully, but these errors were encountered: