コード例 #1
0
 def setUp (self):
     self.tb = gr.top_block ()
     
     ############################
     # define variables for test purposes
     self.fftl = fftl = 2048
     N_rb_dl = 6
     self.N_id = N_id = 124
     N_id_1 = N_id/3
     N_id_2 = N_id%3
     
     # This blocks are needed as "dummy" references
     self.tag = lte_swig.sss_tagging2_vcvc(fftl)
     self.eq = lte_swig.linear_OFDM_estimator_vcvc(N_rb_dl)
     self.demux = lte_swig.pbch_demux_vcvc(N_rb_dl)
     self.descr = lte_swig.descrambling_vfvf()
     self.daemon = lte_swig.cell_id_daemon(self.eq, self.demux, self.descr)
     
     #Source
     data = range(2*fftl)
     self.src = gr.vector_source_c(data, False, fftl)        
     # UUT
     self.calc = lte_swig.sss_calc2_vc(self.tag, self.daemon, fftl)
     
     self.tb.connect(self.src, self.calc)
コード例 #2
0
ファイル: qa_lte_sss_calc_vc.py プロジェクト: HounD/gr-lte
    def setUp (self):
        self.tb = gr.top_block ()
        
        mod=scipy.io.loadmat('/home/demel/exchange/matlab_sss.mat') 
        mat_u1=tuple(mod['sss'].flatten())
        mat_d=range(len(mat_u1))
        for idx, val in enumerate(mat_u1):
            mat_d[idx]=val
        intu=tuple(mat_d)
        
        fftl = 512
        
        self.daemon = lte_swig.cell_id_daemon()
        
        # This is not yet a complete test! It's just for the purpose of testing the decoding and correlating.
        # Tag handling is not tested.
        self.src  = gr.vector_source_c(intu,False,72)
        
        self.tag = lte_swig.sss_tagging_cc(fftl)
        # calc sink block, which sets some attributes of other blocks.
        self.calc = lte_swig.sss_calc_vc(self.tag, fftl)
        

        
        self.tb.connect(self.src,self.calc)
コード例 #3
0
ファイル: qa_lte_sss_calc_vc.py プロジェクト: a4a881d4/gr-lte
    def setUp (self):
        self.tb = gr.top_block ()
        
        mod=scipy.io.loadmat('/home/demel/exchange/matlab_sss.mat') 
        mat_u1=tuple(mod['sss'].flatten())
        mat_d=range(len(mat_u1))
        for idx, val in enumerate(mat_u1):
            mat_d[idx]=val
        intu=tuple(mat_d)
        
        fftl = 512
        
        self.daemon = lte_swig.cell_id_daemon()
        
        # This is not yet a complete test! It's just for the purpose of testing the decoding and correlating.
        # Tag handling is not tested.
        self.src  = gr.vector_source_c(intu,False,72)
        
        self.tag = lte_swig.sss_tagging_cc(fftl)
        # calc sink block, which sets some attributes of other blocks.
        self.calc = lte_swig.sss_calc_vc(self.tag, fftl)
        

        
        self.tb.connect(self.src,self.calc)
コード例 #4
0
    def setUp(self):
        self.tb = gr.top_block()

        N_rb_dl = 6

        self.eq = lte_swig.linear_OFDM_equalizer_vcvc(N_rb_dl)
        self.demux = lte_swig.pbch_demux_vcvc(N_rb_dl)
        self.ld = lte_swig.descrambling_vfvf()
        self.daemon = lte_swig.cell_id_daemon(self.eq, self.demux, self.ld)

        self.daemon.set_cell_id(124)
コード例 #5
0
ファイル: qa_lte_cell_id_daemon.py プロジェクト: HounD/gr-lte
 def setUp (self):
     self.tb = gr.top_block ()
     
     N_rb_dl = 6
     
     self.eq   = lte_swig.linear_OFDM_estimator_vcvc(N_rb_dl)
     self.demux= lte_swig.pbch_demux_vcvc(N_rb_dl)
     self.ld   = lte_swig.descrambling_vfvf()
     self.daemon = lte_swig.cell_id_daemon(self.eq,self.demux,self.ld)
     
     self.daemon.set_cell_id(124)
コード例 #6
0
    def setUp(self):
        self.tb = gr.top_block()
        N_rb_dl = 6

        self.eq = lte_swig.linear_OFDM_estimator_vcvc(N_rb_dl)
        self.demux = lte_swig.pbch_demux_vcvc(N_rb_dl)
        self.ld = lte_swig.descrambling_vfvf()
        self.daemon = lte_swig.cell_id_daemon(self.eq, self.demux, self.ld)
        self.dbg = gr.message_debug()

        self.tb.msg_connect(self.daemon, "cell_id", self.dbg, "print")