Trace mpsk_receiver_cc()

Hello,

I would like to study the implementation of Costas loop in
gr.mpsk_receiver_cc. I need some additional information to be printed by
this block.

First of all can somebody tell me what code is executed when calling a
block? Is it the constructor and the general_work function in .cc file?

In my case, I have a test file calling dqpsk.dqpsk_demod. As can be seen
in
the dqpsk.py code, dqpsk_demod function uses a mpsk_receiver_cc block. I
have added some printf commands almost everywhere in the
mpsk_receiver_cc.cc
code and got none of them printed on the terminal when executing my test
file. Any hints on what is going on?

I modified mpsk_receiver_cc.cc file I found in
/usr/src/gnuradio/gnuradio-core/src/lib/general/.

Regards,
Irene


View this message in context:
http://www.nabble.com/Trace-mpsk_receiver_cc()-tp17605464p17605464.html
Sent from the GnuRadio mailing list archive at Nabble.com.

irene159 wrote:

First of all can somebody tell me what code is executed when calling a
block? Is it the constructor and the general_work function in .cc file?

Yes

In my case, I have a test file calling dqpsk.dqpsk_demod. As can be seen in
the dqpsk.py code, dqpsk_demod function uses a mpsk_receiver_cc block. I
have added some printf commands almost everywhere in the mpsk_receiver_cc.cc
code and got none of them printed on the terminal when executing my test
file. Any hints on what is going on?

You need to do a make, and make install … otherwise you don’t add your
new modifications to the library and install the library for the python
code to access.

  • George

George N. wrote:

You need to do a make, and make install … otherwise you don’t add your
new modifications to the library and install the library for the python
code to access.

Hi,

Thanks for giving me a hand.
I tried “make” and “make install” in the
/usr/src/gnuradio/gnuradio-core/src/lib/general/ directory and still
nothing
printed from the gr_mpsk_receiver_cc.cc file.

There can be no mistake on the file:

root@calculator-desktop:~# find / -name mpsk_receiver
/usr/local/include/gnuradio/gr_mpsk_receiver_cc.h
/usr/local/include/gnuradio/swig/gr_mpsk_receiver_cc.i
/usr/include/gnuradio/gr_mpsk_receiver_cc.h
/usr/include/gnuradio/swig/gr_mpsk_receiver_cc.i
/usr/src/gnuradio/gnuradio-core/src/lib/general/.svn/text-base/gr_mpsk_receiver_cc.h.svn-base
/usr/src/gnuradio/gnuradio-core/src/lib/general/.svn/text-base/gr_mpsk_receiver_cc.cc.svn-base
/usr/src/gnuradio/gnuradio-core/src/lib/general/.svn/text-base/gr_mpsk_receiver_cc.i.svn-base
/usr/src/gnuradio/gnuradio-core/src/lib/general/gr_mpsk_receiver_cc.i
/usr/src/gnuradio/gnuradio-core/src/lib/general/.deps/gr_mpsk_receiver_cc.Plo
/usr/src/gnuradio/gnuradio-core/src/lib/general/gr_mpsk_receiver_cc.lo
/usr/src/gnuradio/gnuradio-core/src/lib/general/gr_mpsk_receiver_cc.cc
/usr/src/gnuradio/gnuradio-core/src/lib/general/.libs/gr_mpsk_receiver_cc.o
/usr/src/gnuradio/gnuradio-core/src/lib/general/gr_mpsk_receiver_cc.h
root@calculator-desktop:~#

Any clues?


View this message in context:
http://www.nabble.com/Trace-mpsk_receiver_cc()-tp17605464p17618841.html
Sent from the GnuRadio mailing list archive at Nabble.com.

irene159 wrote:

Thanks for giving me a hand.
I tried “make” and “make install” in the
/usr/src/gnuradio/gnuradio-core/src/lib/general/ directory and still nothing
printed from the gr_mpsk_receiver_cc.cc file.

Any clues?

Do “make install” from gnuradio-core/src/lib

Tom

Tom R. wrote:

Do “make install” from gnuradio-core/src/lib

Tom

You got it! Thanks,

Irene


View this message in context:
http://www.nabble.com/Trace-mpsk_receiver_cc()-tp17605464p17623536.html
Sent from the GnuRadio mailing list archive at Nabble.com.

OK, so far I have been able to call gr.mpsk_receiver_cc.freq() from
dqpsk.py
even if I haven’t found were it is coded.

print “NCO frequency : %f” % self.receiver.freq()

My purpose is to study mpsk_receiver_cc Costas loop features and I would
like to get Costas loop NCO frequency value for each circle in the loop.
But
how can I do this?


View this message in context:
http://www.nabble.com/Trace-mpsk_receiver_cc()-tp17605464p17642800.html
Sent from the GnuRadio mailing list archive at Nabble.com.

By the way, in the “Simple Gnuradio User Manual v1.0” [1] p.110 appears
sub
function (11) gr.mpsk_receiver_cc.freq(). I haven’t been able to find
this
function, does it really exist?

I would like to have your opinion, is this document compliant to GNU
Radio
code?

Regards,
Irene

[1] -
http://www.ece.jhu.edu/~cooper/SWRadio/Simple-Gnuradio-User-Manual-v1.0.pdf


View this message in context:
http://www.nabble.com/Trace-mpsk_receiver_cc()-tp17605464p17624979.html
Sent from the GnuRadio mailing list archive at Nabble.com.

irene159 wrote:

OK, so far I have been able to call gr.mpsk_receiver_cc.freq() from dqpsk.py
even if I haven’t found were it is coded.

print “NCO frequency : %f” % self.receiver.freq()

My purpose is to study mpsk_receiver_cc Costas loop features and I would
like to get Costas loop NCO frequency value for each circle in the loop. But
how can I do this?

You’ll probably want to do this inside gr_mpsk_receiver.cc instead of
calling the freq() function if you want to get a report of the value for
every iteration of the loop.

The frequency value (d_freq) is update in:
*gr_mpsk_receiver_cc::phase_error_tracking

You can also turn on verbose mode by setting VERBOST_COSTAS to 1 at the
top of gr_mpsk_receiver.cc and recompiling/installing. This pumps out a
lot of info on the current state of the loop.

Tom

Thank you very much. You have been of great help!

View this message in context:
http://www.nabble.com/Trace-mpsk_receiver_cc()-tp17605464p17648942.html
Sent from the GnuRadio mailing list archive at Nabble.com.

Hello again,

Sorry, I am not familiar with GNU Radio and I just keep coming up with
new
questions…

I am simulating a transmission using IF - Base Band frequency conversion
and
a channel_model block introducing noise and frequency offset. As I said
I am
particularly interested in the Costas loop performance.

So first of all I would like to make sure frequency_offset parameter
really
stands up for a slight deviation between theoretical transmission
frequency
and the real frequency at which the signal is sent. What is the unit of
this
parameter? Hz?

I would also like to have an idea of the approximative maximum
frequency_offset value that can be corrected by the Costas loop.

I am asking these questions because when looking closely at the Costas
loop
NCO frequency value I realized it is far from correcting configured
frequency_offset and this even for small values.


View this message in context:
http://www.nabble.com/Trace-mpsk_receiver_cc()-tp17605464p17650469.html
Sent from the GnuRadio mailing list archive at Nabble.com.