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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nexcsi-0.3.0.tar.gz.
File metadata
- Download URL: nexcsi-0.3.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.7 Linux/5.19.10-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e322e6b5ba87e0fc8bb3156eb9a45c4ef5d13038107ca2985369c0f2e4ac93b9
|
|
| MD5 |
ce736f15b9411499c9b6d51b320fb759
|
|
| BLAKE2b-256 |
d5484b2bde6e77076bb855408290239fea1a8e3288ef1e697187648bb1878aec
|
File details
Details for the file nexcsi-0.3.0-py3-none-any.whl.
File metadata
- Download URL: nexcsi-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.7 Linux/5.19.10-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f482823bd348d384b70e9ea79d01a61bebcc46369aee4a4be43c968a3f81416
|
|
| MD5 |
481a079d81e10b229743c32039aff73f
|
|
| BLAKE2b-256 |
be2d9f116b77ba7b36bd48db698ead5f1df01fad8c71b146b2341a6f9d6c959a
|