Skip to main content

Tools for talking to the VESNA spectrum sensor applicaiton

Project description

Introduction

This Python module abstracts the serial line protocol used by the VESNA spectrum sensor application and provides a high-level object-oriented Python interface.

Installation

To install system-wide, run:

$ python setup.py install

To run provided unit tests, run:

$ python setup.py test

Usage

The minimal application using this module looks like the following:

# instantiate the SpectrumSensor class using the path
# to the serial device.
spectrumsensor = SpectrumSensor("/dev/ttyUSB0")

# query the attached hardware for supported configurations.
config_list = spectrumsensor.get_config_list()

# get required frequency sweep configuration.
sweep_config = config_list.get_sweep_config(...)

# define callback function that does something with
# measurements.
def callback(sweep_config, sweep):
   ...

# start spectrum sensing
spectrumsensor.run(sweep_config, callback)

Please refer to docstring documentation for details.

The package also installs vesna_rftest script that performs a series of automated hardware tests using a USBTMC attached RF signal generator. Run “vesna_rftest –help” to get a list of available options.

License

Copyright (C) 2015 SensorLab, Jozef Stefan Institute http://sensorlab.ijs.si

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Authors: Tomaz Solc, <tomaz.solc@ijs.si>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vesna-spectrumsensor-1.0.2.tar.gz (13.4 kB view details)

Uploaded Source

File details

Details for the file vesna-spectrumsensor-1.0.2.tar.gz.

File metadata

File hashes

Hashes for vesna-spectrumsensor-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2e85afd572030a78237df85dcb4409bb0de1b25573c1245cfbeda0507839c824
MD5 5776b0fb0c9cade4cd049d976cf7489f
BLAKE2b-256 7e3d1efd16958916d730c2610f48eb6cfbdb08c61ac05ae0c2c66db893982d1e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page