[Discuss-gnuradio] How to conduct the Energy detection spectrum sensing in gnu radio.

2011-04-20 Thread Sandip Bista
Hi,  I am trying to do research in cognitive radio, here I am stuck in making a energy detection model for my design simulation. I am looking for some assistance further research site on the gnu to get through the process of spectrum sensing so as to overcome my problem.  I would like to thank

Re: [Discuss-gnuradio] Nitpicking: libxi-dev check

2011-04-20 Thread Tom Rondeau
On Wed, Apr 20, 2011 at 10:06 AM, Martin Braun wrote: > Hi, > > as someone else[1] and myself (and probably others) figured out, > libxi-dev must be installed in order to compile gnuradio on > Ubuntu Natty, otherwise you'll get a > > /usr/bin/ld: cannot find -lXi > > message. Shouldn't this be ca

Re: [Discuss-gnuradio] Latest GIT on OpenSuse 11.4 x64 - PYTHONPATH

2011-04-20 Thread Marcus D. Leech
On 04/20/2011 10:56 PM, Stefan Gofferje wrote: > sgofferj@enterprise:~> ll /usr/local/lib/python2.7/site- > packages/gnuradio/gr/*gnuradio_core_runtime* > -rw-r--r-- 1 root root 68910 Apr 21 05:09 /usr/local/lib/python2.7/site- > packages/gnuradio/gr/gnuradio_core_runtime.py > -rw-r--r-- 1 root ro

Re: [Discuss-gnuradio] Latest GIT on OpenSuse 11.4 x64 - PYTHONPATH

2011-04-20 Thread Stefan Gofferje
On Thursday 21 April 2011, Marcus D. Leech wrote: > python > > from gnuradio import gr sgofferj@enterprise:~> python -c "from gnuradio import gr" Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/gnuradio/gr/__init__.py", line 43, in fr

Re: [Discuss-gnuradio] Latest GIT on OpenSuse 11.4 x64 - PYTHONPATH

2011-04-20 Thread Marcus D. Leech
On Thu, 2011-04-21 at 05:05 +0300, Stefan Gofferje wrote: Try "locate gnuradio/__init__.py". --n Another issue is that if you'd installed Gnu Radio from a distribution-packaged instance, the dynamic linker will find its shared-libraries *first*, which can cause incompatibilities between

Re: [Discuss-gnuradio] Latest GIT on OpenSuse 11.4 x64 - PYTHONPATH

2011-04-20 Thread Nick Foster
On Thu, 2011-04-21 at 05:05 +0300, Stefan Gofferje wrote: > Hi all, > > I have been experimenting with gnuradio about 2y ago and everything went just > fine. > > Now I'm trying for about 5 days to get it to work again. > Configure, check, compile and install go through fine. > Just whatever I tr

[Discuss-gnuradio] Latest GIT on OpenSuse 11.4 x64 - PYTHONPATH

2011-04-20 Thread Stefan Gofferje
Hi all, I have been experimenting with gnuradio about 2y ago and everything went just fine. Now I'm trying for about 5 days to get it to work again. Configure, check, compile and install go through fine. Just whatever I try, I can't get grc running. I always get the message about checking PYTHO

Re: [Discuss-gnuradio] "ImportError: No module named myblock" when generating py file in GRC

2011-04-20 Thread Nick Foster
On Thu, 2011-04-21 at 09:15 +0800, yyl wrote: > On Wed, 20 Apr 2011 17:47:57 -0700 > Nick Foster wrote: > > > On Thu, 2011-04-21 at 08:37 +0800, Yulong Yang wrote: > > > Hello, > > > > > > I have tried both python -c "import..." and echo $. I see the path > > > to my folder in both of them. But

Re: [Discuss-gnuradio] "ImportError: No module named myblock" when generating py file in GRC

2011-04-20 Thread yyl
On Wed, 20 Apr 2011 17:47:57 -0700 Nick Foster wrote: > On Thu, 2011-04-21 at 08:37 +0800, Yulong Yang wrote: > > Hello, > > > > I have tried both python -c "import..." and echo $. I see the path > > to my folder in both of them. But it still says ImportError in > > top_block.py. Where exactly s

Re: [Discuss-gnuradio] "ImportError: No module named myblock" when generating py file in GRC

2011-04-20 Thread Nick Foster
On Thu, 2011-04-21 at 08:37 +0800, Yulong Yang wrote: > Hello, > > I have tried both python -c "import..." and echo $. I see the path to my > folder in both of them. But it still says ImportError in top_block.py. > Where exactly should the path direct to? I tried both "~/gnuradio" and > "~/gnuradi

Re: [Discuss-gnuradio] "ImportError: No module named myblock" when generating py file in GRC

2011-04-20 Thread Yulong Yang
Hello, I have tried both python -c "import..." and echo $. I see the path to my folder in both of them. But it still says ImportError in top_block.py. Where exactly should the path direct to? I tried both "~/gnuradio" and "~/gnuradio/myblock". When you say __init__.py do you mean the one in sub-f

Re: [Discuss-gnuradio] UHD I/O Data Types

2011-04-20 Thread Marcus D. Leech
You cannot represent a "pure" sinusoid with a real signal. Think e^(jw) vs Re{e^(jw)} Maybe someone could think of a better way to say this. All USRP devices input and output complex baseband. You need to represent your signal in complex baseband. I suggest experimenting by feeding your signal in

Re: [Discuss-gnuradio] "ImportError: No module named myblock" when generating py file in GRC

2011-04-20 Thread Mike Clark
> Do your mean PYTHONPATH or just system search path? > I have set my block path as the PYTHONPATH in ~/.profile, but it still > cannot work. Is there a way to check whether the path is set appropriately? You are in linux I presume? "echo $PYTHONPATH" (without quotes) should tell you what your py

Re: [Discuss-gnuradio] UHD I/O Data Types

2011-04-20 Thread Josh Blum
On 04/20/2011 04:31 PM, Arya Santini wrote: > By a real signal, I mean a signal like a real valued sinusoid. Say in > a grc graph, I have this: signal generator (sine, float o/p) > > float to short converter > usrp sink (short i/p). In this example, Time out. The USRP sink w/ short inp

Re: [Discuss-gnuradio] "ImportError: No module named myblock" when generating py file in GRC

2011-04-20 Thread yulong yang
On Thu, Apr 21, 2011 at 7:17 AM, Josh Blum wrote: > > > On 04/20/2011 03:00 AM, Yulong Yang wrote: > > Hello, > > > > I am new to GNU radio. I am trying to write a simple block and add it to > > GRC. All steps before are fine. However, when I generate the > > top_block.py file, it says "ImportErr

Re: [Discuss-gnuradio] UHD I/O Data Types

2011-04-20 Thread Arya Santini
By a real signal, I mean a signal like a real valued sinusoid. Say in a grc graph, I have this: signal generator (sine, float o/p) > float to short converter > usrp sink (short i/p). In this example, I'm inputting a stream of shorts representing a pure sine wave to the usrp module. I wante

Re: [Discuss-gnuradio] "ImportError: No module named myblock" when generating py file in GRC

2011-04-20 Thread Josh Blum
On 04/20/2011 03:00 AM, Yulong Yang wrote: > Hello, > > I am new to GNU radio. I am trying to write a simple block and add it to > GRC. All steps before are fine. However, when I generate the > top_block.py file, it says "ImportError: No module named myblock". > > The myblock is actually the n

Re: [Discuss-gnuradio] UHD disable receive

2011-04-20 Thread Josh Blum
On 04/20/2011 03:24 PM, Feng Andrew Ge wrote: > Josh, > > Thanks for the clarification. > > Does it mean that, by this hacked code, turning off RX mixer at > transmitting time happens on FPGA? Or does it happen at UHD on the host > side? > In this case the mixer is controlled by FPGA GPIOs t

Re: [Discuss-gnuradio] Agile Solutions is Pleased to announce USRPSTAR. Yet another addition to GNURADIO

2011-04-20 Thread Jeff Brower
> On 04/19/2011 01:10 PM, i...@agile-sdr-solutions.com wrote: >> >> Dear Matt, >> >> We honestly went through every material in search on Google but we >> couldn't locate a single article published successful testing for >> STBC/SFBC. >> >> For whatever reason, we would like to know, if you can con

Re: [Discuss-gnuradio] UHD disable receive

2011-04-20 Thread Feng Andrew Ge
Josh, Thanks for the clarification. Does it mean that, by this hacked code, turning off RX mixer at transmitting time happens on FPGA? Or does it happen at UHD on the host side? Andrew On 04/20/2011 06:15 PM, Josh Blum wrote: On 04/20/2011 03:03 PM, Feng Andrew Ge wrote: Josh, When you

Re: [Discuss-gnuradio] UHD disable receive

2011-04-20 Thread Josh Blum
On 04/20/2011 03:03 PM, Feng Andrew Ge wrote: > Josh, > > When you say " In any case, you can shutoff the rx mixer in full duplex > mode with this little change:", is it true that this radio, once started > with the changed code, cannot receive anymore at it runtime? > No: When, and only when,

Re: [Discuss-gnuradio] UHD disable receive

2011-04-20 Thread Feng Andrew Ge
Josh, When you say " In any case, you can shutoff the rx mixer in full duplex mode with this little change:", is it true that this radio, once started with the changed code, cannot receive anymore at it runtime? Andrew On 04/19/2011 12:00 PM, discuss-gnuradio-requ...@gnu.org wrote: Messag

Re: [Discuss-gnuradio] Agile Solutions is Pleased to announce USRP STAR. Yet another addition to GNURADIO

2011-04-20 Thread Almohanad Fayez
As a user and would be developer on the gnuradio list it's always exciting to hear about the availability for new products which can be used with gnuradio, such as the FUNcube dongle and the work Alex did to support it and the Agile solution platform. Product developer support for users on this

Re: [Discuss-gnuradio] gr-uhd swig troubles

2011-04-20 Thread Moritz Fischer
On Wed, Apr 20, 2011 at 07:13:15PM +0200, Josh Blum wrote: > I think I see why: > > > //! Complex floating point (64-bit floats) range [-1.0, +1.0] > > COMPLEX_FLOAT64 = 'd', > > //! Complex floating point (32-bit floats) range [-1.0, +1.0] > > COMPLEX_FLOAT32 = 'f', > > //! Complex signed intege

Re: [Discuss-gnuradio] gr-uhd swig troubles

2011-04-20 Thread Josh Blum
On 04/20/2011 10:02 AM, Moritz Fischer wrote: > On Wed, Apr 20, 2011 at 06:28:45PM +0200, Josh Blum wrote: >> What do other gnuradio enums give you? >> >> python -c "from gnuradio import gr; print type(gr.GR_COS_WAVE)" >> >> Can you create a gr.sig_source? > Yeah, it's a > I think I see why:

Re: [Discuss-gnuradio] gr-uhd swig troubles

2011-04-20 Thread Moritz Fischer
On Wed, Apr 20, 2011 at 06:28:45PM +0200, Josh Blum wrote: > What do other gnuradio enums give you? > > python -c "from gnuradio import gr; print type(gr.GR_COS_WAVE)" > > Can you create a gr.sig_source? Yeah, it's a > Just trying to narrow it down... Thanks for your efforts ;-) Moritz pgpho

[Discuss-gnuradio] Building simple GUIs: Is wxPython still the recommended method?

2011-04-20 Thread Joel Koltner
I've been away from GNU Radio for a bit and wanted to ask... is wxPython (and the included wrappers) still the recommended means of building simple GUIs? Or has it been supplanted by, e.g., "something Qt" or similar? Thanks, ---Joel ___ Discuss-gnura

Re: [Discuss-gnuradio] gr-uhd swig troubles

2011-04-20 Thread Josh Blum
On 04/20/2011 08:41 AM, Moritz Fischer wrote: > On Wed, Apr 20, 2011 at 05:16:31PM +0200, Josh Blum wrote: >> Whats your swig version? > I'm on archlinux and I use swig 2.0.3-1 [1]. > >> The last time I encountered this, someone had >> swig 2 and it was incorrectly parsing an enum to type 'str'

Re: [Discuss-gnuradio] Caution: UHD in /usr/local/lib on Fedora X86_64

2011-04-20 Thread Josh Blum
On 04/20/2011 05:05 AM, Marcus D. Leech wrote: > Previously, the package file for UHD placed the UHD shared libraries in > /usr/local/lib, even on x86_64 > systems, where Fedora prefers libraries in /usr/local/lib64. > > So, if you'd modified your /etc/ld.so.conf.d to have a configuration for

Re: [Discuss-gnuradio] gr-uhd swig troubles

2011-04-20 Thread Josh Blum
Whats your swig version? The last time I encountered this, someone had swig 2 and it was incorrectly parsing an enum to type 'str' (rather than int). Whats this print? python -c "from gnuradio import uhd; print type(uhd.io_type.COMPLEX_FLOAT32)" -Josh On 04/20/2011 04:45 AM, Moritz Fischer wrote

Re: [Discuss-gnuradio] Nitpicking: libxi-dev check

2011-04-20 Thread Marcus D. Leech
On 04/20/2011 10:06 AM, Martin Braun wrote: Hi, as someone else[1] and myself (and probably others) figured out, libxi-dev must be installed in order to compile gnuradio on Ubuntu Natty, otherwise you'll get a /usr/bin/ld: cannot find -lXi message. Shouldn't this be caught by the configure scr

[Discuss-gnuradio] Nitpicking: libxi-dev check

2011-04-20 Thread Martin Braun
Hi, as someone else[1] and myself (and probably others) figured out, libxi-dev must be installed in order to compile gnuradio on Ubuntu Natty, otherwise you'll get a /usr/bin/ld: cannot find -lXi message. Shouldn't this be caught by the configure script? If so, I guess config/grc_qtgui.m4 could

[Discuss-gnuradio] Tunnel.py exception

2011-04-20 Thread David Barton
I am running tunnel.py on gnuradio 3.3.0 . It run successfully for a while but after a period of time (around an hour) the following exception prints out: Rx: ok = True len(payload) = 82 Tx: len(payload) = 82 Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib64

[Discuss-gnuradio] Caution: UHD in /usr/local/lib on Fedora X86_64

2011-04-20 Thread Marcus D. Leech
Previously, the package file for UHD placed the UHD shared libraries in /usr/local/lib, even on x86_64 systems, where Fedora prefers libraries in /usr/local/lib64. So, if you'd modified your /etc/ld.so.conf.d to have a configuration for /usr/local/lib, then your code would link with the instan

[Discuss-gnuradio] gr-uhd swig troubles

2011-04-20 Thread Moritz Fischer
Hey guys, I started to have this with the git master and uhd from yesterday evening: linux; GNU C++ version 4.6.0 20110415 (prerelease); Boost_104600; UHD_003.000.001-8212f22 [...] ub/grotarapi/PHY/PhysicalLayer.py", line 47, in __init__ self.u_tx = uhd.usrp_sink(hint, io_type=uhd.io_type_

[Discuss-gnuradio] "ImportError: No module named myblock" when generating py file in GRC

2011-04-20 Thread Yulong Yang
Hello, I am new to GNU radio. I am trying to write a simple block and add it to GRC. All steps before are fine. However, when I generate the top_block.py file, it says "ImportError: No module named myblock". The myblock is actually the name of the folder I create to put all necessary files of my

[Discuss-gnuradio] USRP2 to toggle beween Rx And Tx mode

2011-04-20 Thread udit joshi
Hi All, How can i get a USRP2 to toggle between reception and transmission.I need to receive data , analyse it ans thereafter transmit based on the analysed data.While i have written the C++ block for this, i cannot figure out a way to toggle between Tx and Rx modes on the fly. -- Regards Lt Col

Re: [Discuss-gnuradio] question about a parameter in the example digial-bert

2011-04-20 Thread intermilan
Does anyone know what the parameter alpha is ? I have confused about it several days.It is a parameter in the block gr_probe_mpsk_sbr_f. I think when we set this parameter, the ratio for the data signal and noise should be set in the received signal.But how do I set this parameter? Is there a