Re: [Discuss-gnuradio] rx_ofdm Does Not Work Past Synchronizer

2014-03-20 Thread Martin Braun
A good way to test is to use the hier blocks for OFDM (you still need to
reduce amplitude), they will set up everything in a way that will work
for sure. See the loopback example in gr-digital/examples/ofdm.

M

On 03/19/2014 08:41 PM, Jonathan Fox wrote:
 Thanks for the responses.
 
 When I use the USRPs the UHD sink is placed after the OFDM Cyclic
 Prefixer, right after the Mutliply Const (50m). I haven't changed any
 settings because I remember reading in a few previous emails that the
 most common question people ask is Did you change anything?
 
 Sadly, the delay wasn't the case, at least for the loopback mode.
 
 I reduced the amplitude of the signal by an additional 0.02, so the
 multiply constant is at 0.03 as opposed to 0.05. It brought the clipping
 well within +1, -1. Before the signal clipped past -1 but never rose
 above +1. No effect but I am not ruling out that it wouldn't help.
 
 The video is interesting enough that I am going to continue watching
 after the first half, maybe I can figure out more from there.
 
 Jon
 
 
 On Wed, Mar 19, 2014 at 7:50 AM, Martin Braun martin.br...@ettus.com
 mailto:martin.br...@ettus.com wrote:
 
 On 03/19/2014 12:25 AM, Jonathan Fox wrote:
  So I have the stock python scripts (tx_ofdm and rx_ofdm) located
 in the
  gr-digital examples and put USRP sources and sinks in the appropriate
  spots. I left sampling alone (100K for TX, 3.2M for RX) and had the
  TX/RX frequency at 500 MHz. The USRPs used are N210s with WBX
  daughterboards. I tested the USRP used for TX out by outputting a
 signal
  to another and looking at it on the GNU Radio spectrum analyzer. Also,
  this is through SMA cables and a 30 dB attenuator, no over the air
  transmission. I placed file sinks after each block in the process;
 each
  file is a binary file. After multiple runs I felt like something
 wasn't
  working after looking at the binary files.
 
 Maybe you're probably screwing up your tx signal by clipping, although I
 can't say for sure from your flow graphs (where exactly do you put the
 UHD sink?) See
 
 http://video.fosdem.org/2014/AW1125/Sunday/Tutorial_OFDM_Packet_Transceivers.webm,
 starting around ~27 mins for an explanation, or search the mailing list
 archive.
 
 Martin
 
 
  When I execute, only the file sinks placed after the Schmidl  Cox
 OFDM
  Synchronizer freq_offset and detect have data in them, at least their
  files have some size to them, implying something has been written. The
  file sinks after FFT (or the header/payload demux) have no data, 0 KB.
 
  When I discovered that the receive didn't work, I took the grc file
  another user made back in October with both TX mod and RX demod in the
  same flowgraph to see if that would work (files attached). Again same
  issue, all the binary files after the FFT have no data so something is
  getting screwed up in my demod.
 
  Has any user on this list run into this issue before or can offer some
  insight to why the receiver is failing?
 
  Thank you,
 
  Jon
 
  Attached is the python script, grc file, and screen shot of the TXRX
  combo in GRC.
 
 
  ___
  Discuss-gnuradio mailing list
  Discuss-gnuradio@gnu.org mailto:Discuss-gnuradio@gnu.org
  https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 
 
 
 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org mailto:Discuss-gnuradio@gnu.org
 https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 
 


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


Re: [Discuss-gnuradio] uhd_rx_cfile: getting constant O-overflows using the USRP B200 with debian

2014-03-20 Thread Ingmar Splitt
Hi Aditya,

Thanks for your reply. Today I got the chance to measure the lower samplerates 
and here are the results:
I measured the writingspeed on disk and the number of the Os for 1 minute 
runtime. Running X and iotop in the back has nearly no impact.

MHz   Mb/sO-count
32  310 350
16  180 107
8106   32
4  53 6
2  27 3

Do you have a hint for me for fixing this problem?

regards,
Ingmar

Von: Aditya Dhananjay [mailto:adi...@cs.nyu.edu]
Gesendet: Mittwoch, 19. März 2014 16:09
An: Ingmar Splitt
Cc: discuss-gnuradio@gnu.org
Betreff: Re: [Discuss-gnuradio] uhd_rx_cfile: getting constant O-overflows 
using the USRP B200 with debian

Hello Ingmar,

Can you please repeat the experiment with lower sampling rates (say, 10 Mhz)? 
Thanks.

best,
aditya


On Wed, Mar 19, 2014 at 8:42 AM, Ingmar Splitt 
ingmar.spl...@eas.iis.fraunhofer.demailto:ingmar.spl...@eas.iis.fraunhofer.de
 wrote:
Hi developers,

I have a fresh gnu radio installed with pybombs for my usrp B200. It runs on a 
Lenovo X230 with debian testing x64.
When I use  uhd_rx_cfile i get constant O-overruns (output given below).

The uhd-benchmark runs without problems:
sudo ./benchmark_rate --duration 600 --rx_rate 3200
So the USB3-Port isn't the Problem. Storing in ram is also fine:
sudo ./uhd_rx_cfile -f 244500 --samp-rate=3000 /tmp/test.cfile
I use a Samsung Evo 840 1TB (newest firmware) and did the SSD-Optimizations 
(https://wiki.debian.org/SSDOptimization) while searching for the error. 
HDPerm-, DD- and copy-benchmarks give 500mb/s for the first seconds, later 
constant ~400mb/s writing speed.
Debugging with iotop brings (output below) 90% io-call-workload for the 
benchmarks, but 0% for the uhd_rx_cfile which writes only with 240mb/s. So 
everything should work as expected.
Btw: I also get overruns (at a lower rate) when sampling with lower sample rate 
and try to change the nice number.

Have you got any idea how to find and fix the bottleneck?

##

user@debian:~/tools/grc/target/bin$ sudo ./uhd_rx_cfile -f 244500 
--samp-rate=3000 /test/test.cfile -v

linux; GNU C++ version 4.8.2; Boost_105400; UHD_003.007.000-1-ga8caec5f

-- Operating over USB 3.
-- Initialize CODEC control...
-- Initialize Radio control...
-- Performing register loopback test... pass
-- Performing CODEC loopback test... pass
-- Asking for clock rate 32 MHz
-- Actually got clock rate 32 MHz
-- Performing timer loopback test... pass

UHD Warning:
The hardware does not support the requested RX sample rate:
Target sample rate: 30.00 MSps
Actual sample rate: 32.00 MSps
Using mid-point gain of 36.5 ( 0.0 - 73.0 )
Motherboard: B200 (E6R04Z7B2)
Daughterboard: B200 (RX2, A:A)
Rx gain: 36.5
Rx baseband frequency: 2.445G
Rx DDC frequency: -596.046m
Rx Sample Rate: 32M
Receiving samples until Ctrl-C
Writing 32-bit complex floats
Output filename: /test/test.cfile



#

iotop

  TID  PRIO  USER DISK READ  DISK WRITE  SWAPIN IOCOMMAND
  171 be/4 root3.91 K/s0.00 B/s  0.00 %  6.63 % [kworker/u16:3]
 2656 be/4 root0.00 B/s0.00 B/s  0.00 %  0.04 % X :0 -auth 
/var/run/lightdm~olisten tcp vt7 -novtswitch
 3502 be/4 root0.00 B/s  236.78 M/s  0.00 %  0.00 % python2 
./uhd_rx_cfile -f 2~000 /test/test.cfile -v




messung@debian:~/tools/grc/target/bin$ sudo hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   17832 MB in  2.00 seconds = 8921.71 MB/sec
 Timing buffered disk reads: 1526 MB in  3.00 seconds = 508.55 MB/sec

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

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


[Discuss-gnuradio] VOLK - vector multiplication

2014-03-20 Thread Nasi
 Hi all,

I am using ubuntu 13.04, GNUradio 3.7. 
I have a question related to VOLK library. 

When I create a vector, lets say:

vectorgr_complex y1;

Can I multiply this vector to another vector using VOLK?
Is there any good documentation for this?

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


Re: [Discuss-gnuradio] maxtrix inverse

2014-03-20 Thread Nasi
 Can we replace Eigen with VOLK in some extent?

-
NE

Понедельник, 17 марта 2014, 11:50 +01:00 от Moritz Fischer 
moritz.fisc...@ettus.com:
Hi BZS,

Eigen is a pretty good library. Other's that might come to might is
using blas/lapack in fortran or armadillo. I wouldn't expect too much
of a speedup when compared to Eigen though. For examples on how to use
fortran or armadillo with GNU Radio look at the gr-specest out of tree
module.

Cheers,

Moritz

On Mon, Mar 17, 2014 at 8:49 AM, 猪猪头  794226...@qq.com  wrote:
 hi,
 when i deal data in my block,i want to scramble the positions symbol in a
 frame,and  at receiver-end descramble these symbols,get correct  the
 order,for this purpose,i need to compute the inverse of  64*64 matrix,and
 when i used the eigen library ,it works slowly wnen compare with the  deal
 data speed of  gnuradio,anyone could give me some other libraries or other
 methods to satify my need,
 thanks ,
 BZS

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


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


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


Re: [Discuss-gnuradio] maxtrix inverse

2014-03-20 Thread Moritz Fischer
Well you could implement your Matrix inversion using VOLK, of course.
But to my knowledge you'd have to write the necessary kernels yourself.

Cheers,

Moritz


On Thu, Mar 20, 2014 at 12:13 PM, Nasi nesaz...@mail.ru wrote:

 Can we replace Eigen with VOLK in some extent?

 -
 NE

 Понедельник, 17 марта 2014, 11:50 +01:00 от Moritz Fischer 
 moritz.fisc...@ettus.com:

   Hi BZS,

 Eigen is a pretty good library. Other's that might come to might is
 using blas/lapack in fortran or armadillo. I wouldn't expect too much
 of a speedup when compared to Eigen though. For examples on how to use
 fortran or armadillo with GNU Radio look at the gr-specest out of tree
 module.

 Cheers,

 Moritz

 On Mon, Mar 17, 2014 at 8:49 AM, 猪猪头 
 794226...@qq.comhttps://e.mail.ru/compose?To=794226...@qq.com
 wrote:
  hi,
  when i deal data in my block,i want to scramble the positions symbol in a
  frame,and at receiver-end descramble these symbols,get correct the
  order,for this purpose,i need to compute the inverse of 64*64 matrix,and
  when i used the eigen library ,it works slowly wnen compare with the deal
  data speed of gnuradio,anyone could give me some other libraries or other
  methods to satify my need,
  thanks ,
  BZS
 
  ___
  Discuss-gnuradio mailing list
  Discuss-gnuradio@gnu.orghttps://e.mail.ru/compose?To=discuss%2dgnura...@gnu.org
  https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 

 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.orghttps://e.mail.ru/compose?To=discuss%2dgnura...@gnu.org
 https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



 --
 NE

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


[Discuss-gnuradio] [GSoC] Proposal: Measurement Toolbox

2014-03-20 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello community,

I've just pushed all changes to my GSoC proposal for a Measurement
Toolbox. You can get the full PDF on

https://github.com/marcusmueller/gsoc14-proposal/blob/master/gsoc14-proposal-mueller-announce.pdf?raw=true

or of course access the repository on

https://github.com/marcusmueller/gsoc14-proposal .

To give you a short Introduction: The idea is that doing measurements
and benchmarks of signal processing and computational performance is a
day-to-day job for every developer and researcher, and yet there is no
reasonable framework to do that reliably, distributed and reproducibly.

I therefore proposed an extension to the brand new gr-benchmark tools,
as well as a dispatcher architecture to let benchmarks run on
different machines and minimize the total simulation time or run every
benchmark on all machines to test things like VOLK performance.

Overall, I try to achieve a shift from the purely algorithm-oriented
benchmarking to more of an application performance benchmarking.

Furthermore, I will integrate the tools into existing user interfaces
(basically extending gnuradio-companion).

I'm looking forward to storms of criticism ;)
Greetings,
Marcus
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTKuoJEBQ6EdjyzlHtGysIALHn6/PW+HsTdLx7izRfHb+6
bHbWq0mq+h70RQZ8ythyeU4mak5oC33xwqE9FEixrnXRW5AMOmi0vRF91RnYrOi4
nzvYnfaBetjrVnLXJxq0cC9dxw9dq/vhvvZNv8CkNsidbjfIzGlmNX5yRhKTpGaW
1l4QozhxcYAl8uHWo4vU8/1fL62eOtNfGG18E7PyXDIrnvB1UbbGbjs+Qw5J+acJ
gkV1iBgTfrE6lIxw32kMTqRnhK9Xu9r+HW/7IF7oXfNTc2fsdaN7CT1heHpevLLm
j/A4d4jb1FqL88jWc6GRoa7q0C0agTIpn06BcvoDKXYfDQ92Mn29A2L7tKtXQXo=
=ehHO
-END PGP SIGNATURE-

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


[Discuss-gnuradio] GSoC: 2 Items

2014-03-20 Thread Michael Dickens
We have a great selection of GSoC'14 proposals coming in!  Here are a couple 
quick reminders, primarily for GSoC students (but, everyone can benefit):

1) Please note that the deadline for submitting your proposal to Google Melange 
is Friday, March 21, 19:00 UTC.

2) If you update your proposal off-Melange only (e.g., you include a link in 
Melange and maybe some static text, neither of which needs updating when you 
change the proposal), please add a comment to your Melange proposal page as 
well so that we reviewers know (we'll receive an email with the update notice, 
as well as can sort proposals by last update time correctly).  Posting to the 
GR discussion list is good for everyone, but it will help those of us doing for 
formal review -a lot- to have this new info on your Melange proposal page!

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


Re: [Discuss-gnuradio] uhd_rx_cfile: getting constant O-overflows using the USRP B200 with debian

2014-03-20 Thread Aditya Dhananjay
Sorry, I do not.


On Thu, Mar 20, 2014 at 6:23 AM, Ingmar Splitt 
ingmar.spl...@eas.iis.fraunhofer.de wrote:

  Hi Aditya,



 Thanks for your reply. Today I got the chance to measure the lower
 samplerates and here are the results:

 I measured the writingspeed on disk and the number of the Os for 1
 minute runtime. Running X and iotop in the back has nearly no impact.



 MHz   Mb/sO-count

 32  310 350

 16  180 107

 8106   32

 4  53 6

 2  27 3



 Do you have a hint for me for fixing this problem?



 regards,

 Ingmar



 *Von:* Aditya Dhananjay [mailto:adi...@cs.nyu.edu]
 *Gesendet:* Mittwoch, 19. März 2014 16:09

 *An:* Ingmar Splitt
 *Cc:* discuss-gnuradio@gnu.org
 *Betreff:* Re: [Discuss-gnuradio] uhd_rx_cfile: getting constant
 O-overflows using the USRP B200 with debian



 Hello Ingmar,



 Can you please repeat the experiment with lower sampling rates (say, 10
 Mhz)? Thanks.



 best,

 aditya





 On Wed, Mar 19, 2014 at 8:42 AM, Ingmar Splitt 
 ingmar.spl...@eas.iis.fraunhofer.de wrote:

 Hi developers,

 I have a fresh gnu radio installed with pybombs for my usrp B200. It runs
 on a Lenovo X230 with debian testing x64.
 When I use  uhd_rx_cfile i get constant O-overruns (output given below).

 The uhd-benchmark runs without problems:
 sudo ./benchmark_rate --duration 600 --rx_rate 3200
 So the USB3-Port isn't the Problem. Storing in ram is also fine:
 sudo ./uhd_rx_cfile -f 244500 --samp-rate=3000 /tmp/test.cfile
 I use a Samsung Evo 840 1TB (newest firmware) and did the
 SSD-Optimizations (https://wiki.debian.org/SSDOptimization) while
 searching for the error. HDPerm-, DD- and copy-benchmarks give 500mb/s for
 the first seconds, later constant ~400mb/s writing speed.
 Debugging with iotop brings (output below) 90% io-call-workload for the
 benchmarks, but 0% for the uhd_rx_cfile which writes only with 240mb/s. So
 everything should work as expected.
 Btw: I also get overruns (at a lower rate) when sampling with lower sample
 rate and try to change the nice number.

 Have you got any idea how to find and fix the bottleneck?

 ##

 user@debian:~/tools/grc/target/bin$ sudo ./uhd_rx_cfile -f 244500
 --samp-rate=3000 /test/test.cfile -v

 linux; GNU C++ version 4.8.2; Boost_105400; UHD_003.007.000-1-ga8caec5f

 -- Operating over USB 3.
 -- Initialize CODEC control...
 -- Initialize Radio control...
 -- Performing register loopback test... pass
 -- Performing CODEC loopback test... pass
 -- Asking for clock rate 32 MHz
 -- Actually got clock rate 32 MHz
 -- Performing timer loopback test... pass

 UHD Warning:
 The hardware does not support the requested RX sample rate:
 Target sample rate: 30.00 MSps
 Actual sample rate: 32.00 MSps
 Using mid-point gain of 36.5 ( 0.0 - 73.0 )
 Motherboard: B200 (E6R04Z7B2)
 Daughterboard: B200 (RX2, A:A)
 Rx gain: 36.5
 Rx baseband frequency: 2.445G
 Rx DDC frequency: -596.046m
 Rx Sample Rate: 32M
 Receiving samples until Ctrl-C
 Writing 32-bit complex floats
 Output filename: /test/test.cfile
 


 #

 iotop

   TID  PRIO  USER DISK READ  DISK WRITE  SWAPIN IOCOMMAND
   171 be/4 root3.91 K/s0.00 B/s  0.00 %  6.63 % [kworker/u16:3]
  2656 be/4 root0.00 B/s0.00 B/s  0.00 %  0.04 % X :0 -auth
 /var/run/lightdm~olisten tcp vt7 -novtswitch
  3502 be/4 root0.00 B/s  236.78 M/s  0.00 %  0.00 % python2
 ./uhd_rx_cfile -f 2~000 /test/test.cfile -v


 

 messung@debian:~/tools/grc/target/bin$ sudo hdparm -tT /dev/sda

 /dev/sda:
  Timing cached reads:   17832 MB in  2.00 seconds = 8921.71 MB/sec
  Timing buffered disk reads: 1526 MB in  3.00 seconds = 508.55 MB/sec

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



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


Re: [Discuss-gnuradio] maxtrix inverse

2014-03-20 Thread Tom Rondeau
On Thu, Mar 20, 2014 at 7:15 AM, Moritz Fischer
moritz.fisc...@ettus.com wrote:
 Well you could implement your Matrix inversion using VOLK, of course.
 But to my knowledge you'd have to write the necessary kernels yourself.

 Cheers,

 Moritz

No, but it would be nice to have a kernel for that.

The caveat is that VOLK is really meant for and designed to work with
vectors, not matrices. So you'd have to adapt the concept to work with
the matrix as a long vector and provide the dimensions to the kernel.

Tom



 On Thu, Mar 20, 2014 at 12:13 PM, Nasi nesaz...@mail.ru wrote:

 Can we replace Eigen with VOLK in some extent?

 -
 NE

 Понедельник, 17 марта 2014, 11:50 +01:00 от Moritz Fischer
 moritz.fisc...@ettus.com:

 Hi BZS,

 Eigen is a pretty good library. Other's that might come to might is
 using blas/lapack in fortran or armadillo. I wouldn't expect too much
 of a speedup when compared to Eigen though. For examples on how to use
 fortran or armadillo with GNU Radio look at the gr-specest out of tree
 module.

 Cheers,

 Moritz

 On Mon, Mar 17, 2014 at 8:49 AM, 猪猪头 794226...@qq.com wrote:
  hi,
  when i deal data in my block,i want to scramble the positions symbol in
  a
  frame,and at receiver-end descramble these symbols,get correct the
  order,for this purpose,i need to compute the inverse of 64*64 matrix,and
  when i used the eigen library ,it works slowly wnen compare with the
  deal
  data speed of gnuradio,anyone could give me some other libraries or
  other
  methods to satify my need,
  thanks ,
  BZS
 
  ___
  Discuss-gnuradio mailing list
  Discuss-gnuradio@gnu.org
  https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 

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



 --
 NE



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


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


Re: [Discuss-gnuradio] VOLK - vector multiplication

2014-03-20 Thread Tom Rondeau
On Thu, Mar 20, 2014 at 7:05 AM, Nasi nesaz...@mail.ru wrote:
 Hi all,

 I am using ubuntu 13.04, GNUradio 3.7.
 I have a question related to VOLK library.

 When I create a vector, lets say:

 vectorgr_complex y1;

 Can I multiply this vector to another vector using VOLK?
 Is there any good documentation for this?

 --
 NE

Myself and Nick McCarthy have published and presented on VOLK. Here's
a pretty good overview video of using it:
http://www.trondeau.com/blog/2013/6/12/nearly-50-minutes-of-volk.html

To answer your question, yes, building a vector like that is
acceptable for use with volk kernels as long as you are using the
correct data types. Be aware of alignment requirements, though, which
the link above explains.

Tom

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


Re: [Discuss-gnuradio] VOLK - vector multiplication

2014-03-20 Thread Aditya Dhananjay
I had the same question. Thanks! :)


On Thu, Mar 20, 2014 at 10:07 AM, Tom Rondeau t...@trondeau.com wrote:

 On Thu, Mar 20, 2014 at 7:05 AM, Nasi nesaz...@mail.ru wrote:
  Hi all,
 
  I am using ubuntu 13.04, GNUradio 3.7.
  I have a question related to VOLK library.
 
  When I create a vector, lets say:
 
  vectorgr_complex y1;
 
  Can I multiply this vector to another vector using VOLK?
  Is there any good documentation for this?
 
  --
  NE

 Myself and Nick McCarthy have published and presented on VOLK. Here's
 a pretty good overview video of using it:
 http://www.trondeau.com/blog/2013/6/12/nearly-50-minutes-of-volk.html

 To answer your question, yes, building a vector like that is
 acceptable for use with volk kernels as long as you are using the
 correct data types. Be aware of alignment requirements, though, which
 the link above explains.

 Tom

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


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


[Discuss-gnuradio] [GSoC] Proposal for radar toolbox, Update

2014-03-20 Thread Stefan Wunsch

Hi!

Thanks a lot for the feedback on the mailings list and on Google 
Melange! I have integrated your suggestions in the actual proposal on 
github [1].

Comments are still welcome! I left a note on the Melange page as well.

Best regards
Stefan W.

[1] https://github.com/stwunsch/gsoc-proposal

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


Re: [Discuss-gnuradio] VOLK - vector multiplication

2014-03-20 Thread Tom Rondeau
On Thu, Mar 20, 2014 at 10:09 AM, Aditya Dhananjay adi...@cs.nyu.edu wrote:
 I had the same question. Thanks! :)

One thing that I forgot to mention is that VOLK is written purely in
C, so C++ vectors as-is won't work. You need to index them, but
luckily, std::vector's are guaranteed to be contiguous in memory when
indexed.

In other words:

std::vectorgr_complex x;
volk_32fc_something_32fc(x[0], ...);

Tom



 On Thu, Mar 20, 2014 at 10:07 AM, Tom Rondeau t...@trondeau.com wrote:

 On Thu, Mar 20, 2014 at 7:05 AM, Nasi nesaz...@mail.ru wrote:
  Hi all,
 
  I am using ubuntu 13.04, GNUradio 3.7.
  I have a question related to VOLK library.
 
  When I create a vector, lets say:
 
  vectorgr_complex y1;
 
  Can I multiply this vector to another vector using VOLK?
  Is there any good documentation for this?
 
  --
  NE

 Myself and Nick McCarthy have published and presented on VOLK. Here's
 a pretty good overview video of using it:
 http://www.trondeau.com/blog/2013/6/12/nearly-50-minutes-of-volk.html

 To answer your question, yes, building a vector like that is
 acceptable for use with volk kernels as long as you are using the
 correct data types. Be aware of alignment requirements, though, which
 the link above explains.

 Tom

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



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


Re: [Discuss-gnuradio] catching unrecognized exception

2014-03-20 Thread Nemanja Savic
Dear gnuradioers,

I would like to ask againi if somebody can help me understand this:
thread[thread-per-block[0]: gr_block db_logger2 (62)]: caught
unrecognized exception

I have two blocks of db_logger type and it looks like only one catch this
unrecognized exception and another keeps working fine.

best and thank you


On Mon, Mar 3, 2014 at 12:55 PM, Nemanja Savic vlasi...@gmail.com wrote:

 Hi all guys,

 I have a block which is responsible to receive certain messages from other
 blocks and to write the data from the message into database. Sometimes the
 following exception occures and the block stops writing into database:

 thread[thread-per-block[0]: gr_block db_logger2 (62)]: caught
 unrecognized exception

 The structure of the block is really simple:

 def handle_msg(self, msg):
 message = pmt.pmt_symbol_to_string(msg)
 msg_lines = message.split('\n')
 try:
 sensor_id = msg_lines[0]
 vendor = msg_lines[2]
 sensor_type = msg_lines[3]
 time = msg_lines[1]
 #try:
 querry = INSERT INTO `%s`.`%s` (`id` ,`sens_id` ,`vendor`,
 `sensor_type`, `det_id`) VALUES (NULL , '%s', '%s', '%s','%s'); %
 (self._db_name, self._det_table, sensor_id, vendor, sensor_type, self._id)
 #print querry
 cur = self._con.cursor()
 cur.execute(querry)
 except mdb.Error, e:
 print Unexpected error while trying to insert into table
 print msg_lines
 print 50*'-'
 print Error %d: %s % (e.args[0],e.args[1])
 sys.exit(1)

 Is there any way to track this problem and find the cause?

 Best regards,

 --
 Nemanja Savić




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


Re: [Discuss-gnuradio] catching unrecognized exception

2014-03-20 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Nemanja,

your except syntax is wrong, most probably you wanted to use except
ExceptionType as e instead, refer to
http://docs.python.org/2/tutorial/errors.html

Anyway, have you tried surrounding all your handler code with a try
and catch not only the database related errors?

Greetings,
Marcus

On 20.03.2014 15:58, Nemanja Savic wrote:
 Dear gnuradioers,
 
 I would like to ask againi if somebody can help me understand
 this: thread[thread-per-block[0]: gr_block db_logger2 (62)]:
 caught unrecognized exception
 
 I have two blocks of db_logger type and it looks like only one
 catch this unrecognized exception and another keeps working fine.
 
 best and thank you
 
 
 On Mon, Mar 3, 2014 at 12:55 PM, Nemanja Savic vlasi...@gmail.com
 wrote:
 
 Hi all guys,
 
 I have a block which is responsible to receive certain messages
 from other blocks and to write the data from the message into
 database. Sometimes the following exception occures and the block
 stops writing into database:
 
 thread[thread-per-block[0]: gr_block db_logger2 (62)]: caught 
 unrecognized exception
 
 The structure of the block is really simple:
 
 def handle_msg(self, msg): message =
 pmt.pmt_symbol_to_string(msg) msg_lines = message.split('\n') 
 try: sensor_id = msg_lines[0] vendor = msg_lines[2] sensor_type =
 msg_lines[3] time = msg_lines[1] #try: querry = INSERT INTO
 `%s`.`%s` (`id` ,`sens_id` ,`vendor`, `sensor_type`, `det_id`)
 VALUES (NULL , '%s', '%s', '%s','%s'); % (self._db_name,
 self._det_table, sensor_id, vendor, sensor_type, self._id) #
 print querry cur = self._con.cursor() cur.execute(querry) except
 mdb.Error, e: print Unexpected error while trying to insert into
 table print msg_lines print 50*'-' print Error %d: %s %
 (e.args[0],e.args[1]) sys.exit(1)
 
 Is there any way to track this problem and find the cause?
 
 Best regards,
 
 -- Nemanja Savić
 
 
 
 
 
 
 ___ Discuss-gnuradio
 mailing list Discuss-gnuradio@gnu.org 
 https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTKwqdAAoJEBQ6EdjyzlHtxrcIALIUmmcUY3OJ8Bnr2g9tYhB1
rQkOyCaES+4b8bocZIyoUTF7M/N5FA9TmITxvnhZgqcvl0Kb1BaFc9F0H9Tbb4w4
EJtIV6HVLu1jSQAqwMT1jLT3ATbWzH108om/jDx7Wai3Jb64WrVaMxlDuJPJFlK/
fjVSrGXwcEZRt/8SVbeRmItipo9Y551rNerULo8/4VSiFz30QVyh/zFwNWAGwavA
xNQPA7OAq4SImyofUGU0E8IsyY9YMcgSlATZYSoKJDbcrFWtrfGJdnuOOV55bgKJ
l/SouuiObel3WLdzk6861vITRbxyVrPOdsts9ins/G9+Z1wZMKKRz/dh6POevmA=
=yTTM
-END PGP SIGNATURE-

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


[Discuss-gnuradio] Measuring the Level of a Peak in a Signal

2014-03-20 Thread George S. Williams
I imagine this is doable, but between experimenting and Google I have 
not been able to find a solution. The application is fairly simple- a 
FCD is connected to a QT GUI Sink. The FCD is tuned to the pilot 
frequency of a ATSC television channel. The attached image shows the 
resulting spectrum. The application is intended to assist in pointing an 
antenna to receive television broadcasts in a rural area.


What I would like to do is measure the peak and display a number that 
represents its level. I have been able to average the entire signal but 
can't figure out how to measure the peak. Any advice would be appreciated.


Thanks,
George

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


Re: [Discuss-gnuradio] rx_ofdm Does Not Work Past Synchronizer

2014-03-20 Thread Jonathan Fox
So I found the loopback script, tied the ends together with a multiply
const block and was successful in modding and demodding that sinusoidal
waveform. Added a UHD source and sink, success again. Then I split the
process into two separate GRC files, a TX and a RX script. Everything
works. I am extremely happy right now to see OFDM work. Thank you for the
nudge in the right direction.

So the next question I have is why I have success with the hierarchal
blocks in the loopback script but not so much with rx_ofdm or that custom
loopback I posted? Even with a binary file source with the modulated
signal, that rx script won't work. I wouldn't say too terribly important
but it is interesting to learn how OFDM works. But for what I am working
on, those hierarchical blocks will suffice.

Thanks again.

Jon


On Thu, Mar 20, 2014 at 5:05 AM, Martin Braun martin.br...@ettus.comwrote:

 A good way to test is to use the hier blocks for OFDM (you still need to
 reduce amplitude), they will set up everything in a way that will work
 for sure. See the loopback example in gr-digital/examples/ofdm.

 M

 On 03/19/2014 08:41 PM, Jonathan Fox wrote:
  Thanks for the responses.
 
  When I use the USRPs the UHD sink is placed after the OFDM Cyclic
  Prefixer, right after the Mutliply Const (50m). I haven't changed any
  settings because I remember reading in a few previous emails that the
  most common question people ask is Did you change anything?
 
  Sadly, the delay wasn't the case, at least for the loopback mode.
 
  I reduced the amplitude of the signal by an additional 0.02, so the
  multiply constant is at 0.03 as opposed to 0.05. It brought the clipping
  well within +1, -1. Before the signal clipped past -1 but never rose
  above +1. No effect but I am not ruling out that it wouldn't help.
 
  The video is interesting enough that I am going to continue watching
  after the first half, maybe I can figure out more from there.
 
  Jon
 
 
  On Wed, Mar 19, 2014 at 7:50 AM, Martin Braun martin.br...@ettus.com
  mailto:martin.br...@ettus.com wrote:
 
  On 03/19/2014 12:25 AM, Jonathan Fox wrote:
   So I have the stock python scripts (tx_ofdm and rx_ofdm) located
  in the
   gr-digital examples and put USRP sources and sinks in the
 appropriate
   spots. I left sampling alone (100K for TX, 3.2M for RX) and had the
   TX/RX frequency at 500 MHz. The USRPs used are N210s with WBX
   daughterboards. I tested the USRP used for TX out by outputting a
  signal
   to another and looking at it on the GNU Radio spectrum analyzer.
 Also,
   this is through SMA cables and a 30 dB attenuator, no over the air
   transmission. I placed file sinks after each block in the process;
  each
   file is a binary file. After multiple runs I felt like something
  wasn't
   working after looking at the binary files.
 
  Maybe you're probably screwing up your tx signal by clipping,
 although I
  can't say for sure from your flow graphs (where exactly do you put
 the
  UHD sink?) See
 
 http://video.fosdem.org/2014/AW1125/Sunday/Tutorial_OFDM_Packet_Transceivers.webm
 ,
  starting around ~27 mins for an explanation, or search the mailing
 list
  archive.
 
  Martin
 
  
   When I execute, only the file sinks placed after the Schmidl  Cox
  OFDM
   Synchronizer freq_offset and detect have data in them, at least
 their
   files have some size to them, implying something has been written.
 The
   file sinks after FFT (or the header/payload demux) have no data, 0
 KB.
  
   When I discovered that the receive didn't work, I took the grc file
   another user made back in October with both TX mod and RX demod in
 the
   same flowgraph to see if that would work (files attached). Again
 same
   issue, all the binary files after the FFT have no data so
 something is
   getting screwed up in my demod.
  
   Has any user on this list run into this issue before or can offer
 some
   insight to why the receiver is failing?
  
   Thank you,
  
   Jon
  
   Attached is the python script, grc file, and screen shot of the
 TXRX
   combo in GRC.
  
  
   ___
   Discuss-gnuradio mailing list
   Discuss-gnuradio@gnu.org mailto:Discuss-gnuradio@gnu.org
   https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
  
 
 
  ___
  Discuss-gnuradio mailing list
  Discuss-gnuradio@gnu.org mailto:Discuss-gnuradio@gnu.org
  https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 
 


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

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org

[Discuss-gnuradio] [GSoC] proposal - VNA

2014-03-20 Thread Bálint Horváth
Hello Everyone,

I am a first year PHd student from TU Budapest. I would like to participate
in the GSoC 2014 in the Vector network analyzer project. I have uploaded my
proposel to a public repository. Any comments and suggestions are welcome!
The link to my repository:
https://github.com/horvlint/gsoc2014

Thank you in advance!

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


Re: [Discuss-gnuradio] Measuring the Level of a Peak in a Signal

2014-03-20 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi George,

practical implementation aside: Thanks to Parseval's theorem, looking
at relative signal strength in frequency and time domain is equivalent.
You can just use a number sink or time sink with a low pass filter to
visualize the received signal power of the carrier. If you're feeling
like doing things completely right, you can automatically fine tune to
the carrier by using PLL carrier tracking ;)

As for implementation: there is the max block. What you could do is:
PLL - low pass - complex to mag² - integrate - stream to vector -
max/argmax (depends on what you actually want to do)
but that will not update your maximum during runtime but only find
the maximum within a vector.

However, implementing an always output the (abs)maximum float value
block is really easy as a python block - in fact, doing that might be
a great start into developing GNU Radio blocks. Doing it somewhat
optimized might need some thought, though ;)

Greetings,
Marcus

PS: please make sure not to respond to previous posts when bringing up
a new topic; otherwise, your post will appear in that thread and is
more likely to be ignored.

On 20.03.2014 16:05, George S. Williams wrote:
 I imagine this is doable, but between experimenting and Google I
 have not been able to find a solution. The application is fairly
 simple- a FCD is connected to a QT GUI Sink. The FCD is tuned to
 the pilot frequency of a ATSC television channel. The attached
 image shows the resulting spectrum. The application is intended to
 assist in pointing an antenna to receive television broadcasts in a
 rural area.
 
 What I would like to do is measure the peak and display a number
 that represents its level. I have been able to average the entire
 signal but can't figure out how to measure the peak. Any advice
 would be appreciated.
 
 Thanks, George
 
 
 
 ___ Discuss-gnuradio
 mailing list Discuss-gnuradio@gnu.org 
 https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTKxeHAAoJEBQ6EdjyzlHtYBgIALINVGpZDTQ962aMmNQfCiNm
hePnKufnAgC6qL2PWgbnh6CaoIAgx2PF6O4RQlE+fO/qepves6KR5RG5zu5AnIqJ
QEmBWlkxXn8GawBi27XDKc5X3hECUZzNVDrvXixePolYh/sCgQZdyYksWLEQ10fV
nVCSvXVtXyEtNZqeabNGwk0xcaeiV85POuHm2j6QWOOGKjvUUCE3za33e0id7ras
9ykXyph1Nd/3r1Hoj+su9GiKKaWYwRLU/TJGdSpxhiUPk+XxHJEg1BkUyDX1MCFk
KRaxadKjtJ5kFP/MhZXTqjY4trsS2aMviiwwNKVgD0iLUocOjJyDkTmuly6N8Ks=
=ma6/
-END PGP SIGNATURE-

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


Re: [Discuss-gnuradio] VOLK - vector multiplication

2014-03-20 Thread Nasi
 Thanks!

As I see you apply it to the first element of x as in 
volk_32fc_something_32fc(x[0], ...);.
I want to multiply the whole vector like as a inner product of two vectors. Is 
it possible?

-
NE


Четверг, 20 марта 2014, 10:28 -04:00 от Tom Rondeau t...@trondeau.com:
On Thu, Mar 20, 2014 at 10:09 AM, Aditya Dhananjay  adi...@cs.nyu.edu  wrote:
 I had the same question. Thanks! :)

One thing that I forgot to mention is that VOLK is written purely in
C, so C++ vectors as-is won't work. You need to index them, but
luckily, std::vector's are guaranteed to be contiguous in memory when
indexed.

In other words:

std::vectorgr_complex x;
volk_32fc_something_32fc(x[0], ...);

Tom



 On Thu, Mar 20, 2014 at 10:07 AM, Tom Rondeau  t...@trondeau.com  wrote:

 On Thu, Mar 20, 2014 at 7:05 AM, Nasi  nesaz...@mail.ru  wrote:
  Hi all,
 
  I am using ubuntu 13.04, GNUradio 3.7.
  I have a question related to VOLK library.
 
  When I create a vector, lets say:
 
  vectorgr_complex y1;
 
  Can I multiply this vector to another vector using VOLK?
  Is there any good documentation for this?
 
  --
  NE

 Myself and Nick McCarthy have published and presented on VOLK. Here's
 a pretty good overview video of using it:
  http://www.trondeau.com/blog/2013/6/12/nearly-50-minutes-of-volk.html

 To answer your question, yes, building a vector like that is
 acceptable for use with volk kernels as long as you are using the
 correct data types. Be aware of alignment requirements, though, which
 the link above explains.

 Tom

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




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


Re: [Discuss-gnuradio] VOLK - vector multiplication

2014-03-20 Thread Tom Rondeau
On Thu, Mar 20, 2014 at 12:51 PM, Nasi nesaz...@mail.ru wrote:
 Thanks!

 As I see you apply it to the first element of x as in
 volk_32fc_something_32fc(x[0], ...);.
 I want to multiply the whole vector like as a inner product of two vectors.
 Is it possible?

 -
 NE

Not sure I exactly follow your comment, but you can do something like this:

int N;
vectorgr_complex x(N);
vectorgr_complex y(N);
vectorgr_complex z(N);

// fill x and y with stuff

volk_32fc_x2_dot_prod_32fc(z[0], x[0], y[0], N);

That will take the dot product of x and y and put the results in z.

Tom


 Четверг, 20 марта 2014, 10:28 -04:00 от Tom Rondeau t...@trondeau.com:

 On Thu, Mar 20, 2014 at 10:09 AM, Aditya Dhananjay adi...@cs.nyu.edu
 wrote:
 I had the same question. Thanks! :)

 One thing that I forgot to mention is that VOLK is written purely in
 C, so C++ vectors as-is won't work. You need to index them, but
 luckily, std::vector's are guaranteed to be contiguous in memory when
 indexed.

 In other words:

 std::vectorgr_complex x;
 volk_32fc_something_32fc(x[0], ...);

 Tom



 On Thu, Mar 20, 2014 at 10:07 AM, Tom Rondeau t...@trondeau.com wrote:

 On Thu, Mar 20, 2014 at 7:05 AM, Nasi nesaz...@mail.ru wrote:
  Hi all,
 
  I am using ubuntu 13.04, GNUradio 3.7.
  I have a question related to VOLK library.
 
  When I create a vector, lets say:
 
  vectorgr_complex y1;
 
  Can I multiply this vector to another vector using VOLK?
  Is there any good documentation for this?
 
  --
  NE

 Myself and Nick McCarthy have published and presented on VOLK. Here's
 a pretty good overview video of using it:
 http://www.trondeau.com/blog/2013/6/12/nearly-50-minutes-of-volk.html

 To answer your question, yes, building a vector like that is
 acceptable for use with volk kernels as long as you are using the
 correct data types. Be aware of alignment requirements, though, which
 the link above explains.

 Tom

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





 --
 NE

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


[Discuss-gnuradio] Draft Proposal for MIMO Transceiver

2014-03-20 Thread kunal sankhe
Hello,

Below is the link for my proposal for GSoC 14.

http://www.google-melange.com/gsoc/proposal/review/student/google/gsoc2014/kunalsankhe/5629499534213120

Please let me know your feedback on this.

Thanks and regards,
Kunal Sankhe
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] No Dev Call this March

2014-03-20 Thread Martin Braun
Hi everyone,

Sorry for the short notice, but there will be no Dev Call today. With the
hackfest, WSR and the recent release, we've been discussing a lot of things
all the time, and don't really have important stuff lined up for this call.

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


Re: [Discuss-gnuradio] VOLK - vector multiplication

2014-03-20 Thread Nasi
 I've got this error:

/tmp/ccE79VRG.o: In function `main':
t2_rx_ompalg.cc:(.text+0x6a5): undefined reference to 
`volk_32fc_x2_dot_prod_32fc'
collect2: error: ld returned 1 exit status I was running it inside main 
function as
g++ -std=c++11 t2_rx_ompalg.cc -o t2_rx_ompalg -lm -lfftw3
 
Do you know what is it for?

-
NE


Thu, 20 Mar 2014 13:04:02 -0400 от Tom Rondeau t...@trondeau.com:
On Thu, Mar 20, 2014 at 12:51 PM, Nasi  nesaz...@mail.ru  wrote:
 Thanks!

 As I see you apply it to the first element of x as in
 volk_32fc_something_32fc(x[0], ...);.
 I want to multiply the whole vector like as a inner product of two vectors.
 Is it possible?

 -
 NE

Not sure I exactly follow your comment, but you can do something like this:

int N;
vectorgr_complex x(N);
vectorgr_complex y(N);
vectorgr_complex z(N);

// fill x and y with stuff

volk_32fc_x2_dot_prod_32fc(z[0], x[0], y[0], N);

That will take the dot product of x and y and put the results in z.

Tom


 Четверг, 20 марта 2014, 10:28 -04:00 от Tom Rondeau  t...@trondeau.com :

 On Thu, Mar 20, 2014 at 10:09 AM, Aditya Dhananjay  adi...@cs.nyu.edu 
 wrote:
 I had the same question. Thanks! :)

 One thing that I forgot to mention is that VOLK is written purely in
 C, so C++ vectors as-is won't work. You need to index them, but
 luckily, std::vector's are guaranteed to be contiguous in memory when
 indexed.

 In other words:

 std::vectorgr_complex x;
 volk_32fc_something_32fc(x[0], ...);

 Tom



 On Thu, Mar 20, 2014 at 10:07 AM, Tom Rondeau  t...@trondeau.com  wrote:

 On Thu, Mar 20, 2014 at 7:05 AM, Nasi  nesaz...@mail.ru  wrote:
  Hi all,
 
  I am using ubuntu 13.04, GNUradio 3.7.
  I have a question related to VOLK library.
 
  When I create a vector, lets say:
 
  vectorgr_complex y1;
 
  Can I multiply this vector to another vector using VOLK?
  Is there any good documentation for this?
 
  --
  NE

 Myself and Nick McCarthy have published and presented on VOLK. Here's
 a pretty good overview video of using it:
  http://www.trondeau.com/blog/2013/6/12/nearly-50-minutes-of-volk.html

 To answer your question, yes, building a vector like that is
 acceptable for use with volk kernels as long as you are using the
 correct data types. Be aware of alignment requirements, though, which
 the link above explains.

 Tom

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





 --
 NE


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


Re: [Discuss-gnuradio] rx_ofdm Does Not Work Past Synchronizer

2014-03-20 Thread Martin Braun
On 03/20/2014 05:14 PM, Jonathan Fox wrote:
 So I found the loopback script, tied the ends together with a multiply
 const block and was successful in modding and demodding that sinusoidal
 waveform. Added a UHD source and sink, success again. Then I split the
 process into two separate GRC files, a TX and a RX script. Everything
 works. I am extremely happy right now to see OFDM work. Thank you for
 the nudge in the right direction.
 
 So the next question I have is why I have success with the hierarchal
 blocks in the loopback script but not so much with rx_ofdm or that
 custom loopback I posted? Even with a binary file source with the
 modulated signal, that rx script won't work. I wouldn't say too terribly
 important but it is interesting to learn how OFDM works. But for what I
 am working on, those hierarchical blocks will suffice.

Well, it's hard to say from a distance, but you could check the output
on the header path after the header/payload demuxer to see what's going on.

M


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


Re: [Discuss-gnuradio] VOLK - vector multiplication

2014-03-20 Thread Martin Braun
On 03/20/2014 07:16 PM, Nasi wrote:
 I've got this error:
 
 
 /tmp/ccE79VRG.o: In function `main':
 
 t2_rx_ompalg.cc:(.text+0x6a5): undefined reference to
 `volk_32fc_x2_dot_prod_32fc'
 collect2: error: ld returned 1 exit status
 
 I was running it inside main function as
 
 g++ -std=c++11 t2_rx_ompalg.cc -o t2_rx_ompalg -lm -lfftw3

You need to link to VOLK, too.

M


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


[Discuss-gnuradio] UHD blocks

2014-03-20 Thread Sara Chérif
My friend has installed GNU Radio from this link
http://blogs.bu.edu/mhirsch/2012/07/installing-gnu-radio-in-ubuntu-12-04-x64/comment-page-1/
Then when running GNURadio  , she found UHD blocks in it .

1- Does this mean that this link has installed GNURadio  UHD on Ubuntu ,
and that there is no need to install UHD ?
2- Is there any command that she can run in terminal to check if UHD is
installed?

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


Re: [Discuss-gnuradio] UHD blocks

2014-03-20 Thread Marcus D. Leech

On 03/20/2014 03:56 PM, Sara Chérif wrote:

My friend has installed GNU Radio from this link
http://blogs.bu.edu/mhirsch/2012/07/installing-gnu-radio-in-ubuntu-12-04-x64/comment-page-1/
Then when running GNURadio  , she found UHD blocks in it .

1- Does this mean that this link has installed GNURadio  UHD on 
Ubuntu , and that there is no need to install UHD ?
2- Is there any command that she can run in terminal to check if UHD 
is installed?


Thanks ! :)


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

Try uhd_usrp_probe



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

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


Re: [Discuss-gnuradio] UHD blocks

2014-03-20 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Sara,

although that guide is correct (it just uses the popular and
well-working build-gnuradio script), I'm always a little surprised
where people find information. For later reference: The official GNU
Radio website is http://gnuradio.org/ and the official installation
instructions can be found under
http://gnuradio.org/redmine/projects/gnuradio/wiki/InstallingGR . Your
friend did a source build, which is nice, because she now has the most
current version of GNU Radio :-) .

UHD comes with a lot of tools, starting with uhd_. So typing uhd_ and
then tab should show you a lot of programs, for example
uhd_find_devices .

To find out if UHD is actually working in GNU Radio, just open the
gnuradio-companion, use the search tool (magnifier logo) and search
for uhd.

Greetings,
Marcus


On 20.03.2014 20:56, Sara Chérif wrote:
 My friend has installed GNU Radio from this link 
 http://blogs.bu.edu/mhirsch/2012/07/installing-gnu-radio-in-ubuntu-12-04-x64/comment-page-1/

 
Then when running GNURadio  , she found UHD blocks in it .
 
 1- Does this mean that this link has installed GNURadio  UHD on
 Ubuntu , and that there is no need to install UHD ? 2- Is there any
 command that she can run in terminal to check if UHD is installed?
 
 Thanks ! :)
 
 
 
 ___ Discuss-gnuradio
 mailing list Discuss-gnuradio@gnu.org 
 https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTK0pPAAoJEBQ6EdjyzlHtBNgH/0BIAwIMd8Q9iusjb2hbc/A9
sxCyrVgnRvUQhTeNytW7bXScuccMQ/CMWE+0PGhaOu2X5640sQuPbJVh/sJJAKk9
XzOksIucm1MaKwILrBv16hgI7qKOV7P9aFhF+K9UpSuPj8h+WmfdLK1tauCl69hE
cim1Rwfp4mnXUaA6IJ7HXX/E886lPAl3j/wqEWL8m/wT3khCU7muP7T3btZnXv7e
jryZ6g/ytnSAJLqI2p+bYyVBqreaVFiG756EvrHbgE0RAqoJsecxF87VozeRcNyz
FzjZ2kxpmW0Lin704CTGful+Cc5WoCyYZ/aUCY36p/ovhGsDnuLOTylTOenm4rM=
=9Ty0
-END PGP SIGNATURE-

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


[Discuss-gnuradio] Update to GSoC Poposal, Signal Analysis and Visualization Tool

2014-03-20 Thread Dean Nida
I got some good comments and feedback on my GSoC proposal. I updated it and
it is available here:

https://docs.google.com/document/d/1D4L2mfbuubQiiPQimguDsTGT_SVz831eUa3NVN8Kvqg/edit?usp=sharing

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