Giter Club home page Giter Club logo

csdr's People

Contributors

ckuethe avatar godarklight avatar ha7ilm avatar jketterl avatar mossmann avatar nandub avatar ricovangenugten avatar tejeez 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

csdr's Issues

Replace 'Foobar' with 'libcsdr' in the license header (line 17 in all the .cpp and .hpp files)

Jakob,
I noticed that the license header for all the files has the following (lines 16-17):

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

I think it should be changed with:

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

Franco

Unable to install csdr via openwebrx package on Ubuntu 22.04 LTS

With the unstable Ubuntu repository at openwebrx.de, "python3-csdr" requires only python3 3.10 or lower... which means that the 3.10.4 release with Ubuntu 22.04 LTS means csdr can't be installed via package. Could it be changed to allow python3 3.10.4 or newer?

Path problems with libcsdr++.so.0.18.2

Due to some compatibility reasons, https://github.com/andimik/fmlist_scan will install csdr in another directory.

cd build_csdr
cmake ../csdr/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/.local
make

and
sudo make install
will generate and install all files.

[ 11%] Built target csdr
[ 17%] Built target csdr-bin
[ 88%] Built target csdr++
[ 94%] Built target csdr++-bin
[100%] Built target nmux
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /home/andreas/.local/lib/libcsdr.so.0.18.2
-- Up-to-date: /home/andreas/.local/lib/libcsdr.so
-- Up-to-date: /home/andreas/.local/include/libcsdr.h
-- Up-to-date: /home/andreas/.local/bin/csdr
-- Up-to-date: /home/andreas/.local/lib/pkgconfig/csdr.pc
-- Up-to-date: /home/andreas/.local/lib/cmake/Csdr/CsdrTargets.cmake
-- Up-to-date: /home/andreas/.local/lib/cmake/Csdr/CsdrTargets-release.cmake
-- Up-to-date: /home/andreas/.local/lib/cmake/Csdr/CsdrConfig.cmake
-- Up-to-date: /home/andreas/.local/lib/cmake/Csdr/CsdrConfigVersion.cmake
-- Up-to-date: /home/andreas/.local/lib/libcsdr++.so.0.18.2
-- Up-to-date: /home/andreas/.local/lib/libcsdr++.so
-- Up-to-date: /home/andreas/.local/include/csdr/adpcm.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/agc.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/amdemod.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/async.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/audioresampler.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/benchmark.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/complex.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/converter.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/dbpsk.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/dcblock.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/deemphasis.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/downmix.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/fft.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/fftexchangesides.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/fftfilter.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/filter.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/fir.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/firdecimate.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/fmdemod.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/fractionaldecimator.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/gain.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/limit.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/logaveragepower.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/logpower.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/module.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/power.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/reader.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/realpart.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/ringbuffer.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/shift.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/sink.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/source.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/timingrecovery.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/varicode.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/version.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/window.hpp
-- Up-to-date: /home/andreas/.local/include/csdr/writer.hpp
-- Up-to-date: /home/andreas/.local/bin/csdr++
-- Up-to-date: /home/andreas/.local/bin/nmux

But the problem is, that the generated executables will not find the file libcsdr++.so.0.18.2 although it is under .local/lib

$ find | grep libcsdr++.so.0.18.2
./.local/lib/libcsdr++.so.0.18.2
./apps/fmlist_scan/src/git/jketterl/build_csdr/src/lib/libcsdr++.so.0.18.2
$ /home/andreas/.local/bin/csdr++
/home/andreas/.local/bin/csdr++: error while loading shared libraries: libcsdr++.so.0.18.2: cannot open shared object file: No such file or directory
andreas@E535:~/apps/fmlist_scan/src/git/jketterl/build_csdr$ /home/andreas/.local/bin/csdr
/home/andreas/.local/bin/csdr: error while loading shared libraries: libcsdr.so.0.18.2: cannot open shared object file: No such file or directory

If it helps, this it the install_manifext.txt:
install_manifest.txt

Even this following workaround will not work.

cmake ../csdr/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/.local -DCMAKE_INSTALL_LIBDIR=$HOME/.local/lib

The only chance is to copy the file to a folder in the path:

sudo cp .local/lib/libcsdr.so.0.18.2 /usr/lib
$ ~/.local/bin/csdr
csdr - a simple commandline tool for Software Defined Radio receiver DSP.

As I am not a programmer, I fear that the path is hardcoded somewhere in your code.

ADPCM decode doesn't optionally remove sync frames

There seems to be no counterpart to
csdr adpcm -e -s
Just using
csdr adpcm -d
creates distortions in the audio from the sync frames and
csdr adpcm -d -s
doesn't improve this, the sync flag is ignored in the adpcm decoder.

Bandpass fails to stop every now and then

On very rare occassions, OpenWebRX fails to show connecting user the waterfall, while the background services continue running. The analysis of the situation with GDB has shown the following:

  1. SDR source fails to start for the user because of modificationLock taken by a previous attempt to stop this same SDR source.

  2. The previous SDR stop is being caused by the scheduler shutting down an FT8 service.

  3. Tracking down where it hangs shows the following:

(gdb) py-bt
Traceback (most recent call first):
  File "/usr/lib/python3/dist-packages/csdr/chain/__init__.py", line 139, in stop
    w.stop()
  File "/usr/lib/python3/dist-packages/csdr/chain/__init__.py", line 139, in stop
    w.stop()
  File "/usr/lib/python3/dist-packages/owrx/service/__init__.py", line 106, in stopServices
    service.stop()
  File "/usr/lib/python3/dist-packages/owrx/service/__init__.py", line 76, in onStateChange
    self.stopServices()
  File "/usr/lib/python3/dist-packages/owrx/source/__init__.py", line 579, in setState
    c.onStateChange(state)
  File "/usr/lib/python3/dist-packages/owrx/source/__init__.py", line 474, in stop
    self.setState(SdrSourceState.STOPPING)
  File "/usr/lib/python3/dist-packages/owrx/source/connector.py", line 66, in stop
    super().stop()
  File "/usr/lib/python3/dist-packages/owrx/source/__init__.py", line 539, in checkStatus
    self.stop()
  File "/usr/lib/python3/dist-packages/owrx/service/schedule.py", line 293, in _setCurrentEntry
    self.source.checkStatus()
  File "/usr/lib/python3/dist-packages/owrx/service/schedule.py", line 306, in selectProfile
  1. The native code where it hangs is inside CSDR:
#4  0x0000ffffa13e32a0 in std::thread::join() () from /lib/aarch64-linux-gnu/libstdc++.so.6
#5  0x0000ffffa15a385c in Csdr::AsyncRunner::stop() () from /lib/aarch64-linux-gnu/libcsdr++.so.0.18
  1. And the hanging module is Bandpass, that is inside Selector, that is inside ServiceSelectorChain for FT8:
(gdb) py-print w
local 'w' = <pycsdr.modules.Bandpass at remote 0xffffa0b7ad30>

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.