Hi,
I understood that my new block packet_header_gen (copy of
packet_header_generator) wants
gr::ofdm_allocator::packet_header_default_alix::sptr const
&,std::string const &,
but header_formatter = digital.packet_header_ofdm((variable_0,), 1,
length_tag_key, "frame_len", "packet_num",1,1,False) and
packet_header_ofdm uses gr::digital::packet_header_default.
For this reason, I duplicate packet_header_ofdm in my project that
uses gr::ofdm_allocator::packet_header_default_alix.
The error is this now:
Param - Formatter Object(header_formatter):
Value "header_formatter.formatter()" cannot be evaluated:
tr1::bad_weak_ptr
I searched this error on google, and I understood that it is related
with shared_from_this.
Any ideas?
Thank you in advance,
Alice
Il 05/12/2017 10:00, Alice Lo Valvo ha
scritto:
Hi,
I would duplicate the Packet Header Generator block, for make some
changes in a second time. For this reason I create a tagged_stream
block and copy exactly all from the native block, with the new
name.
When I open GRC, there is this warning:
Warning: restarting the docstring loader (crashed while
loading 'ofdm_allocator_allocator_alix')
Warning: restarting the docstring loader (crashed while
loading 'ofdm_allocator_allocator_subcarrier')
Warning: restarting the docstring loader (crashed while
loading 'ofdm_allocator_allocator_subcarrier_alix')
Warning: restarting the docstring loader (crashed while
loading 'ofdm_allocator_ofdm_tx')
Warning: restarting the docstring loader (crashed while
loading 'ofdm_allocator_packet_header_default_alix')
Warning: docstring loader crashed too often
and if I try to import my module in python, it say segmentation
fault.
I understood that it depends on packet_header_default object, so I
duplicated it in my project with a new name.
No errors, but when I replace native block with my own block and
click run, this is the error that appears:
Using Volk machine: avx2_64_mmx_orc
Traceback (most recent call last):
File "/home/alice/project_GNURADIO/tx_ofdm.py", line 280, in
<module>
main()
File "/home/alice/project_GNURADIO/tx_ofdm.py", line 274, in
main
tb = top_block_cls()
File "/home/alice/project_GNURADIO/tx_ofdm.py", line 102, in
__init__
self.ofdm_allocator_packet_header_gen_0 =
ofdm_allocator.packet_header_gen(header_formatter.formatter(),
length_tag_key)
File
"/usr/local/lib/python2.7/dist-packages/ofdm_allocator/ofdm_allocator_swig.py",
line 1553, in make
return _ofdm_allocator_swig.packet_header_gen_make(*args)
NotImplementedError: Wrong number or type of arguments for
overloaded function 'packet_header_gen_make'.
Possible C/C++ prototypes are:
gr::ofdm_allocator::packet_header_gen::make(gr::ofdm_allocator::packet_header_default_alix::sptr
const &,std::string const &)
gr::ofdm_allocator::packet_header_gen::make(long,std::string
const &)
Any ideas?
Thank you in advance,
Alice
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
|