[Discuss-gnuradio] where are usrp_fft.py and usrp_oscope.py now

2007-11-14 Thread Dawei Shen
Hi, Guys When I checked out the latest version of GNU Radio from svn, I can't find the fft and oscope scrips in the example directory. Have they been removed? Thanks. Dawei ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/

Re: [Discuss-gnuradio] a programming question about building a block

2007-09-13 Thread Dawei Shen
e: > > On Thu, Sep 13, 2007 at 02:54:16PM -0400, Dawei Shen wrote: > > Hey, Guys > > > > I encountered a programming problem when I tried to build a new block. I > > defined a subclass inside my block class, which looks like: > > > > class my_block :

[Discuss-gnuradio] a programming question about building a block

2007-09-13 Thread Dawei Shen
Hey, Guys I encountered a programming problem when I tried to build a new block. I defined a subclass inside my block class, which looks like: class my_block : gr_block{ class my_subclass { sub_class details } } Well, this my_subclass is part of my implementation, all its member functio

Re: [Discuss-gnuradio] fg.run() doesn't return if gr.head() is used

2007-08-17 Thread Dawei Shen
Hi, Johnathan Thank you for the answer. But what's the difference between the new blocks and old blocks? Thanks. Dawei On 8/16/07, Johnathan Corgan <[EMAIL PROTECTED]> wrote: > > Dawei Shen wrote: > > > BTW: Eric, you mentioned the gr_udp_source, I am quite interest

Re: [Discuss-gnuradio] fg.run() doesn't return if gr.head() is used

2007-08-13 Thread Dawei Shen
10/07, Johnathan Corgan <[EMAIL PROTECTED]> wrote: > > Dawei Shen wrote: > > > I used gr.head() as my source, so I assumed fg.run() should be able to > > return, but it doesn't. Anybody has any idea which could be the reason? > > Here is the error me

[Discuss-gnuradio] fg.run() doesn't return if gr.head() is used

2007-08-09 Thread Dawei Shen
Hey Guys I used gr.head() as my source, so I assumed fg.run() should be able to return, but it doesn't. Anybody has any idea which could be the reason? Here is the error message if I press ctrl+C to stop the program. mygraph.run() File "/usr/local/lib/python2.5/site-packages/gnuradio/gr/fl

[Discuss-gnuradio] compile error

2007-06-05 Thread Dawei Shen
Hey Guys, I just did a svn update (revision 5694) and met the following compilation error: make[5]: Entering directory `/home/dshen/GNURadio/gnuradio/gnuradio-core/src/lib/swig' make[5]: *** No rule to make target `../../../../gnuradio-core/src/lib/general/gr_dpll_ff.i', needed by `gnuradio_swig

[Discuss-gnuradio] make_format and set_format

2007-06-04 Thread Dawei Shen
Hey Guys, I have a question about the make_format(width, shift) and set_format methods of the usrp_standard_rx class. It appears to me "width" is the bit width of IQ samples across the USB bus, but what does "shift" mean here? What has been shifted if let's say (width, shift) = (8, 8)? Also, if I

[Discuss-gnuradio] Re: mblock update

2007-05-02 Thread Dawei Shen
Hi Guys I am kind of lost about mblock, I don't quite know its functionality and purpose. Could anybody direct me to some documentation or give me a brief introduction? Thanks Dawei ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lis

Re: [Discuss-gnuradio] usrp.source_s and usrp.source_c

2006-11-04 Thread Dawei Shen
...) ThanksDaweiOn 11/4/06, Oussama Sekkat <[EMAIL PROTECTED]> wrote: On 11/3/06, Eric Blossom <[EMAIL PROTECTED] > wrote: On Fri, Nov 03, 2006 at 06:58:41PM -0500, Dawei Shen wrote:> Hi, Guys>> I am suddenly a little bit confused about the difference between> usrp.source_s and us

[Discuss-gnuradio] usrp.source_s and usrp.source_c

2006-11-03 Thread Dawei Shen
Hi, GuysI am suddenly a little bit confused about the difference between usrp.source_s and usrp.source_c. Basically I have two questions:1. Since the ADC only has 12 bits, does it mean the short integers entering the computer have their last four bits as zeros? Or are their first four digits are ze

[Discuss-gnuradio] Any fast algorithm for computing square root?

2006-10-18 Thread Dawei Shen
Hey guysA question not quite related to GNU Radio. Does there exist any fast algorithm for computing the square root of a float number? In my algorithm, I need to compute the square root of a float number which ranges between 0 and 1. ThanksDawei ___ Disc

Re: Two more questions: Re: [Discuss-gnuradio] Two GMSK decoders with two msg queues

2006-10-17 Thread Dawei Shen
prototype my project easily without having to worry about other modules. DaweiOn 10/17/06, Eric Blossom <[EMAIL PROTECTED]> wrote: On Tue, Oct 17, 2006 at 12:00:11AM -0400, Dawei Shen wrote:> Sorry, my previous email is sent by mistake, let me restate my questions:>> Hey Eric, Michael a

Re: Two more questions: Re: [Discuss-gnuradio] Two GMSK decoders with two msg queues

2006-10-16 Thread Dawei Shen
Sorry, my previous email is sent by mistake, let me restate my questions:Hey Eric, Michael and other friends:My code is working well now. But I met two new problems, which are not so crucial, but really important to me. 1. When I initilize the Viterbi algorithm, I wish that for the first trunk of d

Two more questions: Re: [Discuss-gnuradio] Two GMSK decoders with two msg queues

2006-10-16 Thread Dawei Shen
erA, filesinkA)     fg.connect (const, filesinkB)On 10/16/06, Eric Blossom < [EMAIL PROTECTED]> wrote:On Mon, Oct 16, 2006 at 10:37:10PM -0400, Dawei Shen wrote: > Hey, Michael and Eric>> Thank you for your reply. Yeah, you are right, the I found out my problem in> my separator_

Re: [Discuss-gnuradio] Two GMSK decoders with two msg queues

2006-10-16 Thread Dawei Shen
Hey, Michael and EricThank you for your reply. Yeah, you are right, the I found out my problem in my separator_ccc block, I did something stupid so that the two output streams become identical. Now I have solved the problem and now everything works perfectly. Basically what I am trying to do is to

[Discuss-gnuradio] Two GMSK decoders with two msg queues

2006-10-14 Thread Dawei Shen
Dear GuysThank you for helping me out with my previous question about the general_work() function, I have done what I want with your help. Now I have another problem, here is a fraction of the code:     self._rcvd_pktq_B = gr.msg_queue()    self._rcvd_pktq_A = gr.msg_queue()  # hold

Re: [Discuss-gnuradio] A question about general_work() function

2006-10-10 Thread Dawei Shen
at youget always less than the 7 items you need to initialize the algorithm.ThomasOn 10/10/06, Dawei Shen < [EMAIL PROTECTED]> wrote:> Hello Everyone>> I have got a problem which arised from my project. Here is what I want to> do: I am trying to implement a Viterbi algorithm. Suppose  

[Discuss-gnuradio] A question about general_work() function

2006-10-10 Thread Dawei Shen
Hello EveryoneI have got a problem which arised from my project. Here is what I want to do: I am trying to implement a Viterbi algorithm. Suppose  "in" is the input stream, I want to use in[0], in[1]in[6], seven elements to initialize the Viterbi algorithm. Then from in[7], I start to use Viter

[Discuss-gnuradio] Re: 802.11 code for GNU Radio

2006-06-26 Thread Dawei Shen
Hi, BobI am just curious about which demodulating method you chose. Is it the same as the one in the xpsk example directory, i.e. costas loop followed by M&M synchronizer?ThanksDawei ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.

[Discuss-gnuradio] Re: TX/RX simultaneously using one USRP board

2006-04-16 Thread Dawei Shen
port for transmisson? Thanks Dawei On 4/14/06, Eric Blossom <[EMAIL PROTECTED]> wrote: > On Thu, Apr 13, 2006 at 01:47:00PM -0400, Dawei Shen wrote: > > Hi, Eric and other friends > > > > Now I am working on a project that requires simutaneous TX/RX within > > on

[Discuss-gnuradio] TX/RX simultaneously using one USRP board

2006-04-13 Thread Dawei Shen
Hi, Eric and other friends Now I am working on a project that requires simutaneous TX/RX within one usrp board. I equip too FLEX400 daughter cards on one USRP board. What I am trying to do is to use the TX to retransmit (i.e. relay) what the USRP has received from the RX. Is it doable under the cu

[Discuss-gnuradio] The channel filter in GMSK

2006-03-31 Thread Dawei Shen
Hi, GangI am reading the GMSK2 code again and have met some interesting questions.1. At the receiver side, why would we use such a channel filter? Thesampling rate is set to the spd value and the cutoff freq. is simply 1. Could any friend tell me the meaning of these values and what thechannel filt

[Discuss-gnuradio] Some general questions

2006-01-25 Thread Dawei Shen
Hi, Gang Just got two naive questions, but I've never thought about them seriously. 1. A Python programming question In gmsk_test.py, send_pkt() and rx_callback() are two inner functions of the outer function main(). However, in send_pkt(), the object "fg" is used, in rx_callback(), the object "

[Discuss-gnuradio] GMSK code

2006-01-16 Thread Dawei Shen
Hi, GuysIn gmsk2.py, when we try to generate the Gaussian filter taps, the length of the filter is given by:    ntaps = 4 * spb            # up to 3 bits in filter at once Can anyone help explain why the comment said up to "3" bits? Eric?ThanksDawei ___ D

Re: [Discuss-gnuradio] GMSK at 768kb/sec and other good stuff

2005-12-01 Thread Dawei Shen
Nov 30, 2005 at 10:47:22PM -0500, Dawei Shen wrote:> Hi, Eric and other dudes >> Hope you  have enjoyed a nice Thanksgiving.Thank you, I did.> We have bought two Flex boards and we are doing the experiments with the> GMSK2. We do TX and RX using two machines, but at the receiver, we can

Re: [Discuss-gnuradio] GMSK at 768kb/sec and other good stuff

2005-11-30 Thread Dawei Shen
Hi, Eric and other dudes Hope you  have enjoyed a nice Thanksgiving. We have bought two Flex boards and we are doing the experiments with the GMSK2. We do TX and RX using two machines, but at the receiver, we can't see anything. So could you please help me clarify a few things? 1. There are two S

Re: [Discuss-gnuradio] GMSK at 768kb/sec and other good stuff

2005-11-21 Thread Dawei Shen
Hi Eric and other dudesI am studying the GMSK2 code now. The code is very clean and obviously designed sophisticatedly. I feel excited to read the code. Could you please help explain the following code to me?     alpha = 0.0002   # FIXME, maybe 0.0008/spb    self.freq_offset = gr.single_pole_iir_fi

Re: [Discuss-gnuradio] GMSK at 768kb/sec and other good stuff

2005-11-14 Thread Dawei Shen
Hi, EricThanks for your effort and I'd like to share the happiness with you. I can't wait to read your code. A couple of questions:1. Are all the codes available on CVS now?2. When will be the Flex 400 available to purchase? 3. Why to remove the FSK code? Is there any better alternative?ThanksDawei

Re: [Discuss-gnuradio] A question about the synchronization

2005-03-24 Thread Dawei Shen
Hi, guys I am also stuck with this. After the ADC, at the quadrature downconverter, when we convert the IF frequency signal to two IQ base band signals, do we need carrier synchronization? My knowledge on communications is not enough, any pointers from you would be appreciated. BTW: what kind of

[Discuss-gnuradio] An question on wfm_rcv_gui.py

2005-03-18 Thread Dawei Shen
Hi guys I got a bit confused by the code for FM demodulator. In function parseargs(), why we return freq1 - 128e6 instead of freq1 itself? What does 128M stand for? Thanks Sachi __ Do you Yahoo!? Yahoo! Small Business - Try our new resources s

Re: [Discuss-gnuradio] Questions about the examples

2005-03-04 Thread Dawei Shen
- Original Message - From: "Eric Blossom" <[EMAIL PROTECTED]> To: "Dawei Shen" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, February 22, 2005 5:52 PM Subject: Re: [Discuss-gnuradio] Questions about the examples > On Fri, Feb 18, 2005 at 06:00:57PM -0500, Dawei

[Discuss-gnuradio] About the usrp examples

2005-02-19 Thread Dawei Shen
Hi, Eric   Could you please help take a look at the questions I posted in Vol27, Issue29 about the usrp examples? Those are some basic questions the I feel confused about.   Thank you very much   Dawei Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'___

[Discuss-gnuradio] Questions about the examples

2005-02-18 Thread Dawei Shen
Hi, dear gentlemen Some new USRP boards have arrived yesterday and I am planning to do some experiments with it, such as FM transmission and reception. However, I am still a beginner and hope I could use some existing codes without any modification. Because it's still a bit difficult to me to unde