Re: [Discuss-gnuradio] pybombs difficulty

2015-08-03 Thread West, Nathan
You only have to use sudo with pybombs if you don't have write permission to your prefix. In general it's best to avoid using sudo and pybombs together if possible (with the exception of when pybombs asks you for sudo password when using apt-get install). You can either set the prefix to somewhere

[Discuss-gnuradio] Fwd: Re: Trouble creating simple custom Sink (Python): Unable to coerce endpoint

2015-08-03 Thread ma4l0v
Marcus, Thank you for your answer. > a sink is typically built as a sync block, simply because it's easier > (and still works), since you don't have to implement a general_work (and > a forecast). Actually, I do not override general_work() neither forecast(), but only work(), with signature: wor

Re: [Discuss-gnuradio] how to choose tune_delay?

2015-08-03 Thread fquitin
Hi Marcus, Thanks for your comments, as usual, you're being a life-saver (I wasn't aware of the existence of set_command_time/clear_command_time functions, these will be immensely helpfull). From your suggestions, I understand that the USRP will always re-attach a rx_time tag after being re-tu

Re: [Discuss-gnuradio] pybombs difficulty

2015-08-03 Thread Washbourne, Logan
Thanks Nathan. Should I have to use sudo when using pybomb commands, now that the installation prefix is outside of my home directory(because I now I have to use sudo when using pybomb commands)? Logan Washbourne Electrical Engineering Graduate Student (Electromagnetics) On Mon, Aug 3, 2015 at

Re: [Discuss-gnuradio] pybombs difficulty

2015-08-03 Thread Mike Markowski
Thanks, Nathan, and all who replied publicly and privately, The problem seems to be that I had installed Anaconda (from Continuum Analytics) which does not include Cheetah by default. It does exist, however, in the python tree installed by ubuntu, and that seemed to confuse things. I installed C

Re: [Discuss-gnuradio] pybombs difficulty

2015-08-03 Thread West, Nathan
Logan, For your case deleting inventory.dat would do the trick of effectively resetting pybombs state (and if your done with an install rm the prefix) Mike, Pybombs is hiding the true error. Cmake failed for either VOLK or GNU Radio. Try running pybombs again with -v -v On Monday, August 3, 201

[Discuss-gnuradio] GLError 1285

2015-08-03 Thread Marcus D. Leech
I have users of my simple_ra application complaining of this: Traceback (most recent call last): File "/usr/local/lib64/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py", line 209, in _on_paint for fcn in self._draw_fcns: fcn[1]() File "/usr/local/lib64/python2.7/site-pa

Re: [Discuss-gnuradio] pybombs difficulty

2015-08-03 Thread lwashbo
Mike, When I ran into this problem, I had to reinstall pybombs. I think the problem lies in changing the installation prefix after installing pybombs. I'm sure there is another way to fix this, I just don't know what it is. When I reinstalled pybombs, I defined the installation prefix when the

[Discuss-gnuradio] pybombs difficulty

2015-08-03 Thread Mike Markowski
I use gentoo at home and have no difficulty keeping gnuradio up to date. At work we're on a standalone network (no internet) so occasionally bring computers home to update them. Lately, I've been having trouble with pybombs. Using a freshly installed ubuntu 15.04, then doing an apt-get update

Re: [Discuss-gnuradio] Communication problems between 2 USRP's

2015-08-03 Thread John Garrick
Hi Tom, I have actually added a jpg file which shows the output when given the command of uhd_fft. Actually,my experiment is to transmit different data packets to the receiver with minimized errors with ./benchmark_tx.py -f 2.435G and ./benchmark_rx.py -f 2.435G as commands . May I please know

Re: [Discuss-gnuradio] State Machine that drops samples (Problems with return and consume_each in general_work)

2015-08-03 Thread Felipe Domingues
Dear all, I was able to fix the problem. Fist I had forecast set to a big number and vector sink was unable to provide such amount of inputs. I changed that to ninput_items_required[0]= noutput_items, not sure if it's the correct relation thought. But the block still didn't work. Apparently I wa

[Discuss-gnuradio] State Machine that drops samples (Problems with return and consume_each in general_work)

2015-08-03 Thread Felipe Domingues
Dear all, I'm trying to implement a simple state machine to receive bursty data and write it in a file. To accomplish this I have created a general block that accepts complex samples and has two states: 0 - Just drops data. If one of the samples is 0, go to state 1. 1 - Copy inputs to outputs.

Re: [Discuss-gnuradio] Trouble creating simple custom Sink (Python): Unable to coerce endpoint

2015-08-03 Thread Marcus Müller
Hi M4RL0V, a sink is typically built as a sync block, simply because it's easier (and still works), since you don't have to implement a general_work (and a forecast). So your problem here is that logically, connecting happens in the top_block, not in the block itself; have a look at python code t

[Discuss-gnuradio] Trouble creating simple custom Sink (Python): Unable to coerce endpoint

2015-08-03 Thread m4rl0v
I'd like to implement a simple custom sink block in Python. AFAIK, a sink is a 1:0 basic block, with one input port, and no output port. I define it as a class: class MySink(gr.basic_block): def __init__(self, src_block): gr.basic_block.__init__(self, name='MySink', in_sig=[numpy.floa

Re: [Discuss-gnuradio] Request regarding Channel Estimator Block

2015-08-03 Thread Martin Braun
On 02.08.2015 11:32, Gaddam Yamuna wrote: > Hello, > > I am unable to understand the *max-carr-offset* parameter in *Channel > Estimator block. *How this parameter help in order to receive It effectively limits the search range, and it's specified in multiples of integer carrier offsets. The cha

Re: [Discuss-gnuradio] FFT plot unit

2015-08-03 Thread Marcus D. Leech
On 08/03/2015 12:35 PM, John Ackermann N8UR wrote: It might be helpful to clarify that since this is a voltage ratio, it's 20log rather than the 10log used for power (e.g., doubling voltage is 6dB, doubling power is 3dB), so the scaling will look different than a typical spectrum analyzer. (It

[Discuss-gnuradio] Free IEEE tutorial

2015-08-03 Thread Gregory W. Ratcliff
Below is a free (to IEEE members) tutorial on wide bandwidth signal analysis.  Let me know If you guys consider this kind of thing spam and but me being curious always appreciate a few diversions from time to time. We all could learn something from this I expect. Greg Gregory W. Ratcliff **

Re: [Discuss-gnuradio] GRC FFT Plot

2015-08-03 Thread madengr
I misread you question and thought you were receiving with the USRP. Same procedure, just don't let the transmitted signal go past +/- 1.0 or you will clip the DAC. In practice keep it backed off 6 dB or more to allow for crest factor. Lou madengr wrote > 1) Send in a CW tone from a signal

Re: [Discuss-gnuradio] Blocks handling vectors

2015-08-03 Thread Martin Braun
On 03.08.2015 00:18, Galiero Casay Gabriele wrote: > - The io signatures would be defined like this: > gr::io_signature::make(1, 1, pkt_len*sizeof(float)), > gr::io_signature::make(1, 1, sizeof(float) * (sync_word_len + > pkt_len))) > To clarify a bit what I want is to add a pred

Re: [Discuss-gnuradio] FFT plot unit

2015-08-03 Thread John Ackermann N8UR
It might be helpful to clarify that since this is a voltage ratio, it's 20log rather than the 10log used for power (e.g., doubling voltage is 6dB, doubling power is 3dB), so the scaling will look different than a typical spectrum analyzer. (It would be nice if the instrumentation blocks could

Re: [Discuss-gnuradio] GRC FFT Plot

2015-08-03 Thread madengr
1) Send in a CW tone from a signal generator of known power (dBm) 2) Read the level from GR FFT (dB) 3) Figure out the amount you need to offset (dB) 4) Multiply your samples by a constant value of 10**(offset_dB/20.0) 5) The GR FFT will now be calibrated to an absolute power (dBm). Note if you c

Re: [Discuss-gnuradio] FFT plot unit

2015-08-03 Thread Marcus D. Leech
On 08/03/2015 12:24 PM, Martin Braun wrote: This pops up a lot, and hence earned a spot on the FAQ a while back: http://gnuradio.org/redmine/projects/gnuradio/wiki/FAQ#How-do-I-know-the-exact-voltagepower-of-my-received-input-signal ...although that section could surely be expanded. M I just

Re: [Discuss-gnuradio] FFT plot unit

2015-08-03 Thread Martin Braun
This pops up a lot, and hence earned a spot on the FAQ a while back: http://gnuradio.org/redmine/projects/gnuradio/wiki/FAQ#How-do-I-know-the-exact-voltagepower-of-my-received-input-signal ...although that section could surely be expanded. M On 03.08.2015 09:04, Marcus D. Leech wrote: > On 08/0

Re: [Discuss-gnuradio] FFT plot unit

2015-08-03 Thread Marcus D. Leech
On 08/03/2015 09:36 AM, Sylvain Munaut wrote: Hi, I was able to gather results, and I am really confused with it. I generated a -30 dB signal based on the fft plot shown and transmitted it using a usrp. My spectrum analyzer received a signal at -50 dBm (-80 dB) and my receiver which also uses a

Re: [Discuss-gnuradio] Communication problems between 2 USRP's

2015-08-03 Thread Tom Rondeau
On Sat, Aug 1, 2015 at 1:52 PM, John Garrick wrote: > Hi Tom, > So can you please advice what I can do next for them to be right? > > Regards, > John > Too many things; you'll have to go through it step-by-step. Best thing to start with is to transmit and use uhd_fft at the receiver end to look

Re: [Discuss-gnuradio] cannot import name GNURadio when launching perf-monitorx and ctrlport-monitor

2015-08-03 Thread Tom Rondeau
On Sat, Aug 1, 2015 at 1:41 AM, Volker Schroer wrote: > The same error happens in the 3.7.8 release candidate. > > -- Volker > > > > I am trying to measure performance of my OOT module with performance > counter and control port. > > When I execute a command line `gr-perf-monitorx` or `gr-ctrlpor

Re: [Discuss-gnuradio] GRC FFT Plot

2015-08-03 Thread Sylvain Munaut
> I transmitted this -30 dB signal (Image 1) using a usrp: The spectrum > analyzer displays -50 dBm (Image 2) as its reading. My receiver end picked > up the signal with the same peak power at -30 dB (Image 3). I'm confused. > How do I convert the dB power in the GRC to the received signal of the >

Re: [Discuss-gnuradio] FFT plot unit

2015-08-03 Thread Sylvain Munaut
Also ... that's just plain wrong : "-50 dBm (-80 dB)" dB is an unit for the ratio of two things. That's it. dBm is the ration relative to a 1 mW power. You probably meant to say -50 dBm ( -80 dBW ) ... and the 'W' is important, it says it's relative to 1 W. Cheers, Sylvain

Re: [Discuss-gnuradio] FFT plot unit

2015-08-03 Thread Sylvain Munaut
Hi, > I was able to gather results, and I am really confused with it. I generated > a -30 dB signal based on the fft plot shown and transmitted it using a usrp. > My spectrum analyzer received a signal at -50 dBm (-80 dB) and my receiver > which also uses a usrp received the signal and plotted it

[Discuss-gnuradio] FFT plot unit

2015-08-03 Thread Gerome Jan L
I was able to gather results, and I am really confused with it. I generated a -30 dB signal based on the fft plot shown and transmitted it using a usrp. My spectrum analyzer received a signal at -50 dBm (-80 dB) and my receiver which also uses a usrp received the signal and plotted it at -30 dB. My

Re: [Discuss-gnuradio] how to choose tune_delay?

2015-08-03 Thread Marcus Müller
Hi Francois, yes, that seems rather high; but maybe you're seeing the effects of the DC offset removal filter. You can try to use use set_auto_dc_offset(False) to make that faster [1]. However, usrp_spectrum_sense is pretty old, and hence can't even make use of stream tags on the GNU Radio side a

[Discuss-gnuradio] how to choose tune_delay?

2015-08-03 Thread Francois Quitin
Hi all, I want to retune the frequency of my USRP in Python during runtime. I understand from usrp_spectrum_sense.py that I can just retune the USRP during runtime, and that I need to allow for some tune_delay to make sure that the samples corresponding to the old center frequency are discarded

Re: [Discuss-gnuradio] Solved! Repeat Block/New Repeat Block

2015-08-03 Thread Marcus Müller
Hi Kevin, I'm really happy about this! Hope you like the brave new C++ world ;) Now, curious as I am, (and a little ashamed for not replying earlier,) could you share your code with us? Best regards, Marcus On 02.08.2015 16:46, Kevin McQuiggin wrote: > Hi All: > > My previous report of lock-up

Re: [Discuss-gnuradio] USRP B210 TX gain

2015-08-03 Thread Marcus Müller
I'd also like to chip in that effective TX power is /very/ dependent on frequency for devices that span several orders of magnitude in frequency -- so you can't just say "the max TX power is x dBm", you need to measure for every frequency, with every bandwidth you use, for the specific signals you

[Discuss-gnuradio] Blocks handling vectors

2015-08-03 Thread Galiero Casay Gabriele
Hi, I have been struggling a bit trying to code a block that accept for example vectors of sync_len*sizeof(float) as input signature and outputs vectors of (sync_len+pkt_len)*sizeof(float) as output signature. To understand how blocks handling vectors work, I tried to make the same block I did