Re:[Discuss-gnuradio] Problem with GUI interface of GNU Radio

2008-02-25 Thread Fasika Alemayehu
Hi ,

If you need a GUI to work with the gnuradio and play with the blocks, you can 
use the gnuradio companion( GRC). It is pretty cool. U can download it from GRC 
website. But if you want to write your own blocks, the best place to start is 
http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html .  Here you 
will find the necessary tutorial on how to start with the gnuradio. 

Good Luck 

Fasika 

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] ninput_items from demodulator

2008-02-11 Thread Fasika Alemayehu
Hi all,

I have a module to demodulate packets received from a
file source, and it works fine. I want to have a fixed
number of inputs (1024) coming from the demodulator.
What i did is i override the forcast method of
gr_block.
void
  usbm::forecast (int noutput_items,
  gr_vector_int
ninput_items_required)
  {
unsigned ninputs = ninput_items_required.size ();
for (unsigned i = 0; i  ninputs; i++)
  ninput_items_required[i] =1024 ;
  }

But the problem is that evenif i dont get less than
1024 items, the input varies with the differenc calls
to the method. 
Here is a sample of the input items from a demod
block.

number of items: 1027
--


number of items: 2047 
--


number of items: 1025 
--


number of items: 1024 
--


number of items: 2047 
--


number of items: 1024
--


number of items: 1026 
--


number of items: 2047 
--


number of items: 1025 
--


number of items: 2053 
--


Does this mean that the size of the output from the
demodulator block varies ? 

Fasika


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GMSK Demodulator -- Assertion 'imu=0 failed.

2008-02-07 Thread Fasika Alemayehu
Thanks , Now its working fine.

Fasika

Eric Blossom [EMAIL PROTECTED] wrote: On Tue, Feb 05, 2008 at 12:21:37AM 
-0800, Fasika Alemayehu wrote:
 I am using GNU radio 3.1.1 but I have been using the block blks2. Now I am 
 using blks2impl and the error is gone. But I am now facing a new problem.
 --
  /usr/local/lib/python2.5/site-packages/gnuradio/gr/basic_flow_graph.py, 
 line 84, in coerce_endpoint
 raise ValueError, Not coercible to endpoint: %s % (x,)
 ValueError: Not coercible to endpoint: 
 --

You can't mix flow_graph and blk2.  You should be subclassing
gr.top_block, not gr.flow_graph

 Here is the code:
 
 from gnuradio import gr
 from gnuradio.blks2impl import gmsk
 from optparse import OptionParser
 from gnuradio.eng_option import eng_option
 import struct
 
 class graph(gr.flow_graph):
 
 def __init__(self):
 gr.flow_graph.__init__(self)
 
 filename = '/home/fasika/Desktop/Binary'
 outputfilename = demod
 
 self.src = gr.file_source(gr.sizeof_gr_complex, filename)
 demod = gmsk.gmsk_demod()
 self.dst = gr.file_sink(gr.sizeof_char, outputfilename)
 self.connect(self.src, demod, self.dst)
  
 if __name__ == '__main__':
 try:
 graph().run()
 except KeyboardInterrupt:
 pass
 

Eric


   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GMSK Demodulator -- Assertion 'imu=0 failed.

2008-02-05 Thread Fasika Alemayehu
I am using GNU radio 3.1.1 but I have been using the block blks2. Now I am 
using blks2impl and the error is gone. But I am now facing a new problem.
--
 /usr/local/lib/python2.5/site-packages/gnuradio/gr/basic_flow_graph.py, line 
84, in coerce_endpoint
raise ValueError, Not coercible to endpoint: %s % (x,)
ValueError: Not coercible to endpoint: gnuradio.blks2impl.gmsk.gmsk_demod 
object at 0xb649deac
--
Here is the code:

from gnuradio import gr
from gnuradio.blks2impl import gmsk
from optparse import OptionParser
from gnuradio.eng_option import eng_option
import struct

class graph(gr.flow_graph):

def __init__(self):
gr.flow_graph.__init__(self)

filename = '/home/fasika/Desktop/Binary'
outputfilename = demod

self.src = gr.file_source(gr.sizeof_gr_complex, filename)
demod = gmsk.gmsk_demod()
self.dst = gr.file_sink(gr.sizeof_char, outputfilename)
self.connect(self.src, demod, self.dst)
 
if __name__ == '__main__':
try:
graph().run()
except KeyboardInterrupt:
pass

Fasika 

Eric Blossom [EMAIL PROTECTED] wrote: On Mon, Feb 04, 2008 at 02:27:09AM 
-0800, Fasika Alemayehu wrote:
 Hi ,
 
 I was running a GMSK demodulator to demodulate a file source signal,
 and I have come up with the following error. I think there is a data
 type problem associated. Does anybody have similar problem ? I check
 the previous posts but there is no answer on that.

Which GMSK demodulator?  
gnuadio-core/src/python/gnuradio/blks2impl/gmsk.py?
Which version of GNU Radio?

 Here is the code : 
 [EMAIL PROTECTED]:~$python demod_file.py 
  gr_fir_fff: using SSE
 python: gri_mmse_fir_interpolator.cc:66: float 
 gri_mmse_fir_interpolator::interpolate(const float*, float) const: Assertion 
 `imu = 0' failed.
 Aborted (core dumped)
 
 Fasika 

Eric


   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] GMSK Demodulator -- Assertion 'imu=0 failed.

2008-02-04 Thread Fasika Alemayehu
Hi ,

I was running a GMSK demodulator to demodulate a file source signal, and I have 
come up with the following error. I think there is a data type problem 
associated. Does anybody have similar problem ? I check the previous posts but 
there is no answer on that. 

Here is the code : 
[EMAIL PROTECTED]:~$python demod_file.py 
 gr_fir_fff: using SSE
python: gri_mmse_fir_interpolator.cc:66: float 
gri_mmse_fir_interpolator::interpolate(const float*, float) const: Assertion 
`imu = 0' failed.
Aborted (core dumped)

Fasika 

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Lost a byte of data

2008-01-30 Thread Fasika Alemayehu
Hi all,

I have been using gnuradio to receive the data from the front end hardware.  I 
have made a file sink to see the data. And the data pattern seems to lose a 
byte , and this occurs every 1024 bytes. I think the software reads 16KB of 
data but the error comes ever 1KB. I am using a SSRP module to interface with 
the hardware, in Ubuntu Gutsy. I have attached the portion of the file where 
the change occurs. The unexpected byte error comes at 5113444.

5113360  f887  fd25   f80b   fd26  f8ad   fdaf   f819   fcd0
 5113400  f83b   fd29  f858   fd3f   f80b   fd7b   f8d2  fe23
 5113420  f92a  fd6d  f7a8   fd83   f89f   fd2e   f800  fd2c
 5113440  f8a3  fd7f   d700  41f7   0bfd   aff8   85fd  adf8
 5113460  9afd  96f8  35fc   aaf8  7cfcbff8   effd   f5f7
 5113500  5afc 93f8   6cfd   5ff8   c9fd   1ef8   4ffd   21f8

Any suggestion is of great help. 

Fasika

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re:[Discuss-gnuradio]Can not creating a flow graph

2008-01-17 Thread Fasika Alemayehu
Hi Jacky ,
 
 As far as I understand your question, you are expecting a GUI from the 
example, dial_tone.py. But gr.flow_graph is a used for connecting the different 
signal processing blocks, and ensures a proper data flow from the source to 
sink in the dial_tone.py case. Thus, the target of the program is linking the 
signal source with the audio sink. So, since you hear a sound ( a dial tone), 
the program executed successfully. If you are looking for a GUI, you can 
install GNU radio companion(GRC). Then, you can play with the different signal 
processing blocks. I think I have answered your question.
 
 Fasika 

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Frontend Hardware which is not USRP

2007-12-14 Thread Fasika Alemayehu
Thanks for the reply ,

The connection of the hardware( lets say hw) with the radio is as usrp does. 
Received samples are sent from the FPGA via the FX2 over endpoint  6 using USB 
bulk transfers. Endpoint 2 is not yet used since we are testing the receiver 
only. The A/D or VCO are configured by the FPGA(Spartan-3E-500) for the 2402 
MHz channel @ 48 MHz sampling. The decimation is 12x so the data from EP6 is 4 
Ms/sec, each sample is 16 bit I and 16 bit Q as with the USRP. ad9863, fx2lp 
are used in the hw. 

My question is whether i can use the gnuradio with some simple modifications 
like the vendor id,device id and prodcut id for the hw, seen by the gnuradio as 
usrp.

Best ,

Fasika
Eric Blossom [EMAIL PROTECTED] wrote: On Thu, Dec 13, 2007 at 12:48:24AM 
-0800, Fasika Alemayehu wrote:
 Thanks for the reply ,
 

 The receiver front end is similar with the usrp. The data transfer
 to and from the hardware using the usb endpoints is similar with
 that of the usrp that you mentioned. But the problem is when i tried
 to contact the hardware , the response is that there is failed to
 find usrp[0]. The product id and the vendor id of the usrp and our
 hardware are different. How can I solve this problem ? I read on the
 forum that I should add the device and vendor id to the list in
 usrp_ids.h and get the usrp developers to acknowledge it.
 
 Best ,
 Fasika

Unless you device is identical to the USRP and uses exactly the same
FX2 code and FPGA RBF's, you'll probably have to do some work.

Have you looked at the source code for the host side of the interface
to the USRP?  usrp/host/lib/legacy/*.{h,cc}

Do you have a specific question?  How do I get my new hardware that's
sort of like a usrp to work with gnuradio is a bit open ended.

Eric


   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Receiver frontend which is not USRP

2007-12-13 Thread Fasika Alemayehu
Hi All ,

As

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Frontend Hardware which is not USRP

2007-12-13 Thread Fasika Alemayehu
Thanks for the reply ,

The receiver front end is similar with the usrp. The  data transfer  to and 
from the hardware  using the usb endpoints is similar with that of the usrp 
that you mentioned. But the problem is when i tried to contact the hardware , 
the response is that there is failed to find usrp[0]. The product id and the 
vendor id of the usrp and our hardware are different. How can I solve this 
problem ? I read on the forum that I should add the device and vendor id to the 
list in usrp_ids.h and get the usrp developers to acknowledge it. 

Best ,

Fasika

Eric Blossom [EMAIL PROTECTED] wrote: On Mon, Dec 10, 2007 at 01:28:38PM 
-0800, Fasika Alemayehu wrote:
 Hi Eric,
 
 I also have got a similar situation. We are building a software
 defined radio using GNU radio. We have a receiver front end to test
 and analyze the performance of Wireless sensor nodes at 2.5GHz. The
 module is similar with USRP but we are studying the differences
 inorder to integrate the hardware with the gnuradio. I would really
 appreciate if I can find any documentation about the details of the
 signal transfer to/from the usrp and the usrp itself so that we can
 see the difference between the USRP and our hardware.
 
 Best ,
 Fasika 

There is no documentation outside of that in the code on this.

However, it's pretty straight-forward.  We talk to the USRP using 3
USB end points.  EP0, the control endpoint, is used to load FX2
firmware and the FPGA .rbf file, low-level control of the
daughterboards, setting control registers in the FPGA, and other misc
operations.  The list of operations and the arguments is in
usrp/firmware/include/usrp_commands.h

Received samples are sent from the FPGA via the FX2 over endpoint 6
using USB bulk transfers.  Each USB packet is 512 bytes long, and the
data in each packet is interleaved 16-bit little-endian I  Q pairs.
I.e.,  I0, Q0, I1, Q1,...

Transmit samples are sent in the same format over endpoint 2 using 
USB bulk tranfers.

The schematics of the USRP are available as PDFs and gscheme source
here: http://gnuradio.org/trac/browser/usrp-hw/trunk/USRP_REV_4_2

Eric



   
-
Never miss a thing.   Make Yahoo your homepage.___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Frontend Hardware which is not USRP

2007-12-10 Thread Fasika Alemayehu
Hi Eric,

I also have got a similar situation. We are building a software defined radio 
using GNU radio. We have a receiver front end to test and analyze the 
performance of Wireless sensor nodes at 2.5GHz. The module is similar with USRP 
but we are studying the differences inorder to integrate the hardware with the 
gnuradio. I would really appreciate if I can find any documentation about the 
details of the signal transfer to/from the usrp and the usrp itself so that we 
can see the difference between the USRP and our hardware.

Best ,
Fasika 

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] ImportError: No module named gnuradio

2007-12-07 Thread Fasika Alemayehu
Hi All ,
I have just installed gnuradio and it was successful. But when i tried to run 
the gnuradio-examples, i get the error message 'ImportError: No module named 
gnuradio'. I have changed the PYTHONPATH to the directory where python is 
installed but it is not working. I have installed gnuradio in a different 
folder i.e. /usr/Nett/users/fass/gnuradio whereas the python directory is 
/usr/lib/python2.5/site-packages. Could that be a problem ?
Here is the error 
[EMAIL PROTECTED]:~$ export PYTHONPATH=/usr/lib/python2.5/site-packages
[EMAIL PROTECTED]:~/gnuradio/gnuradio-examples/python/network$ 
./dial_tone_source.py
Traceback (most recent call last):
  File ./dial_tone_source.py, line 23, in module
from gnuradio import gr
ImportError: No module named gnuradio

 

Regards,

Fasika 

   
-
Never miss a thing.   Make Yahoo your homepage.___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] ImportError: No module named gnuradio

2007-12-07 Thread Fasika Alemayehu
I am using Ubuntu 7.10.

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio