[Discuss-gnuradio] The latency between TX and RX

2010-01-22 Thread Brook Lin

Hi All,

When I use benchmark_ofdm_tx.py and benchmark_ofdm_rx.py to transmit and
receive, I found that the transmitter side is faster than the receiver side.
For example, I give a small pkt size, say s=1200, and a large file size, say
M=5. When benchmark_ofdm_tx.py finished transmitting, at the receiver side,
only half of the transmitted packets are received, and the receiver will
keep receiving the rest. However, if I gave a smaller M, say M=1, the
receiver will receive all the packets when the transmitter just finish the
transmission. Why is that? How to solve it if I want to transmit a large
file? Could anyone advise me?

Thanks in advance,
Brook
-- 
View this message in context: 
http://old.nabble.com/The-latency-between-TX-and-RX-tp27277915p27277915.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] USRP2-No USRPs found on interface eth0

2010-01-27 Thread Brook Lin

Hi All,

I'm testing my USRP2. I run ./usrp2_fft.py and ./usrp2_wfm_rcv.py, both
worked fine. However, I got an error now, "RuntimeError: No USRPs found on
interface eth0". I didn't change anything on this computer. I connect the
USRP2 on another computer, all work fine. Could anyone advise me on how to
solve this problem? What causes this error? Thanks in advance.

-Brook

-- 
View this message in context: 
http://old.nabble.com/USRP2-No-USRPs-found-on-interface-eth0-tp27346326p27346326.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] USRP2-No USRPs found on interface eth0

2010-01-27 Thread Brook Lin

Thanks, Tim. The error I got is

~/gnuradio/gnuradio-examples/python/usrp2$ sudo ./usrp2_wfm_rcv.py -e eth0
Traceback (most recent call last):
  File "./usrp2_wfm_rcv.py", line 274, in 
app = stdgui2.stdapp (wfm_rx_block, "USRP2 WFM RX")
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line 36, in __init__
wx.App.__init__ (self, redirect=False)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7836, in __init__
self._BootstrapApp()
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7433, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line 39, in OnInit
frame = stdframe (self.top_block_maker, self.title, self._nstatus)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line 60, in __init__
self.panel = stdpanel (self, self, top_block_maker)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line 81, in __init__
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
  File "./usrp2_wfm_rcv.py", line 69, in __init__
self.u = usrp2.source_32fc(options.interface, options.mac_addr)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/usrp2.py", line 501,
in source_32fc
return _usrp2.source_32fc(*args, **kwargs)
RuntimeError: No USRPs found on interface eth0

The output of ifconfig |grep eth is 
"eth0  Link encap:Ethernet  HWaddr 00:17:a4:eb:e0:ee "

And I also tried what you mentioned above. However, I still had the same
error. Any advice?

Thanks,
Brook


Tim Pearce-2 wrote:
> 
> Immediately above "Traceback (most recent call last):" in the command
> window
> is there any error?
> 
> The most common I get are:
> 
> t...@tim-laptop:~$ usrp2_fft.py
> *eth0: SIOCGIFINDEX: No such device*
> 
> or
> 
> t...@tim-laptop:~$ usrp2_fft.py -e eth1
> *socket(PF_PACKET, SOCK_RAW, htons(0xBEEF)): Operation not permitted
> eth1: socket: No such file or directory*
> 
> 
> 
> In the former case for some reason my ubuntu install randomly changed eth0
> to eth1 , run ifconfig and try:
> 
> usrp2_fft.py -e ethX
> 
> where X is the number listed in `ifconfig | grep eth`
> 
> If you get the second error for some reason usrp2_socket_opener has lost
> permissions (or you've been running as root when it worked in the past)
> 
> sudo chmod +s /usr/bin/usrp2_socket_opener
> 
> Should fix this problem.
> 
> Last idea is if you've tried the VRT firmware/gnuradio code on the other
> PC
> -- the control packets have changed in this release so wont work with
> stock
> git/packaged gnuradio versions.
> 
> Cheers,
> 
> Tim
> 
> On Wed, Jan 27, 2010 at 8:31 PM, Brook Lin  wrote:
> 
>>
>> Hi All,
>>
>> I'm testing my USRP2. I run ./usrp2_fft.py and ./usrp2_wfm_rcv.py, both
>> worked fine. However, I got an error now, "RuntimeError: No USRPs found
>> on
>> interface eth0". I didn't change anything on this computer. I connect the
>> USRP2 on another computer, all work fine. Could anyone advise me on how
>> to
>> solve this problem? What causes this error? Thanks in advance.
>>
>> -Brook
>>
>> --
>> View this message in context:
>> http://old.nabble.com/USRP2-No-USRPs-found-on-interface-eth0-tp27346326p27346326.html
>> Sent from the GnuRadio mailing list archive at Nabble.com.
>>
>>
>>
>> ___
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://old.nabble.com/USRP2-No-USRPs-found-on-interface-eth0-tp27346326p27349005.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Daughterboard

2010-03-04 Thread Brook Lin

Hi All,

When we use any of the USRP daughterboard to transmit, do we need the
authorization? For example, FRX900 includes the cell phone bands in US. If
we use FRX900 to transmit, do we violate the FCC rule? Or, we could legally 
use any daughterboard on any band that falls in the frequency range of the
daughterboard?

Thanks,
Brook
-- 
View this message in context: 
http://old.nabble.com/Daughterboard-tp27784947p27784947.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] installatino error

2010-08-03 Thread Brook Lin

Hi All,

I am trying to install gnuradio-3.2.1 on Ubuntu-8.04 OS. There is no error
for configure, but there are errors when "make". libqwtplot3d-qt4 and
libqwtplot3d-qt4-dev have been installed. Can anyone tell me how to solve
it?

Thanks in advance,
Brook

=== Errors ===
/usr/include/qwt/qwt_autoscl.h:114: error: ISO C++ forbids declaration of
‘QMemArray’ with no type
In file included from /usr/include/qwt/qwt_plot.h:20,
 from ./FrequencyDisplayPlot.h:5,
 from FrequencyDisplayPlot.cc:4:
/usr/include/qwt/qwt_scldraw.h:105: error: ‘QWMatrix’ does not name a type
In file included from /usr/include/qwt/qwt_curve.h:17,
 from /usr/include/qwt/qwt_plot.h:22,
 from ./FrequencyDisplayPlot.h:5,
 from FrequencyDisplayPlot.cc:4:
/usr/include/qwt/qwt_data.h:87: error: expected ‘,’ or ‘...’ before ‘<’
token
/usr/include/qwt/qwt_data.h:87: error: ISO C++ forbids declaration of
‘QMemArray’ with no type
/usr/include/qwt/qwt_data.h:96: error: ISO C++ forbids declaration of
‘QMemArray’ with no type
/usr/include/qwt/qwt_data.h:96: error: expected ‘;’ before ‘<’ token
/usr/include/qwt/qwt_data.h:106: error: expected ‘,’ or ‘...’ before ‘<’
token
/usr/include/qwt/qwt_data.h:106: error: ISO C++ forbids declaration of
‘QMemArray’ with no type
/usr/include/qwt/qwt_data.h:118: error: ISO C++ forbids declaration of
‘QMemArray’ with no type
/usr/include/qwt/qwt_data.h:118: error: expected ‘;’ before ‘<’ token
/usr/include/qwt/qwt_data.h:119: error: ISO C++ forbids declaration of
‘QMemArray’ with no type
/usr/include/qwt/qwt_data.h:119: error: expected ‘;’ before ‘<’ token
In file included from /usr/include/qwt/qwt_curve.h:18,
 from /usr/include/qwt/qwt_plot.h:22,
 from ./FrequencyDisplayPlot.h:5,
 from FrequencyDisplayPlot.cc:4:
/usr/include/qwt/qwt_spline.h:71: error: expected ‘,’ or ‘...’ before ‘<’
token
/usr/include/qwt/qwt_spline.h:72: error: ISO C++ forbids declaration of
‘QMemArray’ with no type
In file included from /usr/include/qwt/qwt_plot.h:22,
 from ./FrequencyDisplayPlot.h:5,
 from FrequencyDisplayPlot.cc:4:
/usr/include/qwt/qwt_curve.h:100: error: expected ‘,’ or ‘...’ before ‘<’
token
/usr/include/qwt/qwt_curve.h:100: error: ISO C++ forbids declaration of
‘QMemArray’ with no type
/usr/include/qwt/qwt_curve.h:101: error: expected ‘,’ or ‘...’ before ‘<’
token
/usr/include/qwt/qwt_curve.h:101: error: ISO C++ forbids declaration of
‘QMemArray’ with no type
/usr/include/qwt/qwt_curve.h:101: error: ‘void QwtCurve::setData(int)’
cannot be overloaded
/usr/include/qwt/qwt_curve.h:100: error: with ‘void QwtCurve::setData(int)’
/usr/include/qwt/qwt_curve.h:175: error: ‘QPointArray’ has not been declared
In file included from /usr/include/qwt/qwt_marker.h:20,
 from /usr/include/qwt/qwt_plot.h:23,
 from ./FrequencyDisplayPlot.h:5,
 from FrequencyDisplayPlot.cc:4:
/usr/include/qwt/qwt_text.h:134: error: ‘WordBreak’ is not a member of ‘Qt’
/usr/include/qwt/qwt_text.h:134: error: ‘ExpandTabs’ is not a member of ‘Qt’
/usr/include/qwt/qwt_text.h:182: error: ISO C++ forbids declaration of
‘QSimpleRichText’ with no type
/usr/include/qwt/qwt_text.h:182: error: expected ‘;’ before ‘*’ token
/usr/include/qwt/qwt_text.h:159: error: ‘WordBreak’ is not a member of ‘Qt’
/usr/include/qwt/qwt_text.h:159: error: ‘ExpandTabs’ is not a member of ‘Qt’
In file included from /usr/include/qwt/qwt_legend.h:20,
 from /usr/include/qwt/qwt_plot.h:24,
 from ./FrequencyDisplayPlot.h:5,
 from FrequencyDisplayPlot.cc:4:
/usr/include/qwt/qwt_push_button.h:36: error: expected ‘,’ or ‘...’ before
‘&’ token
/usr/include/qwt/qwt_push_button.h:37: error: ISO C++ forbids declaration of
‘QIconSet’ with no type
/usr/include/qwt/qwt_push_button.h:41: error: ‘TextFormat’ does not name a
type
/usr/include/qwt/qwt_push_button.h:42: error: ‘TextFormat’ has not been
declared
In file included from /usr/include/qwt/qwt_legend.h:25,
 from /usr/include/qwt/qwt_plot.h:24,
 from ./FrequencyDisplayPlot.h:5,
 from FrequencyDisplayPlot.cc:4:
/usr/include/qwt/qwt_plot_dict.h:22: error: expected template-name before
‘<’ token
/usr/include/qwt/qwt_plot_dict.h:22: error: expected `{' before ‘<’ token
/usr/include/qwt/qwt_plot_dict.h:22: error: expected unqualified-id before
‘<’ token
/usr/include/qwt/qwt_plot_dict.h:64: error: invalid use of incomplete type
‘class QwtSeqDict’
/usr/include/qwt/qwt_plot_dict.h:22: error: declaration of ‘class
QwtSeqDict’
/usr/include/qwt/qwt_plot_dict.h: In constructor
‘QwtCurveDict::QwtCurveDict()’:
/usr/include/qwt/qwt_plot_dict.h:66: error: ‘setAutoDelete’ was not declared
in this scope
/usr/include/qwt/qwt_plot_dict.h: At global scope:
/usr/include/qwt/qwt_plot_dict.h:70: error: invalid use of incomplete type
‘class QwtSeqDict’
/usr/include/qwt/qwt_plo

Re: [Discuss-gnuradio] installatino error

2010-08-03 Thread Brook Lin

Hi All,

I also tried other version of gnuradio, such as gnuradio-3.1.2, 3.2.2, but I
got the same errors when "make". I just upgraded qwt-5.0.2 to qwt-5.2.1, but
no help. Any suggestion here?

Thanks,
Brook


Brook Lin wrote:
> 
> Hi All,
> 
> I am trying to install gnuradio-3.2.1 on Ubuntu-8.04 OS. There is no error
> for configure, but there are errors when "make". libqwtplot3d-qt4 and
> libqwtplot3d-qt4-dev have been installed. Can anyone tell me how to solve
> it?
> 
> Thanks in advance,
> Brook
> 
> 

-- 
View this message in context: 
http://old.nabble.com/installatino-error-tp29339164p29340228.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


Re: [Discuss-gnuradio] installatino error

2010-08-04 Thread Brook Lin

Thanks for your reply, Josh. I do not need qt for now. Could you please tell
me how to disable it in configure, build and install?

Thanks,
Brook


Josh Blum-2 wrote:
> 
> Unless you had a specific use in mind for the qt stuff, you probably 
> wont need it. I would just disable it in the configure, build, install.
> 
> -JOsh
> 
> On 08/03/2010 02:15 PM, Brook Lin wrote:
>>
>> Hi All,
>>
>> I also tried other version of gnuradio, such as gnuradio-3.1.2, 3.2.2,
>> but I
>> got the same errors when "make". I just upgraded qwt-5.0.2 to qwt-5.2.1,
>> but
>> no help. Any suggestion here?
>>
>> Thanks,
>> Brook
>>
>>
>> Brook Lin wrote:
>>>
>>> Hi All,
>>>
>>> I am trying to install gnuradio-3.2.1 on Ubuntu-8.04 OS. There is no
>>> error
>>> for configure, but there are errors when "make". libqwtplot3d-qt4 and
>>> libqwtplot3d-qt4-dev have been installed. Can anyone tell me how to
>>> solve
>>> it?
>>>
>>> Thanks in advance,
>>> Brook
>>>
>>>
>>
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://old.nabble.com/installatino-error-tp29339164p29347291.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


Re: [Discuss-gnuradio] installatino error

2010-08-04 Thread Brook Lin

I got it. Everything works fine. Thanks, Josh.

Brook

Josh Blum-2 wrote:
> 
> Unless you had a specific use in mind for the qt stuff, you probably 
> wont need it. I would just disable it in the configure, build, install.
> 
> -JOsh
> 
> On 08/03/2010 02:15 PM, Brook Lin wrote:
>>
>> Hi All,
>>
>> I also tried other version of gnuradio, such as gnuradio-3.1.2, 3.2.2,
>> but I
>> got the same errors when "make". I just upgraded qwt-5.0.2 to qwt-5.2.1,
>> but
>> no help. Any suggestion here?
>>
>> Thanks,
>> Brook
>>
>>
>> Brook Lin wrote:
>>>
>>> Hi All,
>>>
>>> I am trying to install gnuradio-3.2.1 on Ubuntu-8.04 OS. There is no
>>> error
>>> for configure, but there are errors when "make". libqwtplot3d-qt4 and
>>> libqwtplot3d-qt4-dev have been installed. Can anyone tell me how to
>>> solve
>>> it?
>>>
>>> Thanks in advance,
>>> Brook
>>>
>>>
>>
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://old.nabble.com/installatino-error-tp29339164p29349656.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


[Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Brook Lin

Hi All, 

I followed the instructions on
http://gnuradio.org/redmine/wiki/gnuradio/UbuntuInstall to install
gnuradio-3.3.0 onto Ubuntu-10.04 LTS. I used qwt-5.2.1, boost_1_37_0, and
all other packages from synaptic package manager. After ./configure
--with-boost=$BOOST_PREFIX, I got:

The following GNU Radio components have been successfully configured: 

config 
gruel 
gnuradio-core 
usrp 
usrp2 
gr-usrp 
gr-usrp2 
gr-msdd6000 
gr-audio-alsa 
gr-audio-oss 
gr-atsc 
gr-cvsd-vocoder 
gr-gpio 
gr-gsm-fr-vocoder 
gr-noaa 
gr-pager 
gr-radar-mono 
gr-radio-astronomy 
gr-trellis 
gr-video-sdl 
gr-wxgui 
gr-qtgui 
gr-sounder 
gr-utils 
gnuradio-examples 
grc 
docs 

You my now run the make command to build these components. 

* 
The following components were skipped either because you asked not 
to build them or they didn't pass configuration checks: 

gcell 
gr-gcell 
gr-audio-jack 
gr-audio-osx 
gr-audio-portaudio 
gr-audio-windows 
gr-comedi 

These components will not be built. 
Configured GNU Radio release 3.3.0 for build. 

Meanwhile, there is no error during the installation. And the USRP is
recognized by "ls -lR /dev/bus/usb | grep usrp", I got "crw-rw 1 root
usrp 189, 129 2010-08-25 13:12 002".

However, when I tried to run "./usrp_benchmark_usb.py", I got the error that
"ImportError: cannot import name usrp". I also found that there is nothing
under directory /usr/local/lib/python2.6/site-packages. How should I fix
this problem? Can anyone give me some advice? 

Thanks in advance,
Brook

-- 
View this message in context: 
http://old.nabble.com/Gnuradio-3.3.0-on-Ubuntu-10.04-tp29535765p29535765.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Brook Lin

Thanks, Elvis. But I actually did "sudo make install". After all the
necessary packages installed, I followed these steps:

cd gnuradio-3.3.0
export LD_LIBRARY_PATH=$BOOST_PREFIX/lib
./bootstrap
./configure --with-boost=$BOOST_PREFIX 
make
make check
sudo make install

More advice?

Thanks, 
Brook


Elvis Dowson wrote:
> 
> Hi,
> 
> On Aug 25, 2010, at 10:28 PM, Brook Lin wrote:
> 
>> I also found that there is nothing
>> under directory /usr/local/lib/python2.6/site-packages. How should I fix
>> this problem? Can anyone give me some advice? 
> 
> Perhaps this is because you might not have run a 
> 
> sudo make install 
> 
> after building gnuradio, which will install the required python packages
> into /usr/local/lib
> 
> Best regards,
> 
> Elvis
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Gnuradio-3.3.0-on-Ubuntu-10.04-tp29535765p29535981.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Brook Lin

Thanks again for your replies. But, I did try:

$ cp /etc/ld.so.conf /tmp/ld.so.conf
$ echo /usr/local/lib >> /tmp/ld.so.conf
$ sudo mv /tmp/ld.so.conf /etc/ld.so.conf
$ sudo ldconfig

Nothing helps. BTW, I used libboost-all-dev from synaptic package manager
rather than boost_1_37_0. 

Doug, you are right. I find gnuradio under
/usr/local/lib/python/dist-packages/. My old Ubuntu version has the path
/usr/local/lib/python/site-packages/gnuradio. 

Other solutions?

Thanks,
Brook




Jeffrey Lambert wrote:
> 
> This might also be because you have not setup the usrp in udev?
> 
> http://k1vzx.com/mediawiki/index.php?title=USRP:_Software_Setup
> 
> ~JeffL
> 
> On 8/25/2010 3:28 PM, Brook Lin wrote:
>>
>> Hi All,
>>
>> I followed the instructions on
>> http://gnuradio.org/redmine/wiki/gnuradio/UbuntuInstall to install
>> gnuradio-3.3.0 onto Ubuntu-10.04 LTS. I used qwt-5.2.1, boost_1_37_0, and
>> all other packages from synaptic package manager. After ./configure
>> --with-boost=$BOOST_PREFIX, I got:
>>
>> The following GNU Radio components have been successfully configured:
>>
>> config
>> gruel
>> gnuradio-core
>> usrp
>> usrp2
>> gr-usrp
>> gr-usrp2
>> gr-msdd6000
>> gr-audio-alsa
>> gr-audio-oss
>> gr-atsc
>> gr-cvsd-vocoder
>> gr-gpio
>> gr-gsm-fr-vocoder
>> gr-noaa
>> gr-pager
>> gr-radar-mono
>> gr-radio-astronomy
>> gr-trellis
>> gr-video-sdl
>> gr-wxgui
>> gr-qtgui
>> gr-sounder
>> gr-utils
>> gnuradio-examples
>> grc
>> docs
>>
>> You my now run the make command to build these components.
>>
>> *
>> The following components were skipped either because you asked not
>> to build them or they didn't pass configuration checks:
>>
>> gcell
>> gr-gcell
>> gr-audio-jack
>> gr-audio-osx
>> gr-audio-portaudio
>> gr-audio-windows
>> gr-comedi
>>
>> These components will not be built.
>> Configured GNU Radio release 3.3.0 for build.
>>
>> Meanwhile, there is no error during the installation. And the USRP is
>> recognized by "ls -lR /dev/bus/usb | grep usrp", I got "crw-rw 1 root
>> usrp 189, 129 2010-08-25 13:12 002".
>>
>> However, when I tried to run "./usrp_benchmark_usb.py", I got the error
>> that
>> "ImportError: cannot import name usrp". I also found that there is
>> nothing
>> under directory /usr/local/lib/python2.6/site-packages. How should I fix
>> this problem? Can anyone give me some advice?
>>
>> Thanks in advance,
>> Brook
>>
> 
> 
> -- 
> ~Jeffrey Lambert, K1VZX
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Gnuradio-3.3.0-on-Ubuntu-10.04-tp29535765p29536641.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Brook Lin

Thanks, Eric.

>Is your PYTHONPATH set to /usr/local/lib/python2.6/dist-packages?
>Is your PYTHONPATH exported?

I'm not sure on these two questions. I installed python2.6 from synaptic
package manager, I thought it should set the path right. If not, could you
please tell me how to set PYTHONPATH and how to export PYTHONPATH?

Here is the result when I test $ python

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gnuradio import gr
>>> from gnuradio import usrp
Traceback (most recent call last):
  File "", line 1, in 
ImportError: cannot import name usrp
>>> 

Thanks,
Brook
-- 
View this message in context: 
http://old.nabble.com/Gnuradio-3.3.0-on-Ubuntu-10.04-tp29535765p29536930.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Brook Lin

Thanks, all.

However, after I set the PYTHONPATH and export it. I still get the same
error when I run ./usrp_benchmark_usb.py. 

But, if I test $ python, everything works. 

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gnuradio import gr
>>> from gnuradio import usrp
>>> from gnuradio import audio
>>> 

Thanks,
Brook


Eric Blossom wrote:
> 
> On Wed, Aug 25, 2010 at 02:21:27PM -0700, Brook Lin wrote:
>> 
>> Thanks again for your replies. But, I did try:
>> 
>> $ cp /etc/ld.so.conf /tmp/ld.so.conf
>> $ echo /usr/local/lib >> /tmp/ld.so.conf
>> $ sudo mv /tmp/ld.so.conf /etc/ld.so.conf
>> $ sudo ldconfig
>> 
>> Nothing helps. BTW, I used libboost-all-dev from synaptic package manager
>> rather than boost_1_37_0. 
>> 
>> Doug, you are right. I find gnuradio under
>> /usr/local/lib/python/dist-packages/. My old Ubuntu version has the path
>> /usr/local/lib/python/site-packages/gnuradio. 
>> 
>> Other solutions?
> 
> Is your PYTHONPATH set to /usr/local/lib/python2.6/dist-packages?
> Is your PYTHONPATH exported?
> 
> Does this work:
> 
>   $ python
>   Python 2.6.4 (r264:75706, Jun  4 2010, 18:20:31) 
>   [GCC 4.4.4 20100503 (Red Hat 4.4.4-2)] on linux2
>   Type "help", "copyright", "credits" or "license" for more information.
>   >>> from gnuradio import gr
>   >>> from gnuradio import usrp
>   >>> exit()
> 
> Eric
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Gnuradio-3.3.0-on-Ubuntu-10.04-tp29535765p29537097.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Brook Lin

Thanks, Marcus.

I tried usrp_fft.py and got the same error. I also tried dial_tone.py under
/gnuradio-example/python/audio, but I got the similar error:

Traceback (most recent call last):
  File "./dial_tone.py", line 24, in 
from gnuradio import audio
  File "/usr/lib/python2.6/dist-packages/gnuradio/audio.py", line 88, in

__init__()
  File "/usr/lib/python2.6/dist-packages/gnuradio/audio.py", line 78, in
__init__
raise ImportError, 'Unable to locate an audio module.'
ImportError: Unable to locate an audio module.

However, if I import audio from gnuradio using $ python, there is no error.

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gnuradio import gr
>>> from gnuradio import audio
>>> 

Thanks,
Brook


-- 
View this message in context: 
http://old.nabble.com/Gnuradio-3.3.0-on-Ubuntu-10.04-tp29535765p29537436.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-26 Thread Brook Lin

Thanks, Eric. You are right. I found that python-gnuradio-core was installed
from synaptic package manager. Now, everything works fine. Thanks, all.

- Brook

Eric Blossom wrote:
> 
> On Wed, Aug 25, 2010 at 04:03:59PM -0700, Brook Lin wrote:
>> 
>> Thanks, Marcus.
>> 
>> I tried usrp_fft.py and got the same error. I also tried dial_tone.py
>> under
>> /gnuradio-example/python/audio, but I got the similar error:
> 
> I'm guessing that you have more than one installation on your system.
> Perhaps one installed a while back using a .deb, and the one that
> you're trying to build now.
> 
> Remove all traces of GNU Radio, then try again...
> 
> Eric
> 
> 
> 
>> 
>> Traceback (most recent call last):
>>   File "./dial_tone.py", line 24, in 
>> from gnuradio import audio
>>   File "/usr/lib/python2.6/dist-packages/gnuradio/audio.py", line 88, in
>> 
>> __init__()
>>   File "/usr/lib/python2.6/dist-packages/gnuradio/audio.py", line 78, in
>> __init__
>> raise ImportError, 'Unable to locate an audio module.'
>> ImportError: Unable to locate an audio module.
>> 
>> However, if I import audio from gnuradio using $ python, there is no
>> error.
>> 
>> Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
>> [GCC 4.4.3] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> from gnuradio import gr
>> >>> from gnuradio import audio
>> >>> 
>> 
>> Thanks,
>> Brook
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Gnuradio-3.3.0-on-Ubuntu-10.04-tp29535765p29545152.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


[Discuss-gnuradio] Connect two WBX daugterboards

2011-04-15 Thread Brook Lin

Hi All, 

I am using two USRP N210 with WBX. Can I connect two WBX with cable
directly? Or I need an attenuator between them. If so, what kind of
attenuator I need.

Thanks in advance,
Brook
-- 
View this message in context: 
http://old.nabble.com/Connect-two-WBX-daugterboards-tp31408439p31408439.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


[Discuss-gnuradio] Destination Host Unreachable

2011-04-15 Thread Brook Lin

Hi ALL,

I am using Ubuntu 10.04 and installing the latest gnuradio download via git
clone http://gnuradio.org/git/gnuradio.git. To enable USRPN210+WBX, I also
follow the steps
(http://www.ettus.com/uhd_docs/manual/html/build.html#build-instructions-unix)
to build and install the UHD.  

However, before I load the firmware and image, it says "Destination Host
Unreachable" when "ifconfig eth0".

sudo ifconfig eth0 192.168.10.1
ping 192.168.10.2
PING 192.168.10.2 (192.168.10.2) 56(84) bytes of data.
>From 10.1.0.43 icmp_seq=1 Destination Host Unreachable
>From 10.1.0.43 icmp_seq=2 Destination Host Unreachable
>From 10.1.0.43 icmp_seq=3 Destination Host Unreachable

Hence, I cannot burn the firmware and fpga image. I also tried to disable
the firewall by sudo ufw disable, but it doesn't help. I also tried

sudo route add -net 192.168.10.0/24 dev eth1
sudo route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
192.168.10.00.0.0.0 255.255.255.0   U 0  00 eth1
192.168.10.00.0.0.0 255.255.255.0   U 0  00 eth0
192.168.10.00.0.0.0 255.255.255.0   U 0  00 eth0
10.1.0.00.0.0.0 255.255.252.0   U 2  00 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000   00 eth1
0.0.0.0 10.1.0.10.0.0.0 UG0  00 eth1

Can anyone give me any advice?

Thanks in advance,
Brook
-- 
View this message in context: 
http://old.nabble.com/Destination-Host-Unreachable-tp31410146p31410146.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


[Discuss-gnuradio] Data link protocol problem

2011-04-16 Thread Brook Lin

Hello ALL,

I am using Ubuntu-10.04 and the latest gnuradio downloaded via git. UHD has
been installed. However, I get 'Destination Host Unreachable' when ping
192.168.10.2

$ sudo ifconfig eth0 192.168.10.1
$ ping 192.168.10.2
PING 192.168.10.2 (192.168.10.2) 56(84) bytes of data.
>From 192.168.10.1 icmp_seq=2 Destination Host Unreachable
>From 192.168.10.1 icmp_seq=3 Destination Host Unreachable
>From 192.168.10.1 icmp_seq=4 Destination Host Unreachable

I found that the data link protocol on my laptop doesn't include Gigabit
Ethernet (Data Link Protocol IEEE 802.11n, Ethernet, IEEE 802.11b, Fast
Ethernet). So can I still use USRP-N210 on this laptop? If I can, how to
solve this issue?

Thanks in advance,
Brook
-- 
View this message in context: 
http://old.nabble.com/Data-link-protocol-problem-tp31414516p31414516.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


[Discuss-gnuradio] qam constellation problem

2011-05-16 Thread Brook Lin

Hi All,

I am plotting the constellation plot for qam8 before and after the root
raised cosine filter. Why I didn't get clear 8 dots constellation before the
root raised cosine filter (plotted from the data saved by
chunks2symbols.dat)? For both constellation before (data saved by
chunks2symbols.dat) and after (data saved by rrc_filter.dat) the filter, I
got 8 fuzzy dots. Can anyone tell me why is that? However, for dbpsk, I got
clear two points before the filter, but fuzzy two points after the filter. 

Thanks in advance,
Brook

http://old.nabble.com/file/p31632653/qam8_before_filter.png 
http://old.nabble.com/file/p31632653/qam8_after_filter.png 


-- 
View this message in context: 
http://old.nabble.com/qam-constellation-problem-tp31632653p31632653.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


Re: [Discuss-gnuradio] qam constellation problem

2011-05-16 Thread Brook Lin

BTW, I also got more fuzzy 16 points save by chunks2symbols.dat before the
filter. Could anyone help me explain it? 
Thanks,
Brook


Brook Lin wrote:
> 
> Hi All,
> 
> I am plotting the constellation plot for qam8 before and after the root
> raised cosine filter. Why I didn't get clear 8 dots constellation before
> the root raised cosine filter (plotted from the data saved by
> chunks2symbols.dat)? For both constellation before (data saved by
> chunks2symbols.dat) and after (data saved by rrc_filter.dat) the filter, I
> got 8 fuzzy dots. Can anyone tell me why is that? However, for dbpsk, I
> got clear two points before the filter, but fuzzy two points after the
> filter. 
> 
> Thanks in advance,
> Brook
> 
>  http://old.nabble.com/file/p31632653/qam8_before_filter.png 
>  http://old.nabble.com/file/p31632653/qam8_after_filter.png 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/qam-constellation-problem-tp31632653p31632766.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


Re: [Discuss-gnuradio] qam constellation problem

2011-05-17 Thread Brook Lin

Hi Tom,

Thanks for your reply. Yes, you are right. Currently, I am seeing the
transmitter side. 

Now, I understand that the constellation after the root raised cosine filter
is a kind of "fuzzy" due to the ISI. But if I observe the constellation from
the data saved by chunks2symbols.dat, which is before the rrc filter,
shouldn't I see clear 8 dots without ISI? Because when I observe the
constellation for dqpsk before the rrc filter, there are four clear points,
which is attached along with this message. Do I understand right that there
is no ISI at the stage self.chunks2symbols =
gr.chunks_to_symbols_bc(rotated_const)  but there is ISI at the stage
self.rrc_filter = gr.interp_fir_filter_ccf(self._samples_per_symbol,
self.rrc_taps)? So could you please help me explain that why I got four
clear points for dqpsk but "fuzzy" 8 points for qam8 before rrc filter and
after self.chunks2symbols?

Thanks so much,
Brook

http://old.nabble.com/file/p31639677/dqpsk_before_filter.png 



Tom Rondeau wrote:
> 
> On Mon, May 16, 2011 at 9:23 PM, Brook Lin  wrote:
> 
>>
>> Hi All,
>>
>> I am plotting the constellation plot for qam8 before and after the root
>> raised cosine filter. Why I didn't get clear 8 dots constellation before
>> the
>> root raised cosine filter (plotted from the data saved by
>> chunks2symbols.dat)? For both constellation before (data saved by
>> chunks2symbols.dat) and after (data saved by rrc_filter.dat) the filter,
>> I
>> got 8 fuzzy dots. Can anyone tell me why is that? However, for dbpsk, I
>> got
>> clear two points before the filter, but fuzzy two points after the
>> filter.
>>
>> Thanks in advance,
>> Brook
>>
>> http://old.nabble.com/file/p31632653/qam8_before_filter.png
>> http://old.nabble.com/file/p31632653/qam8_after_filter.png
> 
> 
> 
> I'm assuming you are just talking about in the transmitter? I so, then
> what
> you are seeing is ISI. A root raised cosine filter is NOT a Nyquist
> filter,
> but a raised cosine filter is (or approximately so, at least). We
> basically
> split the filtering responsibilities between the transmitter and receiver.
> When you pass the signal through two root raised cosines, you end up with
> a
> raised cosine. So the filter in the receiver removes the ISI introduced by
> the first filtering operation introduced in the transmitter.
> 
> So the transmitter filters to reduce out of band transmission while the
> receiver uses a matched filter to remove the ISI and detect the symbol.
> 
> If you pass the "fuzzy" signal through another RRC filter, it should clear
> things up.
> 
> Tom
> 
> 
> 
>>
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://old.nabble.com/qam-constellation-problem-tp31632653p31639677.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


Re: [Discuss-gnuradio] Intermediate frequency question

2011-10-05 Thread Brook Lin

Hi All, 

I am confused on this reply. The reply said that "With the RFX2400, and most
of the high frequency usrp daughtercards,
there is no IF frequency". How is that possible? For RFX2400 the RF range is
from 2.3GHz to 2.9GHz, the ADC rate for USRP1 is 64MS/s. If there is no IF
frequency, the ADC rate is obviously too low. There must be RF front-end on
the daughterboard to tune the RF to the IF. Right? If so, my question is
what the IF is? Obviously, f_IF = f_RF - f_LO. (1) Are we setting the f_LO
when we tune the usrp by usrp.tune(self.u, 0, self.subdev, target_freq)? (2)
How to figure out f_IF for different daughterboards?

Thanks in advance,
Brook



Jason Uher wrote:
> 
>> If I am using RFX2400 then what is the IF frequency and can we change
>> this
>> to some other value? Correct me if the question I asked is wrong.
> 
> With the RFX2400, and most of the high frequency usrp daughtercards,
> there is no IF frequency.  The samples you receive (or send) from the
> usrp.source_x (or usrp.sink_x) are baseband I and Q values.
> 
> Jason
> 
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Intermediate-frequency-question-tp23514126p32598120.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


Re: [Discuss-gnuradio] Intermediate frequency question

2011-10-05 Thread Brook Lin

Hi All,

I am confused on this reply, posted on 
http://old.nabble.com/Intermediate-frequency-question-td23514126.html#a32598120
http://old.nabble.com/Intermediate-frequency-question-td23514126.html#a32598120
. The reply said that "With the RFX2400, and most of the high frequency usrp
daughtercards,
there is no IF frequency". How is that possible? For RFX2400 the RF range is
from 2.3GHz to 2.9GHz, the ADC rate for USRP1 is 64MS/s. If there is no IF
frequency, the ADC rate is obviously too low. There must be RF front-end on
the daughterboard to tune the RF to the IF. Right? If so, my question is
what the IF is? Obviously, f_IF = f_RF - f_LO. (1) Are we setting the f_LO
when we tune the usrp by usrp.tune(self.u, 0, self.subdev, target_freq)? (2)
How to figure out f_IF for different daughterboards?

Thanks in advance,
Brook 
-- 
View this message in context: 
http://old.nabble.com/Re%3A-Intermediate-frequency-question-tp32598458p32598458.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


[Discuss-gnuradio] How to define wait() if the class is object rather than gr_top.block?

2012-02-12 Thread Brook Lin

Dear All, 

In radar_mono.py file, class radar_rx(gr.top_block) and class
radar_tx(object) are defined. I would like to add a wait() function for both
radar_rx and radar_tx. 

In class radar_rx(gr.top_block), radar_rx is under gr.top_block class, so I
can define wait() as:
def rx_wait(self):
self.wait()

However, radar_tx is defined as object, not the gr.top_block, how should I
define wait() function for radar_tx?

Thanks in advance,
Brook
-- 
View this message in context: 
http://old.nabble.com/How-to-define-wait%28%29-if-the-class-is-object-rather-than-gr_top.block--tp33312545p33312545.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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


Re: [Discuss-gnuradio] install OFDM

2008-11-05 Thread Brook Lin

Hello Fernando Perez-5,

I am trying to install OFDM too. Do you have any clue on how to include
those OFDM files to your system?

Thanks,
Brook


-- 
View this message in context: 
http://www.nabble.com/install-OFDM-tp20065473p20348808.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] How to include OFDM package?

2008-11-05 Thread Brook Lin

Hi All, 

I am going to TX/RX using OFDM. However, I am using Ubuntu 8.04 and
Gnuradio3.1.1, there is no OFDM package included. How should I include the
OFDM package? 

Thanks,
Brook
-- 
View this message in context: 
http://www.nabble.com/How-to-include-OFDM-package--tp20349025p20349025.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Question on Boost - could not detect the boost libraries (version 1.35 or higher)

2009-01-08 Thread Brook Lin

Hi All, 

I am trying to install gnuradio from trunk (svn co
http://gnuradio.org/svn/gnuradio/trunk). Before that I download boost_1_36_0
from boost.sourceforge.net, and install boost_1_36_0 first. 

~$ cd boost_1_36_0/ 
~/boost_1_36_0$ BOOST_PREFIX=/opt/boost_1_36_0 
~/boost_1_36_0$ ./configure --prefix=$BOOST_PREFIX
--with-libraries=thread,date_time,program_options 
Building Boost.Jam with toolset gcc... tools/jam/src/bin.linuxx86_64/bjam 
Unicode/ICU support for Boost.Regex?... not found. 
Backing up existing Boost.Build configuration in user-config.jam.1 
Generating Boost.Build configuration in user-config.jam... 
Generating Makefile... 
~/boost_1_36_0$ make 
./tools/jam/src/bin.linuxx86_64/bjam  --user-config=user-config.jam
--with-thread --with-date_time --with-program_options 
warning: Graph library does not contain optional GraphML reader. 
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the 
note: directories containing the Expat headers and libraries, respectively. 
warning: skipping optional Message Passing Interface (MPI) library. 
note: to enable MPI support, add "using mpi ;" to user-config.jam. 
note: to suppress this message, pass "--without-mpi" to bjam. 
note: otherwise, you can safely ignore this message. 
Building Boost.Regex with the optional Unicode/ICU support disabled. 
Please refer to the Boost.Regex documentation for more information 
(don't panic: this is a strictly optional feature). 
...patience... 
...found 840 targets... 
~/boost_1_36_0$ make install
...
...skipped libboost_program_options-gcc42-mt-1_36.so
for lack of /opt/boost_1_36_0/lib... 
...skipped libboost_thread-gcc42-mt-1_36.so for lack
of /opt/boost_1_36_0/lib... 
...failed updating 1 target... 
...skipped 7008 targets... 
Not all Boost libraries built properly. 

Then I tried to install from trunk. 
svn co http://gnuradio.org/svn/gnuradio/trunk
cd trunk
export LD_LIBRARY_PATH=$BOOST_PREFIX/lib
./bootstrap
./configure --with-boost=$BOOST_PREFIX

However, I got error here. 
configure: error: we could not detect the boost libraries (version 1.35 or
higher).
If you are sure you have boost installed, then check your version number
looking in .

Can anyone tell me how to correct it? 

Appreciate,
Brook
-- 
View this message in context: 
http://www.nabble.com/Question-on-Boost---could-not-detect-the-boost-libraries-%28version-1.35-or-higher%29-tp21359412p21359412.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] ImportError: libgruel.so.0: cannot open shared object file: No such file or directory

2009-01-08 Thread Brook Lin

Hi All,

I'm using Ubuntu8.04 and trunk version 10200. After installation, I tried to
run ./usrp_benchmark_usb.py. However, I got the error like this:

Traceback (most recent call last):
  File "./usrp_benchmark_usb.py", line 30, in 
from gnuradio import gr
  File "/usr/local/lib/python2.5/site-packages/gnuradio/gr/__init__.py",
line 43, in 
from gnuradio_swig_python import *
  File
"/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_python.py",
line 23, in 
from gnuradio_swig_py_runtime import *
  File
"/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_py_runtime.py",
line 6, in 
import _gnuradio_swig_py_runtime
ImportError: libgruel.so.0: cannot open shared object file: No such file or
directory

Could anyone tell me how to correct it, please?

Thanks,
Brook
-- 
View this message in context: 
http://www.nabble.com/ImportError%3A-libgruel.so.0%3A-cannot-open-shared-object-file%3A-No-such-file-or-directory-tp21360745p21360745.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] How to allow random subcarriers in OFDM?

2009-01-08 Thread Brook Lin

Hi All,

For the OFDM, the fft_length is the total number of subcarriers, and  the
occupied_tones is the total number of subcarriers that carry actual data,
which are in the middle of total subcarriers. However, I want to make the
subcarriers randomly on or off, which means, the  occupied_tones are not in
the middle, but randomly distribute over the subcarriers. Does anyone know
how to start it? Is gr_ofdm_mapper_bcv.cc the only one I need to look at?

Thanks for any reply.
Brook

-- 
View this message in context: 
http://www.nabble.com/How-to-allow-random-subcarriers-in-OFDM--tp21362437p21362437.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Question on OFDM

2009-01-12 Thread Brook Lin

Hi All,

I am working on OFDM. I use benchmark_ofdm_tx.py and benchmark_ofdm_rx.py to
transmit and receive data right now. 
./benchmark_ofdm_tx.py -f 440M -T A --tx-amplitude 5000 -v -i 128
--fft-length 128 --occupied-tones 80 --cp-length 32
./benchmark_ofdm_rx.py -f 440M -R A -v -d 64 --fft-length 128
--occupied-tones 80 --cp-length 32

However, at the receiver side, I can not receive pkt=0 and pkt=1 every time.
Most of the time, it receives from pkt=2. Can anyone tell me why is that and
how to fix it, please? 

The second question is, at the TX side, TX actually transmits 503 pkt; but
at the RX side, RX only receives part of these. The RX stops receiving when
received pktno is 380. 

The third question is, why the value of decimation should be half of the
value of interpolation?

Thanks for any reply.
Brook
-- 
View this message in context: 
http://www.nabble.com/Question-on-OFDM-tp21428269p21428269.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] ofdm benchmark

2009-01-16 Thread Brook Lin

I think you could change the value of -d and -i and see. This is what I
tried.
./benchmark_ofdm_tx.py -f 440M -T A --tx-amplitude 5000 -v -i 128
--fft-length 128 --occupied-tones 80 --cp-length 32
./benchmark_ofdm_rx.py -f 440M -R A -v -d 64 --fft-length 128
--occupied-tones 80 --cp-length 32 
 
At the receiver side, I could receive the pkt, as you expect. However, I can
not receive all the packets that I send from the transmitter side. About 60%
of the packets are received. I don't know why. You can try and see whether
you have the same problems. If you know why, could you let me know?

Cheers,
Brook

liu jinnan wrote:
> 
> Second, I run benchmark_ofdm_tx.py on one computer and
> benchmark_ofdm_rx.py on another computer
> 
> 
> 
> ./benchmark_ofdm_tx.py �Cf 2.4G --fft-length 64 --occupied �Ctones 52 
> --cp-length 16  �Ctx-amplitude 200
> 
> ./benchmark_ofdm_rx.py �Cf 2.4G --fft-length 64 --occupied �Ctones 52 
> --cp-length 16  
> 
> 
> 
> After  initialization, sometimes nothing will be printed on the screen at
> receiver.( As I expect,
> 
> "ok: right pktno: 1  n_rcvd: 1  n_right:1" or something alike will be
> printed.) When the transmiter is stoped,"timeout" will be on the
> receiver's screen.
> 
> 
> Jinnan
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ofdm-benchmark-tp21491593p21510491.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] How to write the payload to a named pipe?

2009-01-22 Thread Brook Lin

Hi All, 

I am doing video transmission using OFDM. At the receiver side, I save
payload to a file, meanwhile, use VLC to access this file to play the video.
However, VLC stops play the content while it reaches to the end of the file,
and does not wait for the continuosly coming payload. Is that possible if I
write the payload to a named pipe rather than to a file and let VLC read
from that to solve this problem? If it is possible, how to write the payload
to a named pipe? 

Thanks,
Brook
-- 
View this message in context: 
http://www.nabble.com/How-to-write-the-payload-to-a-named-pipe--tp21613944p21613944.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Broken pipe when I write the payload to a pipe.

2009-01-23 Thread Brook Lin

Hi All, 

I am trying to write the payload to a pipe rather than to a file in
benchmark_ofdm_rx.py. The script is attached below. However, I got the error
'Broeken pipe' when I run the script. Can anyone tell me why is that and how
to correct it?

rxdata.append(payload[2:])
#os.mkfifo('pipe')
myfile = os.popen('pipe','w')   
for data in rxdata:
myfile.write(data)
myfile.close()

Thanks,
Brook
-- 
View this message in context: 
http://www.nabble.com/Broken-pipe-when-I-write-the-payload-to-a-pipe.-tp21631361p21631361.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] Broken pipe when I write the payload to a pipe.

2009-01-23 Thread Brook Lin

All right, I use 'import signal' and 'signal.signal(signal.SIGPIPE,
signal.SIG_DFL)' to solve the [Errno 32] Broken pipe. Then I met another
problem. The error says 'sh: pipe: not found'. However, pipe dose be
created. How should I do next? Thanks.

OFDM Demodulator:
Modulation Type: bpsk
FFT length:  128
Occupied Tones:  100
CP length:32
TIMEOUT
ok: True pktno: 1n_rcvd: 1   n_right: 1
sh: pipe: not found



Brook Lin wrote:
> 
> Hi All, 
> 
> I am trying to write the payload to a pipe rather than to a file in
> benchmark_ofdm_rx.py. The script is attached below. However, I got the
> error 'Broeken pipe' when I run the script. Can anyone tell me why is that
> and how to correct it?
> 
> rxdata.append(payload[2:])
> #os.mkfifo('pipe')
> myfile = os.popen('pipe','w')   
> for data in rxdata:
> myfile.write(data)
> myfile.close()
> 
> Thanks,
> Brook
> 

-- 
View this message in context: 
http://www.nabble.com/Broken-pipe-when-I-write-the-payload-to-a-pipe.-tp21631361p21631568.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Questions on gr_ofdm_mapper_bcv.*

2009-01-26 Thread Brook Lin

Hi All,

I saved gr_ofdm_mapper_bcv.* files as other name say
gr_new_ofdm_mapper_bcv.* in the same directry, because I need some
modification based on these later. After that, I did
/gnuradio/gnuradio-core/src/lib$ make
/gnuradio/gnuradio-core/src/lib$ sudo make install

I don't know whether I need make and make install to let
gr_new_ofdm_mapper_bcv.* work. Actually, I don't know how to get
gr_new_ofdm_mapper_bcv.* play their role. However, when I run
$sudo ./benchmark_ofdm_tx.py -f 460M -T A --tx-amplitude 5000 -v -i 128
--fft-length 128 --occupied-tones 100 --cp-length 32

I got error 
terminate called after throwing an instance of 'std::invalid_argument'
  what():  gr_ofdm_mapper_bcv: occupied carriers must be <= fft_length
Aborted

Before any change here, benchmark_ofdm_tx.py works fine. Could anyone advise
me? Thanks so much!
-Brook

-- 
View this message in context: 
http://www.nabble.com/Questions-on-gr_ofdm_mapper_bcv.*-tp21679197p21679197.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] What is occupied_tones concept?

2009-01-29 Thread Brook Lin

Hi All,

I am working on OFDM. The current OFDM implementation uses occupied_tones
concept. Could anyone tell me what the occupied_tones concept is? How to get
rid of the occupied_tones concept eventually?

Thanks,
Brook
-- 
View this message in context: 
http://www.nabble.com/What-is-occupied_tones-concept--tp21732171p21732171.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Questino on Gnuradio as the client and VLC as the server

2009-02-20 Thread Brook Lin

Hi All,

I am using USRP to receive video streaming, and feed the data to a socket as
the client. Then, I open a vlc as the server to open the network stream via
UDP. The code is shown below.

# the server
vlc udp://@:2002

# the client, which is inserted into benchmark_rx.py in
/gnuradio-example/python/digital
def main():
..
def rx_callback(ok, payload):
..
print "ok = %5s  pktno = %4d  n_rcvd = %4d  n_right = %4d" % (ok,
pktno, n_rcvd, n_right)

rxdata.append(payload[2:])
clientHost = 'localhost'   # servername is localhost'
clientPort = 2002   # use arbitrary port > 1024 
dgramSock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )#
create a UDP socket

dgramSock.connect((clientHost,clientPort)) # connect to server on
the port
for ndx_data in rxdata:
dgramSock.sendto( ndx_data, (clientHost, clientPort) )  
# send the data
data = dgramSock.recv(4096) # receive up to 4096
bytes
#print data
dgramSock.close()

...

My questions are:
1, I don't think the client(Gnuradio) and the server(VLC) are connected via
UDP
2, Is it correct that I write the received data to a client UDP socket?
3, If I change the server to the following(don't use VLC as the server), I
can play serverfile.mpeg using VLC. However, I don't want vlc to open from
file. 
serverHost = ''
serverPort = 2002
dgramSock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
dgramSock.bind( (serverHost, serverPort) )
msggot=[]
while 1:
  msg, (addr, port) = dgramSock.recvfrom(4096)
  print 'Server connected by', addr,port
  #print 'Server got ',msg
  dgramSock.sendto( msg, (addr, port) )
  
  fd = open('serverfile.mpeg','a')
  fd.write(msg)
  fd.close
dgramSock.close()

Overall, I want to play the realtime video that I received from USRP. Can
anyone help me with these questions? I really appreciate.

Thanks,
Brook
-- 
View this message in context: 
http://www.nabble.com/Questino-on-Gnuradio-as-the-client-and-VLC-as-the-server-tp22130820p22130820.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Terminate the receiver

2009-02-26 Thread Brook Lin

Hi All, 

I am working on the OFDM project. When I run sudo
./benchmark_ofdm_rx_video.py -f 450M -R A -v -d 32 --fft-length 128
--occupied-tones 100 --cp-length 32, I want to terminate the process if the
pktno>100. I tried:

def main():

def rx_callback(ok, payload):
global n_rcvd, n_right
n_rcvd += 1
(pktno,) = struct.unpack('!H', payload[0:2])
if ok:
n_right += 1
print "ok: %r \t pktno: %d \t n_rcvd: %d \t n_right: %d" % (ok,
pktno, n_rcvd, n_right)

if pktno > 250:
raise SystemExit(0)
..

However, it just stops to receive when pktno>100. The output is like:
..
ok: True pktno: 249  n_rcvd: 243 n_right: 243
ok: True pktno: 250  n_rcvd: 244 n_right: 244
ok: True pktno: 251  n_rcvd: 245 n_right: 245


Actrually, I want to terminate the process, and give a new parameter, say
sudo ./benchmark_ofdm_rx_video.py -f 460M -R A -v -d 32 --fft-length 128
--occupied-tones 100 --cp-length 32. How can I achieve it?

Thanks,
Brook

-- 
View this message in context: 
http://www.nabble.com/Terminate-the-receiver-tp22238872p22238872.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Terminate the receiving process.

2009-03-12 Thread Brook Lin

Hi All,

I am using benchmark_tx.py and benchmark_rx.py to transmit and receive a
file. At the benchmark_tx.py, by setting the value of -M, the transmitter
process is terminated when the total transmitting packages size is larger
than M*1e6. When the transmitter stops, the receiver stops receiving, but
benchmark_rx.py process is still running. My question here is, how the
receiver knows that the transmitter stops and terminate the receive process
itself. Thanks in advance.

Brook
-- 
View this message in context: 
http://www.nabble.com/Terminate-the-receiving-process.-tp22481579p22481579.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Question on gr.wavfile_source

2009-06-23 Thread Brook Lin

Hi All, 

I'm trying to transmit a wave file using gr.wavfile_source(). To test my
transmission path, I first transmit a sine wave, and I can receive it and
sink it to sound card fine. I can hear the sound at the receiver side.
However, if I change the source using gr.wavfile_source(), I can hear
nothing at the receiver side but noise. Here is the my tx_path below.

===
dac_rate = 128e6 
usrp_interp = 500
self.u = usrp.sink_c (0, usrp_interp)
self.u.set_interp_rate(usrp_interp)
usrp_rate = dac_rate / usrp_interp   # 256 kS/s

#src = gr.sig_source_f (32e3, gr.GR_SIN_WAVE, 440, 1)  #--I can hear
it at the receiver side
src = gr.wavfile_source('test.wav', False) #--nothing can be heard
at the receiver side

interp_taps = optfir.low_pass (8,   # gain
usrp_rate,   # sampling rate
8e3,# passband cutoff
8e3
12e3,   # stopband cutoff
12e3
1.0, # passband ripple
60)  # stopband
attenuation
print 'len(interp_taps)',len(interp_taps)
self.interpolator = gr.interp_fir_filter_fff (8, interp_taps)
gain = gr.multiply_const_ff(200)
f2c = gr.float_to_complex()
self.connect (src,self.interpolator,gain, f2c, self.u)
===

How to solve the problem to hear the wave file at the receiver side? 

Thanks in advance,
Brook
-- 
View this message in context: 
http://www.nabble.com/Question-on-gr.wavfile_source-tp24176428p24176428.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] Question on gr.wavfile_source

2009-06-25 Thread Brook Lin

Thanks Martin for your reply. I gave a larger gain, but still doesn't work.
And I think I was using AM modulation in my tx_path, wasn't it? And I used
usrp_am_mw_rcv.py to receive my transmitted signal. Should I use
gr.interp_fir_filter_fff() on the transmitter side for am modulation? Are
the parameters correct in optfir.low_pass()?

interp_factor = usrp_rate/audio_rate

interp_taps = optfir.low_pass (interp_factor,   # gain
usrp_rate,   # sampling rate
8e3,# passband cutoff
8e3
12e3,   # stopband cutoff
12e3
1.0, # passband ripple
60)  # stopband
attenuation
print 'len(interp_taps)',len(interp_taps)
self.interpolator = gr.interp_fir_filter_fff (interp_factor,
interp_taps)

Thanks in advance for any reply.

Brook


Martin Braun-3 wrote:
> 
> I can't spot an exact problem, but two things do come to mind:
> 1) Your gain is awfully low, you're hardly using the dynamic range of
> the ADC. Try something like 2.
> 2) Use an analog modulation, such as AM (w/ carrier) or FM.
> 
> MB
> -- 
> Dipl.-Ing. Martin Braun   Phone: +49-(0)721-608 3790
> Institut fuer Nachrichtentechnik  Fax:   +49-(0)721-608 6071
> Universitaet Karlsruhe (TH)   http://www.int.uni-karlsruhe.de/
> 
>  
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Question-on-gr.wavfile_source-tp24176428p24208903.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] TIMEOUT on OFDM

2009-08-19 Thread Brook Lin

Hi All, 

I am testing OFDM transmission. When I transmit from a file using
benchmark_ofdm_tx.py, I can receive 75% pkt at the receiver side using
banchmark_ofdm_rx.py, and all of them are right. When I stream the input
data to a port via UDP, and let benchmark_ofdm_tx.py get data from this port
and transmit, at the receiver side, I can receive 60% pkt and only 15% are
right; meanwhile there are lots of 'TIMEOUT' at the receiver side. 

Can anyone help me on, 1) when transmit from a file, why I can not receive
100% pkt, now I transmit 76 pkts but receive 59 pkts from pktno0 to pktno58,
and lost the rest? 2)If I get the data input from a port rather than from a
file, why I received lots of false pkts and got TIMEOUT at the same time?

Here is the command I used:
sudo ./benchmark_ofdm_tx.py -f 490M -T A --tx-amplitude 5000 -v -i 64
--fft-length 64 --occupied-tones 52 --cp-length 8 -M 0.2 -s 2000 --from-file
file 

sudo ./benchmark_ofdm_rx.py -f 490M -R A -v -d 32 --fft-length 64
--occupied-tones 52 --cp-length 8 

Thanks in advance,
Brook

-- 
View this message in context: 
http://www.nabble.com/TIMEOUT-on-OFDM-tp25051438p25051438.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Transmission power on each subcarrier

2009-10-09 Thread Brook Lin

Hi All, 

I am working on OFDM based on benchmark_ofdm_tx.py and benchmark_ofdm_tx.py.
Can anyone give me some hint on how to adjust transmission power on each
subcarrier, please? If I set --tx-amplitude, it will be applied on all the
subcarriers, however, I want different subcarrier with different
transmission power. Where should I start?

Thanks in advance,
Brook
-- 
View this message in context: 
http://www.nabble.com/Transmission-power-on-each-subcarrier-tp25824432p25824432.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] CDMA in GNURadio

2009-10-26 Thread Brook Lin

Hi All,

Does anyone experiment with CDMA via GNU Radio? I am trying to implement
CDMA via GNURadio. How and where should I start? Thanks in advance.

-Brook
-- 
View this message in context: 
http://www.nabble.com/CDMA-in-GNURadio-tp26067547p26067547.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] CDMA in GNURadio

2009-10-26 Thread Brook Lin

Thanks for your reply, Brian. Is there any examples that I can reference?

Thanks,
Brook



Brian Padalino wrote:
> 
> On Mon, Oct 26, 2009 at 5:00 PM, Brook Lin  wrote:
>>
>> Hi All,
>>
>> Does anyone experiment with CDMA via GNU Radio? I am trying to implement
>> CDMA via GNURadio. How and where should I start? Thanks in advance.
> 
> Synchronization is probably a good place to start.
> 
> Once you have synchronization, it should all just fall into place.
> 
> Brian
> 
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://www.nabble.com/CDMA-in-GNURadio-tp26067547p26068937.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] CDMA in GNURadio

2009-11-20 Thread Brook Lin

Hi  Brian and All,

Thanks for your last reply about implementing CDMA in GNURadio. I read some
materials on synchronization and also the OFDM examples in GNURadio. Is that
possible if I add a Code block into the OFDM block diagram to implement
MC-CDMA?

For the OFDM Transmit path:
frame source -> symbol modulation -> insert preambles -> IFFT -> add cyclic
prefix -> scale -> USRP

Can I add a code block into this path to get MC-CDMA, like
frame source -> symbol modulation -> code -> insert preambles -> IFFT -> add
cyclic prefix -> scale -> USRP

Is this possible for implementing the MC-CDMA. Can I apply the same
synchronization method for OFDM into MC-CMDA? Please advise me.

Thanks,
Brook


Brian Padalino wrote:
> 
> On Mon, Oct 26, 2009 at 6:31 PM, Brook Lin  wrote:
>>
>> Thanks for your reply, Brian. Is there any examples that I can reference?
> 
> Though I have never read any of the books, these seem to have a lot of
> good information:
> 
>   Spread Spectrum and CDMA: Principles and Applications # ISBN-13:
> 978-0470091784
>   CDMA: Principles of Spread Spectrum Communication # ISBN-13:
> 978-0201633740
> 
> They both have sections on synchronization, and other details you will
> encounter in a CDMA system.
> 
> Good luck!
> 
> Brian
> 
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://old.nabble.com/CDMA-in-GNURadio-tp26067547p26447376.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Question on howto-write-a-block

2009-12-04 Thread Brook Lin

Hi All, 

I am building a signal processing block following the tutorial under the
directory /gnuradio/gr-howto-write-a-block, say 'howto_code' block. I've
created howto_code.h and howto_code.cc file under
/gnuradio/gr-howto-write-a-block/src/lib, meanwhile, I modified howto.i and
Makefile.am in the same directory.
 
Then, under the directory /gnuradio/gr-howto-write-a-block, I run 
./bootstrap
./configure
make
I got error said "/usr/bin/swig -c++ -fvirtual -python -modern
-I/usr/local/include/gnuradio/swig -I/usr/local/include/gnuradio -module
howto -o howto.cc ../../src/lib/howto.i 
howto_addcode.h
/bin/bash: howto_code.h: command not found"

Can anyone advise me how to fix it? What should be the problem?

Thanks in advance, 
Brook
-- 
View this message in context: 
http://old.nabble.com/Question-on-howto-write-a-block-tp26652926p26652926.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] Question on howto-write-a-block

2009-12-08 Thread Brook Lin

Yes, Tim. It works now. Thanks so much.
-Brook


Tim Pearce-2 wrote:
> 
> Brook,
> 
> I'd guess its an error in one of the modifications to Makefile.am -- have
> you put a \ at the end of the preceding line? i.e it should be something
> like:
> 
> grinclude_HEADERS =\
> howto_square_ff.h\
> howto_square2_ff.h \
> howto_code.h
> 
> lib_LTLIBRARIES = libgnuradio-howto.la
> 
> libgnuradio_howto_la_SOURCES = \
> howto_square_ff.cc\
> howto_square2_ff.cc \
> howto_code.cc
> 
> It looks like its trying to execute howto_code.h (from your path) rather
> than adding it to the relevant enviroment variable.
> 
> Cheers,
> 
> Tim
> 
> On Sat, Dec 5, 2009 at 4:29 AM, Brook Lin  wrote:
> 
>>
>> Hi All,
>>
>> I am building a signal processing block following the tutorial under the
>> directory /gnuradio/gr-howto-write-a-block, say 'howto_code' block. I've
>> created howto_code.h and howto_code.cc file under
>> /gnuradio/gr-howto-write-a-block/src/lib, meanwhile, I modified howto.i
>> and
>> Makefile.am in the same directory.
>>
>> Then, under the directory /gnuradio/gr-howto-write-a-block, I run
>> ./bootstrap
>> ./configure
>> make
>> I got error said "/usr/bin/swig -c++ -fvirtual -python -modern
>> -I/usr/local/include/gnuradio/swig -I/usr/local/include/gnuradio -module
>> howto -o howto.cc ../../src/lib/howto.i
>> howto_addcode.h
>> /bin/bash: howto_code.h: command not found"
>>
>> Can anyone advise me how to fix it? What should be the problem?
>>
>> Thanks in advance,
>> Brook
>> --
>> View this message in context:
>> http://old.nabble.com/Question-on-howto-write-a-block-tp26652926p26652926.html
>> Sent from the GnuRadio mailing list archive at Nabble.com.
>>
>>
>>
>> ___
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Question-on-howto-write-a-block-tp26652926p26698961.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Two simple questions

2007-11-21 Thread Brook Lin

Hi All,

I am new here. I met two questions after installing gnuradio-3.1.1. I know
they are simple questions, but I really don't know how to fix it and need
your help. I am using fc7. I follow the Fedora installation instructions on
the website, install every package it mentions. After installing gnuradio, I
run several scripts to test the USRP. test_usrp_standard_rx works well and
load the firmware, usrp_benchmark_usb.py shows that the Max USB/USRP
throughput is 32MB/sec. However, when I run usrp_fft.py, it gives the error
like: 
=
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

(usrp_oscope.py:22536): Gtk-WARNING **: cannot open display: 
=
Can anybody explain this for me? I really appreciate any help!

Here is the 2nd question. I am using python2.5, and installing wxPython via
synaptic. However, when I try to check wx.__version__, I met another error:
=
$ python
Python 2.5 (r25:51908, Oct 19 2007, 09:46:41) 
[GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> print wx.__version__
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'module' object has no attribute '__version__'


I appreciate any reply.

Brook
-- 
View this message in context: 
http://www.nabble.com/Two-simple-questions-tf4853621.html#a1352
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] A simple question!

2007-11-26 Thread Brook Lin

Hi All,

I run gnuradio-3.1.1 on FC7. After installing gnuradio successfully, I
tested usrp_fft.py, I got GUI pop-up, and saw the spectrum at given center
frequency. However, I got some warning, see below. 
=
sudo ./usrp_fft.py 

** (python:13669): WARNING **: IPP request failed with status 1030

** (python:13669): WARNING **: IPP request failed with status 1030
gr_vmcircbuf_createfilemapping: createfilemapping is not available
==
Why create file mapping is not available? Does it matter? Will it cause
other errors later?

Thanks,
Brook

-- 
View this message in context: 
http://www.nabble.com/A-simple-question%21-tf4878625.html#a13961196
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Is that possible combining usrp_fft.py and usrp_spectrum_sense.py to do spectrum analysis and observe in GUI in a wider frequency range?

2007-12-05 Thread Brook Lin

Hi All,

I am new to Gnuradio. I did some test and simple implementation. Now, I have
a question about combining usrp_fft.py and usrp_spectrum_sense.py. 

I know that usrp_fft.py gives a spectrum at certain center frequency I
specified, and shows the result in a GUI window. By changing the decimation,
I can get the spectrum at interested frequency within different bandwidth.
Say, if decimation is 16, the bandwidth shown in GUI is 4M, if option -8 is
applied and decimation is 4, a 16M bandwidth can be got. So that means that
I can do the spectrum analysis and observe it in GUI window just within 16M.

Later on, I found that usrp_spectrum_sense.py can be used to analysis
spectrum within any frequency range, I just need to specify the lower bound
and upper bound of the frequencies. And I can save the output to a file and
plot it using Matlab. However, I want to observe the spectrum in a GUI
window, like usrp_fft does, rather than the output file. 

Is that possible that by modifying usrp_fft.py and combining it with
usrp_spectrum_sense.py, the spectrum within a wider range of frequencies can
be observed in a GUI window? 

By giving the min_freq and max_freq, the nsteps, min_center_freq, and
max_center_freq can be set. Do I need to call self._build_gui(vbox) after
each updated center frequency? And all will be plotted in one GUI window?

Do you have any suggestion on it? I really appreciate!

Thanks in advance,
Brook Lin
-- 
View this message in context: 
http://www.nabble.com/Is-that-possible-combining-usrp_fft.py-and-usrp_spectrum_sense.py-to-do-spectrum-analysis-and-observe-in-GUI-in-a-wider-frequency-range--tf4953044.html#a14183248
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] Is that possible combining usrp_fft.py and usrp_spectrum_sense.py to do spectrum analysis and observe in GUI in a wider frequency range?

2007-12-10 Thread Brook Lin

Thanks for your reply and kind reminder, Eric. I think usrp_spectrum_sense.py
works fine on my computer without segmentation fault. 

I observe that there is a set_next_freq() function in usrp_spectrum_sense.py
file, which is used to tune the center freq used in set_freq() function,
isn't it? The target_freq is used to set the center freq of the USRP to
determine the value of DDC.

Here is the build graph part that I changed and I thought it fit my project
purpose: observing fft in larger bandwidth. 

 # build the graph

self.u = 
usrp.source_c(which=options.which,decim_rate=options.decim)
if options.rx_subdev_spec is None:
options.rx_subdev_spec = pick_subdevice(self.u)
self.u.set_mux(usrp.determine_rx_mux_value(self.u,
options.rx_subdev_spec))

if options.width_8:
width = 8
shift = 8
format = self.u.make_format(width, shift)
print "format =", hex(format)
r = self.u.set_format(format)
print "set_format =", r

# determine the daughterboard subdevice we're using
self.subdev = usrp.selected_subdev(self.u, 
options.rx_subdev_spec)

#input_rate = self.u.adc_freq() / self.u.decim_rate()
input_rate = self.u.adc_freq() / options.decim

#
# Set the freq_step to 75% of the actual data throughput.
# This allows us to discard the bins on both ends of the spectrum.

self.min_freq = options.freq_min
self.max_freq = options.freq_max
self.freq_step = 0.75*input_rate
self.min_center_freq = self.min_freq + self.freq_step/2
nsteps = math.ceil((self.max_freq - self.min_freq) / 
self.freq_step)
print "nsteps is ", nsteps
self.max_center_freq = self.min_center_freq + (nsteps * 
self.freq_step)
for i in range(nsteps):
if i == 0:
self.next_freq = self.min_center_freq
else:
self.next_freq = self.next_freq + self.freq_step

print self.next_freq, "***", i, "***"

if not(self.set_freq(self.next_freq)):
print "Failed to set frequency to", 
self.next_freq

self.set_freq(self.next_freq)

#
self.scope = fftsink2.fft_sink_c (panel, title="Signal
Detection",fft_size=1024, sample_rate=input_rate,
baseband_freq=self.next_freq)

self.connect(self.u, self.scope)

self._build_gui(vbox)

# set initial values
.
.
==
However, by given the lower bound and the upper bound of the freq range,
next_freq can be get and "Failed to set frequency to", self.next_freq" is
also get. and all the plots are the same, seems
self.set_freq(self.next_freq) doesn't work. Do you know why it failed to
set?

The 2nd question is, I know I call self._build_gui(vbox) within for loop. So
in GUI window, I will have several fft plots regarding the deferent center
freq. How can I get one GUI with one plot and show all the spectrum, say all
FM Stations?

I am new to Gnuradio, so any reply is helpful for me.

Thanks,
Brook


Eric Blossom wrote:
> 
> Yes.  Note however that at this moment there is a known problem with
> usrp_spectrum_sense.py (actually believed to be in gr_feval_dd) that
> causes a segmentation fault.  See ticket:199
> http://gnuradio.org/trac/ticket/199
> 
> Eric
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Is-that-possible-combining-usrp_fft.py-and-usrp_spectrum_sense.py-to-do-spectrum-analysis-and-observe-in-GUI-in-a-wider-frequency-range--tp14183248p14260983.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] Is that possible combining usrp_fft.py and usrp_spectrum_sense.py to do spectrum analysis and observe in GUI in a wider frequency range?

2007-12-10 Thread Brook Lin

I have figured out why it failed to set freq. Now my question is still how
can I get one GUI with one plot and show all the spectrum, say all FM
stations.

Thanks


Brook Lin wrote:
> 
> However, by given the lower bound and the upper bound of the freq range,
> next_freq can be get and "Failed to set frequency to", self.next_freq" is
> also get. and all the plots are the same, seems
> self.set_freq(self.next_freq) doesn't work. Do you know why it failed to
> set?
> 
> The 2nd question is, I know I call self._build_gui(vbox) within for loop.
> So in GUI window, I will have several fft plots regarding the deferent
> center freq. How can I get one GUI with one plot and show all the
> spectrum, say all FM Stations?
> 
> I am new to Gnuradio, so any reply is helpful for me.
> 
> Thanks,
> Brook
> 
> 
> Eric Blossom wrote:
>> 
>> Yes.  Note however that at this moment there is a known problem with
>> usrp_spectrum_sense.py (actually believed to be in gr_feval_dd) that
>> causes a segmentation fault.  See ticket:199
>> http://gnuradio.org/trac/ticket/199
>> 
>> Eric
>> 
>> ___
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Is-that-possible-combining-usrp_fft.py-and-usrp_spectrum_sense.py-to-do-spectrum-analysis-and-observe-in-GUI-in-a-wider-frequency-range--tp14183248p14266675.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] RuntimeError: audio_alsa_source

2007-12-12 Thread Brook Lin

Hi All,

I just ran tx_voice and rx_voice.And I wanted to transmit a music and
receive it using Basic RX/TX. However, I got the error:
$ sudo ./tx_voice.py -f 30M -I music.pcm -T A -v
>>> gr_fir_fff: using SSE
bits per symbol = 1
Gaussian filter bt = 0.35
Using TX d'board A: Basic Tx
Tx amplitude 12000
modulation:  gmsk_mod
bitrate: 50kb/s
samples/symbol:5
interp:  512
Tx Frequency:30M
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM musicpcm.pcm
audio_alsa_source[musicpcm.pcm]: No such file or directory
Traceback (most recent call last):
  File "./tx_voice.py", line 150, in 
main()
  File "./tx_voice.py", line 121, in main
tb = my_top_block(mods[options.modulation], options)
  File "./tx_voice.py", line 69, in __init__
self.audio_rx = audio_rx(options.audio_input)
  File "./tx_voice.py", line 52, in __init__
src = audio.source(sample_rate, audio_input_dev)
  File "/usr/lib64/python2.5/site-packages/gnuradio/audio_alsa.py", line
219, in source
return _audio_alsa.source(*args)
RuntimeError: audio_alsa_source

Does anyone know how to solve it? I don't quite understand.

Thanks in advance!

-- 
View this message in context: 
http://www.nabble.com/RuntimeError%3A-audio_alsa_source-tp14307133p14307133.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] RuntimeError: audio_alsa_source

2007-12-13 Thread Brook Lin

Hi Firas, I am using gnuradio3.1.1


Firas A. wrote:
> 
> What is your OS, gnuradio version ?
> 
> Firas,
> 
> 
> Brook Lin wrote:
>> 
>> Hi All,
>> 
>> I just ran tx_voice and rx_voice.And I wanted to transmit a music and
>> receive it using Basic RX/TX. However, I got the error:
>> $ sudo ./tx_voice.py -f 30M -I music.pcm -T A -v
>>>>> gr_fir_fff: using SSE
>> bits per symbol = 1
>> Gaussian filter bt = 0.35
>> Using TX d'board A: Basic Tx
>> Tx amplitude 12000
>> modulation:  gmsk_mod
>> bitrate: 50kb/s
>> samples/symbol:5
>> interp:  512
>> Tx Frequency:30M
>> ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM musicpcm.pcm
>> audio_alsa_source[musicpcm.pcm]: No such file or directory
>> Traceback (most recent call last):
>>   File "./tx_voice.py", line 150, in 
>> main()
>>   File "./tx_voice.py", line 121, in main
>> tb = my_top_block(mods[options.modulation], options)
>>   File "./tx_voice.py", line 69, in __init__
>> self.audio_rx = audio_rx(options.audio_input)
>>   File "./tx_voice.py", line 52, in __init__
>> src = audio.source(sample_rate, audio_input_dev)
>>   File "/usr/lib64/python2.5/site-packages/gnuradio/audio_alsa.py", line
>> 219, in source
>> return _audio_alsa.source(*args)
>> RuntimeError: audio_alsa_source
>> 
>> Does anyone know how to solve it? I don't quite understand.
>> 
>> Thanks in advance!
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/RuntimeError%3A-audio_alsa_source-tp14307133p14324398.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] RuntimeError: audio_alsa_source

2007-12-15 Thread Brook Lin

Firas, I am running gnuradio3.1.1 on 64-bit machine, using Fedora7



Firas A. wrote:
> 
> What is your OS Type? (Fedora, Ubuntu, .)
> 
> Firas
> 
> 



Brook Lin wrote:
> 
> Hi Firas, I am using gnuradio3.1.1
> 



Firas A. wrote:
> 
> What is your OS, gnuradio version ?
> 
> Firas,
> 

Brook Lin wrote:
> 
> Hi All,
> 
> I just ran tx_voice and rx_voice.And I wanted to transmit a music and
> receive it using Basic RX/TX. However, I got the error:
> $ sudo ./tx_voice.py -f 30M -I music.pcm -T A -v
>>>> gr_fir_fff: using SSE
> bits per symbol = 1
> Gaussian filter bt = 0.35
> Using TX d'board A: Basic Tx
> Tx amplitude 12000
> modulation:  gmsk_mod
> bitrate: 50kb/s
> samples/symbol:5
> interp:  512
> Tx Frequency:30M
> ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM musicpcm.pcm
> audio_alsa_source[musicpcm.pcm]: No such file or directory
> Traceback (most recent call last):
>   File "./tx_voice.py", line 150, in 
> main()
>   File "./tx_voice.py", line 121, in main
> tb = my_top_block(mods[options.modulation], options)
>   File "./tx_voice.py", line 69, in __init__
> self.audio_rx = audio_rx(options.audio_input)
>   File "./tx_voice.py", line 52, in __init__
> src = audio.source(sample_rate, audio_input_dev)
>   File "/usr/lib64/python2.5/site-packages/gnuradio/audio_alsa.py", line
> 219, in source
> return _audio_alsa.source(*args)
> RuntimeError: audio_alsa_source
> 
> Does anyone know how to solve it? I don't quite understand.
> 
> Thanks in advance!
> 
> 


-- 
View this message in context: 
http://www.nabble.com/RuntimeError%3A-audio_alsa_source-tp14307133p14339751.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] RuntimeError: audio_alsa_source

2007-12-18 Thread Brook Lin

Thanks for all your suggestions. I tried this today: 
sudo ./tx_voice.py -f 120M -I plughw:0,0
>>> gr_fir_fff: using SSE
gr_buffer::allocate_buffer: warning: tried to allocate
   992 items of size 33. Due to alignment requirements
   4096 were allocated.  If this isn't OK, consider padding
   your structure to a power-of-two bytes.
   On this platform, our allocation granularity is 4096 bytes.
...

sudo ./rx_voice.py -f 120M -O plughw:0,0
>>> gr_fir_fff: using SSE
audio_alsa_sink[plughw:0,0]: Device or resource busy
Traceback (most recent call last):
  File "./rx_voice.py", line 138, in 
main()
  File "./rx_voice.py", line 128, in main
tb = my_top_block(demods[options.modulation], rx_callback, options)
  File "./rx_voice.py", line 67, in __init__
self.audio_tx = audio_tx(options.audio_output)
  File "./rx_voice.py", line 55, in __init__
audio_sink = audio.sink(44100, audio_output_dev)
  File "/usr/lib64/python2.5/site-packages/gnuradio/audio_alsa.py", line
236, in sink
return _audio_alsa.sink(*args)
RuntimeError: audio_alsa_sink

I am using Basic Tx/RX. And I still don't understand how to transmit and
receive my own music via USRP. I also tried sudo ./usrp_wfm_rcv.py -f 91M -O
plughw:0,0 to record the FM radio to my computer. It gives me almost the
same error: audio_alsa_sink[plughw:0,0]: Device or resource busy. Can you
give me some clue to transmit and receive my own music file? Thanks a lot!

Brook

-- 
View this message in context: 
http://www.nabble.com/RuntimeError%3A-audio_alsa_source-tp14307133p14405949.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] How to see the envelop of a high freq signal?

2007-12-20 Thread Brook Lin

Hi All,

I am using DBSRX daughterboard now. I want to see the envelop of high freq
signal in time domain, say a cell phone signal. Do I need any signal
processing blocks besides usrp_oscope.py?

Thanks,
Brook
-- 
View this message in context: 
http://www.nabble.com/How-to-see-the-envelop-of-a-high-freq-signal--tp14445681p14445681.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] the amplitude shown in usrp_fft.py

2008-01-03 Thread Brook Lin

Hi All,

I have a question on the amplitude of usrp_fft.py. How can I print out the
max amplitude by given a center frequency. For example, if there is a
99.1MHz FM station, which is detected by RXTV d'board, I can use usrp_fft.py
simply detect this signal in frequency domain. Meanwhile, I want to show the
value of current peak amplitude of this signal on GUI. I know GUI part now.
However, I don't know how to print out the output of self.log in fft_sink_c.
If I know this output, and find the max value in it, it should be the max
amplitude I want to show in GUI. Am I right?

Thanks for any reply,
Brook
-- 
View this message in context: 
http://www.nabble.com/the-amplitude-shown-in-usrp_fft.py-tp14602280p14602280.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


re[Discuss-gnuradio] al and imaginary parts of signal on oscope

2008-01-03 Thread Brook Lin

Hi All,

I learn that the usrp_oscope.py shows the real and imaginary parts of the
complex baseband signal coming from the output DDC. However, is red channel
for the real and blue channel for the imaginary? How can I check it?

Thanks,
Brook
-- 
View this message in context: 
http://www.nabble.com/real-and-imaginary-parts-of-signal-on-oscope-tp14604692p14604692.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Questions on the unit of Y-axis in usrp_oscope.py and usrp_fft.py

2008-01-03 Thread Brook Lin

Hi Eric and All,

I found one of replies sent by Eric said that:

>What are the units of the Y axis?

They are the output of the digital down converter.
They are not calibrated to any particular voltage level.
The levels depend on the gain setting too. 

My first question now is what the unit exactly is. Or is it just some number
coming from the output of DDC? Eric said that the levels depend on the gain
setting too. If the gain is 1, are Y-axis voltage?

My second question is what are the units of the Y-axis in FFT. I think
Y-axis should be referenced to some noise figure.  And 0dB in the plot is
not the exact 0dB, but relative to some noise figure, and how much the noise
figure is? Am I right?

Thanks,
Brook
-- 
View this message in context: 
http://www.nabble.com/Questions-on-the-unit-of-Y-axis-in-usrp_oscope.py-and-usrp_fft.py-tp14608013p14608013.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] TV video spectrum

2008-01-09 Thread Brook Lin

Hi All,

I am using TVRX to receive TV signal. I set decimation 8 to give a 8MHz wide
frequency band which is larger than TV bandwidth 6MHz. Now I just use a
piece of wire as the antenna, however, I think I receive audio spectrum
rather than video spectrum. What kind of antenna I should use for observing
video spectrum? Is this piece of wire fine? I also attach the plot I got for
channel2, which is from 54MHz to 60MHz. Did I get right plot? What I am
thinking is that the bandwidth of video should be larger than the one I got
on the plot.

Thanks,
Brook
http://www.nabble.com/file/p14721259/tvchannel2.jpeg 
-- 
View this message in context: 
http://www.nabble.com/TV-video-spectrum-tp14721259p14721259.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Questions on DDC output

2008-01-16 Thread Brook Lin

Hi All, 

I found one of replies sent by Eric said that: 

>What are the units of the Y axis of usrp_oscope? 

>They are the output of the digital down converter. 
>They are not calibrated to any particular voltage level. 
>The levels depend on the gain setting too. 

My first question now is whether the red and blue lines on the oscope are
the numbers which are the 12-bit output of the ADC multiply the sine/cosine
@ IF? Eric said that the levels depend on the gain setting too. If the gain
is 0, do these shows the actual signal receving by the USRP in time domain?
So the Y-axis should be mV when gain is 0, right? However, I don't think the
gain and the output are linear. How does the gain effect the output of the
DDC?

My second question is when gain is 0, usrp_fft.py shows the actual signal in
frequency domain, and Y-axis are in mdB. Am I right? What is the 0dB in fft?
Is it exact 0 or some reference number?

Thanks,
Brook
-- 
View this message in context: 
http://www.nabble.com/Questions-on-DDC-output-tp14897066p14897066.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Question on output of FFT block

2008-03-10 Thread Brook Lin

Hi All,

I am not familiar with Python. I got confused on the output of FFT block. I
can record the raw data coming to the USRP. However, I also need the data
coming outof FFT block. For example, when usrp_fft.py is running, it calls
fftsink2.py and give the spectrum plot. I found that in class fft_window in
fftsink2.py file, def set_data() gives the data after FFT block, which is
points[:,1]. Am I right? How can I show the maximum value of points[:,1] in
status bar of FFT_GUI window?

If I change the def set_data() which I attached below, I can print that max
value in the terminal, but I can not update the frequency from GUI window.
Can I do both things, updating freq and updating the max(points[:,1]) value
in GUI status bar not the terminal?

I also tried adding a vector sink in class fft_sink_c, 
self.connect(self, self.s2p, self.one_in_n, self.fft, self.c2mag, self.avg,
self.log, self.sink)

self.win = fft_window(self, parent, size=size)
self.set_average(self.average)
self.dst2 = gr.vector_sink_f ()
self.connect(self.log, self.dst2)
However, it doesn't work.

I was stcuk here for a long time. If anyone can help me with this question,
I really appreciate!

Brook
##
def set_data (self, evt):
dB = evt.data
L = len (dB)

if self.peak_hold:
if self.peak_vals is None:
self.peak_vals = dB
else:
self.peak_vals = numpy.maximum(dB, self.peak_vals)
dB = self.peak_vals

x = max(abs(self.fftsink.sample_rate),
abs(self.fftsink.baseband_freq))
#if x >= 1e9:
#sf = 1e-9
#units = "GHz"
if x >= 1e6:  #elif
sf = 1e-6
units = "MHz"
else:
sf = 1e-3
units = "kHz"

if self.fftsink.input_is_real: # only plot 1/2 the points
x_vals = ((numpy.arange (L/2)
   * (self.fftsink.sample_rate * sf / L))
  + self.fftsink.baseband_freq * sf)
points = numpy.zeros((len(x_vals), 2), numpy.float64)
points[:,0] = x_vals
points[:,1] = dB[0:L/2]
else:
# the "negative freqs" are in the second half of the array
x_vals = ((numpy.arange (-L/2, L/2)
   * (self.fftsink.sample_rate * sf / L))
  + self.fftsink.baseband_freq * sf)
points = numpy.zeros((len(x_vals), 2), numpy.float64)
points[:,0] = x_vals
points[:,1] = numpy.concatenate ((dB[L/2:], dB[0:L/2]))
lines = plot.PolyLine (points, colour='BLUE')

graphics = plot.PlotGraphics ([lines],
  title=self.fftsink.title,
  xLabel = units, yLabel = "dB")

self.Draw (graphics, xAxis=None, yAxis=self.y_range)
self.update_y_range ()

allpoints=[]
allpoints=points[:,1]

#print 'x_vals',x_vals, len(x_vals)
print 'points',allpoints, len(allpoints)
print 'max_point',max(allpoints)

mag_max=0
for idx in range(len(allpoints)):
if allpoints[idx]>mag_max:
mag_max = allpoints[idx]
idx_mag_max = idx
print 'mag_max is ', mag_max
print 'ndx_mag_max is ', idx_mag_max
deltafreq = (2e6)*(256*(512**(-1)))
if mag_max>10:
print 'There is a signal @ delta',deltafreq/1e6, 'MHz'
###
-- 
View this message in context: 
http://www.nabble.com/Question-on-output-of-FFT-block-tp15951020p15951020.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] How to add a spectrum analyzer GUI window in usrp_spectrum _sense.py file

2008-03-10 Thread Brook Lin

Hi All,

I am not familiar with Python. I want to know how I can add an GUI window to
show spectrum, like usrp_fft.py does, in usrp_spectrum_sense.py file. The
example of usrp_spectrum_sense gives the m.data and also m.frequency. Can I
add GUI to show spectrum and meantime update center frequency from GUI? How
can I run the script from tb.start() first, and then update from
stdgui2.std_top_block() ?

Thanks,
Brook
-- 
View this message in context: 
http://www.nabble.com/How-to-add-a-spectrum-analyzer-GUI-window-in-usrp_spectrum-_sense.py-file-tp15975298p15975298.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] output of gr.argmax & gr.max?

2008-03-11 Thread Brook Lin

Hi All,

I tried to access the output of FFT by using self.dst1 = gr.vector_sink_s()
and use gr.argmax_fs(self.fft_size) to find the index of the maximum value. 
However, I can not get the output, dst1.data(). I attached the code below.
Actually, I also want to find the maximum value using dst2 =
gr.vector_sink_f() and valmax = gr.max_ff(self.fft_size), but it doesn't
work. Can anyone help me with this?

Thanks,
Brook

## start ## 
self.s2p = gr.stream_to_vector(gr.sizeof_gr_complex, self.fft_size)
self.one_in_n = gr.keep_one_in_n(gr.sizeof_gr_complex * self.fft_size,max(1,
int(input_rate/self.fft_size/self.fft_size)))
mywindow = window.blackmanharris(self.fft_size)
self.fft = gr.fft_vcc(self.fft_size, True, mywindow)
power = 0
for tap in mywindow:
power += tap*tap
self.c2mag = gr.complex_to_mag(self.fft_size)
self.avg = gr.single_pole_iir_filter_ff(1.0, self.fft_size)
# FIXME  We need to add 3dB to all bins but the DC bin
self.log = gr.nlog10_ff(20,
self.fft_size,-20*math.log10(self.fft_size)-10*math.log10(power/self.fft_size))
self.dst1 = gr.vector_sink_s()# (gr.sizeof_short, "out1.txt")
argmax = gr.argmax_fs(self.fft_size)
#dst2 = gr.vector_sink_f()  
#valmax = gr.max_ff(self.fft_size)
self.connect(self.u, self.s2p, self.one_in_n, self.fft, self.c2mag,
self.avg, self.log)
self.connect(self.log, (argmax, 0))
self.connect((argmax, 0), self.dst1)
#self.connect(self.log, (valmax, 0))
#self.connect((valmax, 0), dst2)
self.index = dst1.data()
print 'index AAA', self.index   however, the output is printed out like
index AAA (), why I can not get the exact number
#end
-- 
View this message in context: 
http://www.nabble.com/output-of-gr.argmax---gr.max--tp15997864p15997864.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] output of gr.argmax & gr.max?

2008-03-11 Thread Brook Lin

And I also want to show this maximum value on the status bar in wxgui, which
shows the fft plot in the gnuradio-example. Any suggestion?

In short, when I run usrp_fft.py, how can I show the peak value on the wxgui
window? Can I do it like what I did now?(I mean the code I attached
previously). If not, do you have some good idea to do it?

Thanks,

-- 
View this message in context: 
http://www.nabble.com/output-of-gr.argmax---gr.max--tp15997864p15998547.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] output of gr.argmax & gr.max

2008-03-12 Thread Brook Lin

self.connect(self.chan_filt,ss2v,pick_one,my_fft,my_mag,(my_argmax,0))
self.connect((my_argmax,0),self.my0_s2f,self.my0_probe)
self.connect((my_argmax,1),my_s2f,self.my_probe)

Thanks Tim. The code is clear. But I have questions on my0_probe and
my_probe. Are they fft.win, or numbersink or other kind of sink?

Thanks~~


Tim Meehan wrote:
> 
> I do this by sending the value of argmax to the gui using number_sink for
> the gui.
> BTW I sent a message to this list the other day questioning the "-20*
> math.log10(self.fft_size)..."
> in the line below (taken from your code above).  I argue it should be
> "-10*
> math.log10(self.fft_size)..."
> [from Brook Lin] 
> self.fft_size,-20*math.log10(self.fft_size)-10*math.log10
> (power/self.fft_size))
> Any comments?
> 
> Here is some quick code to display the max index of the FFT output in a
> gui
> 
> ss2v = gr.streams_to_vector(gr.sizeof_gr_complex, 128)
> pick_one = gr.keep_one_in_n(gr.sizeof_gr_complex * 128,1024)
> my_fft = gr.fft_vcc(128,1,[])
> my_mag = gr.complex_to_mag(128)
> my_argmax = gr.argmax_fs(128)
> my_s2f = gr.short_to_float()
> self.my0_s2f = gr.short_to_float()
> 
> self.connect(self.chan_filt
> ,ss2v,pick_one,my_fft,my_mag,(my_argmax,0))
> self.connect((my_argmax,0),self.my0_s2f,self.my0_probe)
> self.connect((my_argmax,1),my_s2f,self.my_probe)
> 
> #Now in the gui area
> 
> self.my_number = numbersink2.number_sink_f(self.panel,label=
> "maxIndex",decimal_places=2)
> 
> self.connect (self.my0_s2f, self.my_number)
> vbox.Add (self.my_number.win, 4, wx.EXPAND)
> 
> 
> 
> Tim
> 
> On Tue, Mar 11, 2008 at 10:26 PM, Brook Lin <[EMAIL PROTECTED]> wrote:
> 
>>
>> And I also want to show this maximum value on the status bar in wxgui,
>> which
>> shows the fft plot in the gnuradio-example. Any suggestion?
>>
>> In short, when I run usrp_fft.py, how can I show the peak value on the
>> wxgui
>> window? Can I do it like what I did now?(I mean the code I attached
>> previously). If not, do you have some good idea to do it?
>>
>> Thanks,
>>
>> --
>> View this message in context:
>> http://www.nabble.com/output-of-gr.argmax---gr.max--tp15997864p15998547.html
>> Sent from the GnuRadio mailing list archive at Nabble.com.
>>
>>
>>
>> ___
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://www.nabble.com/output-of-gr.argmax---gr.max--tp15997864p16012522.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Sense spectrum by usrp_spectrum_sense.py

2008-03-24 Thread Brook Lin

Hi All,

I am using usrp_spectrum_sense.py 1400M 2000M -F 512 -d 16 --tune-delay 1e-3
--dwell-delay 10e-3 to sense the spectrum. 

In main_loop(tb),  I print m.center_freq and m.data. 
freq_step = 0.75 * usrp_rate=0.75*(64M/16)=3M. So m.center_freq[0]=1401.5M,
m.data[0]~m.data[511] are 512 bins corresponding to m.center_freq[0];
m.center_freq[1]=1404.5M, m.data[0]~m.data[511] are 2nd 512 bins
corresponding to m.center_freq[1], and so on. 

There are some comment lines say:
# m.data are the mag_squared of the fft output (they are in the
# standard order.  I.e., bin 0 == DC.)
# You'll probably want to do the equivalent of "fftshift" on them
# m.raw_data is a string that contains the binary floats.
# You could write this as binary to a file.

So actually, for each 512 bins, (m.data[0]) to (m.data[255]) are mag_squared
values for (m.center[0]) to (m.center[0] +freq_step/2), and (m.data[256]) to
(m.data[511]) are mag_squared values for (m.center[0]-freq_step/2) to
(m.center[0]). Am I right? How to use fftshift here? Dose fftshift(m.data)
give me regular order? Are fftshift(m.data) mag_squared values corresponding
to [(m.center[0]-freq_step/2):(m.center[0]+freq_step/2)]?

If I plot all m.data or fftshift(m.data) versus all the m.center_freq from
1400M to 2000M, I should get the whole spectrum from 1400M upto 2000M. Did I
do right here? Can I get time domain signal if I do ifft(m.data)? I suppose
not. Because m.data are mag_squared rather than mag. If not, how can I get
the time-domain signal before fft, from 1400M to 2000M?

Thanks,
Brook


-- 
View this message in context: 
http://www.nabble.com/Sense-spectrum-by-usrp_spectrum_sense.py-tp16261178p16261178.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] help on finding the features for cell phone companies

2008-04-07 Thread Brook Lin

Hi All,

I am using USRP to sweep the whole cell phone band and pick up the cell
phone signals by spectrum analysis. How about, if I want to separate the
signals by different companies? Does anyone have suggestions on how to do
it? How can I find the feature in frequency domain for at&t, verizon, or
t-mobile, etc?

Thanks,
Brook
-- 
View this message in context: 
http://www.nabble.com/help-on-finding-the-features-for-cell-phone-companies-tp16537543p16537543.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re[Discuss-gnuradio] al-time video receiving?

2008-06-18 Thread Brook Lin

Hi All,

I am using benchmark_tx.py and benchmark_rx.py to transmit and receive video
file. For now, I have a video file to transmit, and at the receiver side, I
save the received data to a file, then use a media player to play it. This
part works fine. However, how about if I want to do a real-time video
receiving? How to sink received data directly to a media player, instead of
saving them as a file first?

Thanks,
Brook
-- 
View this message in context: 
http://www.nabble.com/Real-time-video-receiving--tp17996908p17996908.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: Re[Discuss-gnuradio] al-time video receiving?

2008-06-20 Thread Brook Lin

Thanks so much. But do you have some tutorial regarding it? How should I
start it?

Thanks,
Brook Lin

Lin Huang-2 wrote:
> 
> You may try 'VideoLAN'. It supports IP streaming output and input. Then
> you
> can make your TX RX as an IP tunnel.
> 
> BR
> HUANG Lin
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Real-time-video-receiving--tp17996908p18024229.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Question on OFDM

2008-07-29 Thread Brook Lin

Hi All,

I am trying to do a multi-carrier transmission. I went through the
benchmark_ofdm_tx.py and benchmark_ofdm_rx.py files. How can I set the
specific subcarrier? Say, -d 32 --fft-length=512 --occupied-tones=200. What
I understand is that a 2M bandwidth is divided into 512 subcarriers, and 200
subcarriers are used. How are these 200 used subcarriers allocated? How I
should do if I only want to use the first and the last subcarrier or other
specific subcarrier?

Thanks,
Brook Lin
-- 
View this message in context: 
http://www.nabble.com/Question-on-OFDM-tp18718309p18718309.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] pktno of OFDM transmission

2008-08-08 Thread Brook Lin

Hi All,

I am working on digital communication using OFDM. And I tried to run the
file in /gnuradio-3.1.2/gnuradio-example/python/ofdm

@ TX side:
sudo ./benchmark_ofdm_tx.py -f 420M --tx-amplitude 6000 

@ RX side:
sudo ./benchmark_ofdm_rx.py -f 420M  

At the TX side, the pktno =  2500, however, at the RX side, the pktno = 
2499. Can anyone tell me why is that? and how to modify it?

Thanks,
Brook
-- 
View this message in context: 
http://www.nabble.com/pktno-of-OFDM-transmission-tp18900099p18900099.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] Questions on interference!

2008-08-28 Thread Brook Lin

Hi All,

I have two transmitters and one receiver now. The 1st transmitter is
transmitting a video file, and the receiver is receiving correctly. Then,
the 2nd transmitter is working to transmit a different video file to
interfere with the 1st transmitter. 

1st TX: ./benchmark_tx.py -f 400M --tx-amplitude=5000 -M 4 -r 100e3 -v -T A
-s 4000 --from-file video1.avi
RX: ./benchmark_rx.py -f 400M -r 100e3 -R A -v

When both TX and RX work, and the received video can be played at the RX
side, the 2nd TX starts to interfere.

2nd TX: ./benchmark_tx.py -f 400M --tx-amplitude=1 -M 1 -r 100e3 -v -T A
-s 4000 --from-file video2.avi

However, the 2nd TX doesn't interfere with the 1st TX. At the receiver side,
I still can receive video1 clearly. Theoretically speaking, the 2nd TX
generates stronger signal than 1st TX dose. It should interfere the 1st TX
and make the video received at the RX side not clear or stop. Can anyone
help me on this problem? 

Thanks,
Brook Lin
-- 
View this message in context: 
http://www.nabble.com/Questions-on-interference%21-tp19209495p19209495.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


Re: [Discuss-gnuradio] Questions on interference!

2008-09-01 Thread Brook Lin

Or we can say the question like this, how to receive correct video2 when TX2
is working, although TX1 is still working too. At the receiver side, I want
it to receive video1 when TX1 is working, then to receive video2 when both
TX1 and TX2 are working. Is my assumption right in the previous message? Can
anyone help me solve it?

Thanks,
Brook Lin

-- 
View this message in context: 
http://www.nabble.com/Questions-on-interference%21-tp19209495p19261789.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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


[Discuss-gnuradio] One receiver with two transmitters.

2008-09-04 Thread Brook Lin

Hi All,

I have two transmitters and one receiver now. The 1st transmitter is
transmitting a video file, and the receiver is receiving correctly. Then,
the 2nd transmitter is transmitting a different video file with a stronger
tx-amplitude. So the 2nd transmitter sends out a stronger signal than the
1st transmitter does. At the receiver side, the receiver receives the
package which is sent from TX1; however, when TX2 is working, the same
receiver should receives the package from TX2. 

1st TX: ./benchmark_tx.py -f 400M --tx-amplitude=5000 -M 4 -r 100e3 -v -T A
-s 4000 --from-file video1.avi
RX: ./benchmark_rx.py -f 400M -r 100e3 -R A -v

When both TX1 and RX work, and the received video can be played at the RX
side, the 2nd TX starts to work.

2nd TX: ./benchmark_tx.py -f 400M --tx-amplitude=1 -M 1 -r 100e3 -v -T A
-s 4000 --from-file video2.avi

However, when TX2 transmits, I still get video1 from TX1, not from TX2.
Could my idea be implemented? Can anyone help me on this problem?

Thanks,
Brook Lin
-- 
View this message in context: 
http://www.nabble.com/One-receiver-with-two-transmitters.-tp19318842p19318842.html
Sent from the GnuRadio mailing list archive at Nabble.com.



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