Hi Sumit - Do you have your GR OOT in a public repo where we could
review all of the code & try the example ourselves? That's the most
reliable way to handle such potentially in-depth queries such as yours.
As a quick reply without knowing more specifics, are you using the
"hier_block2" for the base class for your main block? If so, then you
can't do signal processing within this block; all a "hier_block2" block
is good for is encapsulating other blocks, connecting them internally as
well as to the "hier_block2"s input(s) and output(s); no "work" here!
>From the debug printout, likely candidates for this issue would be the
block "fft_vxx" or "ieee802_11_soft_frame_equalizer_dc".
Hope this is useful! - MLD
On Tue, Sep 25, 2018, at 9:48 AM, Sumit Kumar wrote:
> Hi,
> I have made a block with take two streams of input and produces four
> stream of outputs.> The* impl.cc* file has the following declaration:
> static int ios1[] = {48, 48*sizeof(float), 48, 48*sizeof(float)};
> static std::vector<int> iosig1(ios1, ios1+sizeof(ios1)/sizeof(int));>
> soft_frame_equalizer_impl_dc::soft_frame_equalizer_impl_dc(Equalizer-
> _soft_dc algo, double freq, double bw, int scaling, int threshold,
> bool log, bool debug) :> gr::block("soft_frame_equalizer_dc",
> gr::io_signature::make2(2, 2, 64 * sizeof(gr_complex), 64
> * sizeof(gr_complex)),> gr::io_signature::makev(4,
> 4, iosig1)),
>
> I made the corresponding xml file also. No error during compiling but
> when I connect my block and run I get the error:> File
> "/home/john/myprefix/src/gr-ieee-
> 80211/examples/sbmrc_testing.py", line 555, in <module>> main()
> File "/home/john/myprefix/src/gr-ieee-
> 80211/examples/sbmrc_testing.py", line 543, in main> tb =
> top_block_cls(bandwidth=options.bandwidth,
> encoding=options.encoding, frequency=options.frequency,
> sensitivity=options.sensitivity)> File
> "/home/john/myprefix/src/gr-ieee-
> 80211/examples/sbmrc_testing.py", line 350, in __init__>
> self.connect((self.fft_vxx_0_1, 0),
> (self.ieee802_11_soft_frame_equalizer_dc_0, 1))> File
> "/home/john/myprefix/lib/python2.7/dist-
> packages/gnuradio/gr/hier_block2.py", line 47, in wrapped> func(self,
> src, src_port, dst, dst_port)
> File "/home/john/myprefix/lib/python2.7/dist-
> packages/gnuradio/gr/hier_block2.py", line 110, in connect>
> self.primitive_connect(*args)
> File "/home/john/myprefix/lib/python2.7/dist-
> packages/gnuradio/gr/runtime_swig.py", line 4574, in
> primitive_connect> return
> _runtime_swig.top_block_sptr_primitive_connect(self,
> *args)> *ValueError: port number 1 exceeds max of 0*
> I am attaching the xml file. Can anyone help me figuring out the
> mistake :)> Regards
> Sumit
>
>
>
> _________________________________________________
> Discuss-gnuradio mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> Email had 1 attachment:
> * ieee802_11_soft_frame_equalizer_dc.xml 3k (text/xml)
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio