Re: Does complex conjugate invert IQ ?

2021-12-13 Thread Martin Luelf
Dear Rachida, in order to do that, use the "complex to float" and "float to complex" blocks and connect the re output to the im input and the im output to the re input. Yours Martin On 13.12.21 16:31, Rachida SAROUI wrote: Thank you for responding, but what I meant by invert is swapping the

Re: Questions On GNU Radio FFT Data logging

2021-12-10 Thread Martin Luelf
Dear Zen Chen, to subscribe to the mailing list you need to follow this link: https://lists.gnu.org/mailman/listinfo/discuss-gnuradio I think the account on the GNURadio website is for editing the Wiki etc. You are sampling your signal at 10 MSamples per second. Since you use a complex signal

Re: Adding custom function in OOT module

2021-10-10 Thread Martin Luelf
Dear Wei, which GNURadio version are you using? On 3.9 you need to update the python bindings for your block (assuming you have a python flowgraph). Before 3.8 you need to make sure that the SWIG bindings that GNURadio generates are updated (which should happen automatically, but for me th

Re: How to debug GNU Radio's C++ program from source code?

2021-08-03 Thread Martin Luelf
Hi, in case you don't have VS code, you can also run GDB directly https://wiki.gnuradio.org/index.php/TutorialsDebugging#Tutorial:_Using_gdb_with_Pythonic_GR_applications Yours Martin On 03/08/2021 15:48, Josh Morman wrote: Hello! Even though GNU Radio has python bindings with swig or pybi

Re: Having problems using forecast method

2021-07-06 Thread Martin Luelf
eorge On Tue, Jul 6, 2021 at 1:04 AM Martin Luelf <mailto:m...@mluelf.de>> wrote: Dear George, what specifically does not work with your test? Any error messages, or is it not producing the result you are expecting. And if so, what is your block input, what is the output

Re: Having problems using forecast method

2021-07-05 Thread Martin Luelf
Dear George, what specifically does not work with your test? Any error messages, or is it not producing the result you are expecting. And if so, what is your block input, what is the output and what output are you expecting? Keep in mind that the forecast method tells the scheduler how much i

Re: How to print Socket PDU messages on the terminal?

2020-12-09 Thread Martin Luelf
Hi Shumin, netcat (nc) uses TCP by default, but your Socket PDU is set to UDP. So you are sending and listening to two different sockets. There are two ways to fix that (but don't apply both at the same time or it won't work again): 1. Switch the PDU Socket type to TCP Server (like it is done

Sending out messages on block shutdown

2020-09-22 Thread Martin Luelf
Dear list, I have a custom frame sync block that takes a stream of complex samples as inputs (output signature is 0,0) and outputs PDU messages if frames were found. When the upstream block is done I would still like to send out a few messages (flushing an internal buffer), before shutting dow

Re: Having trouble with C++ OOT block in restricting output to those input values I wish to pass

2020-09-14 Thread Martin Luelf
put_items[0]; i++)", can I assume the Gnuradio parameter ninput_items[0] is equal to 100 and each function call? Thanks for the help. Best Regards, George On Sun, Sep 13, 2020 at 2:51 AM Martin Luelf <mailto:m...@mluelf.de>> wrote: Hi George, noutput_items is

Re: Having trouble with C++ OOT block in restricting output to those input values I wish to pass

2020-09-13 Thread Martin Luelf
nks very much for the help. Regards, George On Thu, Sep 10, 2020 at 12:06 AM Martin Luelf <mailto:m...@mluelf.de>> wrote: Dear George, this also caused me a lot of headache when I started with GNURadio, so here is what I learned about it. Let's start with the fore

Re: Having trouble with C++ OOT block in restricting output to those input values I wish to pass

2020-09-09 Thread Martin Luelf
Dear George, this also caused me a lot of headache when I started with GNURadio, so here is what I learned about it. Let's start with the forecast method. This tells GNURadio how many input samples you need on each input stream to generate the requested number of output items. Usually GNURad

Re: GNU Radio 3.7 on Ubuntu 20.04

2020-05-14 Thread Martin Luelf
Hi, I just updated my Kubuntu today without thinking about GNURadio (and due to my OOT not being ported to 3.8 yet I am still stuck on 3.7). I still have python2 running like a charm. But I could not get the QT bindings running, since my KDE is using QT5 and trying to install Qt4 looks like i

Re: MPSK SNR Estimation block shifts input by one

2020-03-24 Thread Martin Luelf
0 input samples (in total, might be over different calls to work) see 10, 14 or 15 unique (as in not counting them twice) symbols? Yours Martin From the example Best regards, Marcus On 24.03.20 10:33, Martin Luelf wrote: Hi everybody, I stumbled over a strange behavior while writing unittests

MPSK SNR Estimation block shifts input by one

2020-03-24 Thread Martin Luelf
Hi everybody, I stumbled over a strange behavior while writing unittests for a frame synchronization block. The MPSK SNR Estimation block from GNURadio will output a complex zero sample before outputting the (shifted by one) input samples. To show this problem I use a Vector source with a s

Re: [Discuss-gnuradio] ControlPort setup_rpc function not called for pure message passing blocks

2016-03-07 Thread Martin Luelf
On 04.03.2016 18:05, Tom Rondeau wrote: On Wed, Mar 2, 2016 at 4:28 AM, Martin Luelf <mailto:m...@mluelf.de>> wrote: Dear mailing list, we are trying to create a status overview of our receiver by using the control ports feature. For most of our custom made blocks this

Re: [Discuss-gnuradio] ControlPort setup_rpc function not called for pure message passing blocks

2016-03-07 Thread Martin Luelf
. Do I need to have additional rights to open tickets? Martin Now, if someone can get rid of spammers, we wouldn't need to do this... Tom On 03/04/16 18:05, Tom Rondeau wrote: On Wed, Mar 2, 2016 at 4:28 AM, Martin Luelf mailto:m...@mluelf.de> <mailto:m...@mlue

[Discuss-gnuradio] ControlPort setup_rpc function not called for pure message passing blocks

2016-03-02 Thread Martin Luelf
our example block posted above and what we can do to change this. Yours sincerely Martin Luelf ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Re: [Discuss-gnuradio] Initial state options for Viterbi algorithm

2013-07-31 Thread Martin Luelf
Hi, if you encode a continuous stream of data you will not reset your encoder state in between. However if you want to decode the stream you want to perform blockwise operation to keep the latency and memory requirements down. In this cases it makes sense for me to reuse the last state as the init

Re: [Discuss-gnuradio] create uniform PMT vector from python

2013-04-11 Thread Martin Luelf
> Hi all, > > Is there a way to create a uniform PMT vector from python? > > I can use, for example, 'pmt.make_c32vector(length, value)' to create > a vector where each element is 'value' but I don't see a way to modify > these values from python. > > If there isn't, are there any objections to ove

[Discuss-gnuradio] Set USRP clock to system time in GRC

2013-04-05 Thread Martin Luelf
sink/source to set the clocks to system time by default? Have a nice weekend. Yours Martin Luelf ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Re: [Discuss-gnuradio] Simultaneously send data and store it in file with high sample rate

2013-03-25 Thread Martin Luelf
2e6 i am getting overflow. > > Thanks. > > > On Fri, Mar 22, 2013 at 7:07 PM, Martin Luelf wrote: > >> > Hi Martin, >> > >> > Can you please show me an example.. How to write connect statement? >> > >> > Thanks >> > >>

Re: [Discuss-gnuradio] Simultaneously send data and store it in file with high sample rate

2013-03-22 Thread Martin Luelf
> Hi Martin, > > Can you please show me an example.. How to write connect statement? > > Thanks > > > On Thu, Mar 21, 2013 at 6:26 PM, Martin Luelf wrote: > >> > Hi, >> > How to simultaneously transmit data to usrp and also store it in a >> fi

Re: [Discuss-gnuradio] uhd_fft and benchmark_tx

2013-03-21 Thread Martin Luelf
> when i run uhd_fft it runs ok but parallel i cannot run benchmark > so i must close the uhd_fft to run the benchmark_tx > > as message appears that RuntimeError: LookupError: KeyError: No devices > found for -> > Empty Device Address > although while searching i find video running both togoth

Re: [Discuss-gnuradio] build-gnuradio on Scientific Linux 6.3

2013-03-21 Thread Martin Luelf
> Possibly Ubuntu sets up /usr/local to be regular-user > writeable, but that would be a horrible security flaw. At least for my Ubuntu 12.04 /usr/local is owned by root:root with 0755 permissions and everything else would have given me nightmares ;) Maybe you started the script with sudo, instea

Re: [Discuss-gnuradio] Simultaneously send data and store it in file with high sample rate

2013-03-21 Thread Martin Luelf
> Hi, > How to simultaneously transmit data to usrp and also store it in a file.? > I > ran two separate flow graphs.But i want to have a sample rate of 25Mhz.Is > it possible to do it. > > I want the same thing in receiver side also(simultaneously detect the > packet and store the data) > > I am

Re: [Discuss-gnuradio] Developing with C++ but not python

2013-02-25 Thread Martin Luelf
> Hi, > I think python file means data go downstream without interacting > with other data stream.And I have seen several example writen in c++ and > they all contain a gr_top_block which makes them similar to python > files.Any body have the experience developing in c++?And what you think > is

Re: [Discuss-gnuradio] Block continues after EOF

2013-02-20 Thread Martin Luelf
> Dear List, > > I have another problem with stopping my C++ block. My block receives blobs > of bytes as messages over the new message passing interface and outputs > them as a byte stream. At some place I receive an EOF message, set a flag > and continue to empty my buffer in the work method. Onc

[Discuss-gnuradio] Block continues after EOF

2013-02-19 Thread Martin Luelf
Dear List, I have another problem with stopping my C++ block. My block receives blobs of bytes as messages over the new message passing interface and outputs them as a byte stream. At some place I receive an EOF message, set a flag and continue to empty my buffer in the work method. Once the buffe