[Discuss-gnuradio] Changing four parallel pipes of ADC's into two parallel pipes of ADC's(having interleaved IQ as in the case of DAC's)

2010-08-25 Thread Sanjay Singh
Hello Eric,

In USRP1, I don't want AD9862 to use in my application for many reasons.

Am looking for changing four parallel pipes of ADC's into two parallel pipes
of ADC's(having interleaved IQ as in the case of DAC's).
I need only changes required to be done in FPGA. Although i know that the
ADC data bus to FPGA will have to be clocked twice the sampling rate.

I believe this may be a minimal change required in the FPGA.

Can anyone support me for doing this change.

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


[Discuss-gnuradio] Souce Block

2010-08-25 Thread John Li
Hi!

I have many source blocks with different kinds of signal generator and I
want to create a configurable unique block.

Can I make a source block with multiple outputs each one with a different
rate?


Thank you,

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


[Discuss-gnuradio] WBX: Failed to set center frequency

2010-08-25 Thread devin kelly
Hello,

I'm doing some spectrum sensing with the WBX and the USRP2, I'm using
the usrp_spectrum_sense script.  I do my scans over the whole range of
the WBX, from 50 MHz to 2.2GHz.  When I do a scan, sometimes I'll get
an error message Failed to set center frequency: FFF  At first, I
thought I had either my tune_delay or dwell_delay value set too low.
I tried increasing both incrementally to 500ms each.  This helped a
little, but there are certainly still failures.

Usually it will fail 0-8 times per scan.  I've noticed to that a lot
of the same frequencies will fail, but it's never consistent.

I've also noticed some unexplained peaks that occur near the
frequencies that fail.  There are certainly more of these peaks when I
have more failures.  So far, I've been testing in a controlled
envoironment with either the input terminated or using a tone
generated by a signal generator.

Has anyone else run into this problem?  I don't think it could be the
tune/dwell delays, 500ms is really high delay time.  Is there an
optimal tune/dwell delay for the WBX?  No values I've tried have fully
solved my problem though.  Could either the tune/dwell delay times be
frequency dependent?

Thanks For Any Help,
Devin

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


[Discuss-gnuradio] USRP and RFID

2010-08-25 Thread rfid
Hello!

We are just working on a project aiming at investigating the use of the
Ettus USRP device concerning RFID sniffing. According to the manuals,
purchasing the LFTX and the RFTX devices should be suitable for being able
to talk to 125kHz and 13,56Mhz RFID devices. What kind of antennas do you
recommend for this purpose? Will simple loops of copper suffice?

Are there any tutorials or papers available which concentrate on using
Gnuradio in terms of RFID? I know that OpenPCD  Co might offer an easier
way to go, but as I want to learn about the stuff I decided to go the more
difficult way.

Thanks for your help any kind of comment,
Fabian Steiner


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


Re: [Discuss-gnuradio] USRP and RFID

2010-08-25 Thread Matthias Wilhelm
Hi, 

there is a project for Gen2 RFID chips, they have a reader implementation for 
the USRP1 and a monitoring tool to eavesdrop on reader-tag communication for 
the USRP2:
https://www.cgran.org/wiki/Gen2

There are also papers on the design posted there. They had to tinker with the 
USB driver as well because of timing issues with the reader. 

I think Gen2 is only ~868MHz, I don't know if the code can be adapted to 
13.56MHz stuff.  And for a (duplex) reader you will need a URSP1 there, because 
two 900-daughterboards are required. It may be possible out of the box to build 
a reader for 13.56MHz with the USRP2, as you have two half-daughterboards.

For the protocol implementation, you can take a look at
http://www.libnfc.org
it seems that they have some Gen1 support and you only have to implement the 
physical layer in gnuradio.

We are currently thinking to start a RFID project as well, so I'm interested 
what you find out.  

Matthias


Am 25.08.2010 um 16:38 schrieb r...@fabis-site.net:

 Hello!
 
 We are just working on a project aiming at investigating the use of the
 Ettus USRP device concerning RFID sniffing. According to the manuals,
 purchasing the LFTX and the RFTX devices should be suitable for being able
 to talk to 125kHz and 13,56Mhz RFID devices. What kind of antennas do you
 recommend for this purpose? Will simple loops of copper suffice?
 
 Are there any tutorials or papers available which concentrate on using
 Gnuradio in terms of RFID? I know that OpenPCD  Co might offer an easier
 way to go, but as I want to learn about the stuff I decided to go the more
 difficult way.
 
 Thanks for your help any kind of comment,
 Fabian Steiner

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


Re: [Discuss-gnuradio] USRP/gnuradio Issues in OS X

2010-08-25 Thread Michael Dickens
I just updated to the latest GIT master  indeed make check fails in  
gr-usrp with the Symbol not found: _usb_debug in gr-usrp if MacPorts  
'libusb-compat' is installed -- thanks for the pointer, Mark.  I'll  
request in MacPorts that the PKGCONFIG file for 'libusb-compat' be  
renamed to reflect that (may or not work).  And for GNU Radio, I'm  
tweaking the config/usrp_libusb.m4 script to also check for the symbol  
_usb_debug when a legacy library is found (the 'compat' version does  
not have this symbol).  I'll create a branch for testing later today  
if all goes well. - MLD


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


Re: [Discuss-gnuradio] Souce Block

2010-08-25 Thread Eric Blossom
On Wed, Aug 25, 2010 at 10:08:22AM -0300, John Li wrote:
 Hi!
 
 I have many source blocks with different kinds of signal generator and I
 want to create a configurable unique block.
 
 Can I make a source block with multiple outputs each one with a different
 rate?
 
 Thank you,
 John

Yes you can in 3.3.*

Your block will need to derive from gr_block, and in general_work you
must call produce for each output streams, and general_work must
return WORK_CALLED_PRODUCE as it's value.

From gr_block.h:

  //! Magic return values from general_work
  enum {
WORK_CALLED_PRODUCE = -2,
WORK_DONE = -1
  };

  ...

  /*!
   * \brief Tell the scheduler \p how_many_items were produced on output stream 
\p which_output.
   *
   * If the block's general_work method calls produce, \p general_work must 
return WORK_CALLED_PRODUCE.
   */
  void produce (int which_output, int how_many_items);


Eric

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


Re: [Discuss-gnuradio] 10 bit samples

2010-08-25 Thread Thomas Tsou
On Wed, Aug 25, 2010 at 9:58 AM, Vincenzo Pellegrini wwvi...@gmail.com wrote:
 Hi everybody,
 Just a very simple question:
 Is it possible to obtain 10 bit samples out of USRP (either 1 or 2) by using
 suitable libusrp primitives / parameters?

No. But you can produce 8-bit samples on the USRP1 by appropriately
setting the FR_RX_FORMAT register. You can set it through the standard
interface. This option is not available on the USRP2.

  Thomas

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


[Discuss-gnuradio] Invitation to connect on LinkedIn

2010-08-25 Thread Robert McGwier
LinkedIn
Robert McGwier requested to add you as a connection on LinkedIn:
--

Abdul,

I'd like to add you to my professional network on LinkedIn.

- Robert

Accept invitation from Robert McGwier
http://www.linkedin.com/e/kcqq4e-gdaj09g6-6s/vd6zfNxBgx85xjU-yrUbg0DbdNCYdgCBPTBioq/blk/I822434776_3/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cRYSdPsQcPgOczx9bRtViTxIulBEbPwPdjsMe34Mdz4LrCBxbOYWrSlI/EML_comm_afe/

View invitation from Robert McGwier
http://www.linkedin.com/e/kcqq4e-gdaj09g6-6s/vd6zfNxBgx85xjU-yrUbg0DbdNCYdgCBPTBioq/blk/I822434776_3/0PnPoTdPgPd38Oe4ALqnpPbOYWrSlI/svi/
 
--

DID YOU KNOW that LinkedIn can find the answers to your most difficult 
questions? Post those vexing questions on LinkedIn Answers to tap into the 
knowledge of the world's foremost business experts: 
http://www.linkedin.com/e/kcqq4e-gdaj09g6-6s/ask/inv-23/

 
--
(c) 2010, LinkedIn Corporation___
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 Elvis Dowson
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


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 Jeffrey Lambert

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


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

2010-08-25 Thread Douglas Geiger
On Wed, Aug 25, 2010 at 3:56 PM, Brook Lin gnu.f...@yahoo.com wrote:

 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

sudo ldconfig

The python packages should be in /usr/local/lib/python/dist-packages/gnuradio

-- 
Doug Geiger
doug.gei...@bioradiation.net

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


Re: [Discuss-gnuradio] Changing four parallel pipes of ADC's into two parallel pipes of ADC's(having interleaved IQ as in the case of DAC's)

2010-08-25 Thread Eric Blossom
On Wed, Aug 25, 2010 at 11:53:02AM +0530, Sanjay Singh wrote:
 Hello Eric,
 
 In USRP1, I don't want AD9862 to use in my application for many reasons.
 
 Am looking for changing four parallel pipes of ADC's into two parallel pipes
 of ADC's(having interleaved IQ as in the case of DAC's).
 I need only changes required to be done in FPGA. Although i know that the
 ADC data bus to FPGA will have to be clocked twice the sampling rate.
 
 I believe this may be a minimal change required in the FPGA.
 
 Can anyone support me for doing this change.
 
 Regards
 Sanjay

Sanjay, 

I'm sorry that I don't understand exactly what it is that you are
trying to do with the ADC path in the AD9862.  (Or what you hope to
accomplish with this change.)

By default we configure the AD9862 so that it's in Dual Channel
Complex ADC Signal mode  (Rev 0 datasheet pg 23, under RECEIVE
APPLICATIONS SECTION).  This puts the I  Q out separate pins on the
chip.  We do not have the Hilter Filter enabled, so the two streams (I
 Q) are effectively independent.  (See Figure 6 on pg 22).

You could reprogram the AD9862 to put it into Dual Channel Real ADC
Signal mode, but since we're not using the Hilbert Filter these two
modes are equivalent.

If you want interleaved I  Q, I suggest that you do that in the FPGA,
and not by changing the interface between the the AD9862 and the FPGA.
Why I say this is because the existing configuration is well tested,
and meets all the timing requirements for the interface between the
FPGA and the AD9862.

If I haven't answered your question, please try asking it again.

Eric

___
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


[Discuss-gnuradio] MIMO cable and timestamps (raw ethernet)

2010-08-25 Thread Marc Epard
With rx_streaming_samples.cc as a starting point, I created a new 
usrp2::rx_sample_handler that simply buffers samples in memory. The handler's 
operator() is shown below. I need precise timing data between receives, so it 
counts sample clock overflows to form a 64-bit time. To make sure it was 
working as I expected, it predicts the next metadata-timestamp according to 
the number of samples in the current frame and the decimation. In the next 
frame, I compare the actual timestamp to the expected timestamp and report any 
discrepancies. Once I got my own bugs out and worked around what appears to be 
a startup glitch, it's been working fine and never reports a problem unless 
there's an overrun. Elsewhere I check rx_missing() so know when overruns happen 
even if I don't see an S go by.

Today I tried synchronizing a transmitter USRP2 and receiver USRP2 using a MIMO 
cable. Now it's reporting very frequent timestamp errors, but no overruns:

Time error in frame 2. Off by -1073638088 ticks.
Time error in frame 20. Off by -1073897439 ticks.
Time error in frame 39. Off by 1258260742 ticks.
Time error in frame 40. Off by 8396679 ticks.
Time error in frame 57. Off by -8413060 ticks.
Time error in frame 76. Off by -171977540 ticks.
Time error in frame 94. Off by -12634786 ticks.
Time error in frame 95. Off by -2876 ticks.
Time error in frame 107. Off by 193028100 ticks.
Time error in frame 113. Off by -184639590 ticks.
Time error in frame 132. Off by -1079918709 ticks. 
...

Just having the MIMO cable hooked up causes the problem. I doesn't matter 
whether I config_mimo() to set up one box with MC_WE_LOCK_TO_MIMO and one with 
MC_PROVIDE_CLK_TO_MIMO or configure both to MC_WE_DONT_LOCK. In either case it 
spews errors. If I disconnect the MIMO cable, no time errors are reported.

I'm using gnuradio 3.3.0. Both USRP2s have u2_rev3-20100603.bin. One has 
txrx_xcvr_raw_eth_20100608.bin and an xcvr2450, the other has 
txrx_raw_eth_20100608.bin and a DBSRX.

Have I misunderstood something? Is there something more I need to do? Is there 
a bug in my code? Any other thoughts or suggestions?

-Marc

bool operator()(const uint32_t *items, size_t numItems, const 
usrp2::rx_metadata *metadata)



___
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 Eric Blossom
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


Re: [Discuss-gnuradio] MIMO cable and timestamps (raw ethernet)

2010-08-25 Thread Marc Epard
Oops. The code got cut off.  Here's the full routine.  -Marc

bool operator()(const uint32_t *items, size_t numItems, const 
usrp2::rx_metadata *metadata)
{
if (_numFrames == 0)
{
// The expected time prediction for the second frame is always off by 
19 ticks,
// suggesting that the first frame is messed up somehow. 
// As a work-around, we just ignore the first frame as if it never 
happened.
++_numFrames;
return true;
}

if (_numFrames == 1)
_startingSampleClock32 = metadata-timestamp;
else
{
if (metadata-timestamp != _expectedSampleClock32)
{
++_numTimeErrors;
fprintf (stdout, Time error in frame %llu. Off by %d ticks.\n, 
_numFrames, metadata-timestamp - _expectedSampleClock32);
}
}
++_numFrames;
_expectedSampleClock32 = metadata-timestamp + numItems*_decimation;

size_t  numRemaining = _buffer.size() - _numSamples;
size_t  numToCopy = std::min(numItems, numRemaining);

memcpy(_buffer[_numSamples], items, numToCopy*sizeof(_buffer[0]));
_numSamples += numToCopy;

if (_numSamples == _buffer.size())
{
_endingSampleClock32 = metadata-timestamp + numToCopy*_decimation;
return false;
}
return true;
}

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


Re: [Discuss-gnuradio] USRP2+WBX full duplex doesn't receive

2010-08-25 Thread Marc Epard
On Aug 24, 2010, at 11:16 PM, George Nychis wrote:

 I don't think I've had this issue with my WBX and USRP2.  I will check 
 tomorrow for you

Thanks! I'd appreciate it.

I've now replicated the problem with a XCVR2450, so I don't think it's 
WBX-specific.

I've altered my code to support separate USRP2s for transmit and receive, 
switched to a host with two ethernet ports, and... it works! I'm able to 
transmit on one and receive on the other simultaneously. The same code (except 
for having a single usrp2 object instead of two) cannot transmit and receive at 
the same time using just one USRP2 with either a WGX or XCVR2450.

Back to my firmware/FPGA exploration...

-Marc


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


Re: [Discuss-gnuradio] USRP2+WBX full duplex doesn't receive

2010-08-25 Thread Marcus D. Leech

 On Aug 24, 2010, at 11:16 PM, George Nychis wrote:

   
 I don't think I've had this issue with my WBX and USRP2.  I will check 
 tomorrow for you
 
 Thanks! I'd appreciate it.

 I've now replicated the problem with a XCVR2450, so I don't think it's 
 WBX-specific.
   
Just to note that the XCVR2450 has only a single VFO, so full-duplex on
different frequencies can't work--the hardware
  isn't capable of it.  But full-duplex on the WBX should work provided
that you use the RX/RX port for transmit and the RX2
  (secondary receive) antenna port for Rx.



-- 
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org



___
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 Marcus D. Leech

 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?
   
In the shell, before invoking any Gnu Radio application:

PYTHONPATH=/usr/local/lib/python2.6/dist-packages
export PYTHONPATH

You can put these in the .bashrc file in your home directory if it
becomes a pain to type manually.

You might want to get a book on Linux for beginners or something like
that, which will help
  you with quite simple things like how to set an environment variable.




-- 
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org



___
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 stdin, line 1, in module
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


[Discuss-gnuradio] USRP2 Installation

2010-08-25 Thread Jonathan

Hello all,

I am new to the USRP2. I know with the USRP1, all I had to do was plug 
the USB cable into a linux machine and everything was ready to go.


Is the same true with USRP2? I see posts talking about SD cards and 
writing data to it?


Are there any other installation steps for the USRP2 besides just 
plugging the USB cable in?


Jonathan

___
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 Marcus D. Leech

 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.
   

What about other usrp-using applications, like usrp_fft.py ??

I think usrp_benchmark_usb.py is quite old, and may not have been
maintained.


-- 
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org



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


Re: [Discuss-gnuradio] USRP2 Installation

2010-08-25 Thread Marcus D. Leech
 Hello all,

 I am new to the USRP2. I know with the USRP1, all I had to do was plug
 the USB cable into a linux machine and everything was ready to go.

 Is the same true with USRP2? I see posts talking about SD cards and
 writing data to it?

 Are there any other installation steps for the USRP2 besides just
 plugging the USB cable in?

 Jonathan


It depends on which daughtercards you're using.

The as shipped from the factory SD card supports the raw ethernet
protocol stack, and everything but the XCVR2450 and WBX cards.

If you have a DBS_RX, you'll need to modify slightly to work with the USRP2:

http://gnuradio.org/redmine/wiki/1/USRP2DBSRXModification

If you have a WBX or XCVR daughtercard, you'll need different firmware,
which you can find here:

http://code.ettus.com/redmine/ettus/projects/public/wiki/U2binaries




-- 
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org



___
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 module
from gnuradio import audio
  File /usr/lib/python2.6/dist-packages/gnuradio/audio.py, line 88, in
module
__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-25 Thread Eric Blossom
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 module
 from gnuradio import audio
   File /usr/lib/python2.6/dist-packages/gnuradio/audio.py, line 88, in
 module
 __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


Re: [Discuss-gnuradio] Muhammad Khan wants to stay in touch on LinkedIn

2010-08-25 Thread Jeffrey Lambert

What's up with all the LinkedIN Requests?!

~Jeff

On 8/25/2010 8:46 PM, Muhammad Khan wrote:




  LinkedIn

Muhammad Khan requested to add you as a connection on LinkedIn:


--
~Jeffrey Lambert, K1VZX

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


Re: [Discuss-gnuradio] Muhammad Khan wants to stay in touch on LinkedIn

2010-08-25 Thread Marcus D. Leech
 What's up with all the LinkedIN Requests?!

 ~Jeff

 On 8/25/2010 8:46 PM, Muhammad Khan wrote:



   LinkedIn

 Muhammad Khan requested to add you as a connection on LinkedIn:

Looks like Abdul Hakeem gave discuss-gnuradio@gnu.org  as his e-mail
address on LinkedIn.  That's rather broken.


-- 
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org



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


[Discuss-gnuradio] Problems compiling testbench for USRP

2010-08-25 Thread Nelson Costa
Hello all, 

I've been trying to use some of the test benches provided from Ettus' site, in 
the fpga/tb directory.  I'm using Quartus II and ModelSim with the latest 
version of the fpga code.  


I'm assuming that fullchip_tb.v is the test bench for the full fpga.  However, 
the test bench seems to be written for a different module; The test bench 
doesn't interface directly with usrp_std, and instead instantiates fullchip.  
The ports are similar to usrp_std, but not the same.  Was the test bench 
written 
for something else?  


Any additional info on the test benches (even a link) would be greatly 
appreciated.

Nelson.



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