mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 15:03:53 +01:00
Adapt python script to comply with python coding conventions, i.e. fixing error reported by flake8.
RIOT Spectrum Scanner Application
About
This script can be used to plot the radio signal spectrum when a connected node
is running the spectrum-scanner application application located in the parent
directory.
This node scans over the available radio channels performing CCA measurements
and outputting the measured ED level via a serial port. This output is then
parsed by the plot_rssi.py script included in this folder run on a host computer.
Dependencies
The plot_rssi.py script requires pyserial
for the serial port access, and matplotlib and
numpy for the plotting functionality.
Installing the dependencies:
Debian/Ubuntu
apt-get install python-serial python-matplotlib python-numpy
PIP
pip install pyserial matplotlib numpy
Usage
General usage:
-
Flash a RIOT node with the spectrum-scanner application from (https://github.com/RIOT-OS/applications/tree/master/spectrum-scanner)
-
Run the
plot_rssi.pyscript
$ ./plot_rssi.py <tty> -b <baudrate>
