带残余载波的相位调制

Phase modulation with residual carrier

我目前正在实施具有残余载波的相位调制方案。这种调制方案主要用于深度 space 通信。我已经推导出I-Q分量如下

I(t) = Power_total * sin(h) * d(t)

Q(t) = -1 * Power_total * cos(h)

其中 h 是调制方案,d(t) 是输入数据(比特流)。请注意,当 h = 90 度时,我们有一个带有抑制载波 a.k.a BPSK 的相位调制方案。调制指数决定了剩余载波和数据载波之间如何共享功率。这简化了同步,因为接收器可以跟踪剩余的未调制载波。

下面是我在 GNU Radio 中的代码。不幸的是,每当我将输入数据 in[i] 分配给 oi 和 oq(数据和残余载波分量的同相和正交因子)时,这段代码就会崩溃。任何可以帮助我解决问题的建议、参考或链接都将受到高度赞赏。提前致谢。

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <gnuradio/io_signature.h>
#include "phase_mod_impl.h"
#include <gnuradio/sincos.h>
#include <math.h>
namespace gr {
  namespace GS {

phase_mod::sptr
phase_mod::make(float mod_index)
{
  return gnuradio::get_initial_sptr
    (new phase_mod_impl(mod_index));
}

/*
 * The private constructor
 */
phase_mod_impl::phase_mod_impl(float mod_index)
  : gr::sync_block("phase_mod",
          gr::io_signature::make(1, 1, sizeof(float)),
           gr::io_signature::make(1, 1, sizeof(gr_complex))),
h(mod_index)
{}

/*
 * Our virtual destructor.
 */
phase_mod_impl::~phase_mod_impl()
{
}

int
phase_mod_impl::work(int noutput_items,
    gr_vector_const_void_star &input_items,
    gr_vector_void_star &output_items)
{
  const float *in = (const float *) input_items[0];
  gr_complex *out = (gr_complex *) output_items[0];
  // Do <+signal processing+>
  for(int i = 0; i < noutput_items; i++) {
     float oq, oi;
     gr::sincosf(h,&oi, &oq);
     oi *= in[i];
     oq *= -1;
     out[i] = gr_complex(oi,oq);
  }
  // Tell runtime system how many output items we produced.
     return noutput_items;
}
/*


   } /* namespace GS */
} /* namespace gr */code here

我发现问题出在我用来测试代码的 gnuradio 流程图上。基本上其中一个块正在生成 10^34 顺序的数字。这就是导致崩溃的原因。否则,相位调制块按预期工作 –