Giter VIP home page Giter VIP logo

gr-specest's People

Contributors

chrisruk avatar cksr avatar fwunsch avatar marcusmueller avatar mbr0wn avatar noc0lour avatar philoteer avatar typere avatar zod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gr-specest's Issues

Gnuradio 3.7 branch

At the moment I am working on modules that work with both gr-inspector and gr-specest in GRC 3.7. I cannot find the gr-specest branch for 3.7 anywhere can I please have some assistance on the same.

specest_gui.py error

Cloned and installed on Ubuntu. Compile, test, and install with no complaints.

specest_gui.py opens gui but does not respond to "run" button. Here is what is in the window where it started:

$ specest_gui.py
linux; GNU C++ version 5.3.1 20160413; Boost_105800; UHD_003.010.git-216-gb1c2d4bb

/usr/local/share/gr-specest/4cos.dat: No such file or directory
Could not initialize file-source!
Could not initialize UHD source!
Could not initialize UHD source!
Could not initialize UHD source!
Could not initialize UHD source!
Could not initialize UHD source!
Traceback (most recent call last):
File "/usr/local/bin/specest_gui.py", line 594, in run_flow_graph
self.fg.start()
File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/top_block.py", line 109, in start
top_block_start_unlocked(self._impl, max_noutput_items)
File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 5678, in top_block_start_unlocked
return _runtime_swig.top_block_start_unlocked(r, max_noutput_items)
RuntimeError: resolve_port: hierarchical block 'head': output 0 is not connected internally
stoughto@stoughto-VirtualBox:~$

GRC YAML: 'part' if vlen == 1

in all gr-specest GRC blocks, this YAML line is present on the FFT Length parameter:
hide: ${ 'part' if vlen == 1 else 'none' }
Unsure what it does, but the blocks cannot be used unless this line is removed.

I think the code is failing to link in my installation of GR 3.8.1.0 (Python 3.7.7), I'm getting this error:
AttributeError: type object 'specest' has no attribute 'welch'
but have no idea how to debug this...

...Does anyone use this module anymore, or is there something newer that I don't know about?

Not able to install gr-specest on ubuntu 16.04

he Fortran compiler identification is unknown
CMake Error at CMakeLists.txt:26 (enable_language):
No CMAKE_Fortran_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full
path to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!

Failed to build `reciprocal_ff_impl.cc` using GR 3.10 and GCC 12.2

Console output for build fail

[ 19%] Built target gnuradio-specest-fortran
[ 21%] Building CXX object lib/CMakeFiles/gnuradio-specest.dir/reciprocal_ff_impl.cc.o
/root/gr-specest/lib/reciprocal_ff_impl.cc: In static member function 'static gr::specest::reciprocal_ff::sptr gr::specest::reciprocal_ff::make(int)':
/root/gr-specest/lib/reciprocal_ff_impl.cc:33:38: error: could not convert 'gnuradio::get_initial_sptr(T*) [with T = gr::specest::reciprocal_ff_impl]()' from 'std::shared_ptr<gr::specest::reciprocal_ff_impl>' to 'gr::specest::reciprocal_ff::sptr' {aka 'boost::shared_ptr<gr::specest::reciprocal_ff>'}
   33 |     return gnuradio::get_initial_sptr(new reciprocal_ff_impl(vlen));
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                      |
      |                                      std::shared_ptr<gr::specest::reciprocal_ff_impl>
make[2]: *** [lib/CMakeFiles/gnuradio-specest.dir/build.make:82: lib/CMakeFiles/gnuradio-specest.dir/reciprocal_ff_impl.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:291: lib/CMakeFiles/gnuradio-specest.dir/all] Error 2
make: *** [Makefile:160: all] Error 2

Please, I need assistance resolving this issue @fwunsch

Building gr-specest on Mac OS X 10.8.3

Hi,

I came across your toolbox and a screenshot (https://www.cgran.org/attachment/wiki/SpecEst/specest_gui.png) suggested that it should be able to tun it on Mac OS.
I have a working gnuradio installation via Macports (gnuradio @3.6.3_0+grc+orc+python27+qtgui+swig+uhd+wavelet+wxgui) and got all the requirements right.

So the first attempt of cmake failed because of libblas. I then manually linked against Apples Accelerate Framework with

cmake -D BLAS_LIBRARIES=/System/Library/Frameworks/Accelerate.framework/Accelerate ../

Cmake worked then but make gave me platform errors with boost:

[ 10%] Built target gnuradio-specest-fortran
Linking CXX shared library libgnuradio-specest.dylib
Undefined symbols for architecture x86_64:
  "boost::system::system_category()", referenced from:
      __GLOBAL__I_a in specest_adaptiveweighting_vff.cc.o
      __GLOBAL__I_a in specest_arburg_vcc.cc.o
      __GLOBAL__I_a in specest_arfcov_vcc.cc.o
      __GLOBAL__I_a in specest_arfmcov_vcc.cc.o
      __GLOBAL__I_a in specest_burg.cc.o
      __GLOBAL__I_a in specest_cyclo_fam_calcspectrum_vcf.cc.o
      __GLOBAL__I_a in specest_cyclo_fam.cc.o
      ...
  "boost::system::generic_category()", referenced from:
      __GLOBAL__I_a in specest_adaptiveweighting_vff.cc.o
      __GLOBAL__I_a in specest_arburg_vcc.cc.o
      __GLOBAL__I_a in specest_arfcov_vcc.cc.o
      __GLOBAL__I_a in specest_arfmcov_vcc.cc.o
      __GLOBAL__I_a in specest_burg.cc.o
      __GLOBAL__I_a in specest_cyclo_fam_calcspectrum_vcf.cc.o
      __GLOBAL__I_a in specest_cyclo_fam.cc.o
      ...
  "_fftwf_destroy_plan", referenced from:
      specest_cyclo_fam_calcspectrum_impl::~specest_cyclo_fam_calcspectrum_impl() in specest_cyclo_fam_calcspectrum_impl.cc.o
  "_fftwf_execute", referenced from:
      specest_cyclo_fam_calcspectrum_impl::fft(int, int) in specest_cyclo_fam_calcspectrum_impl.cc.o
  "_fftwf_free", referenced from:
      specest_cyclo_fam_calcspectrum_impl::~specest_cyclo_fam_calcspectrum_impl() in specest_cyclo_fam_calcspectrum_impl.cc.o
  "_fftwf_malloc", referenced from:
      specest_cyclo_fam_calcspectrum_impl::specest_cyclo_fam_calcspectrum_impl(int, int, int) in specest_cyclo_fam_calcspectrum_impl.cc.o
  "_fftwf_plan_dft_1d", referenced from:
      specest_cyclo_fam_calcspectrum_impl::specest_cyclo_fam_calcspectrum_impl(int, int, int) in specest_cyclo_fam_calcspectrum_impl.cc.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libgnuradio-specest.dylib] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-specest.dir/all] Error 2
make: *** [all] Error 2

Boost is also installed via Macports: boost @1.52.0_1+no_single+no_static+python27 (active)

Can you provide a hint on how to make it work?

Thanks in advance
hrzbrg

specest_guy.py error with Ettus B200 Mini

Good evening,
I've downloaded the specest toolbox from https://github.com/kit-cel/gr-specest.git
When I try to "read" data, with spec_est.gui, from an "ETTUS b200 mini", the error attached below happens. Would anybody help me, please?
Thank you very much in advance

$ specest_gui.py
[INFO] [UHDlinux; GNU C++ version 5.3.1 20160406 (Red Hat 5.3.1-6); Boost_105800; UHD_3.11.0.git-208-g1da86f9c]
[INFO] [B200] Detected Device: B200mini
[INFO] [B200] Operating over USB 2.
[INFO] [B200] Initialize CODEC control...
[INFO] [B200] Initialize Radio control...
[INFO] [B200] Performing register loopback test...
[INFO] [B200] pass
[INFO] [AD936X] Performing CODEC loopback test...
[INFO] [AD936X] CODEC loopback test passed
[INFO] [B200] Setting master clock rate selection to 'automatic'.
[INFO] [B200] Asking for clock rate 16.000000 MHz...
[INFO] [B200] Actually got clock rate 16.000000 MHz.
[INFO] [CORES] Performing timer loopback test...
[INFO] [CORES] Timer loopback test passed
[INFO] [B200] Asking for clock rate 32.000000 MHz...
[INFO] [B200] Actually got clock rate 32.000000 MHz.
[INFO] [CORES] Performing timer loopback test...
[INFO] [CORES] Timer loopback test passed
Traceback (most recent call last):
File "/usr/local/bin/specest_gui.py", line 660, in input_selector_text
self.fg.set_src_type(src_type)
File "/usr/local/bin/specest_gui.py", line 1036, in set_src_type
self.set_head()
File "/usr/local/bin/specest_gui.py", line 919, in set_head
self.d_uhd_subdev_spec)
File "/usr/local/bin/specest_gui.py", line 1149, in init
fg.cpu_watcher.start()
AttributeError: 'NoneType' object has no attribute 'start'
Traceback (most recent call last):
File "/usr/local/bin/specest_gui.py", line 590, in run_flow_graph
self.fg.set_head()
File "/usr/local/bin/specest_gui.py", line 915, in set_head
self.disconnect((self.head, 0), (self.decimator, 0))
File "/usr/local/lib64/python2.7/site-packages/gnuradio/gr/hier_block2.py", line 47, in wrapped
func(self, src, src_port, dst, dst_port)
File "/usr/local/lib64/python2.7/site-packages/gnuradio/gr/hier_block2.py", line 122, in disconnect
self.primitive_disconnect(*args)
File "/usr/local/lib64/python2.7/site-packages/gnuradio/gr/runtime_swig.py", line 5297, in primitive_disconnect
return _runtime_swig.top_block_sptr_primitive_disconnect(self, *args)
ValueError: cannot disconnect edge head1:0->decimator0:0, not found

error: lvalue required as left operand of assignment

[ 53%] Building CXX object lib/CMakeFiles/gnuradio-specest.dir/cyclo_fam_calcspectrum_algo.cc.o
cd /var/tmp/portage/net-wireless/gr-specest-9999/work/gr-specest-9999_build/lib && /usr/bin/x86_64-pc-linux-gnu-g++ -Dgnuradio_specest_EXPORTS -I/var/tmp/portage/net-wireless/gr-specest-9999/work/gr-specest-9999/lib -I/var/tmp/portage/net-wireless/gr-specest-9999/work/gr-specest-9999/include -I/var/tmp/portage/net-wireless/gr-specest-9999/work/gr-specest-9999_build/lib -I/var/tmp/portage/net-wireless/gr-specest-9999/work/gr-specest-9999_build/include   -DNDEBUG -Os -mtune=nocona -pipe -frecord-gcc-switches -march=native -fPIC   -fvisibility=hidden -o CMakeFiles/gnuradio-specest.dir/cyclo_fam_calcspectrum_algo.cc.o -c /var/tmp/portage/net-wireless/gr-specest-9999/work/gr-specest-9999/lib/cyclo_fam_calcspectrum_algo.cc
/var/tmp/portage/net-wireless/gr-specest-9999/work/gr-specest-9999/lib/cyclo_fam_calcspectrum_algo.cc: In member function ‘void gr::specest::cyclo_fam_calcspectrum_algo::calc(const gr_complex*)’:
/var/tmp/portage/net-wireless/gr-specest-9999/work/gr-specest-9999/lib/cyclo_fam_calcspectrum_algo.cc:97:82: error: lvalue required as left operand of assignment
                                            in[m].imag()*sin(2*M_PI*i*(p*d_L)/d_Np);
                                                                                  ^
/var/tmp/portage/net-wireless/gr-specest-9999/work/gr-specest-9999/lib/cyclo_fam_calcspectrum_algo.cc:99:82: error: lvalue required as left operand of assignment
                                            in[m].real()*sin(2*M_PI*i*(p*d_L)/d_Np);
                                                                                  ^
make[2]: *** [lib/CMakeFiles/gnuradio-specest.dir/build.make:567: lib/CMakeFiles/gnuradio-specest.dir/cyclo_fam_calcspectrum_algo.cc.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-wireless/gr-specest-9999/work/gr-specest-9999_build'
make[1]: *** [CMakeFiles/Makefile2:178: lib/CMakeFiles/gnuradio-specest.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/net-wireless/gr-specest-9999/work/gr-specest-9999_build'
make: *** [Makefile:141: all] Error 2

Not able to install gr-specest on ubuntu 18.04

Hi:
This is my output

=============================================================================================
GNU Radio Spectral Estimation Toolbox
Copyright 2009-2019 Communications Engineering Lab, KIT

This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
For further information see COPYING
=============================================================================================

CMake Error at CMakeLists.txt:94 (find_package):
  Could not find a configuration file for package "Gnuradio" that is
  compatible with requested version "3.8".

  The following configuration files were considered but not accepted:

    /home/dandrspc/default/lib/cmake/gnuradio/GnuradioConfig.cmake, version: 3.7.13.4

I'm using gnuradio 3.7.13.4

Source code encoding not properly declared

To properly use none-ASCII characters in the source code, one should declare the encoding of a file in the first or second line of the script, according to:

http://legacy.python.org/dev/peps/pep-0263/

Files in that project declare that properly in the second line. However, as I understand GR_PYTHON_INSTALL, this cmake command will add a new first line to the file with the python interpreter. As a result, all lines in the file are shifted by one line, so the encoding declaration is moved to the third line, and ignored by the python interpreter. As a result, those with none-ASCII characters cannot be properly executed.

I would suggest to remove the python interpreter from the first line, and let GR_PYTHON_INSTALL add the interpreter.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.