gnuradio

Plot freezing because of fast input stream to a GNU Radio block

浪子不回头ぞ 提交于 2019-12-13 02:17:37
问题 I have implemented a sync block which plots inside its work function using the input_items values. Now the problem is that the plotting mechanism isn't fast enough for the input stream ( the value of input_items keeps on changing ). I have tried to simplify the code as much as possible and added comments. Here it is: .... import matplotlib from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigCanvas from matplotlib.backends.backend_wx import NavigationToolbar2Wx from

voltage pulse from USRP when using simple GNU Radio flowgraph from Python

做~自己de王妃 提交于 2019-12-11 02:54:52
问题 This is a follow-up to my earlier question: FFT in non-flowgraph centered application different from flowgraph centered apps like uhd_fft In an attempt to better clarify the issue, I've boiled my code down to about ~30 LOC and have removed as much processing out of the flowgraph as possible. The issue that I'm having is that, although the USRP is tuned to a frequency only once, each run of the flowgraph has about 70 ms of junk data. I'm fully aware that a certain amount of "junk" samples are

Cross compiling Gnu Radio for Openwrt

别等时光非礼了梦想. 提交于 2019-12-10 15:54:50
问题 I'm attempting to install Gnu Radio on OpenWRT "Attittude Adjustment" (latest trunk sources). I've cross compiled GR and everything seems to have compiled and linked just fine. However, importing the module in Python results in the following: root@OpenWrt:/usr/lib/python2.7/dist-packages/gnuradio/gr# python Python 2.7.3 (default, Jul 21 2012, 17:36:54) [GCC 4.6.3 20120201 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from gnuradio import gr

GFSK demodulation with Xlating filter in GNU Radio

末鹿安然 提交于 2019-12-08 08:10:04
问题 I have been trying to demodulate a GFSK signal for months now using GNU Radio with USRP B210. Unfortunately, I haven't found even a single decent book on GNU Radio and hence most of my references are based on some random websites including the official GNU Radio page. The GFSK signal comes from a cubesat in the lab. At the moment, it is transmitting a '10101010 ...... ' test signal. The GFSK modulation index used is 0.6667 and the data rate is 9600 bps. My flowgraph, as shown in the diagram

How to test source blocks in gnuradio

吃可爱长大的小学妹 提交于 2019-12-08 06:19:25
I'm trying to create a simple source block in gnuradio. I've used gr_modtool to create the bare bones module and block, but whenever I try to run the tests, it quickly eats up all my memory and my computer starts lagging. Even worse, the tests fail with "thread[thread-per-block[1]: ]: std::bad_alloc" Here's my block (called csv): import numpy from gnuradio import gr class csv(gr.sync_block): """ docstring for block csv """ def __init__(self, filename): gr.sync_block.__init__(self, name="csv", in_sig=None, out_sig=[numpy.float32]) def work(self, input_items, output_items): out = output_items[0]

How to test source blocks in gnuradio

霸气de小男生 提交于 2019-12-08 05:17:28
问题 I'm trying to create a simple source block in gnuradio. I've used gr_modtool to create the bare bones module and block, but whenever I try to run the tests, it quickly eats up all my memory and my computer starts lagging. Even worse, the tests fail with "thread[thread-per-block[1]: ]: std::bad_alloc" Here's my block (called csv): import numpy from gnuradio import gr class csv(gr.sync_block): """ docstring for block csv """ def __init__(self, filename): gr.sync_block.__init__(self, name="csv",

Using gr::fec::code::cc_encoder class in a hierarchical block

帅比萌擦擦* 提交于 2019-12-06 16:48:50
I have implemented a very basic C++ CCSDS convolutional encoder (k=7,r=1/2) and it works fine. However, it is very basic and it lacks options such as operational mode (CC_STREAMING, CC_TERMINATED, CC_TAILBITING, CC_TRUNCATED) etc ..etc. Therefore, I have decided to use the default gnuradio gr::fec::code::cc_encoder class. My coding superclass will include puncturing and other blocks and therefore everything will be in a hierarchical block. So far I'm putting the blocks one by one in the hierarchical block starting with gr::fec::code::cc_encoder. Below is my .cc implementation file. #ifdef HAVE

.bin to .cfile flowgraph for GRC 3.7.2.1

╄→гoц情女王★ 提交于 2019-12-06 09:29:03
问题 I have tried opening the flow graph for coverting .bin file (data captured via RTL-SDR) to .cfile for analysis. I downloaded the file from the link http://sdr.osmocom.org/trac/attachment/wiki/rtl-sd... However, I am unable to get it working on GRC 3.7.2.1. I get a long list of error messages (given below) when I just try to open the file. I am using Ubuntu v14.04.1. I would be really grateful for any help to solve this or any alternate ways to convert the .bin file to .cfile (python source

How exactly is hier_block 's behaviour different then that of a sync_block in GNU Radio?

…衆ロ難τιáo~ 提交于 2019-12-02 03:53:16
This is a continuation of this question. I understand that we cannot access input_items in __init__ of a sync_block but we can do so in hier_block (eg. here ). I wanted to add a panel on the top block frame which can only be done by assigning a panel to self.win in __init__ (like in the hier_block example). If I try to assign a panel to self.win inside the work function of a sync_block then it gives the error : 'xyz' object has no attribute 'win' . Though it works if I assign a panel to self.win inside __init__ of a sync_block ( that's why I wanted to access input_items inside __init__ in the

Retrieve data from USRP N210 device

旧巷老猫 提交于 2019-12-01 14:49:36
The N210 is connected to the RF frontend, which gets configured using the GNU Radio Companion. I can see the signal with the FFT plot; I need the received signal (usrp2 output) as digital numbers.The usrp_sense_spectrum.py output the power and noise_floor as digital numbers as well. I would appreciate any help from your side. Answer from the USRP/GNU Radio mailing lists: Dear Abs, you've asked this question on discuss-gnuradio and already got two answers. In case you've missed those, and to avoid that people tell you what you already know: Sylvain wrote that, due to a large number of factors