Re: [Discuss-gnuradio] How to use forecast()?

2010-05-30 Thread Mir M. Ali
if you still wanna use forecast and general_work then this is how you do it ... void your_block::forecast(int noutput_items,gr_vector_int &ninput_items_required){ ninput_items_required[0]=100 * noutput_items; ninput_items_required[1]=100 * noutput_items; } the scheduler will choose the number

Re: [Discuss-gnuradio] How to write a signal processing block problems

2010-05-28 Thread Mir M. Ali
./bootstrap ./configure make make install If you have errors then check your changes. Was that difficult? :) On Thu, May 27, 2010 at 7:50 AM, Tobias Schmid wrote: > Hello, > > I am working on project ofdm project using gnuradio. Up til now I just used > python blocks to build my flowgraphs. Bu

Re: [Discuss-gnuradio] output is all 0 in howto_square_ff::general_work()

2010-05-23 Thread Mir M. Ali
The scheduler chooses the amount of data to process each time. Here it chose 4 the first time it ran the general_work() function and the next time it chose 1. You can look into the scheduler's implementation to know how it chooses this. If you want to make it choose 5 the first time then you can ca

Re: [Discuss-gnuradio] FITS File storage and reading

2010-05-06 Thread Mir M. Ali
I would just store the data using gr.file_sink and format it accordingly by writing a routine. But if you want to build a block that stores the data in the format you require then you can build a block yourself and add it to the grc. To add it to grc you can look at this page, http://gnuradio.org/

Re: [Discuss-gnuradio] File Source and FIle Sink

2010-05-03 Thread Mir M. Ali
There are many examples in the python files. Look into the logging section of any modulator/demodulator code. If you are reading or writing complex data use these gr.file_source(gr.sizeof_gr_complex,"filename") gr.file_sink(gr.sizeof_gr_complex,"filename") The first argument is the sizeof(dataty

[Discuss-gnuradio] C++ Vector equivalent in Python using swig

2010-04-13 Thread Mir M. Ali
Hi, I have a Gnuradio block that i built in C++ that has a vector passed to it. When I want to import the python equivalent of that block in python how will i pass a vector to it. I thought lists were an equivalent but it doesn't work. Thanks Mir ___ Dis

Re: [Discuss-gnuradio] A strange question involving costas loop

2010-02-04 Thread Mir M. Ali
Thank you very much. :) On Thu, Feb 4, 2010 at 8:26 PM, Jason Uher wrote: > On Thu, Feb 4, 2010 at 4:37 PM, Mir M. Ali wrote: > > In GRC I have a complex sine source with amplitude 10 and frequency > 2000Hz > > sampled at 4000Hz as a input to the costas loop through a throt

Re: [Discuss-gnuradio] A strange question involving costas loop

2010-02-04 Thread Mir M. Ali
cor...@corganenterprises.com> wrote: > On Thu, Feb 4, 2010 at 09:23, Mir M. Ali wrote: > > > What is expected if I input a costas loop block with a complex sine wave > > signal? Will the Costas track the sine and give me a baseband output > > containing nothing? > > You will g

Re: [Discuss-gnuradio] Questions about synchronization and modulation in benchmark

2010-02-04 Thread Mir M. Ali
't > receive it in properly. the signal can't be locked. > I plot the result from gr.mpsk_receiver (see attached file). > > Any suggest? > > > > On Tue, Feb 2, 2010 at 5:21 PM, Mir M. Ali wrote: > >> Check the source code of costas loop and Mueller Muelle

[Discuss-gnuradio] A strange question involving costas loop

2010-02-04 Thread Mir M. Ali
Hi, What is expected if I input a costas loop block with a complex sine wave signal? Will the Costas track the sine and give me a baseband output containing nothing? ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/l

Re: [Discuss-gnuradio] Questions about synchronization and modulation in benchmark

2010-02-02 Thread Mir M. Ali
Check the source code of costas loop and Mueller Mueller clock recovery blocks. They have the link to the reference papers used for the implementation. Regarding your bpsk/dbpsk question. There is a differential encoder block in the transmit_path of this modulator. Remove this from the connect pat

Re: [Discuss-gnuradio] Boost Problem in Compiling Current Trunk

2010-01-06 Thread Mir M. Ali
Hi Firas, I am having the same problem with the current trunk. Can you tell me how you fixed the error? I am using Ubuntu 8.04 and boost_1_37_0. I tried fixing the libtool problem in Ubuntu by editing the /etc/ld.so.conf file as mentioned in Gnuradio's Ubuntu installation instructions. But the same

Re: [Discuss-gnuradio] What does this error mean during installation of gnuradio from latest git source

2010-01-06 Thread Mir M. Ali
the newer one obtained through git. Thanks, Ali On Wed, Jan 6, 2010 at 11:43 AM, Eric Blossom wrote: > On Wed, Jan 06, 2010 at 01:09:57AM -0600, Mir M. Ali wrote: > > Hi, > > I installed gnuradio a million times before without any major problem on > > Ubuntu. I cannot figu

[Discuss-gnuradio] What does this error mean during installation of gnuradio from latest git source

2010-01-05 Thread Mir M. Ali
Hi, I installed gnuradio a million times before without any major problem on Ubuntu. I cannot figure out the following error that it throws during installation from the latest git source. I have boost_1.38 installed in /opt/ directory of my computer. The BOOST_PREFIX is correctly configured, I fixe

Re: [Discuss-gnuradio] usrp with gnu issue

2010-01-04 Thread Mir M. Ali
This will install almost everything you need. It seems grc wasn't configured. You might want to find out why as GRC is an indispensable tool for a gnuradio user. good luck On Mon, Jan 4, 2010 at 1:34 PM, sandeep mishra wrote: > Hi Eric, > Thank you for your guide, I just performed your specifie

Re: [Discuss-gnuradio] Why do I keep having libtool issues during installation

2010-01-04 Thread Mir M. Ali
wrote: > Did you copy your build directory to another computer? I would re-run > ./configure or start from a cleaned build tree. > > -Josh > > Mir M. Ali wrote: > >> Hi friends, >> I am completely confused and need some help. I have a few gnuradio blocks >>

[Discuss-gnuradio] Why do I keep having libtool issues during installation

2010-01-03 Thread Mir M. Ali
Hi friends, I am completely confused and need some help. I have a few gnuradio blocks that I made and the installation worked perfectly fine earlier when I worked on my laptop. A few months ago I tried installing that package on a different computer and I had issues with the libtool the errors of w

Re: [Discuss-gnuradio] Unable to run TUNNEL.PY in usrp.

2009-12-24 Thread Mir M. Ali
You must give us more information to work with to help you out. On Wed, Dec 23, 2009 at 7:58 AM, amarnath_iitm wrote: > > Some one please help me. > > > amarnath_iitm wrote: > > > > hi , > > I am using Fedora Core 11 OS. I have succesfully executed > > benchmark_tx.py, benchmark_rx.

Re: [Discuss-gnuradio] Flowgraph generates output even when the input exhausts

2009-12-05 Thread Mir M. Ali
There was a problem in my block. I fixed it. I am using gr_block and cosume_each. Thanks for the help On Sat, Dec 5, 2009 at 8:54 AM, Eric Blossom wrote: > On Thu, Dec 03, 2009 at 11:16:01AM -0600, Mir M. Ali wrote: > > Hi, > > I developed a gnuradio block that takes 2 inpu

[Discuss-gnuradio] Flowgraph generates output even when the input exhausts

2009-12-03 Thread Mir M. Ali
Hi, I developed a gnuradio block that takes 2 inputs. Input_01 is coming from a source that repeats and Input_02 is coming from a source that exhausts after a while. The output should only be generated when there is data on both the input lines. I see in my flowgraph that even when the data on inpu

Re: [Discuss-gnuradio] failed to allocate buffer size error

2009-12-02 Thread Mir M. Ali
I think the same too. When I restarted the system it went through without a hitch. I am using Ubuntu 8.10, gnuradio 3.2, Intel Core 2 duo 2.0 Ghz/4MB cache computer with 2 GB RAM. Thanks, Mir On Wed, Dec 2, 2009 at 6:39 PM, Eric Blossom wrote: > On Wed, Dec 02, 2009 at 04:20:16PM -0600, Mi

[Discuss-gnuradio] failed to allocate buffer size error

2009-12-02 Thread Mir M. Ali
Hi, Why does this error occur when usrp_sink is replaced with a file_sink in the transmit_path? *gr_fir_fff: using SSE gr_vmcircbuf_sysv_shm: shmget (0): No space left on device gr_buffer::allocate_buffer: failed to allocate buffer of size 64 KB terminate called after throwing an instance of 'std

[Discuss-gnuradio] Did you ever come across this type of error?

2009-12-02 Thread Mir M. Ali
Dear Dr. Daigle, If you remember I told you that I rewrote the transmission side of my system such that there is no usrp involved. But this system doesn't work and it shows an error that I can't resolve. The error is as shown below, gr_fir_fff: using SSE gr_vmcircbuf_sysv_shm: shmget (0): No space

Re: [Discuss-gnuradio] Two questions

2009-10-03 Thread Mir M. Ali
http://thre.at/gsm/ This might be of some help too. On Fri, Oct 2, 2009 at 12:13 PM, Modesto Aguirre Gomez < modestoagui...@hotmail.com> wrote: > Hello, > I am researching information about some Radio Frequency products which > emulates a base transceiver station for gsm. > > I saw in your web

Re: [Discuss-gnuradio] Two questions

2009-10-03 Thread Mir M. Ali
http://thre.at/gsm/ This might be of some help too. On Fri, Oct 2, 2009 at 12:19 PM, Modesto Aguirre Gomez < modestoagui...@hotmail.com> wrote: > Hello, > I am researching information about some Radio Frequency products which > emulates a base transceiver station for gsm. > > I saw in your web

Re: [Discuss-gnuradio] Any implementation of Spread Spectrum

2009-10-03 Thread Mir M. Ali
Hi Johnathan, Is your code public yet? On Fri, Jul 17, 2009 at 12:57 AM, Mir M. Ali wrote: > Thanks, I will try this out. > > On Thu, Jul 16, 2009 at 11:34 AM, Colby Boyer wrote: > >> In regards to 1. >> >> From what I have experienced, you can multiply the receiv

Re: [Discuss-gnuradio] Package install problem on different computer.

2009-09-29 Thread Mir M. Ali
happening! > > Try running ./bootstrap and ./configure before make. > > -Josh > > Mir M. Ali wrote: > >> Hi, >> I have a package with a few gnuradio modules that I developed. This >> package >> installs wihtout a hitch on my laptop. I then copied the package fo

[Discuss-gnuradio] dbpsk.py logging problem

2009-09-29 Thread Mir M. Ali
Hi, I tried to log the data from benchmark_tx.py using dbpsk modulation but for some reason it doesn't happen. --log option works on other computers but not on my laptop. I have gnuradio-3.2svn installed. Thanks, Mir ___ Discuss-gnuradio mailing list Dis

[Discuss-gnuradio] Package install problem on different computer.

2009-09-29 Thread Mir M. Ali
Hi, I have a package with a few gnuradio modules that I developed. This package installs wihtout a hitch on my laptop. I then copied the package folder on to two ohter computers but the installation always fails. When doing 'make' it gives errors that I don't understand. Will someone help me on thi

Re: [Discuss-gnuradio] cgran.org down?

2009-09-29 Thread Mir M. Ali
I am copying a previous mail. --- CGRAN is kind of up... https://128.2.212.19/ our CS department got a new building, and our machines got re-assigned IP addresses when the machines were moved. I've asked Eric to update the DNS record for cgran.org, hopefully this goes through

Re: [Discuss-gnuradio] different sample rate at inputs

2009-09-28 Thread Mir M. Ali
I think the output is equal to the rate of the slower stream. The multiply_ff block multiplies inputs from two different streams so the work() function sees input available on these streams and multiplies and outputs it. It doesn't have any clue of the rate at which they are generated. Until data i

Re: [Discuss-gnuradio] another newbie question

2009-09-26 Thread Mir M. Ali
I never installed Gnuradio using a Debian package but if GRC is working that means your Gnuradio installation must be complete. Why don't you try running a few example programs and see if they work. Run the dial_tone.py in the /usr/local/share/gnuradio/examples/audio directory. If you want to use

Re: [Discuss-gnuradio] Problem with the bbn code on GNU Radio

2009-09-25 Thread Mir M. Ali
I think this version of bbn that you have lots of errors in it. I too faced a lot and had to correct the code at many places. Try the other latest versions. You can download them from the CGRAN website. Download douggeiger and the uspr versions. I personally installed the douggeiger version on my

Re: [Discuss-gnuradio] dBPSK modulation doen't use gr_phase_modulator_fc.cc??

2009-09-23 Thread Mir M. Ali
Look at dbpsk.py code in /usr/local/lib/python2.*/site-packages/gnuradio/blks2impl. I hope that will answer your question. :) Mir On Wed, Sep 23, 2009 at 5:22 PM, tom_unaff wrote: > > Hello, > I am using dBPSK modulation, and I don't see that PM modulation written in > C++ is used. It seems tha

Re: [Discuss-gnuradio] Wireless sensors compatible with usrp

2009-09-15 Thread Mir M. Ali
Micaz work in the 2.4 Ghz band so i guess if you are using a daughterboard that work in that frequency band then that should work. Check this out. https://www.cgran.org/wiki/UCLAZigBee In the US this specification adheres to the 2.4 GHz band. Thanks, Mir On Tue, Sep 15, 2009 at 9:45 AM, tronix w

Re: [Discuss-gnuradio] newbe question

2009-09-13 Thread Mir M. Ali
It's clear. Just edit the qwtconfig.pri file. The following steps I believe were followed. wget http://superb-east.dl.sourceforge.net/sourceforge/qwt/qwt-5.0.2.tar.bz2 tar jxf qwt-5.0.2.tar.bz2 cd qwt-5.0.2 The directory qwt-5.0.2 has a file named 'qwtconfig.pri'. Use any editor to open the file

Re: [Discuss-gnuradio] Installation problem CentOS ... FFTW3F

2009-08-12 Thread Mir M. Ali
rote: > On Fri, Aug 07, 2009 at 12:16:31AM -0500, Mir M. Ali wrote: > > Hi, > > I have a problem installing gnuradio on Centos-5. I installed fftw-3.2.2 > and > > ran the configure script in gnuradio. It shows this error as it cant find > > the fftw3f. > >

[Discuss-gnuradio] Installation problem CentOS ... FFTW3F

2009-08-06 Thread Mir M. Ali
Hi, I have a problem installing gnuradio on Centos-5. I installed fftw-3.2.2 and ran the configure script in gnuradio. It shows this error as it cant find the fftw3f. ecking for FFTW3F... configure: error: Package requirements (fftw3f >= 3.0) were not met: No package 'fftw3f' found Consider adju

Re: [Discuss-gnuradio] Why does increased Samples per Symbol result in underruns?

2009-07-20 Thread Mir M. Ali
Does that mean that the data being sent is lost or is it just that USRP is waiting for it to arrive? On Mon, Jul 20, 2009 at 6:30 PM, Eric Blossom wrote: > On Mon, Jul 20, 2009 at 05:29:02PM -0500, Mir M. Ali wrote: > > Hi, > > I used benchmark_tx.py with dbpsk modulation w

[Discuss-gnuradio] Why does increased Samples per Symbol result in underruns?

2009-07-20 Thread Mir M. Ali
Hi, I used benchmark_tx.py with dbpsk modulation with Samples per symbol=7 and higher. I found that this resulted in lots of USRP underruns(uU). Why is it so? Thanks, Ali ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mai

Re: [Discuss-gnuradio] Any implementation of Spread Spectrum

2009-07-16 Thread Mir M. Ali
uence becomes less orthorgonal when you > this(worse auto-correlation). > > On Wed, Jul 15, 2009 at 9:27 AM, Mir M. Ali wrote: > >> Hi Johnathan, >> I have a few question regarding implementation. The book that you referred >> earlier was of great help. Thanks. >&

Re: [Discuss-gnuradio] Any implementation of Spread Spectrum

2009-07-15 Thread Mir M. Ali
Hi Johnathan, I have a few question regarding implementation. The book that you referred earlier was of great help. Thanks. I am sure this won't take a lot of your time and I would be really glad and thankful to you if you answer them. In the transmitter the data and the PN code is ex-or and then

Re: [Discuss-gnuradio] blks2.mod, blks2.demod

2009-07-13 Thread Mir M. Ali
Look into /usr/local/lib/python2.x/site-packages/gnuradio directory. You will find answers to all your questions. Good luck On Mon, Jul 13, 2009 at 4:32 PM, udadidd wrote: > > I was trying to understand benchmark_tx and benchmark_rx files. I see > blks2.mod_pkts being used. and blks2 being impo

[Discuss-gnuradio] Having a higher samples per symbol (greater than 7) with lower bitrate

2009-07-11 Thread Mir M. Ali
Hi, the maximum samples per symbol value that benchmark_tx has is 7. What happens if I change it to a higher value and reduce the bitrate such that the usrp constraints are still met. I read somewhere that having a sample per symbol value greater than 7 is impractical. Why?

Re: [Discuss-gnuradio] grc

2009-07-08 Thread Mir M. Ali
The examples are also found in /usr/local/share/gnuradio/examples/grc On Wed, Jul 8, 2009 at 1:14 AM, Josh Blum wrote: > You probably have an error in the flow graph: are any blocks or connections > in red? The error message will be in the parameters dialog. > > Also, try running some of the exa

Re: [Discuss-gnuradio] About Top_block

2009-06-16 Thread Mir M. Ali
Hi, The simplest examples that you can look at to understand about gnuradio can be found at this website. http://www.joshknows.com/gnuradio Think of gnuradio as a system of blocks that perform unique functions. Each of these blocks will either behave as a sink or a source. Your job is to find whi

[Discuss-gnuradio] Criteria for choosing samples_per_symbol value

2009-06-06 Thread Mir M. Ali
Hi friends, What is the criteria for choosing the samples_per_symbol value? In benchmark_tx it is chosen as two. What will the effect be if I increase its value such that the the constraints on interpolation value and the usrp rate are still met. Apart from reduced data rates what other effect will

Re: [Discuss-gnuradio] Executing python scripts with Gnu radio

2009-05-29 Thread Mir M. Ali
Try to run the scripts from the examples folder. Look at these and you will know how to write scripts using gnuradio blocks. You can also find tutorials on the internet. You will find a good tutorial here. http://www.iut.ac.ir/~omidi/SDR07/07_GNU/pdf/

Re: [Discuss-gnuradio] Early Late Prompt Correlation and Costas Loop implementation

2009-05-28 Thread Mir M. Ali
). Thanks, > On Thu, May 28, 2009 at 5:38 AM, Mir M. Ali wrote: > >> Thanks a lot Tom for your help. I now understand how Costas loop operates. >> After all the tests that I did following your suggestions I was able to find >> the answer for a lot of my unanswered questions. &g

Re: [Discuss-gnuradio] Early Late Prompt Correlation and Costas Loop implementation

2009-05-28 Thread Mir M. Ali
Hi, I have another question regarding this. I sunk the output from the Costas onto FFTsink and got this. http://img172.imageshack.us/img172/9956/costasfft.jpg Are the peaks that appear on this the lower and upper sidebands of the data signal? Thanks, Ali On Thu, May 28, 2009 at 5:38 AM, Mir M

Re: [Discuss-gnuradio] Early Late Prompt Correlation and Costas Loop implementation

2009-05-28 Thread Mir M. Ali
Thanks a lot Tom for your help. I now understand how Costas loop operates. After all the tests that I did following your suggestions I was able to find the answer for a lot of my unanswered questions. Thanks again, Ali On Wed, May 27, 2009 at 10:42 AM, Tom Lutz wrote: > > I am using Flex-2400 b

Re: [Discuss-gnuradio] Early Late Prompt Correlation and Costas Loop implementation

2009-05-27 Thread Mir M. Ali
I am using Flex-2400 boards and the received signal is ideally at baseband which in fact is not possible because, of various factors. Now, we have a signal that has a center frequency 'fc' which is not 0Hz. Assuming the costas to lock at this carrier I can achieve my goal. Isn't it right? Can you

Re: [Discuss-gnuradio] How to view data samples when running fm radio

2009-05-27 Thread Mir M. Ali
s=*gr*.*file_sink*(*gr*.sizeof_gr_complex, "file.txt") and then connect usrp.source to this object s. On Wed, May 27, 2009 at 3:06 AM, Zainab Qureshi wrote: > In usrp_wfm_rcv.py, there is a command self.u = usrp.source_c() > > Now how do we use the gr.file_sink() in this file? > > On 5/27/09, E

[Discuss-gnuradio] Early Late Prompt Correlation and Costas Loop implementation

2009-05-27 Thread Mir M. Ali
Hi Johnathan and other friends, I want to use an E/P/L Correlation (for Code synchronization) and Costas loop (for carrier phase sync) for Direct Sequence Spread Spectrum receiver based on this. http://img19.imageshack.us/img19/826/dsssrxr.jpg I have a doubt that needs to be cleared as I spent a

[Discuss-gnuradio] Why d_phase in Costas loop different in gr_costas_loop from gr_mpsk_receiver?

2009-05-26 Thread Mir M. Ali
Hi, Why is the d_phase equation different in these two files? d_phase += d_alpha*phase_error; // In gr_mpsk_receiver.cc and d_phase = d_phase + d_freq + d_alpha * error; // In gr_costas_loop.cc The d_freq term is omitted and I don't understand why. Thanks, Ali

[Discuss-gnuradio] Receiving Spread Spectrum signals in Gnuradio

2009-05-24 Thread Mir M. Ali
Hi, I have a few questions regarding receiving Direct Sequence Spread Spectrum signals using USRP and gnuradio. I am transmitting a signal that is spread using gold codes at 2.4GHz. The USRPs that I have show a frequency offset of about 8kHz. In order to receive the signal so as to be able to de-sp

Re: [Discuss-gnuradio] usrp_source to file_sink ... what gets written when no transmission

2009-05-20 Thread Mir M. Ali
Thanks Jason. On Wed, May 20, 2009 at 10:16 AM, Jason Uher wrote: > > I don't understand why is it that the > > usrp_source writes some junk data to the file_sink even when I am not > > transmitting from the other USRP. Is it possible that it might be picking > up > > some stray signals at 2.4G