discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TypeError: in method 'header_format_ofdm_make'


From: ????????
Subject: TypeError: in method 'header_format_ofdm_make'
Date: Fri, 25 Jun 2021 10:25:49 +0800

Hi,guys,
I am testing Agrim9's vedio-TX-via-USRP-OFDM on github. . . Open source project, an error occurred when I was running the ofdm_tx flowchart:

File "/home/liumaolin-2/program/vedio-transmission/vedio_tx.py", line 92, in __init__
    self.hdr_format = hdr_format = digital.header_format_ofdm(occupied_carriers, 1, length_tag_key,)
  File "/usr/local/lib/python3/dist-packages/gnuradio/digital/digital_swig2.py", line 1686, in make
    return _digital_swig2.header_format_ofdm_make(*args, **kwargs)
TypeError: in method 'header_format_ofdm_make', argument 1 of type 'std::vector< std::vector< int,std::allocator< int >>,std::allocator< std::vector< int,std::allocator< int > > > > const &'

GRC??

Part of the code of vedio.tx (line 92): 
self.occupied_carriers = occupied_carriers = ([range(-26, -21) , range(-20, -7) , range(-6, 0) , range(1, 7) , range(8, 21) , range(22, 27)],)
self.length_tag_key = length_tag_key = "packet_len"
self.tun_gain = tun_gain = 30
self.sync_word2 = sync_word2 = [0, 0, 0, 0, 0, 0, -1, -1, -1, -1, 1, 1, -1, -1, -1, 1, -1, 1, 1, 1, 1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, 0, 1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, 1, 1, -1, 1, -1, -1, -1, 1, -1, 1, -1, -1, -1, -1, 0, 0, 0, 0, 0]
self.sync_word1 = sync_word1 = [0., 0., 0., 0., 0., 0., 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., -1.41421356, 0., -1.41421356, 0., -1.41421356, 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., -1.41421356, 0., -1.41421356, 0., -1.41421356, 0., -1.41421356, 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., 1.41421356, 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., 1.41421356, 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., 1.41421356, 0., 1.41421356, 0., 0., 0., 0., 0., 0.]
self.samp_rate = samp_rate = 2000000
self.rolloff = rolloff = 0
self.pilot_symbols = pilot_symbols = ((1, 1, 1, -1,),)
self.pilot_carriers = pilot_carriers = ((-21, -7, 7, 21,),)
self.payload_mod = payload_mod = digital.constellation_qpsk()
self.packet_len = packet_len = 96
self.header_mod = header_mod = digital.constellation_bpsk()
self.hdr_format = hdr_format = digital.header_format_ofdm(occupied_carriers, 1, length_tag_key,)
self.fft_len = fft_len = 64


Part of the code of  digital_swig2.py(line 1686)??

        _digital_swig2.header_format_ofdm_swiginit(self, _digital_swig2.new_header_format_ofdm(*args, **kwargs))
    __swig_destroy__ = _digital_swig2.delete_header_format_ofdm

    @staticmethod
    def make(*args, **kwargs) -> "gr::digital::header_format_base::sptr":
        r"""
        make(std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const & occupied_carriers, int n_syms, std::string const & len_key_name="packet_len", std::string const & frame_key_name="frame_len", std::string const & num_key_name="packet_num", int bits_per_header_sym=1, int bits_per_payload_sym=1, bool scramble_header=False) -> header_format_base_sptr
        Factory to create an async packet header formatter; returns an sptr to the object.
        """
        return _digital_swig2.header_format_ofdm_make(*args, **kwargs)

Can someone help me ??
Sincerely
liumaolin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]