[Discuss-gnuradio] Gr Complex in Python in Gnu Radio

2016-04-29 Thread Przemek Lewandowski
Hello :)

I would like to set offset to signal source component in construktor;
BUT I dont know which type is it in Python ??

signal_source = analog.sig_source_c(sampleRate, analog.GR_SAW_WAVE,
frequencyCounted, 1/float(rowCounter), *offset_Value*)

*offset_Value - when it is text it is bad*
*offset_Value - when it is int it is bad*

*so how to initialize offset in complex signal source in python ??*

*Greeting :)*
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Gr Complex in Python in Gnu Radio

2016-04-30 Thread Przemek Lewandowski
Ok, i know where is bug :) it is my bad understanding what is offset :) and
what are boundaries. :)

Your sugest : analog.sig_source_c(1,analog.GR_SIN_WAVE, 0.1,1, 0.5+0.75j)

is fine for me, Thank you !!

Greetings



2016-04-30 8:41 GMT+02:00 Marcus Müller :

> Hi Przemek,
>
> I must admit I'm not able to reproduce the issue –
>
> >>> from gnuradio import analog
> >>> analog.sig_source_c(1,analog.GR_SIN_WAVE, 0.1,1,1)
> 
>
>
> works just fine,  and the literal 1 is definitively an int. What does
>
> print type(offset_Value)
>
> say in your code?
>
> I guess you might want to use a complex offset? Python's built-in complex
> type works:
>
> analog.sig_source_c(1,analog.GR_SIN_WAVE, 0.1,1, 0.5+0.75j)
>
>
> Best regards,
> Marcus
>
> On 29.04.2016 22:53, Przemek Lewandowski wrote:
>
> Hello :)
>
> I would like to set offset to signal source component in construktor;
> BUT I dont know which type is it in Python ??
>
> signal_source = analog.sig_source_c(sampleRate, analog.GR_SAW_WAVE,
> frequencyCounted, 1/float(rowCounter), *offset_Value*)
>
> *offset_Value - when it is text it is bad*
> *offset_Value - when it is int it is bad*
>
> *so how to initialize offset in complex signal source in python ??*
>
> *Greeting :)*
>
>
>
> ___
> Discuss-gnuradio mailing 
> listDiscuss-gnuradio@gnu.orghttps://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Multi-rtl - making multi-channel receiver out of multiple RTL-SDR dongles

2016-05-24 Thread Przemek Lewandowski
Nice Job :)

Good to see friends from Poland playing with GnuRadio :)

All Best

2016-05-24 22:03 GMT+02:00 Piotr Krysik :

> Hi all,
>
> I want to announce new GNU Radio related project prepared by me -
> Multi-rtl:
> https://github.com/ptrkrysik/multi-rtl
>
> It is a Gnu Radio block that combines multiple RTL-SDR receivers into
> one multi-channel receiver.
>
> Only hardware modification to RTL-SDR dongles required is connecting
> them to a common clock source (i.e. one of the dongles' oscillator as
> Juha Verinen showed once). Each channel can work on a different central
> frequency.
>
> Everyone who wants to know how it was achieved is invited to read my
> github page:
>
> https://ptrkrysik.github.io
>
> Best Regards,
> Piotr Krysik
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Analog and Digital Transmission in parallel

2016-06-12 Thread Przemek Lewandowski
Hello everybody

Im creating multi mudulation transmitter - project at my university. I have
a conceptual problem.
I have analog modulations: AM, SSB, FM - narrow and wide
and digital modulations: qam, qpsk, gfsk

and I want to have largest bandwith as possible :) to transmit all
modulations simultanously.

Scheme of my transmitter is:


/ AM \
wav source (16 KHz) - Matrix multiply- SSB -   Matrix Multiply -> USRP
Dev
- FM N -
   - FM W -

   - QAM -
   - QPSK -
   \ gfsk -


And now is my question :)
I have now Sample Rate for whole project and Device - 2Mega Samples

When I want to transmit all analog modulations with rate o 2 MS it is good

But when I want to add one of digital modulation to analog modulation, I
get Underrun after 3 minutes.

But best is that when I run all digital modulation (no analog modulation)
it behave properly.

I have put sample sate probes on all modulations and after WAV file and
here can be interesting thing:
1) when analog is transmitted only output Sample Rate of WAV Source is 16
KHz, but when digital is send Sample Rate is 2.5 Mega samples

Is it proper to send analog and digital modulation in parallel ?? I I see
this, there are two different sample rate here ?!


All The Best
Przemek
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] question about bandwith B210 - USB3

2016-06-30 Thread Przemek Lewandowski
Hello

I need to generate as wide bandwith as possible. Yes I know that this is
waste of energy, but beside this simple example I want to put some other
channels.

On my USRP B210 I can afford now about 18 MS.
I read on Ettus page that B200 can tx about 40 - 60 MS - depends on USB
driver.

So 15 MS is 3 times slower :) Im very beginer with filters at gnu radio so
I suppose that default filters can be not so good optimized and propably I
will need it to fix it manually.

What do You think ???

This is my graph:
https://www.dropbox.com/s/xzwvb0dm25ubh5i/bandwith_test2.grc.png?dl=0

All The Best.


bandwith_test2.grc
Description: application/gnuradio-grc
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] FSK - implementation

2015-08-08 Thread Przemek Lewandowski
I have a question about BFSK/M-FSK modulations in GnuRadio.

If I have a symbol 1 or 0 and it has got 64 samples (2 periods of
sin/cos) and I want to modulate it with 2 different frequencies for
example: f1 = 175 KHz = 5,7 us f2 = 225 KHz = 4,4 us

Problem is that 0 or 1 binary are same width - 64 samples but width for
cos/sin periods are diferent and longer period will be cut for shorter
symbol.

Do I need to generate two diferent symbols width for 0 or 1 ? what with
bigger M-FSK ?

thank you in advice :)

-- 
Posted via http://www.ruby-forum.com/.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Changing GUI structure on the fly

2015-09-02 Thread Przemek Lewandowski
Hello

I have a question: I have to program one application, that will switch
between about 20 modulations.
With 20 modulations, program will have a lot of parameters to change, so
GUI needs to change during runtime.

Is it possible to do somethink like that ??
Are there any design patterns for problem like this ?

Many thanks
Przemek Lewandowski
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] ssb - question

2015-09-08 Thread Przemek Lewandowski
Hi everybody

Im trying to make SSB modulation with Hilbert transform. And Im using IQ
modulator
here is schema:
http://postimg.org/image/gms5srret/

And I have a question. In Frequency domain there should be one peak, and on
on my plot there is one - that is good, and second that is
smaller/suppressed.

Is something wrong ?? or is it normal ??

Is Hilbert method for creating SSB signal is good ?? or can it be made
easier ???


thank you very much.
Przemek Lewandowski
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] ssb - question

2015-09-08 Thread Przemek Lewandowski
Sorry I didnt attached second plot.

http://postimg.org/image/h0y3640w5/

2015-09-08 14:48 GMT+02:00 Przemek Lewandowski :

> Hi everybody
>
> Im trying to make SSB modulation with Hilbert transform. And Im using IQ
> modulator
> here is schema:
> http://postimg.org/image/gms5srret/
>
> And I have a question. In Frequency domain there should be one peak, and
> on on my plot there is one - that is good, and second that is
> smaller/suppressed.
>
> Is something wrong ?? or is it normal ??
>
> Is Hilbert method for creating SSB signal is good ?? or can it be made
> easier ???
>
>
> thank you very much.
> Przemek Lewandowski
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] ssb - question

2015-09-12 Thread Przemek Lewandowski
Ron Thank You very much for this repository.
It helps me a lot. To understand how Gnu Radio works and different
modulations.

thank you :D

2015-09-08 19:11 GMT+02:00 Ron Economos :

> There is an easier way. A DSB modulator and bandpass filter. You can
> download a tested flow graph here:
>
> http://www.w6rz.net/ssb.grc
>
> and the test audio file:
>
> http://www.w6rz.net/ssbaudio.wav
>
> The flow graph is set up for LSB. For USB, just swap the Band Pass Filter
> block with the one that's disabled.
>
> The 10 kHz signal source and multiply blocks are optional. I use this to
> move the TX signal away from the DC offset spike of my receiver.
>
> Original flow graph is here:
>
> https://github.com/argilo/sdr-examples
>
> https://github.com/argilo/sdr-examples/blob/master/multi_tx.grc
>
> Ron
>
>
> On 09/08/2015 05:48 AM, Przemek Lewandowski wrote:
>
>> Hi everybody
>>
>> Im trying to make SSB modulation with Hilbert transform. And Im using IQ
>> modulator
>> here is schema:
>> http://postimg.org/image/gms5srret/
>>
>> And I have a question. In Frequency domain there should be one peak, and
>> on on my plot there is one - that is good, and second that is
>> smaller/suppressed.
>>
>> Is something wrong ?? or is it normal ??
>>
>> Is Hilbert method for creating SSB signal is good ?? or can it be made
>> easier ???
>>
>>
>> thank you very much.
>> Przemek Lewandowski
>>
>>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Analyze data from Time Sink

2015-09-12 Thread Przemek Lewandowski
Hello everybody

I have a question:

I have my simple transmitter from garage and I recorded its data to sink
file.
Is there any software that support analyzing this kind of data in plot ??

I cant save it to wav  file and open it in Audacity because I have 1.92M
Sample rate ...

thank you
Przemek Lewandowski
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Analyze data from Time Sink

2015-09-12 Thread Przemek Lewandowski
Thank you, I will check it.

2015-09-12 20:17 GMT+02:00 Kevin McQuiggin :

> The open source utility gnuplot works really well, I'd recommend it.
>
> Kevin
>
> Sent from my iPhone
>
> > On Sep 12, 2015, at 11:03, Przemek Lewandowski 
> wrote:
> >
> > Hello everybody
> >
> > I have a question:
> >
> > I have my simple transmitter from garage and I recorded its data to sink
> file.
> > Is there any software that support analyzing this kind of data in plot ??
> >
> > I cant save it to wav  file and open it in Audacity because I have 1.92M
> Sample rate ...
> >
> > thank you
> > Przemek Lewandowski
> > ___
> > Discuss-gnuradio mailing list
> > Discuss-gnuradio@gnu.org
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Analyze data from Time Sink

2015-09-13 Thread Przemek Lewandowski
Thank you Marcus, I will try it also .

2015-09-12 20:47 GMT+02:00 Marcus Müller :

> Hi Przemek,
>
> in fact, you can import the raw float (complex) files in audacity; try
> File->import->Raw Data and set everything correctly.
>
> However, GNU Radio does come with a tool of somewhat usable scripts for
> offline analysis, for example usage refer to
> gr_plot_c --help
> For other programs from that suite, try typing
> gr_plot
> into your shell -- most shells will then offer you alternatives; there's
> plotters for various formats, PSD/FFT plotting etc.
>
> Tim has written the suchsamples example of awesomeness, asking to be
> integrated into your own offline analysis tools; it's part of the gr-pyqt
> module [1].
>
> Other than that, there was a very interesting thread in July 2014, [2],
> discussing these kinds of things :)
>
> Best regards,
> Marcus
>
> [1] https://github.com/osh/gr-pyqt ; can also be install using pybombs,
> i.e. "pybombs install gr-pyqt"
> [2]
> https://lists.gnu.org/archive/html/discuss-gnuradio/2014-07/msg00211.html
>
>
> On 12.09.2015 20:03, Przemek Lewandowski wrote:
>
> Hello everybody
>
> I have a question:
>
> I have my simple transmitter from garage and I recorded its data to sink
> file.
> Is there any software that support analyzing this kind of data in plot ??
>
> I cant save it to wav  file and open it in Audacity because I have 1.92M
> Sample rate ...
>
> thank you
> Przemek Lewandowski
>
>
> ___
> Discuss-gnuradio mailing 
> listDiscuss-gnuradio@gnu.orghttps://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Analyze data from Time Sink

2015-09-14 Thread Przemek Lewandowski
Thanks Michael, but I need somethink like Oscilloscope, I think that
GnuPlot can do this kind of job but Im having problems with all that
commands that need to bu run to show something :)

But here is tutorial http://www.swigerco.com/gnuradio/plotting.html

2015-09-14 22:24 GMT+02:00 Michael Ossmann :

> Also check out inspectrum:
>
> https://github.com/miek/inspectrum
>
> So far only a spectrogram view is implemented.
>
> Mike
>
>
> On Sat, Sep 12, 2015 at 08:47:00PM +0200, Marcus Müller wrote:
> >
> > Hi Przemek,
> >
> > in fact, you can import the raw float (complex) files in audacity; try
> > File->import->Raw Data and set everything correctly.
> >
> > However, GNU Radio does come with a tool of somewhat usable scripts for
> > offline analysis, for example usage refer to
> > gr_plot_c --help
> > For other programs from that suite, try typing
> > gr_plot
> > into your shell -- most shells will then offer you alternatives; there's
> > plotters for various formats, PSD/FFT plotting etc.
> >
> > Tim has written the suchsamples example of awesomeness, asking to be
> > integrated into your own offline analysis tools; it's part of the
> > gr-pyqt module [1].
> >
> > Other than that, there was a very interesting thread in July 2014, [2],
> > discussing these kinds of things :)
> >
> > Best regards,
> > Marcus
> >
> > [1] https://github.com/osh/gr-pyqt ; can also be install using pybombs,
> > i.e. "pybombs install gr-pyqt"
> > [2]
> >
> https://lists.gnu.org/archive/html/discuss-gnuradio/2014-07/msg00211.html
> >
> > On 12.09.2015 20:03, Przemek Lewandowski wrote:
> > > Hello everybody
> > >
> > > I have a question:
> > >
> > > I have my simple transmitter from garage and I recorded its data to
> > > sink file.
> > > Is there any software that support analyzing this kind of data in plot
> ??
> > >
> > > I cant save it to wav  file and open it in Audacity because I have
> > > 1.92M Sample rate ...
> > >
> > > thank you
> > > Przemek Lewandowski
> > >
> > >
> > > ___
> > > Discuss-gnuradio mailing list
> > > Discuss-gnuradio@gnu.org
> > > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
>
> > ___
> > Discuss-gnuradio mailing list
> > Discuss-gnuradio@gnu.org
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Sample Rate in GHz

2015-09-14 Thread Przemek Lewandowski
Hello everyone

I didnt try it yet, but as I see Ettus B210 has got 61 MS/sec and 6 GHz
upper frequency limit.

If I want to generate Sinusoid  for 6 GHz, I need a 12Giga Sample Rate
(Nyquist theorem) ?!  Propably not, as I think.


Thank You
Przemek Lewandowski
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] question about routing data

2015-10-03 Thread Przemek Lewandowski
Hi everybody :)

Simple, fast question.
Task: Implement as many as possible modulations with GnuRadio - analog and
digital
Problem: how to switch between many modulation in GnuRadio Companion with
minimal performance issue ?

I saw that, there is "Valve" component and maybe when there is possibility
to link it with "QT GUI Chooser" or "QT Push Button"  ???

Is there any other solution ?

here is my image with conecption:
 http://postimg.org/image/d8pju0s21/

Greetings
Przemek Lewandowski
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] question about routing data

2015-10-04 Thread Przemek Lewandowski
Thank you Kevin for reply.

I have created small system with "multiply matrix" block. And it works
good, BUT I dont how to change it during runtime :) there is input "set A"
- but I dont know how to set it from gui ?? all i know is that input is
async


Here is my prototype
http://postimg.org/image/krw9mxmb5/

Greetings

2015-10-04 2:00 GMT+02:00 Kevin Reid :

> On Oct 3, 2015, at 13:58, Przemek Lewandowski 
> wrote:
>
> > Hi everybody :)
> >
> > Simple, fast question.
> > Task: Implement as many as possible modulations with GnuRadio - analog
> and digital
> > Problem: how to switch between many modulation in GnuRadio Companion
> with minimal performance issue ?
>
> There's two different sorts of performance you might care about:
>
> If you want the best switching speed, use a Multiply Matrix block to
> combine all the modulators' outputs but multiply all but one of them by
> zero.
>
> If you want the least wasted CPU, you must actually remove the unused
> modulators from the flow graph; this cannot be done inside GRC (unless you
> use Selector and Valve carefully) but can be done from a Python program
> (which can interact with things written using GRC via hier blocks).
>
> --
> Kevin Reid  <http://switchb.org/kpreid/>
>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] question about routing data

2015-10-04 Thread Przemek Lewandowski
Kevin, I am eternally grateful.

thank  you for help, it wasnt so obvious - I mean that expression
"[[chooser == i for i in xrange(3)]]"

2015-10-04 16:35 GMT+02:00 Kevin Reid :

> On Oct 4, 2015, at 6:02, Przemek Lewandowski  wrote:
>
> > Thank you Kevin for reply.
> >
> > I have created small system with "multiply matrix" block. And it works
> good, BUT I dont how to change it during runtime :) there is input "set A"
> - but I dont know how to set it from gui ?? all i know is that input is
> async
>
> Don't use the message port, just the regular GRC dataflow stuff. That is,
> you enter for the matrix value a Python expression depending on the GUI
> block's value, and GRC takes care of updating it when needed.
>
> Here's a simple demo. The QT GUI Chooser block produces a numeric index,
> and we specify a 1-by-n matrix which will have exactly one nonzero value at
> that index:
>
> [[chooser == i for i in xrange(3)]]
>
>
>
>
> --
> Kevin Reid  <http://switchb.org/kpreid/>
>
>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] question about routing data

2015-10-04 Thread Przemek Lewandowski
Kevin, one more small question

if I want to have for example 3 inputs and 3 outputs, and 2 gui chooser
widgets - for choosing input and output. what will change ?

problem is that I dont know when expression "[[chooser == i for i in
xrange(3)]]"  is invoked. I tryied to do a function instead of this
expression but it was only invoked once.

Greeting


2015-10-04 16:45 GMT+02:00 Przemek Lewandowski :

> Kevin, I am eternally grateful.
>
> thank  you for help, it wasnt so obvious - I mean that expression
> "[[chooser == i for i in xrange(3)]]"
>
> 2015-10-04 16:35 GMT+02:00 Kevin Reid :
>
>> On Oct 4, 2015, at 6:02, Przemek Lewandowski 
>> wrote:
>>
>> > Thank you Kevin for reply.
>> >
>> > I have created small system with "multiply matrix" block. And it works
>> good, BUT I dont how to change it during runtime :) there is input "set A"
>> - but I dont know how to set it from gui ?? all i know is that input is
>> async
>>
>> Don't use the message port, just the regular GRC dataflow stuff. That is,
>> you enter for the matrix value a Python expression depending on the GUI
>> block's value, and GRC takes care of updating it when needed.
>>
>> Here's a simple demo. The QT GUI Chooser block produces a numeric index,
>> and we specify a 1-by-n matrix which will have exactly one nonzero value at
>> that index:
>>
>> [[chooser == i for i in xrange(3)]]
>>
>>
>>
>>
>> --
>> Kevin Reid  <http://switchb.org/kpreid/>
>>
>>
>>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] QT - grid layout

2015-10-08 Thread Przemek Lewandowski
Hello everyone

I have a question, because I cant find simple answer. Can I create more
advance QT layout with QT widgets ??

Seconds Question: is there any example or tutorial how to create own
widgets and put it to GnuRadio layout ??

Greetings
Przemek Lewandowski
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] QT - grid layout

2015-10-09 Thread Przemek Lewandowski
Ok,
2) my Mentor gave me a task, to verify is it possible to do something like
GQRX software. This is hard way. He wants to know is it possible to create
my own widget and put it into GnuRadio Companion and use like any others QT
widgets.

1) By "advanced"  QT layout I meant to say something like this:
http://postimg.org/image/ce6geqpfn/  I made it as a small example.
I cant find how to put QT widget in one horizontal line
Or put Tab Pane inside Tab Pane.
Or do grid layout like in WX ??

Przemek Lewandowski

2015-10-09 18:32 GMT+02:00 Martin Braun :

> On 08.10.2015 13:08, Przemek Lewandowski wrote:
> > Hello everyone
> >
> > I have a question, because I cant find simple answer. Can I create more
> > advance QT layout with QT widgets ??
>
> Well, it's not a simple question :) What exactly do you mean? Are you
> using GRC, or writing straight QT? In the latter case, you have all the
> options that QT has to offer.
>
> > Seconds Question: is there any example or tutorial how to create own
> > widgets and put it to GnuRadio layout ??
>
> Most of the things in gr-qtgui are widgets, you can have a look at them
> for example code.
>
> Happy hacking,
> M
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] matrix multiply

2015-10-13 Thread Przemek Lewandowski
Hi

Im trying to set A Matrix in the "Multiply by Matrix" Block in Complex
block, but everytime I put my value it says:

"AttributeError: 'module' object has no attribute 'multiply_matrix_cc'"

It is propably problem of A Matrix Format:

This is my format:
[[(1+1j), (1+1j), (1+1j), (1+1j), (1+1j)]]

I woud like to have 5 inputs and 1 output

thank you

Przemek Lewandowski
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] matrix multiply

2015-10-13 Thread Przemek Lewandowski
: D

I have version  v3.7.7.1-178-gd5cea6e4

I presume, that it want be that easy to upgread my GRC

How can I verify in which version it is fixed ?

2015-10-13 23:38 GMT+02:00 Martin Braun :

> On 13.10.2015 13:39, Przemek Lewandowski wrote:
> > Hi
> >
> > Im trying to set A Matrix in the "Multiply by Matrix" Block in Complex
> > block, but everytime I put my value it says:
> >
> > "AttributeError: 'module' object has no attribute 'multiply_matrix_cc'"
>
> This is not an error in your arguments, it can actually not find the
> matrix multiplier. You might have an oldish version installed; we (I)
> had actually forgotten to add the _cc file to CMake, and it wouldn't get
> built. If you can, try updating.
>
> M
>
> >
> > It is propably problem of A Matrix Format:
> >
> > This is my format:
> > [[(1+1j), (1+1j), (1+1j), (1+1j), (1+1j)]]
> >
> > I woud like to have 5 inputs and 1 output
> >
> > thank you
> >
> > Przemek Lewandowski
> >
> >
> > ___
> > Discuss-gnuradio mailing list
> > Discuss-gnuradio@gnu.org
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Firmware is not compatibile

2015-10-14 Thread Przemek Lewandowski
Hello

My situation is:
I had previously version of GnuRadio from June. Everything worked fine.
Today I need to update my software due to patch for multiply_matrix_cc, and
I had small problem with Pybomb due to Python Miko that wasnt exist. Ok I
installed it. But befor that I searched solution and uninstalled nearly
everything. And after that I had installed newest version of GNURadio from
repository and newest version of UHD. Now everything is nearly working,
bt when I want to send my old files to B210 I have this error:

*Generating: "/home/przelew/Moje/top_block.py"*

*Executing: '/usr/bin/python2 -u /home/przelew/Moje/top_block.py'*

*linux; GNU C++ version 4.8.4; Boost_105400; UHD_003.010.git-38-gc77ffb3e*

*Traceback (most recent call last):*
*  File "/home/przelew/Moje/top_block.py", line 260, in *
*main()*
*  File "/home/przelew/Moje/top_block.py", line 248, in main*
*tb = top_block_cls()*
*  File "/home/przelew/Moje/top_block.py", line 75, in __init__*
*channels=range(1),*
*  File
"/home/przelew/target/lib/python2.7/dist-packages/gnuradio/uhd/__init__.py",
line 122, in constructor_interceptor*
*return old_constructor(*args)*
*  File
"/home/przelew/target/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py",
line 2034, in make*
*return _uhd_swig.usrp_sink_make(*args)*
*RuntimeError: RuntimeError: Expected firmware compatibility number 8.0,
but got 7.0:*
*The firmware build is not compatible with the host code build.*
*Please run:*

* "/home/przelew/target/lib/uhd/utils/uhd_images_downloader.py"*



And yes, I run python script 3 times, and it replaced images properly
Information should be somewhere else about firmware. OR I have
UHD_003.010  and python scipt downloaded wrong version :) here is the
output from python script:

*przelew@przelew-Lenovo:~/target$ python
/home/przelew/target/lib/uhd/utils/uhd_images_downloader.py*
*Images destination:  /home/przelew/target/share/uhd/images*
*Downloading images from:
http://files.ettus.com/binaries/images/uhd-images_003.009.001-release.zip
<http://files.ettus.com/binaries/images/uhd-images_003.009.001-release.zip>*
*Downloading images to:   /tmp/tmpq04WZA/uhd-images_003.009.001-release.zip*
*24703 kB / 24703 kB (100%)*

*Images successfully installed to: /home/przelew/target/share/uhd/images*


Thank You for any advice :)
Przemek Lewandowski
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Firmware is not compatibile

2015-10-14 Thread Przemek Lewandowski
Wow Martin you are the best : D

My Board was all the time connected with computer. I didnt realized that it
can be a problem.

Thank You, now its working : )


2015-10-14 23:35 GMT+02:00 Marcus Müller :

> Hello Przemek,
>
> after downloading, you'll have load the firmware onto the device; that
> usually happens automatically after a power cycle. Did you remove the USRP
> from power before trying to use it again? I'm asking because I don't see
> the FPGA loading sequence in your output.
>
> Regarding the version mismatch: that should be ok, UHD 3.10. uses the 3.9
> image compatibility.
>
> Best regards,
> Marcus
>
>
> On 14.10.2015 22:28, Przemek Lewandowski wrote:
>
> Hello
>
> My situation is:
> I had previously version of GnuRadio from June. Everything worked fine.
> Today I need to update my software due to patch for multiply_matrix_cc, and
> I had small problem with Pybomb due to Python Miko that wasnt exist. Ok I
> installed it. But befor that I searched solution and uninstalled nearly
> everything. And after that I had installed newest version of GNURadio from
> repository and newest version of UHD. Now everything is nearly working,
> bt when I want to send my old files to B210 I have this error:
>
> *Generating: "/home/przelew/Moje/top_block.py"*
>
> *Executing: '/usr/bin/python2 -u /home/przelew/Moje/top_block.py'*
>
> *linux; GNU C++ version 4.8.4; Boost_105400; UHD_003.010.git-38-gc77ffb3e*
>
> *Traceback (most recent call last):*
> *  File "/home/przelew/Moje/top_block.py", line 260, in *
> *main()*
> *  File "/home/przelew/Moje/top_block.py", line 248, in main*
> *tb = top_block_cls()*
> *  File "/home/przelew/Moje/top_block.py", line 75, in __init__*
> *channels=range(1),*
> *  File
> "/home/przelew/target/lib/python2.7/dist-packages/gnuradio/uhd/__init__.py",
> line 122, in constructor_interceptor*
> *return old_constructor(*args)*
> *  File
> "/home/przelew/target/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py",
> line 2034, in make*
> *return _uhd_swig.usrp_sink_make(*args)*
> *RuntimeError: RuntimeError: Expected firmware compatibility number 8.0,
> but got 7.0:*
> *The firmware build is not compatible with the host code build.*
> *Please run:*
>
> * "/home/przelew/target/lib/uhd/utils/uhd_images_downloader.py"*
>
>
>
> And yes, I run python script 3 times, and it replaced images properly
> Information should be somewhere else about firmware. OR I have
> UHD_003.010  and python scipt downloaded wrong version :) here is the
> output from python script:
>
> *przelew@przelew-Lenovo:~/target$ python
> /home/przelew/target/lib/uhd/utils/uhd_images_downloader.py*
> *Images destination:  /home/przelew/target/share/uhd/images*
> *Downloading images from:
> http://files.ettus.com/binaries/images/uhd-images_003.009.001-release.zip
> <http://files.ettus.com/binaries/images/uhd-images_003.009.001-release.zip>*
> *Downloading images to:
> /tmp/tmpq04WZA/uhd-images_003.009.001-release.zip*
> *24703 kB / 24703 kB (100%)*
>
> *Images successfully installed to: /home/przelew/target/share/uhd/images*
>
>
> Thank You for any advice :)
> Przemek Lewandowski
>
>
> ___
> Discuss-gnuradio mailing 
> listDiscuss-gnuradio@gnu.orghttps://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Firmware is not compatibile

2015-10-14 Thread Przemek Lewandowski
God demn it, MARCUS !! not Martin sorry for that.

2015-10-15 0:02 GMT+02:00 Przemek Lewandowski :

> Wow Martin you are the best : D
>
> My Board was all the time connected with computer. I didnt realized that
> it can be a problem.
>
> Thank You, now its working : )
>
>
> 2015-10-14 23:35 GMT+02:00 Marcus Müller :
>
>> Hello Przemek,
>>
>> after downloading, you'll have load the firmware onto the device; that
>> usually happens automatically after a power cycle. Did you remove the USRP
>> from power before trying to use it again? I'm asking because I don't see
>> the FPGA loading sequence in your output.
>>
>> Regarding the version mismatch: that should be ok, UHD 3.10. uses the 3.9
>> image compatibility.
>>
>> Best regards,
>> Marcus
>>
>>
>> On 14.10.2015 22:28, Przemek Lewandowski wrote:
>>
>> Hello
>>
>> My situation is:
>> I had previously version of GnuRadio from June. Everything worked fine.
>> Today I need to update my software due to patch for multiply_matrix_cc, and
>> I had small problem with Pybomb due to Python Miko that wasnt exist. Ok I
>> installed it. But befor that I searched solution and uninstalled nearly
>> everything. And after that I had installed newest version of GNURadio from
>> repository and newest version of UHD. Now everything is nearly working,
>> bt when I want to send my old files to B210 I have this error:
>>
>> *Generating: "/home/przelew/Moje/top_block.py"*
>>
>> *Executing: '/usr/bin/python2 -u /home/przelew/Moje/top_block.py'*
>>
>> *linux; GNU C++ version 4.8.4; Boost_105400; UHD_003.010.git-38-gc77ffb3e*
>>
>> *Traceback (most recent call last):*
>> *  File "/home/przelew/Moje/top_block.py", line 260, in *
>> *main()*
>> *  File "/home/przelew/Moje/top_block.py", line 248, in main*
>> *tb = top_block_cls()*
>> *  File "/home/przelew/Moje/top_block.py", line 75, in __init__*
>> *channels=range(1),*
>> *  File
>> "/home/przelew/target/lib/python2.7/dist-packages/gnuradio/uhd/__init__.py",
>> line 122, in constructor_interceptor*
>> *return old_constructor(*args)*
>> *  File
>> "/home/przelew/target/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py",
>> line 2034, in make*
>> *return _uhd_swig.usrp_sink_make(*args)*
>> *RuntimeError: RuntimeError: Expected firmware compatibility number 8.0,
>> but got 7.0:*
>> *The firmware build is not compatible with the host code build.*
>> *Please run:*
>>
>> * "/home/przelew/target/lib/uhd/utils/uhd_images_downloader.py"*
>>
>>
>>
>> And yes, I run python script 3 times, and it replaced images properly
>> Information should be somewhere else about firmware. OR I have
>> UHD_003.010  and python scipt downloaded wrong version :) here is the
>> output from python script:
>>
>> *przelew@przelew-Lenovo:~/target$ python
>> /home/przelew/target/lib/uhd/utils/uhd_images_downloader.py*
>> *Images destination:  /home/przelew/target/share/uhd/images*
>> *Downloading images from:
>> http://files.ettus.com/binaries/images/uhd-images_003.009.001-release.zip
>> <http://files.ettus.com/binaries/images/uhd-images_003.009.001-release.zip>*
>> *Downloading images to:
>> /tmp/tmpq04WZA/uhd-images_003.009.001-release.zip*
>> *24703 kB / 24703 kB (100%)*
>>
>> *Images successfully installed to: /home/przelew/target/share/uhd/images*
>>
>>
>> Thank You for any advice :)
>> Przemek Lewandowski
>>
>>
>> ___
>> Discuss-gnuradio mailing 
>> listDiscuss-gnuradio@gnu.orghttps://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>>
>> ___
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Passing GUI widgets into hier block with parameters

2015-10-15 Thread Przemek Lewandowski
Hello

I have a question.

I have created many hier blocks, and I would like to pass into sam values
from GUI but when state is changing, it doesnt correspond to value inside a
hier block.

this is my flowgraph:
http://postimg.org/image/qgaf705q1/a9569ee5/

With GUI Chooser I would like to change SideBand of SSB Modulation. It is
working when block responsible for switching side bands is outside of hier
block. but it doesnt work when it is inside.

This is my hier block, but with removed block responsible for swithcing,
only Parameter left.

http://postimg.org/image/4sbalehpl/

Thank You
Przemek Lewandowski
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Passing GUI widgets into hier block with parameters

2015-10-18 Thread Przemek Lewandowski
Hello everybody,
Is this question has some not understandable phrases or should I correct
something :) ? or is it stupid question or so simple.


I still have a problem. Normally is it correct to pass GUI state inside a
hierarchical block or is it not allowed ??



All the best.
Przemek

2015-10-15 20:38 GMT+02:00 Przemek Lewandowski :

> Hello
>
> I have a question.
>
> I have created many hier blocks, and I would like to pass into sam values
> from GUI but when state is changing, it doesnt correspond to value inside a
> hier block.
>
> this is my flowgraph:
> http://postimg.org/image/qgaf705q1/a9569ee5/
>
> With GUI Chooser I would like to change SideBand of SSB Modulation. It is
> working when block responsible for switching side bands is outside of hier
> block. but it doesnt work when it is inside.
>
> This is my hier block, but with removed block responsible for swithcing,
> only Parameter left.
>
> http://postimg.org/image/4sbalehpl/
>
> Thank You
> Przemek Lewandowski
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Discuss-gnuradio Digest, Vol 155, Issue 22

2015-10-19 Thread Przemek Lewandowski
Sorry for mistake, I suspected that something can be wrong with my email on
forum. Im using Gmail and didnt  realized about wrong mail format.

Thanks

2015-10-19 19:47 GMT+02:00 John D. Hays :

>
>
> On Mon, Oct 19, 2015 at 9:01 AM,  wrote:
>
>> Send Discuss-gnuradio mailing list submissions to
>> discuss-gnuradio@gnu.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>> or, via email, send a message with subject or body 'help' to
>> discuss-gnuradio-requ...@gnu.org
>>
>> You can reach the person managing the list at
>> discuss-gnuradio-ow...@gnu.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Discuss-gnuradio digest..."
>>
>> Today's Topics:
>>
>>1. Re: Passing GUI widgets into hier block with  parameters
>>   (Przemek Lewandowski)
>>
>>
>> -- Forwarded message --
>> From: Przemek Lewandowski 
>> To: GNURadio Discussion List 
>> Cc:
>> Date: Sun, 18 Oct 2015 18:18:27 +0200
>> Subject: Re: [Discuss-gnuradio] Passing GUI widgets into hier block with
>> parameters
>> Hello everybody,
>> Is this question has some not understandable phrases or should I correct
>> something :) ? or is it stupid question or so simple.
>>
>>
>> I still have a problem. Normally is it correct to pass GUI state inside a
>> hierarchical block or is it not allowed ??
>>
>>
>>
>> All the best.
>> Przemek
>>
>> 2015-10-15 20:38 GMT+02:00 Przemek Lewandowski :
>>
>>> Hello
>>>
>>> I have a question.
>>>
>>> I have created many hier blocks, and I would like to pass into sam
>>> values from GUI but when state is changing, it doesnt correspond to value
>>> inside a hier block.
>>>
>>> this is my flowgraph:
>>> http://postimg.org/image/qgaf705q1/a9569ee5/
>>>
>>> With GUI Chooser I would like to change SideBand of SSB Modulation. It
>>> is working when block responsible for switching side bands is outside of
>>> hier block. but it doesnt work when it is inside.
>>>
>>> This is my hier block, but with removed block responsible for swithcing,
>>> only Parameter left.
>>>
>>> http://postimg.org/image/4sbalehpl/
>>>
>>> Thank You
>>> Przemek Lewandowski
>>>
>>
>>
>> ___
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>
>
> --
>
> --
> John D. Hays
> K7VE
>
> PO Box 1223, Edmonds, WA 98020-1223
> <http://k7ve.org/blog>  <http://twitter.com/#!/john_hays>
> <http://www.facebook.com/john.d.hays>
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] qtgui freq_sink_c - change minimal height

2015-11-01 Thread Przemek Lewandowski
Hello again

I have a question about height of frequency sink. Im writing in python
totally new GUI, without help of GnuRadio Companion, and I have problems
with space. So my question is: How can I change height  of freq_sink_c
component from qtgui module ??? It take 1/3 of my screen :)

thank you
Przemek Lewandowski
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] tx <-> rx transmission

2016-03-13 Thread Przemek Lewandowski
Hello friends, does anybody know where I can find some full example with
one way transmission in one of this modulations: m-psk, m-fsk, m-qam ??? -
But not Differential m-psk
I would like to   see full recovery path (carrier, symbol, equalization) in
radio receiver.
I know that there is example on gnuradio site but it doesnt involve real
devices, and if I tried myself to reconnect with devices this example I had
few blocker-problems :)
I have B210 and RTL.

PS.
What is a proper path of signal receiving in digital modulation receiver:
in my logic :

device -> clock recovery -> symbol recovery (costas loop) -> equalization
->demodulator -> packet deckoder
 ??




Thank you for any advice.

Przemek Lewandowski
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio