PlutoSDR & Mac - iio block issues??

2019-11-15 Thread Kevin Wheatley
New here and new to gnuRadio...

I'm attempting to get plutoSDR up and running on a Mac, I've installed
gunradio and dependencies, I've also downloaded and built libiio,
ibad9361-iio and gr-iio. Following this I've moved the block files across
to the working directory. Running gnuradio-companion
I can see the plutoSDR source & sink blocks, but when using them I get the
following error:

Traceback (most recent call last):
  File "/Users/m0khz/Desktop/top_block.py", line 22, in 
from gnuradio import iio
ImportError: cannot import name iio

any help in where I'm going wrong much appreciated 

Cheers Kevin

Full build details below:
I*nstall GNU Radio*

Kevins-MacBook-Pro:~ m0khz$ sudo port install gnuradio
--->  Computing dependencies for gnuradio
--->  Cleaning gnuradio
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  No broken ports found.
Kevins-MacBook-Pro:~ m0khz$
Kevins-MacBook-Pro:~ m0khz$ gnuradio-config-info --version
3.7.13.5

*Download and build libiio*

Kevins-MacBook-Pro:~ m0khz$ cd libiio
Kevins-MacBook-Pro:libiio m0khz$ cmake .
-- Looking for libusb-1.0 : Found
-- Check for case-sensitive file systems
-- File system is not case-sensitive
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/m0khz/libiio
Kevins-MacBook-Pro:libiio m0khz$ make
[ 48%] Built target iio
[ 55%] Built target iio_genxml
[ 62%] Built target iio_adi_xflow_check
[ 68%] Built target iio_reg
[ 75%] Built target iio_readdev
[ 82%] Built target iio_writedev
[ 89%] Built target iio_attr
[ 96%] Built target iio_info
[100%] Built target libiio-pkg
[100%] Built target libiio-py
Kevins-MacBook-Pro:libiio m0khz$ sudo make install
[ 48%] Built target iio
[ 55%] Built target iio_genxml
[ 62%] Built target iio_adi_xflow_check
[ 68%] Built target iio_reg
[ 75%] Built target iio_readdev
[ 82%] Built target iio_writedev
[ 89%] Built target iio_attr
[ 96%] Built target iio_info
[100%] Built target libiio-pkg
[100%] Built target libiio-py
Install the project...
-- Install configuration: "RelWithDebInfo"
installer: Package name is Libiio
installer: Upgrading at base path /
installer: The upgrade was successful.
Kevins-MacBook-Pro:libiio m0khz$ cd ..
Kevins-MacBook-Pro:~ m0khz$

*Download and build libad9361-iio*

Kevins-MacBook-Pro:~ m0khz$ cd libad9361-iio
Kevins-MacBook-Pro:libad9361-iio m0khz$ cmake .
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/m0khz/libad9361-iio
Kevins-MacBook-Pro:libad9361-iio m0khz$ make
[ 50%] Built target ad9361
[ 54%] Built target libad9361-pkg
[ 63%] Built target AutoRateTest
[ 72%] Built target FilterDesignerTest
[ 81%] Built target FMComms5SyncTest
[ 90%] Built target FilterDesignerHardwareTest
[100%] Built target GenerateRatesTest
Kevins-MacBook-Pro:libad9361-iio m0khz$ sudo make install
[ 50%] Built target ad9361
[ 54%] Built target libad9361-pkg
[ 63%] Built target AutoRateTest
[ 72%] Built target FilterDesignerTest
[ 81%] Built target FMComms5SyncTest
[ 90%] Built target FilterDesignerHardwareTest
[100%] Built target GenerateRatesTest
Install the project...
-- Install configuration: ""
-- Up-to-date: /usr/local/lib/pkgconfig/libad9361.pc
installer: Package name is Libad9361
installer: Upgrading at base path /
installer: The upgrade was successful.
-- Up-to-date: /usr/local/include/ad9361-wrapper.h
Kevins-MacBook-Pro:libad9361-iio m0khz$ cd ..
Kevins-MacBook-Pro:~ m0khz$

*Download and build gr-iio*

Kevins-MacBook-Pro:~ m0khz$ cd gr-iio
Kevins-MacBook-Pro:gr-iio m0khz$ cmake .
-- Build type not specified: defaulting to release.
Checking for GNU Radio Module: RUNTIME
 * INCLUDES=/opt/local/include
 *
LIBS=/opt/local/lib/libgnuradio-runtime.dylib;/opt/local/lib/libgnuradio-pmt.dylib;/opt/local/lib/liblog4cpp.dylib
GNURADIO_RUNTIME_FOUND = TRUE
Checking for GNU Radio Module: ANALOG
 * INCLUDES=/opt/local/include
 *
LIBS=/opt/local/lib/libgnuradio-analog.dylib;/opt/local/lib/libgnuradio-runtime.dylib;/opt/local/lib/libgnuradio-pmt.dylib;/opt/local/lib/liblog4cpp.dylib;/opt/local/lib/libvolk.dylib
GNURADIO_ANALOG_FOUND = TRUE
Checking for GNU Radio Module: BLOCKS
 * INCLUDES=/opt/local/include
 *
LIBS=/opt/local/lib/libgnuradio-blocks.dylib;/opt/local/lib/libgnuradio-runtime.dylib;/opt/local/lib/libgnuradio-pmt.dylib;/opt/local/lib/liblog4cpp.dylib
GNURADIO_BLOCKS_FOUND = TRUE
Checking for GNU Radio Module: PMT
 * INCLUDES=/opt/local/include
 *
LIBS=/opt/local/lib/libgnuradio-runtime.dylib;/opt/local/lib/libgnuradio-pmt.dylib;/opt/local/lib/liblog4cpp.dylib
GNURADIO_PMT_FOUND = TRUE
Checking for GNU Radio Module: VOLK
 * INCLUDES=/opt/local/include
 * LIBS=/opt/local/lib/libvolk.dylib
GNURADIO_VOLK_FOUND = TRUE
-- 
-- Checking for module SWIG
-- Found SWIG version 3.0.12.
-- Configuring done
CMake Warning (dev):
  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
  --help-policy CMP0042" for policy details.  Use the cmake_policy command
to
  set the policy and suppress this warning.

 

Re: [Discuss-gnuradio] USB VID & PID's

2009-11-11 Thread Kevin Wheatley

Wow that was quick :)
Thanks Eric.

73's
Kevin - M0KHZ


On 11 Nov 2009, at 20:43, Eric Blossom wrote:


On Wed, Nov 11, 2009 at 07:38:52PM +0000, Kevin Wheatley wrote:

Hi Guys

I’m new to the list and have a query regarding USB VID & PID’s.

The HPSDR community are currently prototyping a single board HF
transceiver. The product is named Hermes.

A list of SDR USB PID’s seem to be maintained here:

http://gnuradio.org/trac/browser/gnuradio/trunk/usrp/firmware/include/usrp_ids.h

We are looking for a unique VID & PID combination for Hermes, who  
do I
need to contact to gain Hermes a valid PID? Looking at the list  
above,
it looks like the next allocation is 0x0014 or 0x0019, we are  
looking to

use the VID of 0xFFFE.

Any advice or pointers in the right direction greatly appreciated.

73’s
Kevin - M0KHZ


0x0014 is now allocated to you.

73, Eric K7GNU




diff --git a/usrp/firmware/include/usrp_ids.h b/usrp/firmware/ 
include/usrp_ids.h

index 4f9ac4f..dd5daed 100644
--- a/usrp/firmware/include/usrp_ids.h
+++ b/usrp/firmware/include/usrp_ids.h
@@ -54,6 +54,7 @@
#define USB_PID_FSF_BDALE_70x0011// Bdale Garbee >
#define USB_PID_FSF_BDALE_80x0012// Bdale Garbee >
#define USB_PID_FSF_BDALE_90x0013// Bdale Garbee >

+#define USB_PID_FSF_HPSDR_HERMES   0x0014// HPSDR Hermes

#define USB_PID_FSF_LBNL_UXO0x0018// 
http://recycle.lbl.gov/~ldoolitt/uxo/





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


[Discuss-gnuradio] USB VID & PID's

2009-11-11 Thread Kevin Wheatley

Hi Guys

I’m new to the list and have a query regarding USB VID & PID’s.

The HPSDR community are currently prototyping a single board HF  
transceiver. The product is named Hermes.


A list of SDR USB PID’s seem to be maintained here:

http://gnuradio.org/trac/browser/gnuradio/trunk/usrp/firmware/include/usrp_ids.h

We are looking for a unique VID & PID combination for Hermes, who do I  
need to contact to gain Hermes a valid PID? Looking at the list above,  
it looks like the next allocation is 0x0014 or 0x0019, we are looking  
to use the VID of 0xFFFE.


Any advice or pointers in the right direction greatly appreciated.

73’s
Kevin - M0KHZ

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