Re: Ubuntu 20.04 cannot find the Hackrf board?

2022-08-15 Thread George Edwards
Hi Marcus,

There are many times I am building custom dsp algorithms that the packages
do not support, so I need to write the C++ or Python code for my signal
processing algorithms.

The Linux distribution after I install gnuradio understands the OOT
gr_modtool, how do I replicate this on the Windows PC?

Thank you!

George

George

On Mon, Aug 15, 2022 at 5:08 AM Marcus Müller  wrote:

> Hi George,
>
> On 8/3/22 19:23, George Edwards wrote:
> > Hi Marcus,  thanks for the response, very much appreciated!
> > I have a Windows PC and I believe that in order to build OOT blocks,
> > one needs a Linux environment.
> No, that is not correct.
> > I installed VirtualBox so that I can install Ubuntu 20.04 to get a
> > Linux environment to install Gnuradio 3.9 in. George
>
> Why would you then build from source? Just install the packages.
>
> Best regards,
>
> Marcus
>
> >
> > On Wed, Aug 3, 2022, 8:26 AM Marcus Müller 
> wrote:
> >
> > Hi George,
> >
> > you'll have to do a bit more investigation on your end, I'm
> > afraid. We don't know how you
> > set up your VM, or how you're passing through the USB driver.
> > Generally, USB passthrough
> > comes at a high overhead, and sometimes that's prohibitively slow,
> > as well. Also, why do
> > VirtualBox (and that's not a Microsoft product, so I'm really
> > confused by what you're
> > referring to), if you can have WSL2?
> >
> > Best regards,
> > Marcus
> >
> > On 03.08.22 14:15, George Edwards wrote:
> > > Hello GNURadio Community,
> > >
> > > I built a grc flowgraph in Gnuradio 3.9.5 on Ubuntu 20.04 inside
> > Microsoft VirtualBox. I
> > > have a HackRF One radio hardware. I installed the hackrf drivers
> > in Ubuntu with command:
> > > sudo apt-get install -y hackrf
> > > and confirmed the installation. I connected the HackRF One board
> > to my computer and in the
> > > Terminal prompt entered the command hackrf_info and received
> > the response that it does not
> > > see the Hackrf board.
> > >
> > > And true to form when I ran the flowgraph, I get the following
> > error message:
> > > RuntimeError: no hackrf device matches
> > >
> > > Why is Ubuntu 20.04 running inside MS VirtualBox not seeing the
> > HackRf board with the
> > > HackRf drivers installed. And, how do I resolve this issue?
> > >
> > > Will appreciate any help to resolve this issue.
> > >
> > > George
> > >
> >
>
>


Re: Ubuntu 20.04 cannot find the Hackrf board?

2022-08-15 Thread George Edwards
Thanks Cinaed,

I am going off on vacation, but will definitely contact the hackrf_dev
group when I return.

George

On Mon, Aug 15, 2022 at 7:58 PM Cinaed Simson 
wrote:

> Incidentally, don't use sudo to run the hackrf on Linux.
>
> You should be able to run the hackrf on Linux under your login userid -
> you just need sudo to install the software on the system.
>
> I suggest you subscribe to the hackrf list
>
> https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
>
> they should be able to help you.
>
> -- Cinaed
>
>
> On 8/15/22 03:04, Marcus Müller wrote:
> > Hi George,
> >
> > On 8/3/22 19:23, George Edwards wrote:
> >> Hi Marcus,  thanks for the response, very much appreciated!
> >> I have a Windows PC and I believe that in order to build OOT blocks,
> >> one needs a Linux environment.
> > No, that is not correct.
> >> I installed VirtualBox so that I can install Ubuntu 20.04 to get a
> >> Linux environment to install Gnuradio 3.9 in. George
> >
> > Why would you then build from source? Just install the packages.
> >
> > Best regards,
> >
> > Marcus
> >
> >>
> >> On Wed, Aug 3, 2022, 8:26 AM Marcus Müller 
> >> wrote:
> >>
> >> Hi George,
> >>
> >> you'll have to do a bit more investigation on your end, I'm
> >> afraid. We don't know how you
> >> set up your VM, or how you're passing through the USB driver.
> >> Generally, USB passthrough
> >> comes at a high overhead, and sometimes that's prohibitively slow,
> >> as well. Also, why do
> >> VirtualBox (and that's not a Microsoft product, so I'm really
> >> confused by what you're
> >> referring to), if you can have WSL2?
> >>
> >> Best regards,
> >> Marcus
> >>
> >> On 03.08.22 14:15, George Edwards wrote:
> >> > Hello GNURadio Community,
> >> >
> >> > I built a grc flowgraph in Gnuradio 3.9.5 on Ubuntu 20.04 inside
> >> Microsoft VirtualBox. I
> >> > have a HackRF One radio hardware. I installed the hackrf drivers
> >> in Ubuntu with command:
> >> > sudo apt-get install -y hackrf
> >> > and confirmed the installation. I connected the HackRF One board
> >> to my computer and in the
> >> > Terminal prompt entered the command hackrf_info and received
> >> the response that it does not
> >> > see the Hackrf board.
> >> >
> >> > And true to form when I ran the flowgraph, I get the following
> >> error message:
> >> > RuntimeError: no hackrf device matches
> >> >
> >> > Why is Ubuntu 20.04 running inside MS VirtualBox not seeing the
> >> HackRf board with the
> >> > HackRf drivers installed. And, how do I resolve this issue?
> >> >
> >> > Will appreciate any help to resolve this issue.
> >> >
> >> > George
> >> >
> >>
> >
>
>
>


Re: Ubuntu 20.04 cannot find the Hackrf board?

2022-08-15 Thread Cinaed Simson

Incidentally, don't use sudo to run the hackrf on Linux.

You should be able to run the hackrf on Linux under your login userid - 
you just need sudo to install the software on the system.


I suggest you subscribe to the hackrf list

   https://pairlist9.pair.net/mailman/listinfo/hackrf-dev

they should be able to help you.

-- Cinaed


On 8/15/22 03:04, Marcus Müller wrote:

Hi George,

On 8/3/22 19:23, George Edwards wrote:

Hi Marcus,  thanks for the response, very much appreciated!
I have a Windows PC and I believe that in order to build OOT blocks, 
one needs a Linux environment.

No, that is not correct.
I installed VirtualBox so that I can install Ubuntu 20.04 to get a 
Linux environment to install Gnuradio 3.9 in. George


Why would you then build from source? Just install the packages.

Best regards,

Marcus



On Wed, Aug 3, 2022, 8:26 AM Marcus Müller  
wrote:


    Hi George,

    you'll have to do a bit more investigation on your end, I'm
    afraid. We don't know how you
    set up your VM, or how you're passing through the USB driver.
    Generally, USB passthrough
    comes at a high overhead, and sometimes that's prohibitively slow,
    as well. Also, why do
    VirtualBox (and that's not a Microsoft product, so I'm really
    confused by what you're
    referring to), if you can have WSL2?

    Best regards,
    Marcus

    On 03.08.22 14:15, George Edwards wrote:
    > Hello GNURadio Community,
    >
    > I built a grc flowgraph in Gnuradio 3.9.5 on Ubuntu 20.04 inside
    Microsoft VirtualBox. I
    > have a HackRF One radio hardware. I installed the hackrf drivers
    in Ubuntu with command:
    > sudo apt-get install -y hackrf
    > and confirmed the installation. I connected the HackRF One board
    to my computer and in the
    > Terminal prompt entered the command hackrf_info and received
    the response that it does not
    > see the Hackrf board.
    >
    > And true to form when I ran the flowgraph, I get the following
    error message:
    > RuntimeError: no hackrf device matches
    >
    > Why is Ubuntu 20.04 running inside MS VirtualBox not seeing the
    HackRf board with the
    > HackRf drivers installed. And, how do I resolve this issue?
    >
    > Will appreciate any help to resolve this issue.
    >
    > George
    >








Re: [VOLK] a += b*c ?

2022-08-15 Thread Randall Wayth
Thanks for the suggestions and apologies for not being 100% clear at the
start.
I'm not looking for a dot product. I'm looking for
a[i] += b[i]*c[i] specifically for floating point

So it would be the equivalent of IPP's ippsAddProduct_32f.
The application is to apply a window to a set of samples before
accumulating, to implement a weighted overlap add PFB. In my case the
samples are real-valued, but I could also see a case for a and b being
complex, or the case for b being 8 or 16-bit ints with a and c being
floating point.

Cheers,
Randall


Re: [VOLK] a += b*c ?

2022-08-15 Thread Johannes Demel

Hi,

the kernels are type specific. However, if you want a dot product:


a = \sum_{i=0}^{N-1} b[i]c[i],

https://github.com/gnuradio/volk/blob/main/kernels/volk/volk_32fc_x2_dot_prod_32fc.h


A [i] += B [i] * C [i], for i = 0...N-1


This would implement the above formula:
1.
https://github.com/gnuradio/volk/blob/main/kernels/volk/volk_32fc_x2_multiply_32fc.h
2.
https://github.com/gnuradio/volk/blob/main/kernels/volk/volk_32fc_x2_add_32fc.h

It would be interesting to see how much faster an integrated kernel 
would be.


The ipp `AddProduct function:
https://www.intel.com/content/www/us/en/develop/documentation/ipp-dev-reference/top/volume-1-signal-and-data-processing/essential-functions/arithmetic-functions/addproduct.html

I assume ipp aims for:
https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#ig_expand=3202,3202,3202,3206,3206,3206=_mm256_fmadd_ps

Which version are you looking for?

Cheers
Johannes


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [VOLK] a += b*c ?

2022-08-15 Thread Fons Adriaensen
On Mon, Aug 15, 2022 at 12:03:25PM +0200, Marcus Müller wrote:
> Just to be sure you mean, for N-long b and c,
> 
> a = \sum_{i=0}^{N-1} b[i]c[i],

I suspect the OP meant

A [i] += B [i] * C [i], for i = 0...N-1

-- 
FA




Re: Ubuntu 20.04 cannot find the Hackrf board?

2022-08-15 Thread Marcus Müller

Hi George,

On 8/3/22 19:23, George Edwards wrote:

Hi Marcus,  thanks for the response, very much appreciated!
I have a Windows PC and I believe that in order to build OOT blocks, 
one needs a Linux environment.

No, that is not correct.
I installed VirtualBox so that I can install Ubuntu 20.04 to get a 
Linux environment to install Gnuradio 3.9 in. George


Why would you then build from source? Just install the packages.

Best regards,

Marcus



On Wed, Aug 3, 2022, 8:26 AM Marcus Müller  wrote:

Hi George,

you'll have to do a bit more investigation on your end, I'm
afraid. We don't know how you
set up your VM, or how you're passing through the USB driver.
Generally, USB passthrough
comes at a high overhead, and sometimes that's prohibitively slow,
as well. Also, why do
VirtualBox (and that's not a Microsoft product, so I'm really
confused by what you're
referring to), if you can have WSL2?

Best regards,
Marcus

On 03.08.22 14:15, George Edwards wrote:
> Hello GNURadio Community,
>
> I built a grc flowgraph in Gnuradio 3.9.5 on Ubuntu 20.04 inside
Microsoft VirtualBox. I
> have a HackRF One radio hardware. I installed the hackrf drivers
in Ubuntu with command:
> sudo apt-get install -y hackrf
> and confirmed the installation. I connected the HackRF One board
to my computer and in the
> Terminal prompt entered the command hackrf_info and received
the response that it does not
> see the Hackrf board.
>
> And true to form when I ran the flowgraph, I get the following
error message:
> RuntimeError: no hackrf device matches
>
> Why is Ubuntu 20.04 running inside MS VirtualBox not seeing the
HackRf board with the
> HackRf drivers installed. And, how do I resolve this issue?
>
> Will appreciate any help to resolve this issue.
>
> George
>





Re: [VOLK] a += b*c ?

2022-08-15 Thread Marcus Müller

Just to be sure you mean, for N-long b and c,

a = \sum_{i=0}^{N-1} b[i]c[i],

right?

That's the dot product, and that exists for a couple in/output types; 
the kernels you're looking for are all called dot_prod.



Cheers,

Marcus

On 8/15/22 04:41, Randall Wayth wrote:

Hi Folks,

Hopefully I am just missing this, but is there a kernel that does 
vectorised a += b*c ?


Something like the IPP "AddProduct" function?

Cheers,
Randall.