jketterl / csdr Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ha7ilm/csdr
A simple DSP library and command-line tool for Software Defined Radio.
License: GNU General Public License v3.0
This project forked from ha7ilm/csdr
A simple DSP library and command-line tool for Software Defined Radio.
License: GNU General Public License v3.0
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
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?
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.
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.
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:
SDR source fails to start for the user because of modificationLock taken by a previous attempt to stop this same SDR source.
The previous SDR stop is being caused by the scheduler shutting down an FT8 service.
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
#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
(gdb) py-print w
local 'w' = <pycsdr.modules.Bandpass at remote 0xffffa0b7ad30>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.