Re: [Discuss-gnuradio] Gnuradio block behaves strange.....please have a look at this (Found my mistake)

2008-10-07 Thread Eric Blossom
On Tue, Oct 07, 2008 at 01:04:39PM -0500, Murtuza wrote: > Hi Friends, > > I finally figured out what was wrong in my code. I inadvertently missed the > return statement in the general_work function. This one little mistake cost > me an entire week of struggle. Next time I will be more attentive t

Re: [Discuss-gnuradio] Gnuradio block behaves strange.....please have a look at this (Found my mistake)

2008-10-07 Thread Murtuza
Hi Friends, I finally figured out what was wrong in my code. I inadvertently missed the return statement in the general_work function. This one little mistake cost me an entire week of struggle. Next time I will be more attentive towards what I do. Thanks again to all and esp to Eric Bye Ali On M

Re: [Discuss-gnuradio] Gnuradio block behaves strange.....please have a look at this

2008-10-06 Thread Murtuza
This is the corrected C++ source code. /* -*- c++ -*- */ /* * Copyright 2004 Free Software Foundation, Inc. * * This file is part of GNU Radio * * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the F

Re: [Discuss-gnuradio] Gnuradio block behaves strange.....please have a look at this

2008-10-06 Thread Murtuza
Hi Eric , This is the detail. File source : I have a binary file with only one byte in it. The byte value is 0x5B in hex. PN Sequence : By using c = gr.glfsr_source_b(3,True,0x05,0x01) d = gr.glfsr_source_b(3,True,0x06,0x01) as the m-sequence gene

Re: [Discuss-gnuradio] Gnuradio block behaves strange.....please have a look at this

2008-10-06 Thread Eric Blossom
On Sun, Oct 05, 2008 at 04:23:10AM -0500, Murtuza wrote: > Hi Eric > > I did exactly as you told me to do but still I face the same problem. I use > gr.packed_to_unpacked_bb(1,gr.GR_LSB_FIRST) to send one bit each time but I > still find some data missing in the destination file. What, where, and

Re: [Discuss-gnuradio] Gnuradio block behaves strange.....please have a look at this

2008-10-05 Thread Murtuza
Hi Eric I did exactly as you told me to do but still I face the same problem. I use gr.packed_to_unpacked_bb(1,gr.GR_LSB_FIRST) to send one bit each time but I still find some data missing in the destination file. When I print the output_items to stdout I find no error and the displayed output is

Re: [Discuss-gnuradio] Gnuradio block behaves strange.....please have a look at this

2008-10-01 Thread Eric Blossom
On Wed, Oct 01, 2008 at 01:30:59PM -0700, Eric Blossom wrote: > int > dsss_spreading_blk_b::general_work(int noutput_items, >gr_vector_int &ninput_items, >gr_vector_const_void_star &input_items, >

Re: [Discuss-gnuradio] Gnuradio block behaves strange.....please have a look at this

2008-10-01 Thread Eric Blossom
On Tue, Sep 30, 2008 at 11:19:54PM -0500, Murtuza wrote: > Hi friends, > > I wrote a gnuradio block that has 2 input streams. > 1. The first stream is the stream of PN sequence data coming out of an > gr.xor_bb block. (It is a gold sequence generated by XOR two M-seq generated > using

[Discuss-gnuradio] Gnuradio block behaves strange.....please have a look at this

2008-09-30 Thread Murtuza
Hi friends, I wrote a gnuradio block that has 2 input streams. 1. The first stream is the stream of PN sequence data coming out of an gr.xor_bb block. (It is a gold sequence generated by XOR two M-seq generated using gr.glfsr_source_b). 2. The second stream is the data read from a