[Discuss-gnuradio] Compile gr_baz on OS X

2013-09-27 Thread Nigel Magnay
Hi!

I have a shiny new USRP B200, for which I've successfully managed to get
working with gnuradio on a Mac by wrangling with homebrew and such.

What I haven't been able to do, is make use of gr_baz borIP - which I think
I need to run the HDSDR software (I have it up under Wine).

gnu-radio has compiled correctly, but the cmake generated gr-baz doesn't
seem to compile.

I suspect this might be to do with the c++ compiler being clang not gcc,
but I'm not sure (changing this didn't seem to help). It spits out the
error below, so I can't figure out how come gnuradio is happy with it, but
the gr_baz mod
ul
e is not
.
NB: I've compiled gnuradio to a version that's API compatible with gr_baz.


I'm not familiar with cmake enough to follow what I should be tweaking. I
appreciate this is a bit of a 3rd party software issue, but I wondered if
anyone else had any hints, as I'm pretty sure it must be something trivial.

TIA,

Nigel


-<%>- make

[ 2%] Building CXX object
lib/CMakeFiles/gnuradio-baz.dir/baz_print_char.cc.o
In file included from
/Users/magnayn/dev/ettus/gr-baz2/lib/baz_print_char.cc:37:
In file included from
/Users/magnayn/dev/ettus/gr-baz2/lib/baz_print_char.h:31:
In file included from /usr/local/include/gnuradio/gr_sync_block.h:27:
In file included from /usr/local/include/gnuradio/gr_block.h:27:
In file included from /usr/local/include/gnuradio/gr_basic_block.h:27:
In file included from /usr/local/include/gnuradio/gr_runtime_types.h:27:
In file included from /usr/local/include/gnuradio/gr_types.h:31:
In file included from /usr/local/include/gnuradio/gr_complex.h:25:
In file included from /usr/include/c++/4.2.1/complex:48:
In file included from /usr/include/c++/4.2.1/cmath:53:
/usr/local/include/gnuradio/math.h:60:10: error: 'inline' can only appear
on functions
static inline float
^
/usr/local/include/gnuradio/math.h:61:3: error: redefinition of
'fast_atan2f' as different kind of symbol
fast_atan2f(gr_complex z)
^
/usr/local/include/gnuradio/math.h:58:24: note: previous definition is here
GR_RUNTIME_API float fast_atan2f(float y, float x);
^
/usr/local/include/gnuradio/math.h:61:15: error: use of undeclared
identifier 'gr_complex'
fast_atan2f(gr_complex z)
^
/usr/local/include/gnuradio/math.h:61:28: error: expected ';' after top
level declarator
fast_atan2f(gr_complex z)
^
In file included from
/Users/magnayn/dev/ettus/gr-baz2/lib/baz_print_char.cc:37:
In file included from
/Users/magnayn/dev/ettus/gr-baz2/lib/baz_print_char.h:31:
In file included from /usr/local/include/gnuradio/gr_sync_block.h:27:
In file included from /usr/local/include/gnuradio/gr_block.h:27:
In file included from /usr/local/include/gnuradio/gr_basic_block.h:27:
In file included from /usr/local/include/gnuradio/gr_runtime_types.h:27:
In file included from /usr/local/include/gnuradio/gr_types.h:31:
In file included from /usr/local/include/gnuradio/gr_complex.h:25:
In file included from /usr/include/c++/4.2.1/complex:48:
/usr/include/c++/4.2.1/cmath:99:11: error: no member named 'acos' in the
global namespace
using ::acos;
~~^
/usr/include/c++/4.2.1/cmath:115:11: error: no member named 'asin' in the
global namespace
using ::asin;
~~^
/usr/include/c++/4.2.1/cmath:131:11: error: no member named 'atan' in the
global namespace
using ::atan;
~~^
/usr/include/c++/4.2.1/cmath:147:11: error: no member named 'atan2' in the
global namespace
using ::atan2;
~~^
/usr/include/c++/4.2.1/cmath:164:11: error: no member named 'ceil' in the
global namespace
using ::ceil;
~~^
/usr/include/c++/4.2.1/cmath:180:11: error: no member named 'cos' in the
global namespace
using ::cos;
~~^
/usr/include/c++/4.2.1/cmath:196:11: error: no member named 'cosh' in the
global namespace
using ::cosh;
~~^
/usr/include/c++/4.2.1/cmath:212:11: error: no member named 'exp' in the
global namespace
using ::exp;
~~^
/usr/include/c++/4.2.1/cmath:228:11: error: no member named 'fabs' in the
global namespace
using ::fabs;
~~^
/usr/include/c++/4.2.1/cmath:244:11: error: no member named 'floor' in the
global namespace
using ::floor;
~~^
/usr/include/c++/4.2.1/cmath:260:11: error: no member named 'fmod' in the
global namespace
using ::fmod;
~~^
/usr/include/c++/4.2.1/cmath:270:11: error: no member named 'frexp' in the
global namespace
using ::frexp;
~~^
/usr/include/c++/4.2.1/cmath:286:11: error: no member named 'ldexp' in the
global namespace
using ::ldexp;
~~^
/usr/include/c++/4.2.1/cmath:302:11: error: no member named 'log' in the
global namespace
using ::log;
~~^
/usr/include/c++/4.2.1/cmath:318:11: error: no member named 'log10' in the
global namespace
using ::log10;
~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [lib/CMakeFiles/gnuradio-baz.dir/baz_print_char.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-baz.dir/all] Error 2
make: *** [all] Error 2
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] GNU Radio LiveDVD Updated

2013-09-27 Thread Johnathan Corgan
The GNU Radio LiveDVD has been updated:

http://gnuradio.org/releases/gnuradio/iso/ubuntu-12.04.3-desktop-amd64-gnuradio-2013-0926.torrent

Based on the Ubuntu 12.04.3 LTS 64-bit operating system, the GNU Radio
LiveDVD is a bootable SDR environment suitable for demonstration and
experimentation, contained on a read-only medium.

This release now has:

* GNU Radio snapshot 3.7.2git-57-g1aa07b36
* gqrx snapshot v2.2.0-25-g5d6be87a
* gr-air-modes commit ge47992d8 ('next' branch)
* gr-iqbal snapshot v0.37.1-4-ga1bca1f9
* gr-osmosdr snapshot v0.1.0-11-g04b4c8b6
* hackrf snapshot v2013.07.1-16-gd5cebd92
* osmo-sdr snapshot v0.1-7-gcd37e9fa
* rtl-sdr snapshot v0.5.0-4-g4914b5dr
* uhd release 3.5.4 commit ga219f16c

-- 
Johnathan Corgan, Corgan Labs
SDR Training and Development Services
http://corganlabs.com
Visit us at GRCON13 Oct. 1-4 http://ow.ly/ntmpL



signature.asc
Description: OpenPGP digital signature
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Noise/random sources

2013-09-27 Thread Tom Rondeau
On Thu, Sep 26, 2013 at 11:08 PM, Jared Clements
 wrote:
> Forgot to cc the list.
>
> -- Forwarded message --
> From: "Jared Clements" 
> Date: Sep 26, 2013 7:27 PM
> Subject: Re: [Discuss-gnuradio] Noise/random sources
> To: "Marcus D. Leech" 
>
> Calling them with a seed of zero or greater will give the same "random"
> stream, seeding with different negative numbers gives different random
> sequences.
>
> Jared
>
> On Sep 26, 2013 7:17 PM, "Marcus D. Leech"  wrote:
>>
>> When I use multiple noise sources in a flow-graph, each with a different
>> seed, are they actually independent, or do they just call "random" or
>> "lrand" or
>>   something, and thus setting different seeds has no effect?


As Jared said, the seed has to be a negative number:
http://gnuradio.org/doc/doxygen/classgr_1_1analog_1_1noise__source__c.html


-- 
Tom
GRCon13 Oct. 1 - 4
http://www.trondeau.com/grcon13

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


Re: [Discuss-gnuradio] PCB Log Periodic Antenna connection

2013-09-27 Thread Dincer Beken
Hi again,

Just to be clear,
do I just need to solder the legs of the small SMA connector with the holes in 
the PCB Log Antenna?
Just as much that it can barely hold?

Regards,


Von: Dincer Beken
Gesendet: Freitag, 27. September 2013 16:50
An: Discuss-gnuradio@gnu.org
Betreff: PCB Log Periodic Antenna connection


Hi all,

I have an WA5VJB PCB Log Periodic Antenna including a SMA-F to SMA-M cable. I 
am using a N210 USRP and the SBX daughterboard. I have a second SMA-M/SMA-M 
cable.

How can I connect the Antenna to the Daughterboard / USRP ? Is there a way 
without soldering the included SMA cable to the antenna? I have also an SMA-M 
to SMA-M cable.

My intention was to connect the SMA-F/SMA-M cable to the daughterboard. Then I 
wanted to concatanate the second SMA-M/SMA-M cable to the first SMA-F/SMA-M 
cable. Finally, I wanted to connect the PCB Log Periodic antenna to the SMA-M / 
SMA-M cable via the connector (the small connector with the 4 legs).

I am afraid of making wrong terminations and to damage the Antenna ports. Also 
if I have to solder something onto the antenna, can anyone please explain how 
exactly I can do that?

Regards,
Dincer

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


Re: [Discuss-gnuradio] PCB Log Periodic Antenna connection

2013-09-27 Thread Marcus D. Leech

On 09/27/2013 10:52 AM, Dincer Beken wrote:


Hi again,

Just to be clear,

do I just need to solder the legs of the small SMA connector with the 
holes in the PCB Log Antenna?


Just as much that it can barely hold?

Regards,


The legs and the center conductor need to be soldered.




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


[Discuss-gnuradio] PCB Log Periodic Antenna connection

2013-09-27 Thread Dincer Beken

Hi all,

I have an WA5VJB PCB Log Periodic Antenna including a SMA-F to SMA-M cable. I 
am using a N210 USRP and the SBX daughterboard. I have a second SMA-M/SMA-M 
cable.

How can I connect the Antenna to the Daughterboard / USRP ? Is there a way 
without soldering the included SMA cable to the antenna? I have also an SMA-M 
to SMA-M cable.

My intention was to connect the SMA-F/SMA-M cable to the daughterboard. Then I 
wanted to concatanate the second SMA-M/SMA-M cable to the first SMA-F/SMA-M 
cable. Finally, I wanted to connect the PCB Log Periodic antenna to the SMA-M / 
SMA-M cable via the connector (the small connector with the 4 legs).

I am afraid of making wrong terminations and to damage the Antenna ports. Also 
if I have to solder something onto the antenna, can anyone please explain how 
exactly I can do that?

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


Re: [Discuss-gnuradio] PCB Log Periodic Antenna connection

2013-09-27 Thread Dincer Beken
Thank you Marcus,

but I have still the following questions:

Can I connect the Antenna then with the SMA-M/SMA-M cable to the daughterboard 
RX antenna port?

What kind of a stand should I use?

Can I put the Antenna onto the (plastic) GROUND PLANE (used against ESD)?

This is a bonus question:
Is it enough, that the antenna stands up? Does the SMA cable need to have a 
specific degree of bending?

Regards,
Dincer
Von: discuss-gnuradio-bounces+dbeken=blackned...@gnu.org 
[mailto:discuss-gnuradio-bounces+dbeken=blackned...@gnu.org] Im Auftrag von 
Marcus D. Leech
Gesendet: Freitag, 27. September 2013 16:55
An: discuss-gnuradio@gnu.org
Betreff: Re: [Discuss-gnuradio] PCB Log Periodic Antenna connection

On 09/27/2013 10:52 AM, Dincer Beken wrote:
Hi again,

Just to be clear,
do I just need to solder the legs of the small SMA connector with the holes in 
the PCB Log Antenna?
Just as much that it can barely hold?

Regards,

The legs and the center conductor need to be soldered.






--

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] Passive radar using my hacked dual coherent channel rtl_sdr dongle

2013-09-27 Thread Marcus D. Leech

On 09/26/2013 11:27 PM, Jared Clements wrote:


Since they're clocked together I would assume that your alignment 
would consist of interpolation on the primary FM signal, what do you 
do to remove it later?  If your code is too messy to release can you 
share a block diagram?


Thanks,

Jared


I just re-did my tests with a pair of synched dongles, and instead of 
inject RF externally, I just tuned it close to the 2nd harmonic of the

  clock.

That produced quite stable, near-perfect, correlation, once I adjusted 
the phase to peak up the correlator output.  This puzzles me greatly.


This implies that both dongles are properly phase-locked to the master 
clock, and that the leakage  is being coherently downconverted, and

  that no samples are being dropped.

So, my phase-coherence issues are with my external RF injection.  Which 
I just plain don't understand



--
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] Passive radar using my hacked dual coherent channel rtl_sdr dongle

2013-09-27 Thread Juha Vierinen
Cool.

I wrote up a few blog posts about the tests I did this week:

http://kaira.sgo.fi/2013/09/16-dual-channel-coherent-digital.html
http://kaira.sgo.fi/2013/09/passive-radar-with-16-dual-coherent.html

PS. I tried adding a third dongle to run with the same master clock. I
didn't do it correctly this time either by using an active signal splitter,
as that would increase the total cost :). I'll hopefully have some more to
report next week.

juha


On Fri, Sep 27, 2013 at 2:16 PM, Marcus D. Leech  wrote:

> On 09/26/2013 11:27 PM, Jared Clements wrote:
>
>>
>> Since they're clocked together I would assume that your alignment would
>> consist of interpolation on the primary FM signal, what do you do to remove
>> it later?  If your code is too messy to release can you share a block
>> diagram?
>>
>> Thanks,
>>
>> Jared
>>
>>
>>  I just re-did my tests with a pair of synched dongles, and instead of
> inject RF externally, I just tuned it close to the 2nd harmonic of the
>   clock.
>
> That produced quite stable, near-perfect, correlation, once I adjusted the
> phase to peak up the correlator output.  This puzzles me greatly.
>
> This implies that both dongles are properly phase-locked to the master
> clock, and that the leakage  is being coherently downconverted, and
>   that no samples are being dropped.
>
> So, my phase-coherence issues are with my external RF injection.  Which I
> just plain don't understand
>
>
> --
> 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
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Pybombs update fails - or is it just me?

2013-09-27 Thread Alexandru Csete
I get a very strange error when trying to "./pybombs update" - it
looks like it only takes the first letter of the package name and
consequently fails to find the package. I can't figure out if this is
only a local issue or a problem with pybombs. Anyone else seen this?

Alex


Packages out of date: ['gnuradio', 'gr-iqbal', 'uhd']
Will remove and install the following packages to the latest version:
['gr-iqbal', 'gr-fcdproplus', 'uhd', 'gr-osmosdr', 'gnuradio']

Continue (y or n) y
removing the following packages: ['gr-iqbal', 'gr-fcdproplus', 'uhd',
'gr-osmosdr', 'gnuradio']
('\nmake uninstall\n', '\nmake uninstall\n')
bash exec (/home/alc/sdr/pybombs/pybombs.git/src/gr-iqbal/build)::
make uninstall

Scanning dependencies of target uninstall
-- Uninstalling
"/home/alc/sdr/pybombs/runtime/lib/pkgconfig/gnuradio-iqbalance.pc"
-- Uninstalling "/home/alc/sdr/pybombs/runtime/include/gnuradio/iqbalance/api.h"
-- Uninstalling
"/home/alc/sdr/pybombs/runtime/include/gnuradio/iqbalance/fix_cc.h"
-- Uninstalling
"/home/alc/sdr/pybombs/runtime/include/gnuradio/iqbalance/optimize_c.h"
-- Uninstalling "/home/alc/sdr/pybombs/runtime/lib/libgnuradio-iqbalance.so"
-- Uninstalling
"/home/alc/sdr/pybombs/runtime/lib/python2.7/dist-packages/gnuradio/iqbalance/_iqbalance_swig.so"
-- Uninstalling
"/home/alc/sdr/pybombs/runtime/lib/python2.7/dist-packages/gnuradio/iqbalance/iqbalance_swig.py"
-- Uninstalling
"/home/alc/sdr/pybombs/runtime/lib/python2.7/dist-packages/gnuradio/iqbalance/iqbalance_swig.pyc"
-- Uninstalling
"/home/alc/sdr/pybombs/runtime/lib/python2.7/dist-packages/gnuradio/iqbalance/iqbalance_swig.pyo"
-- Uninstalling
"/home/alc/sdr/pybombs/runtime/include/gnuradio/swig/iqbalance_swig.i"
-- Uninstalling
"/home/alc/sdr/pybombs/runtime/include/gnuradio/swig/iqbalance_swig_doc.i"
-- Uninstalling
"/home/alc/sdr/pybombs/runtime/lib/python2.7/dist-packages/gnuradio/iqbalance/__init__.py"
-- Uninstalling
"/home/alc/sdr/pybombs/runtime/lib/python2.7/dist-packages/gnuradio/iqbalance/__init__.pyc"
-- Uninstalling
"/home/alc/sdr/pybombs/runtime/lib/python2.7/dist-packages/gnuradio/iqbalance/__init__.pyo"
-- Uninstalling
"/home/alc/sdr/pybombs/runtime/share/gnuradio/grc/blocks/iqbalance_fix_cc.xml"
-- Uninstalling
"/home/alc/sdr/pybombs/runtime/share/gnuradio/grc/blocks/iqbalance_optimize_c.xml"
Built target uninstall
bash return val = 0
uninstalled gr-iqbal
package not found: g

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


Re: [Discuss-gnuradio] Enable QT multi threading in the qtgui template

2013-09-27 Thread Sylvain Munaut
Hi Tom,

> Yes, the destruction of objects with QT being "good" and doing its own
> garbage collection was a hassle for me at the beginning, too. This
> looks like a nice solution, especially if it solves your issues.

I was hoping to be able to have the same class deriving from both
gr_sync_block and QWidget, but unfortunately that doesn't seem
possible, but at least with this I can have both independently.

The downside is that it's harder to make the 3 versions of the block
share some of the code. I have a glfw version that's standalone and
doesn't depend on any GR gui toolkit support and I wanted to make a Qt
and WX version that integrated nicely and share as much as possible of
the GR integration code, but you need to do stuff so differently for
the 3 toolkits that's it's pretty hard to come up with a good
solution.


> Once you've settled everything and have your OOT module working and
> tested, can you send us a couple of patches for these things? Or you
> and I can work offline to make sure things are fixed correctly.

Yup of course.

I'd like to get WX to work as well so I know exactly all that needs to
be updated for it to all work together.

Cheers,

Sylvain

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


Re: [Discuss-gnuradio] PCB Log Periodic Antenna connection

2013-09-27 Thread Jared Clements
On Sep 27, 2013 9:23 AM, "Dincer Beken"  wrote:
>
> Thank you Marcus,
>
>
>
> but I have still the following questions:
>
>
>
> Can I connect the Antenna then with the SMA-M/SMA-M cable to the
daughterboard RX antenna port?
>
That should work fine.
>
>
> What kind of a stand should I use?
>
Non-metallic :-D. Those PCB antennas don't exactly have a tripod mount, so
it'll take some ingenuity to figure out how to mount them.
>
>
> Can I put the Antenna onto the (plastic) GROUND PLANE (used against ESD)?
>
ESD mats are pretty crappy ground planes for RF purposes, great for not
damaging your hardware.  It's definitely safe to set it on the mat during
operation, though it will affect the beam pattern some, a metal bench
underneath the mat would affect the beam pattern much more significantly.
>
>
> This is a bonus question:
>
> Is it enough, that the antenna stands up?

See the Wikipedia article on log periodic antenna to understand the beam
pattern.  Hint: point the small end in the direction you want to listen.

Does the SMA cable need to have a specific degree of bending?
>
There is a minimum bend radius, but generally just don't kink it.

Have fun!

Jared

>
>
> Regards,
>
> Dincer
>
> Von: discuss-gnuradio-bounces+dbeken=blackned...@gnu.org [mailto:
discuss-gnuradio-bounces+dbeken=blackned...@gnu.org] Im Auftrag von Marcus
D. Leech
> Gesendet: Freitag, 27. September 2013 16:55
> An: discuss-gnuradio@gnu.org
> Betreff: Re: [Discuss-gnuradio] PCB Log Periodic Antenna connection
>
>
>
> On 09/27/2013 10:52 AM, Dincer Beken wrote:
>>
>> Hi again,
>>
>>
>>
>> Just to be clear,
>>
>> do I just need to solder the legs of the small SMA connector with the
holes in the PCB Log Antenna?
>>
>> Just as much that it can barely hold?
>>
>>
>>
>> Regards,
>>
>>
>
> The legs and the center conductor need to be soldered.
>
>
>
>
>
> --
>
> 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
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio