I built gnuradio from source. It passes the "make test".
uname -a Linux linux.suse 4.4.49-16-default #1 SMP Sun Feb 19 17:40:35 UTC 2017 (70e9954) x86_64 x86_64 x86_64 GNU/Linux
I'm using the KDE Plasma desktop. I can set the gtk2 theme to whatever the developers prefer.
------------------------------------------------------------------------------------ When run as root:
linux:/usr/local/src/op25/op25/gr-op25_repeater/apps # ./scope.py osmosdr source_c creation failure Traceback (most recent call last): File "./scope.py", line 2751, in <module> app = stdgui2.stdapp(p25_rx_block, "APCO P25 Receiver", 3) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 46, in __init__ wx.App.__init__ (self, redirect=False) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 49, in OnInit frame = stdframe (self.top_block_maker, self.title, self._nstatus) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 76, in __init__ self.panel = stdpanel (self, self, top_block_maker) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 98, in __init__ self.top_block = top_block_maker (frame, self, vbox, sys.argv) File "./scope.py", line 156, in __init__ gain_names = self.src.get_gain_names() AttributeError: 'NoneType' object has no attribute 'get_gain_names' ---------------------------------------------------------------------------------------------------------
When run as a user:
g@linux:~> /usr/local/src/op25/op25/gr-op25_repeater/apps/scope.py Traceback (most recent call last): File "/usr/local/src/op25/op25/gr-op25_repeater/apps/scope.py", line 59, in <module> import trunking File "/usr/local/src/op25/op25/gr-op25_repeater/apps/trunking.py", line 26, in <module> import lfsr ImportError: No module named lfsr
the message "osmosdr source_c creation failure" suggests the SDR device isn't being seen by scope.py.
To rule out hardware and/or driver and/or permission issues let's have you first run the osmocom_fft app to test and verify basic SDR connectivity...
also scope.py wants a frequency (even a dummy frequency) such as scope.py -f 858.7e6. I highly recommend adding a sampling rate (-S) and offset (-o) as well as a correction for PPM drift (-q). This should be enough to get tuned to the trunk CC as a first step...
Max
On 14 Mar 2017 19:19:37 +0000 "ikj1234i@yahoo.com [op25-dev]" op25-dev@yahoogroups.com wrote:
the message "osmosdr source_c creation failure" suggests the SDR device isn't being seen by scope.py.
To rule out hardware and/or driver and/or permission issues let's have you first run the osmocom_fft app to test and verify basic SDR connectivity...
also scope.py wants a frequency (even a dummy frequency) such as scope.py -f 858.7e6. I highly recommend adding a sampling rate (-S) and offset (-o) as well as a correction for PPM drift (-q). This should be enough to get tuned to the trunk CC as a first step...
Max
I'm using my flightaware dongle. The MCX fell out of my DVB-T. :-(
Here is the FFT: osmocom_fft -f 88.5e6 -s 2e6 linux; GNU C++ version 4.8.5; Boost_105400; UHD_003.009.005-0-unknown
Works fine.
gr-osmosdr 772fb153 (0.1.1git) gnuradio v3.7.10.1-237-g81e7af7b built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf Using device #0 Realtek RTL2832UFA SN: 00001000 Found Rafael Micro R820T tuner [R82XX] PLL not locked! Exact sample rate is: 2000000.052982 Hz [R82XX] PLL not locked!
----------------------------------------------------
/usr/local/src/op25/op25/gr-op25_repeater/apps> ./scope.py -f 772.54375e6 linux; GNU C++ version 4.8.5; Boost_105400; UHD_003.009.005-0-unknown
gr-osmosdr 772fb153 (0.1.1git) gnuradio v3.7.10.1-237-g81e7af7b built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf Using device #0 Realtek RTL2832UFA SN: 00001000 Found Rafael Micro R820T tuner [R82XX] PLL not locked! gain: name: LNA range: start 0 stop 0 step 0 supported sample rates 250000-2400000 step 24000 Traceback (most recent call last): File "./scope.py", line 2751, in <module> app = stdgui2.stdapp(p25_rx_block, "APCO P25 Receiver", 3) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 46, in __init__ wx.App.__init__ (self, redirect=False) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 49, in OnInit frame = stdframe (self.top_block_maker, self.title, self._nstatus) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 76, in __init__ self.panel = stdpanel (self, self, top_block_maker) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 98, in __init__ self.top_block = top_block_maker (frame, self, vbox, sys.argv) File "./scope.py", line 212, in __init__ self.__init_gui(frame, panel, vbox) File "./scope.py", line 544, in __init_gui self.data_scope = datascope_sink_f(self.notebook, samples_per_symbol = 10, num_plots = 100) File "./scope.py", line 1467, in __init__ self.st = blocks.message_sink(gr.sizeof_float, msgq, 1) File "/usr/local/lib64/python2.7/site-packages/gnuradio/blocks/blocks_swig0.py", line 1547, in make return _blocks_swig0.message_sink_make(*args) NotImplementedError: Wrong number or type of arguments for overloaded function 'message_sink_make'. Possible C/C++ prototypes are: gr::blocks::message_sink::make(size_t,gr::msg_queue::sptr,bool) gr::blocks::message_sink::make(size_t,gr::msg_queue::sptr,bool,std::string const &)
blocks.message_sink(gr.sizeof_float, msgq, 1) that's the line getting the error. I think they've tightened up things a bit - this rings a vague bell. You might try changing the third arg from 1 to True - this might not be the only such place that needs changing. It's also possible that fixing this error will just get slightly further with another error - let's hope not but if so the next error might or might not be as easy to fix...
Max
On 17 Mar 2017 21:48:48 +0000 "ikj1234i@yahoo.com [op25-dev]" op25-dev@yahoogroups.com wrote:
blocks.message_sink(gr.sizeof_float, msgq, 1)that's the line getting the error. I think they've tightened up things a bit - this rings a vague bell. You might try changing the third arg from 1 to True - this might not be the only such place that needs changing. It's also possible that fixing this error will just get slightly further with another error - let's hope not but if so the next error might or might not be as easy to fix...
Max
I don't believe I did the make install and ldconfig step. Here is another run:
./scope.py -f 772.54375e6 -s 2400000 linux; GNU C++ version 4.8.5; Boost_105400; UHD_003.009.005-0-unknown
gr-osmosdr 772fb153 (0.1.1git) gnuradio v3.7.10.1-237-g81e7af7b built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf Using device #0 Realtek RTL2832UFA SN: 00001000 Found Rafael Micro R820T tuner [R82XX] PLL not locked! gain: name: LNA range: start 0 stop 0 step 0 supported sample rates 250000-2400000 step 24000 Traceback (most recent call last): File "./scope.py", line 2751, in <module> app = stdgui2.stdapp(p25_rx_block, "APCO P25 Receiver", 3) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 46, in __init__ wx.App.__init__ (self, redirect=False) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 49, in OnInit frame = stdframe (self.top_block_maker, self.title, self._nstatus) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 76, in __init__ self.panel = stdpanel (self, self, top_block_maker) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 98, in __init__ self.top_block = top_block_maker (frame, self, vbox, sys.argv) File "./scope.py", line 212, in __init__ self.__init_gui(frame, panel, vbox) File "./scope.py", line 551, in __init_gui self.complex_scope = constellation_plot_c(self.notebook, title="Constellation", num_plots=250) File "./scope.py", line 1686, in __init__ self.st = blocks.message_sink(gr.sizeof_gr_complex, msgq, 1) File "/usr/local/lib64/python2.7/site-packages/gnuradio/blocks/blocks_swig0.py", line 1547, in make return _blocks_swig0.message_sink_make(*args) NotImplementedError: Wrong number or type of arguments for overloaded function 'message_sink_make'. Possible C/C++ prototypes are: gr::blocks::message_sink::make(size_t,gr::msg_queue::sptr,bool) gr::blocks::message_sink::make(size_t,gr::msg_queue::sptr,bool,std::string const &)
On 17 Mar 2017 21:48:48 +0000 "ikj1234i@yahoo.com [op25-dev]" op25-dev@yahoogroups.com wrote:
blocks.message_sink(gr.sizeof_float, msgq, 1)that's the line getting the error. I think they've tightened up things a bit - this rings a vague bell. You might try changing the third arg from 1 to True - this might not be the only such place that needs changing. It's also possible that fixing this error will just get slightly further with another error - let's hope not but if so the next error might or might not be as easy to fix...
Max
Argh! The make install writes over the old line. I think my first problem here is where do I edit the function call. That is which file.
I went in "apps" and made every "1" a "True". Here are the results:
./scope.py -f 772.54375e6 -s 2400000 linux; GNU C++ version 4.8.5; Boost_105400; UHD_003.009.005-0-unknown
gr-osmosdr 772fb153 (0.1.1git) gnuradio v3.7.10.1-237-g81e7af7b built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf Using device #0 Realtek RTL2832UFA SN: 00001000 Found Rafael Micro R820T tuner [R82XX] PLL not locked! gain: name: LNA range: start 0 stop 0 step 0 supported sample rates 250000-2400000 step 24000 Invalid sample rate: 320000 Hz set_center_freq: 772543750 Traceback (most recent call last): File "./scope.py", line 2751, in <module> app = stdgui2.stdapp(p25_rx_block, "APCO P25 Receiver", 3) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 46, in __init__ wx.App.__init__ (self, redirect=False) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 49, in OnInit frame = stdframe (self.top_block_maker, self.title, self._nstatus) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 76, in __init__ self.panel = stdpanel (self, self, top_block_maker) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 98, in __init__ self.top_block = top_block_maker (frame, self, vbox, sys.argv) File "./scope.py", line 224, in __init__ self.open_usrp() File "./scope.py", line 1118, in open_usrp self.__set_rx_from_osmosdr() File "./scope.py", line 867, in __set_rx_from_osmosdr self.__build_graph(self.src, capture_rate) File "./scope.py", line 293, in __build_graph self.decoder = p25_decoder.p25_decoder_sink_b(dest='audio', do_imbe=True, num_ambe=num_ambe, wireshark_host=self.options.wireshark_host, udp_port=udp_port, do_msgq = True, msgq=self.rx_q, audio_output=self.options.audio_output, debug=self.options.verbosity) File "/usr/local/src/op25/op25/gr-op25_repeater/apps/p25_decoder.py", line 94, in __init__ self.p25_decoders.append(op25_repeater.p25_frame_assembler(wireshark_host, udp_port, debug, do_imbe, do_output, do_msgq, msgq, do_audio_output, True)) File "/usr/local/lib64/python2.7/site-packages/op25_repeater/op25_repeater_swig.py", line 927, in make return _op25_repeater_swig.p25_frame_assembler_make(udp_host, port, debug, do_imbe, do_output, do_msgq, queue, do_audio_output, do_phase2_tdma) TypeError: in method 'p25_frame_assembler_make', argument 5 of type 'bool'
On Thu, 16 Mar 2017 23:46:09 -0700 "'lists@lazygranch.com' lists@lazygranch.com [op25-dev]" op25-dev@yahoogroups.com wrote:
On 14 Mar 2017 19:19:37 +0000 "ikj1234i@yahoo.com [op25-dev]" op25-dev@yahoogroups.com wrote:
the message "osmosdr source_c creation failure" suggests the SDR device isn't being seen by scope.py.
To rule out hardware and/or driver and/or permission issues let's have you first run the osmocom_fft app to test and verify basic SDR connectivity...
also scope.py wants a frequency (even a dummy frequency) such as scope.py -f 858.7e6. I highly recommend adding a sampling rate (-S) and offset (-o) as well as a correction for PPM drift (-q). This should be enough to get tuned to the trunk CC as a first step...
Max
I'm using my flightaware dongle. The MCX fell out of my DVB-T. :-(
Here is the FFT: osmocom_fft -f 88.5e6 -s 2e6 linux; GNU C++ version 4.8.5; Boost_105400; UHD_003.009.005-0-unknown
Works fine.
gr-osmosdr 772fb153 (0.1.1git) gnuradio v3.7.10.1-237-g81e7af7b built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf Using device #0 Realtek RTL2832UFA SN: 00001000 Found Rafael Micro R820T tuner [R82XX] PLL not locked! Exact sample rate is: 2000000.052982 Hz [R82XX] PLL not locked!
/usr/local/src/op25/op25/gr-op25_repeater/apps> ./scope.py -f 772.54375e6 linux; GNU C++ version 4.8.5; Boost_105400; UHD_003.009.005-0-unknown
gr-osmosdr 772fb153 (0.1.1git) gnuradio v3.7.10.1-237-g81e7af7b built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf Using device #0 Realtek RTL2832UFA SN: 00001000 Found Rafael Micro R820T tuner [R82XX] PLL not locked! gain: name: LNA range: start 0 stop 0 step 0 supported sample rates 250000-2400000 step 24000 Traceback (most recent call last): File "./scope.py", line 2751, in <module> app = stdgui2.stdapp(p25_rx_block, "APCO P25 Receiver", 3) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 46, in __init__ wx.App.__init__ (self, redirect=False) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 49, in OnInit frame = stdframe (self.top_block_maker, self.title, self._nstatus) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 76, in __init__ self.panel = stdpanel (self, self, top_block_maker) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 98, in __init__ self.top_block = top_block_maker (frame, self, vbox, sys.argv) File "./scope.py", line 212, in __init__ self.__init_gui(frame, panel, vbox) File "./scope.py", line 544, in __init_gui self.data_scope = datascope_sink_f(self.notebook, samples_per_symbol = 10, num_plots = 100) File "./scope.py", line 1467, in __init__ self.st = blocks.message_sink(gr.sizeof_float, msgq, 1) File "/usr/local/lib64/python2.7/site-packages/gnuradio/blocks/blocks_swig0.py", line 1547, in make return _blocks_swig0.message_sink_make(*args) NotImplementedError: Wrong number or type of arguments for overloaded function 'message_sink_make'. Possible C/C++ prototypes are: gr::blocks::message_sink::make(size_t,gr::msg_queue::sptr,bool) gr::blocks::message_sink::make(size_t,gr::msg_queue::sptr,bool,std::string const &)
#################################################### Well I see what you are trying to do here. So the function call can take a 0 or 1 as the boolean, or the string True or False. Nothing consistent here, but I can make them whichever you want.
Note the differences in the first parameter of the function call.
Here are the relevant lines, with the one changed as you suggested.
1467 self.st = blocks.message_sink(gr.sizeof_float, msgq, True) 1686 self.st = blocks.message_sink(gr.sizeof_gr_complex, msgq, 1) 2038 self.st = blocks.message_sink(gr.sizeof_float, msgq, 1) 2465 sink = blocks.message_sink(gr.sizeof_float * fac_size, self.msgq, True)
Rerun with the one line change.
./scope.py -f 772.54375e6 -s 2400000 linux; GNU C++ version 4.8.5; Boost_105400; UHD_003.009.005-0-unknown
gr-osmosdr 772fb153 (0.1.1git) gnuradio v3.7.10.1-237-g81e7af7b built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf Using device #0 Realtek RTL2832UFA SN: 00001000 Found Rafael Micro R820T tuner [R82XX] PLL not locked! gain: name: LNA range: start 0 stop 0 step 0 supported sample rates 250000-2400000 step 24000 Traceback (most recent call last): File "./scope.py", line 2751, in <module> app = stdgui2.stdapp(p25_rx_block, "APCO P25 Receiver", 3) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 46, in __init__ wx.App.__init__ (self, redirect=False) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 49, in OnInit frame = stdframe (self.top_block_maker, self.title, self._nstatus) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 76, in __init__ self.panel = stdpanel (self, self, top_block_maker) File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 98, in __init__ self.top_block = top_block_maker (frame, self, vbox, sys.argv) File "./scope.py", line 212, in __init__ self.__init_gui(frame, panel, vbox) File "./scope.py", line 551, in __init_gui self.complex_scope = constellation_plot_c(self.notebook, title="Constellation", num_plots=250) File "./scope.py", line 1686, in __init__ self.st = blocks.message_sink(gr.sizeof_gr_complex, msgq, 1) File "/usr/local/lib64/python2.7/site-packages/gnuradio/blocks/blocks_swig0.py", line 1547, in make return _blocks_swig0.message_sink_make(*args) NotImplementedError: Wrong number or type of arguments for overloaded function 'message_sink_make'. Possible C/C++ prototypes are: gr::blocks::message_sink::make(size_t,gr::msg_queue::sptr,bool) gr::blocks::message_sink::make(size_t,gr::msg_queue::sptr,bool,std::string const &)
Did you download, build and install the sources for gr-osmosdr? http://osmocom.org/projects/sdr/wiki/GrOsmoSDR http://osmocom.org/projects/sdr/wiki/GrOsmoSDR