<name>Soft frame equalizer DC</name>
<key>ieee802_11_soft_frame_equalizer_dc</key>
<category>[IEEE802.11]</category>
<import>import ieee802_11</import>
<make>ieee802_11.soft_frame_equalizer($algo, $freq, $bw, $scaling, $threshold, $log, $debug)</make>
<callback>set_algorithm($algo)</callback>
<callback>set_frequency($freq)</callback>
<callback>set_bandwidth($bw)</callback>
<param>
<name>Algorithm</name>
<key>algo</key>
<value>ieee802_11.LS</value>
<type>int</type>
<option>
<name>LS</name>
<key>ieee802_11.LS</key>
</option>
<option>
<name>LMS</name>
<key>ieee802_11.LMS</key>
</option>
<option>
<name>Comb</name>
<key>ieee802_11.COMB</key>
</option>
<option>
<name>STA</name>
<key>ieee802_11.STA</key>
</option>
</param>
<param>
<name>Frequency</name>
<key>freq</key>
<value>5.89e9</value>
<type>real</type>
</param>
<param>
<name>Bandwidth</name>
<key>bw</key>
<value>10e6</value>
<type>real</type>
</param>
<param>
<name>Scaling</name>
<key>scaling</key>
<value>0</value>
<type>real</type>
</param>
<param>
<name>Threshold</name>
<key>threshold</key>
<value>0</value>
<type>real</type>
</param>
<param>
<name>Log</name>
<key>log</key>
<value>False</value>
<type>bool</type>
<option>
<name>Enable</name>
<key>True</key>
</option>
<option>
<name>Disable</name>
<key>False</key>
</option>
</param>
<param>
<name>Debug</name>
<key>debug</key>
<value>False</value>
<type>bool</type>
<option>
<name>Enable</name>
<key>True</key>
</option>
<option>
<name>Disable</name>
<key>False</key>
</option>
</param>
<sink>
<name>in</name>
<type>complex</type>
<vlen>64</vlen>
<nports>1</nports>
</sink>
<sink>
<name>in_1</name>
<type>complex</type>
<vlen>64</vlen>
<nports>1</nports>
</sink>
<source>
<name>out</name>
<type>byte</type>
<vlen>48</vlen>
<nports>1</nports>
</source>
<source>
<name>llr_out</name>
<type>float</type>
<vlen>48</vlen>
<nports>1</nports>
</source>
<source>
<name>out_1</name>
<type>byte</type>
<vlen>48</vlen>
<nports>1</nports>
</source>
<source>
<name>llr_out_1</name>
<type>float</type>
<vlen>48</vlen>
<nports>1</nports>
</source>
<source>
<name>symbols</name>
<type>message</type>
<optional>1</optional>
</source>
</block>
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
No comments:
Post a Comment