示例#1
0
    def test_001(self):
        """
        Test RadioDevice instantiation.
        """
        source = blocks.vector_source_c([1] * 8)
        sync = blocks.probe_signal_f()

        dev = RadioDevice()
        dev.add_arch(source=source, arch=None, sink=sync, uhd_device=None, name='None')
示例#2
0
    def test_uhd_001(self):
        """

        """
        rx_uhd = PacketGMSKRx(10)

        source = blocks.vector_source_c( [1] * 8 )
        sink = blocks.probe_signal_f()

        dev = RadioDevice()
        dev.add_arch(source=source, arch=rx_uhd, sink=sink, uhd_device=None, name='rx_uhd')
        
        rx_uhd.set_radio_device(dev)
        my_radio = rx_uhd.radio
        print my_radio

        samp_rate_radio = rx_uhd.radio._get_samp_rate
        print samp_rate_radio

        str_radio = rx_uhd.radio.my_str
        print str_radio