A fast and simple decoder for Nexmon_CSI
Project description
Nexcsi
Nexcsi is a fast and simple CSI decoder for Nexmon_CSI files written in Python.
pip install nexcsi
Usage
from nexcsi import decoder
device = "raspberrypi" # nexus5, nexus6p, rtac86u
samples = decoder(device).read_pcap('pcap/output10k.pcap')
print(samples['rssi']) # [-75 -77 -77 ... -77 -76 -76]
print(samples['fctl']) # [128 148 148 ... 148 148 148]
print(samples['csi']) # [[ 19489 0 -19200 -96 -42 ...
# samples is a Numpy Structured Array
print(samples.dtype)
# [
# ('magic', '<u2'), ('rssi', 'i1'), ('fctl', 'u1'),
# ('mac', 'u1', (6,)), ('seq', '<u2'), ('css', '<u2'),
# ('csp', '<u2'), ('cvr', '<u2'), ('csi', '<i2', (512,))
# ]
# Accessing CSI as type complex64
csi = decoder(device).unpack(samples['csi'])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nexcsi-0.3.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
nexcsi-0.3.0-py3-none-any.whl
(6.9 kB
view hashes)