I have used some print commands in these programs to follow the flow of the code. I used print commandsin a) benchmark_rx, b) receive_path c) blks2impl/pkt.py d) packet_utils.py. Running the program is get the output as follows :
1) In main now 2) in def main() now 3) calling tb in main() 4) in receive_path now 5) calling __setup_usrp_source 6) inside _setup_usrp_source: getting self.u now usb_control_msg failed: usb_control_msg(DeviceRequestTO): pipe is stalled in def set_gain in def set_freq calculated channel coeff's (-0.0, 2.611279946859197e-18, -9.7454292139741081e-18, 1.9490858427948216e-17, -2.9236288469102937e-17, 3.6370440010964533e-17, 1.0, 3.6370440010964533e-17, -2.9236288469102937e-17, 1.9490858427948216e-17, -9.7454292139741081e-18, 2.611279946859197e-18, -0.0) making packet_receiver module...i will call pkt.py here >>> gr_fir_fff: using SSE # Here the pkt.py must be called >>> (demod_pkts() ), but instead it does not show me any output from pkt.py made packet_receiver module.... options.log_rx_power = false executing self.connect of self.u and packet_receiver tb.start() in a while # I did not follow what exactly happens when tb.start() is called? and what is the flow here? tb.wait() now in def rx_callback now 1 ok = True pktno = 0 n_rcvd = 1 n_right = 1 in def rx_callback now 2 ok = True pktno = 1 n_rcvd = 2 n_right = 2 . . . I made changes in the /usr/local/lib/python2.x/site-packages/gnuradio/blks2impl/pkt.py and /usr/local/lib/python2.x/site-packages/gnuradio/packet_utils.py files Eric Blossom wrote: > > On Mon, Jul 13, 2009 at 02:32:57PM -0700, udadidd wrote: >> >> I was trying to understand benchmark_tx and benchmark_rx files. I see >> blks2.mod_pkts being used. and blks2 being imported from gnuradio >> 1) if i call "from gnuradio import blks2", where exactly are these files >> called from? >> 2) i do not see any mod_pkts() function in the blks2 directory. instead i >> find those in blks2impl/pkt.py and packet_utils.py. I wanted to see the >> packet form and tried "Print pkt" in packet_utils.py but it doesnt >> reflect >> in the output at all. How do i know which files are being used in this? >> > > Because of how we glue together the gr python namespace, > the stuff that appears in the blks2 namespace actually lives in a > directory called blks2impl. > > Eric > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > -- View this message in context: http://www.nabble.com/Packet-mod-demod-race-condition--tp12660275p24550733.html Sent from the GnuRadio mailing list archive at Nabble.com. _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio