discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] HELP with "packet header parser"


From: Alban Meffre
Subject: Re: [Discuss-gnuradio] HELP with "packet header parser"
Date: Sat, 5 Jan 2019 23:26:35 +0100

ok sorry my mistake i got "packet_header_default" and "header_format_default" mixed up
bob

Le sam. 5 janv. 2019 à 22:13, Alban Meffre <address@hidden> a écrit :
hi all

i try to figure out how to use the "packet header parser" block
as a formatter i use
"digital.header_format_default('1101001110010001', 0)"

when i launch i get the error
"
Traceback (most recent call last):
  File "/Users/alban/gnuradio/top_block.py", line 146, in <module>
    main()
  File "/Users/alban/gnuradio/top_block.py", line 134, in main
    tb = top_block_cls()
  File "/Users/alban/gnuradio/top_block.py", line 71, in __init__
    self.digital_packet_headerparser_b_0 = digital.packet_headerparser_b(hdr_format_dec_0)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/digital/digital_swig2.py", line 2651, in make
    return _digital_swig2.packet_headerparser_b_make(*args)
NotImplementedError: Wrong number or type of arguments for overloaded function 'packet_headerparser_b_make'.
  Possible C/C++ prototypes are:
    gr::digital::packet_headerparser_b::make(gr::digital::packet_header_default::sptr const &)
    gr::digital::packet_headerparser_b::make(long,std::string const &)
"


in the "rx_ofdm" example supplied with gnuradio, the  "packet header parser" use the formatter  "header_formatter.base()"

i do not find any documentation about the base() method
as you can see the doxygen is empty

if i add ".base()" to the formatter in my top_block i get an error too

please someone can explain me hox to use this block ?
thank you all
--
Alban MEFFRE F4GSW




--
Alban MEFFRE F4GSW



reply via email to

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