Hello Vasil,
The problem was with gr-fcdproplus package only! After removing it was installing fine and I got it under GRC Menu!
But there is a new error while executing the flowgraph!
Console:
Generating: '/home/thangz/Desktop/gnuradio/rtlsdr_fm_spectrum_simple.py'
Executing: /usr/bin/python3 -u /home/thangz/Desktop/gnuradio/rtlsdr_fm_spectrum_simple.py
Traceback (most recent call last):
File "/usr/local/lib/python3/dist-packages/osmosdr/__init__.py", line 17, in <module>
from .osmosdr_python import *
ImportError: generic_type: type "sink" referenced unknown base type "gr::hier_block2"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/thangz/Desktop/gnuradio/rtlsdr_fm_spectrum_simple.py", line 37, in <module>
import osmosdr
File "/usr/local/lib/python3/dist-packages/osmosdr/__init__.py", line 21, in <module>
from .osmosdr_python import *
ImportError: generic_type: type "sink" referenced unknown base type "gr::hier_block2"
What is the problem here?
Regards,
Thangaraj
-----Ursprüngliche Nachricht-----
Von: Vasil Velichkov <vvvelichkov(a)gmail.com>
Gesendet: Mittwoch, 27. Oktober 2021 13:27
An: Thangaraj Mukara Dhakshinamoorthy <thangaraj(a)komro.net>; osmocom-sdr(a)lists.osmocom.org
Betreff: Re: AW: AW: Make fails while installing gr-osmosdr
Hi Thangaraj,
On 27/10/2021 13.51, Thangaraj Mukara Dhakshinamoorthy wrote:
> Sorry! I was wrong, I installed main-3.9 only!
OK.
> I guess the problem would be something to do with the cmake prefix path I have passed:
I doubt that it is related to the prefix. Have you tried deleting gr-osmosdr's build directory and starting from scratch (after remvoing gr-fcdproplus package)? Alternatively you can delete only the CMakeCache file.
What is the exact problem that you have right now? Provide the full cmake and make output.
Hello,
My system config:
Host OS: Windows 10
Guest OS: VirtualBox Ubuntu 20.04.3 LTS
UHD version: 3.15.0.0
GNU Radio version: 3.9
SDR Device : RTL-SDR Dongle
I got the below error while executing the make command:
>thangz@thangz-VirtualBox:~/Desktop/gr-osmosdr/build$ cmake -DCMAKE_PREFIX_PATH=/usr ../
.
.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/thangz/Desktop/gr-osmosdr/build
>thangz@thangz-VirtualBox:~/Desktop/gr-osmosdr/build$ make
.
.
/usr/local/include/gnuradio/hier_block2.h:93:35: note: no known conversion for argument 1 from 'gr::fcdproplus::fcdproplus::sptr' {aka 'boost::shared_ptr<gr::fcdproplus::fcdproplus>'} to 'gr::basic_block_sptr' {aka 'std::shared_ptr<gr::basic_block>'}
93 | void connect(basic_block_sptr src, int src_port, basic_block_sptr dst, int dst_port);
make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:128: lib/CMakeFiles/gnuradio-osmosdr.dir/fcd/fcd_source_c.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:417: lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
What may I do to fix this error? What am I missing here? Please help!
PS: I just need the RTL-SDR component, so I installed the dependency for that alone (see complete log file).
PFA complete log file
Best regards
Thangaraj
Hy
Ive installed osmo-fl2k on Windows 10
And when i try to release, i have a error message that pthread vc2.dll is not Found.
How can i fix IT?
Télécharger Outlook pour Android<https://aka.ms/AAb9ysg>
Hi,
This is a starter patch to produce a .sigmf-meta file for each
recording. It contains the minimum useful info that is usually coded
into the filename.
I'm not sure if anyone thinks this is worthwhile. There is a lot more
that could be recorded in the .sigmf-meta file like e.g. current gain
values, current bandwidth or antenna settings (if available), but i
wanted to see if there is any interest for this at all.
It would maybe also nice to add the actual sdr device name that was
used, but as far as I can see there is no way in python to query which
device/driver is used by a specific osmosdr.source()?
CU,
Sec
>From 916dd8732302d8d052432a5deb27f132521d0be3 Mon Sep 17 00:00:00 2001
From: Stefan `Sec` Zehl <sec(a)42.org>
Date: Sun, 10 Oct 2021 16:59:32 +0200
Subject: [PATCH] implement simple sigmf support for recording
---
apps/osmocom_fft | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/apps/osmocom_fft b/apps/osmocom_fft
index f829192cd6..2cdfd3ae35 100755
--- a/apps/osmocom_fft
+++ b/apps/osmocom_fft
@@ -103,8 +103,8 @@ class app_top_block(gr.top_block, Qt.QMainWindow):
help="Set gain in dB (default is midpoint)")
parser.add_option("-G", "--gains", type="string", default=None,
help="Set named gain in dB, name:gain,name:gain,...")
- parser.add_option("-r", "--record", type="string", default="/tmp/name-f%F-s%S-t%T.cfile",
- help="Filename to record to, available wildcards: %S: sample rate, %F: center frequency, %T: timestamp, Example: /tmp/name-f%F-s%S-t%T.cfile")
+ parser.add_option("-r", "--record", type="string", default="/tmp/name-f%F-s%S-t%T.sigmf-data",
+ help="Filename to record to, available wildcards: %S: sample rate, %F: center frequency, %T: timestamp, Example: /tmp/name-f%F-s%S-t%T.sigmf-data")
parser.add_option("", "--dc-offset-mode", type="int", default=None,
help="Set the RX frontend DC offset correction mode")
parser.add_option("", "--iq-balance-mode", type="int", default=None,
@@ -342,6 +342,24 @@ class app_top_block(gr.top_block, Qt.QMainWindow):
s = s.replace('%T', datetime.datetime.now().strftime('%Y%m%d%H%M%S'))
return s
+ def record_sigmf_metadata(self):
+ return {
+ "global": {
+ "core:datatype": "cf32_le",
+ "core:sample_rate": self.src.get_sample_rate(),
+ "core:version": "1.0.0",
+ "core:num_channels": 1,
+ "core:recorder": "osmocom_fft"
+ },
+ "captures": [
+ {
+ "core:sample_start": 0,
+ "core:frequency": self.src.get_center_freq(),
+ "core:datetime": datetime.datetime.utcnow().isoformat()+"Z"
+ }
+ ]
+ }
+
def _set_status_msg(self, msg, timeout=0):
self.status.showMessage(msg, timeout)
@@ -498,6 +516,14 @@ class app_top_block(gr.top_block, Qt.QMainWindow):
print("Recording samples to ", self.rec_file_name)
self.file_sink.open(self.rec_file_name);
+ if self.rec_file_name.endswith('.sigmf-data'):
+ try:
+ import json
+ self.meta_file_name=self.rec_file_name[:-4]+'meta'
+ with open(self.meta_file_name, 'w') as outfile:
+ json.dump(self.record_sigmf_metadata(), outfile, indent=4)
+ except ModuleNotFoundError as e:
+ print("Could not write sigmf-meta: ",e)
else:
self._srw.setDisabled(False)
self._fre.setDisabled(False)
--
2.30.2
CU,
Sec
--
A bureaucracy is like a computer program. Usually, the question is
how to arrange it so that what you want is composed of operations that
the bureaucracy supports. In addition, in any bureaucracy, there is
always *someone* whose job is to approve violations of the rules.
Hy. I recently instal osmo-fl2k on Windows and the software dont open and i have a message that pthreadVC2.dll is not Found.
After research, i Found the dll un the pthread folder. Where must i place the dll for macking IT work?
Télécharger Outlook pour Android<https://aka.ms/AAb9ysg>